Query the APIView Copilot knowledge base for guidelines, examples, and memories. Use for: search KB, search knowledge base, find guideline, lookup guideline, search guidelines, search examples, search memories, KB query, knowledge base search, find rule, what does the KB say about.
npx skills add https://github.com/Azure/azure-sdk-tools --skill kb-search
The knowledge base contains three entity types linked in a graph:
A search query hits the Azure AI Search index (semantic + vector search), then resolves all linked entities from Cosmos DB via breadth-first traversal. The result is the same RAG context the AI reviewer would see.
Unless the user says otherwise, always apply these defaults:
--ids queries (both --text and --path). Use the language the user is asking about.--markdown for text/path queries (easier for the agent to read and summarize). --markdown is not allowed with --ids.--text for natural language queries. Use --path to search from a file. Use --ids only when the user provides specific knowledge base IDs.--text)Requires --language. Searches the index semantically and returns linked guidelines, examples, and memories.
python cli.py kb search -l <language> --text "<query>" --markdown
--path)Requires --language. Reads query text from a file and searches the index.
python cli.py kb search -l <language> --path <file> --markdown
--ids)Retrieves specific items by ID. No other flags allowed (no --language, --text, --markdown, --path).
python cli.py kb search --ids <id1> <id2> ...
Run directly in a foreground terminal with a 60-second timeout (timeout: 60000). By default, let the terminal capture the output so the agent can read it directly. If the output appears truncated (terminal truncates at ~60 KB), re-run with redirection to a file and read it back:
python cli.py kb search -l <language> --text "<query>" --markdown | Out-File -Encoding UTF8 scratch/kb_output.md
Do not use > — it produces UTF-16 in PowerShell 5.1. Always use | Out-File -Encoding UTF8.
Then use read_file on scratch/kb_output.md to get the full results.
Text search:
python cli.py kb search -l <language> --text "<query>" --markdown
File search:
python cli.py kb search -l <language> --path <file> --markdown
ID lookup:
python cli.py kb search --ids <id1> <id2>
After the command completes, read the terminal output and summarize the findings for the user.
# Search Python guidelines about async
python cli.py kb search -l python --text "async client methods" --markdown
# Search TypeScript guidelines about naming
python cli.py kb search -l typescript --text "method naming conventions" --markdown
# Search Java guidelines about pagination
python cli.py kb search -l java --text "pagination list operations" --markdown
# Retrieve specific items by ID
python cli.py kb search --ids guideline-abc123 example-def456
# JSON output instead of markdown (for structured processing)
python cli.py kb search -l dotnet --text "dispose pattern"
| Flag | Type | Default | Description |
|------|------|---------|-------------|
| --text | string | — | Natural language search query (mutually exclusive with --path) |
| --path | string | — | Path to a file containing query text or code (mutually exclusive with --text) |
| --ids | list | — | One or more knowledge base item IDs to retrieve directly (no other flags allowed) |
| --language / -l | string | — | Language to search (required for all non---ids queries) |
| --markdown | flag | off | Render output as markdown instead of JSON (not allowed with --ids) |
--markdown)Each result is rendered as a section with:
{kind}_id (e.g. guideline_id or memory_id), score (if available), and exception status (if true)This is the same format the AI reviewer sees during RAG-based reviews.
Returns the full Context object with nested guidelines, examples, and memories including scores and all linked entities. Useful for programmatic inspection.
Returns SearchItem objects as a JSON array with a curated projection of index fields: id, kind, title, content, language, service, is_exception, example_type, and search scores.
--ids is exclusive: When using --ids, do not pass --language, --text, --markdown, or --path. The command will error.--language is required for all non---ids queries: Both --text and --path require --language to filter the index.--text or --path: For non-ID queries, provide one but not both.python cli.py not avc/avc.bat: The wrapper scripts (avc on Linux/macOS, avc.bat on Windows) invoke the system python/python3, which may not be the correct virtual environment. Run python cli.py directly to ensure the right interpreter is used.2>&1: This merges stderr log messages into the output, corrupting it.--markdown for text/path queries: The markdown output is more readable and is what the AI reviewer actually sees. Use JSON only when you need structured data.Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
Take azure/kb-search from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.