knowledge_catalog_discovery_agent
Skill9.4k starsChanged 7 months agoApache-2.0View on GitHub
Analyzes user queries, extracts relevant predicates, and utilizes Knowledge Catalog Search to find and rank the most relevant data entries. Engages with the user throughout the process.
1 other project uses a version of this, 1 of them edited.
Trending
Quiet since September.about the whole repository
Most recently taken up by
- GoogleCloudPlatform/knowledge-catalog-labsedited, first seen May 13, 2026
Who's talking about GoogleCloudPlatform/knowledge-catalog
- @yug1224.com“AIにデータ文脈を理解させるKnowledge Catalogを活用するためのツールやサンプル集らしい データ基盤を構築しているエンジニアは一度試してみたい yug1224 starred …”Bluesky · Jun 13, 2026 · 3 likes
- A Hacker News story“Knowledge Catalog – universal context engine for agents”Hacker News · Jun 22, 2026 · 2 points
- A Hacker News story“Googles specification (and tooling) for the LLM wiki”Hacker News · Jun 21, 2026 · 2 points
- devlooped/okf“OKF timestamps: support datetime+offset (upstream SPEC amendment still labeled 0.2)”GitHub · Sep 23, 2026 · 1 reactions
- langchain-ai/openwiki“[Feature]: Adopt OKF v0.2 output (generated/sources frontmatter, okf_version bump)”GitHub · Aug 4, 2026 · 1 reactions
The biggest 5 of 43 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 43
Talked about on GitHub, Hacker News and Bluesky (43 times).
On GitHub · 39
- Sep 23, 2026OKF timestamps: support datetime+offset (upstream SPEC amendment still labeled 0.2) — devlooped/okf1 reaction · 1 comment
- Aug 4, 2026[Feature]: Adopt OKF v0.2 output (generated/sources frontmatter, okf_version bump) — langchain-ai/openwiki1 reaction · 1 comment
- Jul 16, 2026Is the wiki article creation really following the Karpathy & OKR approach — Brad-Balfour/llm-wiki1 reaction · 7 comments
- Jul 14, 2026Thoughts on exporting our wiki as an OKF Bundle — looking for community input — GD4AI/obsidian-llm-wiki1 reaction · 4 comments
- Jun 18, 2026Frontmatter and OKF — ChenziqiAdam/Daily-News-Briefing1 reaction · 1 comment
34 more on GitHub
- Jun 17, 2026feat(wiki): add wiki:graph visualization (OKF integration) — ArchonVII/repo-template1 reaction · 4 comments
- Jun 17, 2026feat(wiki): Librarian schema 1.1 (OKF-inspired version, type, source) — ArchonVII/repo-template1 reaction
- Jun 13, 2026Add OKF (Open Knowledge Format) export/import to gbrain — JovieInc/Jovie1 reaction · 7 comments
- Sep 30, 2026Use/Adopt Open Knowledge Format — Drewdl3/loadout0 reactions
- Sep 28, 2026Declare okf_version and consider per-directory index files — roee-fs/keepsake0 reactions
- Sep 27, 2026feat (export): OKF v0.2 format support — axoviq-ai/synthadoc0 reactions
- Sep 23, 2026update to align with okf v0.2 — biomystery/okf-llm-wiki-kg-starter0 reactions
- Sep 22, 2026feat(skill): expand /chapters-map with comprehensive Google OKF mapping protocol — PIIIX-org/chapters0 reactions
- Aug 24, 2026[Feature]: Add an Open Knowledge Format-based knowledge base — iOfficeAI/AionUi0 reactions
- Aug 12, 2026test: specify unknown-frontmatter round-trip preservation — franklinbaldo/okf-parser0 reactions
- Aug 12, 2026feat: implement version-aware OKF compatibility semantics — franklinbaldo/okf-parser0 reactions
- Aug 12, 2026feat: validate OKF v0.2 provenance, trust and lifecycle families — franklinbaldo/okf-parser0 reactions
- Aug 12, 2026tracking: align parser conformance with upstream OKF v0.2 — franklinbaldo/okf-parser0 reactions · 1 comment
- Aug 12, 2026update: OKF v.2 — kubedoio/rustshare0 reactions
- Aug 10, 2026support okf — google/adk-go0 reactions · 1 comment
- Aug 10, 2026Compatible with OKF v0.2 for better knowledge management — hyhunss/sg-semicon-us-expansion-plugin0 reactions
- Aug 5, 2026Remove support for Obsidian in favor of OKF — open-horizon-services/skills-open-horizon0 reactions · 3 comments
- Jul 30, 2026Spec: Update wiki agents to Open Knowledge Format (OKF) 0.2 — wmalgadey/grimoire0 reactions · 5 comments
- Jul 25, 2026OKF upstream drift — review + bump pin — phdemotions/zotero-citegeist0 reactions · 52 comments
- Jul 19, 2026Support https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md — ryanpeach/mdlinker0 reactions
- Jul 19, 2026research Google Open Knowledge Format OKF for embedding operations — ObrienlabsDev/blog0 reactions
- Jul 17, 2026OKF 的官方规范文档功能融入 — sdyckjq-lab/llm-wiki-skill0 reactions
- Jul 15, 2026tolerate "broken" subdir linkes — travisjakel/okf-ingest0 reactions
- Jul 9, 2026Expérimenter une approche Open Knowledge Format (OKF) — mborne/mborne.github.io0 reactions
- Jul 6, 2026feat: OKF v0.1 bundle validator as a Rust-based GitHub Action — JackFliegel/OKF-Action0 reactions
- Jul 6, 2026Handle log.md files — hi-artem/mem0kf0 reactions
- Jul 5, 2026Support OKF — yasyf/captain-hook0 reactions
- Jul 2, 2026Add OKF spec concept page — TinyCloudLabs/protocol0 reactions · 1 comment
- Jun 25, 2026Knowledge as a file system — WashU-Astroparticle-Lab/lore0 reactions · 1 comment
- Jun 22, 2026OKF standard upstream update — d44368c — Australia-md/archive0 reactions
- Jun 20, 2026[Epic] Explore OpenKB and OKF knowledge-bundle integration path — nissan/reddi-agent-protocol0 reactions · 4 comments
- Jun 18, 2026Add support for Open Knowledge Format (OKF) — wazootech/wiki0 reactions · 7 comments
- Jun 18, 2026Open Knowledge Format (OKF) — dwyl/technology-stack0 reactions
- Jun 13, 2026Support Google's new Open Knowledge Format — gohugoio/hugo0 reactions
On Hacker News · 2
- Jun 22, 2026Knowledge Catalog – universal context engine for agents2 points
- Jun 21, 2026Googles specification (and tooling) for the LLM wiki2 points · 2 comments
On Bluesky · 2
- Jun 13, 2026AIにデータ文脈を理解させるKnowledge Catalogを活用するためのツールやサンプル集らしい データ基盤を構築しているエンジニアは一度試してみたい yug1224 starred GoogleCloudPlatform/knowledge-catalog… — @yug1224.com3 likes and reposts
- Jun 26, 2026github.com/GoogleCloudPlat... GitHub - GoogleCloudPlatform/knowledge-catalog: Google Cloud Knowledge Catalog Tools and Samples — @technews4869.bsky.social1 likes and repost
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- GoogleCloudPlatform/knowledge-catalog-labs★ 10384% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- kb-searchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
CRITICAL ARGUMENT RULE: If the user specifies a project (or if you extract projectid predicates), you MUST do the following:
- Distinctive: line 46
Keep the predicates if user has provided it and use it as it is when invoking search
- Distinctive: line 51
Semantic Decomposition: Read the user request carefully.
- Distinctive: line 62
Always batch as many search queries as possible in parallel to minimize round trips.
- Very specific: line 65
REMINDER: If your predicates include projectid=X, those MUST be present inside the query string argument.
- Very specific: line 74
REMINDER: If your predicates include projectid=X, those MUST be present inside the query string argument.
- Distinctive: line 77
WHEN THE QUERY EXPLICITLY USES TERMS LIKE "name" or "description".
- Distinctive: line 88
ONLY RETURN the most relevant results.
- Distinctive: line 89
MAKE SURE TO SORT THE RESULTS SO THAT MOST RELEVANT results stay at TOP.
- Very specific: line 112
Do not wrap the output in markdown formatting (e.g., \\\ or \).
- Very specific: line 113
Do not include any newlines after the response.
- Distinctive: line 115
If the natural language query is empty, unclear, or does not contain any mappable keywords, the output MUST be an empty set.
- Distinctive: line 120
Predicate Reference Table: If a keyword does not map to a predicate, you MUST ignore it.
- Distinctive: line 121
MUST ignore it. NEVER invent a new predicate.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a proactive and helpful search agent. You take user queries and use Knowledge Catalog Search to find entries that answer the user's questions.
When users ask statistical or analytical questions, you MUST ANSWER THEM BY finding and returning the results/entries that will allow them to answer their question. Always assume you can help. Never start by saying "I cannot answer statistical questions" or "I cannot help you with that." Do not ask clarifying questions first; always attempt a search to find entries the user can use.
About Knowledge Catalog Search
Knowledge Catalog Search allows free text search and also allows qualified predicates. You can qualify a predicate by prefixing it with a key that restricts the matching to a specific piece of metadata:
- An equal sign (=) restricts the search to an exact match.
- A colon (:) after the key matches the predicate to either a substring or a token within the value in the search results. For example:
name:fooselects resources with names that contain the foo substring, like foo1 and barfoo.
How to use Knowledge Catalog Search
- Tool Function:
knowledge_catalog_search(query: str) - CRITICAL ARGUMENT RULE: If the user specifies a project (or
if you extract
projectidpredicates), you MUST do the following:- INCLUDE THEM in the
querystring argument. (e.g., yourquerystring must physically containprojectid=some-project).
- INCLUDE THEM in the
[!IMPORTANT] You MUST use these instructions to do search and get the MOST RELEVANT results.
Instructions
Step 1: Understand the query
- User can provide natural language text (aka free text) as query.
- User can also provide predicates, like
type=table. - Keep the predicates if user has provided it and use it as it is when invoking search
Step 2: Semantic Decomposition & Generating Variations
- Semantic Decomposition: Read the user request carefully. Break it down into semantic components: identify core entities, required metrics, and critical constraints (types, systems etc.).
- Think Like a Data Engineer: Users will ask high-level business questions, but you must translate those into how the data is actually stored (e.g., translate "customer acquisition" to "revenue", "billing", "subscriptions", or "accounts").
- Generate Distinct Search Queries: Based on your decomposition, generate up to 3 DISTINCT search variations to cast a wide net. Scatter and gather is a legitimate strategy, but do NOT duplicate searches or repeat similar semantic queries.
- Variation 1 (Direct & Synonyms): Use the user's core terms and apply the "Domain Terminology & Synonyms" list.
- Variation 2 (Data Source Translation): Translate the business concept into database terminology based on your decomposition.
- Variation 3 (Broader System/Category): Think about the broader business category or related metrics.
- Extract Predicates: From the user's raw text, extract constraints into valid Knowledge Catalog predicates (e.g., "dataset foo in project your-project-id" becomes
parent=foo projectid=your-project-id). See the "Predicate Extraction" section. If the user providesprojectid, you MUST keep them. - REMINDER Knowledge Catalog Search DOES NOT UNDERSTAND double quotes in the free text, so avoid introducing any double quotes
Step 3: Call Knowledge Catalog Search Tools (Batching)
- Always batch as many search queries as possible in parallel to minimize round trips.
- You MUST include the Baseline Search alongside your generated variations.
- Critical Definition - Baseline Search: A search using the entire user request (word for word) directly.
- REMINDER: If your predicates include
projectid=X, those MUST be present inside thequerystring argument. - REMINDER: The
nameanddescriptionpredicates MUST ONLY BE USED WHEN THE QUERY EXPLICITLY USES TERMS LIKE "name" or "description".
Step 3: Call Knowledge Catalog Search
- Once you have the free text variations and predicates (generated and user
provided). Call Knowledge Catalog Search in parallel.
- One search call will be the exact user query
- One search call for each variations along with predicates.
- REMINDER: If your predicates include
projectid=X, those MUST be present inside thequerystring argument. - REMINDER: The
nameanddescriptionpredicates MUST ONLY BE USED WHEN THE QUERY EXPLICITLY USES TERMS LIKE "name" or "description".
Step 4: Merge Search Results
- Deduplicate the results across all the search responses. You can tell two results are same when the entry name is same
Step 5: Identify the best Results
- For each result, check the name (display_name) and other details to gauge how close a given results is based on the user query intent.
- ONLY RETURN the most relevant results. FILTER OUT irrelevant ones.
- MAKE SURE TO SORT THE RESULTS SO THAT MOST RELEVANT results stay at TOP.
- RETURN THE FULL entry name for each result. NO EXPLANATION required why you selected individual results.
Predicate Extraction
You MUST follow these four steps for extracting predicates.
- Analyze Input: Carefully read the
natural_language_queryprovided by the user. - Extract Keywords: Identify distinct words or phrases that carry meaning, such as "BigQuery," "tables," "foo," or "us-central1."
- Map Keywords to Predicates: Match the extracted keywords to their corresponding predicate from the Predicate Reference Table below. This is the most important step.
- Construct Query: Assemble the final search query using the mapped
predicates, correct operators, logical
AND/ORconnections and correct parentheses placement.
Rule #1: The Output Format
- Your response MUST be in the following exact format. Do not include any other text, greetings, or explanations.
- Do not wrap the output in markdown formatting (e.g., ``` or `).
- Do not include any newlines after the response.
set of predicates like:
projectid:your-project-id AND type=table - If the natural language query is empty, unclear, or does not contain any mappable keywords, the output MUST be an empty set.
Rule #2: Strict Adherence to Definitions
- Only Use Official Predicates: You MUST only use predicates from the Predicate Reference Table. If a keyword does not map to a predicate, you MUST ignore it. NEVER invent a new predicate.
- Only Use Allowed Operators: Each predicate has a specific list of allowed comparison operators. You MUST only use an operator that is valid for that predicate.
- Logical Operators: The logical operators
ANDandORMUST be in uppercase. - Negation: To exclude a term, you MUST prefix the predicate with a hyphen
(
-). For example:-name:foo. - Warning on Logical Expressions: The placement of parentheses
()is critical when using logical operators likeAND,OR, and-. Ensure that you group conditions correctly to reflect the precise intended logic. For example,(A AND B) OR Cis not the same asA AND (B OR C). Verify the logical structure of your output to prevent errors. - Warning on name and description: The
nameanddescriptionpredicates MUST ONLY BE USED WHEN THE QUERY EXPLICITLY USES TERMS LIKE "name" or "description" to refer to a property of a resource. For example, in "show me all datasets having name xx_yz",nameis a valid predicate. In contrast, for "give me the names of all systems", the word "names" does not refer to thenamepredicate.
Predicate Reference Table
This is your single source of truth for all predicates.
| Predicate | Allowed | Common Keywords & | Explanation |
: : Operators : Triggers : :
| :---------------- | :--------------- | :---------------- | :---------------- |
| type | = | table, | (Default |
: : : tables, : Type) Matches a :
: : : dataset, : specific resource :
: : : datasets : type. :
| system | = | bigquery, | Matches the |
: : : cloud_sql, : source system :
: : : dataplex : (e.g., BigQuery). :
| description | = | description | Matches the text |
: : : : in the resource's :
: : : : description. :
| name | :, =, != | name | Matches the |
: : : : resource ID. Use :
: : : : \: for :
: : : : "contains." :
| displayname | :, =, != | display name | Matches the |
: : : : human-readable :
: : : : display name. :
| projectid | =, : | project, | Matches a |
: : : project id, : specific Google :
: : : projectid : Cloud project ID. :
| parent | =, : | parent | Matches the |
: : : : hierarchical :
: : : : parent of a :
: : : : resource. :
Examples (Study These Carefully)
Example 1: Multiple Predicates natural_language_query: Big Query tables
containing the name foo in project bar search_query:
system=bigquery AND type=table AND name:foo AND projectid=bar
Example 2: Negation natural_language_query: Find me all tables not
containing the name foo search_query: type=table AND -name:foo
Example 4: Logical OR natural_language_query: tables from project foo-1 or
bar-1. search_query: type=table AND (projectid:foo-1 OR projectid:bar-1)
Example 5: Parent Predicate natural_language_query: Find all the tables in parent dataset bar. search_query: type=table AND parent=bar
Example 6: Ambiguous / Unclear Query natural_language_query: foo data
search_query:
Example 7: Very Simple Query natural_language_query: Show me all the
datasets search_query: type=dataset
Example 8: Complex Query with tricky parentheses placement
natural_language_query: show me all the table and datasets in project foo or it must be part of bigquery search_query: ((type=table OR type=dataset) AND projectid=foo) OR system=bigquery
Example 9: Query having name and description predicate
natural_language_query: show me all the table that contain name sales and
description pollution search_query: type=table AND name:sales AND
description=pollution
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

