mags-docs-search
npx machina-cli add skill doancan/mags/mags-docs-search --openclawFiles (1)
SKILL.md
762 B
MAGS Docs Search
Search across all project documents using full-text search.
Usage
/mags-docs-search <query>
Steps
- Parse the query from the argument.
- Call
mags_search_docswith the query string. - Display results ranked by relevance:
== Search: "<query>" == 1. docs/architecture/overview.md ...matching excerpt with context... 2. docs/rules/backend.md ...matching excerpt with context... Found <N> results. - If no results, suggest: "No matches. Try broader terms or run
/mags-docsto browse."
Source
git clone https://github.com/doancan/mags/blob/main/skills/mags-docs-search/SKILL.mdView on GitHub Overview
MAGS Docs Search enables full-text search across all project documents. It parses your query, calls mags_search_docs, and returns results ranked by relevance to help you quickly locate architecture, rules, and reference docs.
How This Skill Works
You input a query via /mags-docs-search. The skill parses the argument, calls mags_search_docs with the query string, and then displays results ranked by relevance with excerpts to provide context.
When to Use It
- When you need to locate information scattered across docs, such as an architecture overview in docs/architecture/overview.md.
- When researching specific rules or guidelines found in docs/rules/backend.md.
- When you want to compare how a concept is described across multiple documents.
- When starting a task and needing quick references from the documentation.
- When you want to surface all mentions of a term across the project docs.
Quick Start
- Step 1: /mags-docs-search <query>
- Step 2: The skill parses the query and calls mags_search_docs with it.
- Step 3: Results are displayed ranked by relevance with matching excerpts.
Best Practices
- Use precise keywords or phrases to narrow results.
- If searching for a multi-word phrase, enclose it in quotes to improve accuracy.
- If results are broad, try additional keywords or synonyms.
- skim the excerpted context to quickly verify relevance before opening the document.
- If no results appear, broaden terms or use /mags-docs to browse nearby docs.
Example Use Cases
- Find the architecture overview in docs/architecture/overview.md.
- Locate the backend rules in docs/rules/backend.md.
- Pull matching excerpts to compare how a term is described across docs.
- Identify API references across docs for integration tasks.
- Surface related docs when planning a new feature.
Frequently Asked Questions
Add this skill to your agents