smart-search-tables

Orchestrates ontology knowledge-network queries to locate data tables and responsible departments.

2.5k|134|Updated Jun 6, 2025
One-click install
npx skills add https://github.com/UnicomAI/wanwu --skill smart-search-tables
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-search-tables
Source: https://github.com/UnicomAI/wanwu/tree/main/configs/microservice/bff-service/configs/agent-skills/ontology/smart-search-tables
Command: npx skills add https://github.com/UnicomAI/wanwu --skill smart-search-tables

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enterprise users often cannot find which database table or view holds the data they need, or who governs it. This Skill runs a fixed two-step retrieval pipeline across ontology knowledge networks to answer "where is the table" and "who is responsible for this data" questions with grounded, non-fabricated results.

Core Features & Use Cases

  • Metadata KN Retrieval: Searches a metadata-type knowledge network via bkn object-type query with match + knn conditions to find candidate tables/views, extracting technical_name, business_name, owning department, and subject domain.
  • Duty KN Retrieval: Derives department and subject keywords from step 1 results and queries a duty-type knowledge network for governance responsibilities and boundaries.
  • Structured Chinese Summary: Merges factual findings (candidate tables with full business names) and governance descriptions (department duties) into a final answer with next-step suggestions.
  • Use Case: A data analyst asks "Which wide table holds purchase order data, and which department governs it?" The Skill retrieves candidate tables from the metadata KN, then finds the responsible department's duties, and returns a combined answer.

Quick Start

Ask the assistant to find which table or view contains a specific business data set and which department is responsible for governing it.

Frequently Asked Questions about smart-search-tables

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find which database table contains specific business data?

Provide a natural-language question describing the business object and subject domain. The Skill queries the metadata knowledge network with match and knn conditions, returning candidate tables with full business names, technical names, owning departments, and subject domains.

How to find who is responsible for a data asset?

After locating candidate tables, the Skill derives department and subject keywords and queries a duty-type knowledge network for governance responsibilities. The summary lists each department's duty actions and applicable scope, or states when no direct association exists.

Does this Skill execute ontology CLI commands directly?

No. All ontology CLI execution is delegated to the ontology-core skill. This Skill only describes the command shapes, the fixed two-step order, and the summarization rules, while smart-data-analysis handles intent routing and knowledge network selection.

What inputs are required to run a table search?

The upstream smart-data-analysis skill must supply accountId (passed as --user-id), a metadata kn_id, an object-type id for instance queries, and optionally a duty_kn_id. If duty_kn_id is missing, the duty retrieval step is skipped and noted in the summary.

What happens when the table search returns no results?

The Skill states plainly that no matching data was found and suggests broadening the search phrase, switching knowledge networks, or asking a clarifying question. It never fabricates table names, fields, or departments when results are empty.