agentleFS
kv0906kv0906/pm-kit/.claude/skills/ask/SKILL.md

ask

Skill138 starsChanged 8 months agoMITView on GitHub

Fast vault Q&A — quick lookups, decision history, blocker status, doc search. Uses QMD hybrid search when available, falls back to vault grep. Use for "/ask what did we decide about auth?" or "/ask who's blocked?".

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use edit, discuss and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LambenthanSkill

    edit

    根据用户要求增删 raw sources 或更新 wiki 内容

    Also in 3 projects that use this

  • shawnla90Skill

    discuss

    Decision-lock workflow for complex features. Asks targeted domain-specific questions, locks scope, and writes a CONTEXT.md that downstream skills consume. Auto-invoked when a feature touches 3+ files across 2+ concerns, or manually via /discuss.

    Also in 3 projects that use this

  • sahinSkill

    execute

    Also in 3 projects that use this

  • sundial-orgSkill

    skill

    Find, install, create, improve, and publish AI agent skills through the Sundial ecosystem. Use when the user wants to find or search for skills, install a skill, create a new skill, improve or evaluate an existing skill, or publish a skill to Sundial Hub. Trigger phrases include "find a skill", "install skill", "create a skill", "make a skill", "improve this skill", "evaluate skill", "publish skill", "push skill", "search for skills".

    Also in 3 projects that use this

  • raven-souravSkill

    ingest

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check if QMD MCP tools are available in the current session:

    line 24
  2. Distinctive:

    When QMD is available and indexed:

    line 43
  3. Very specific:

    Deep search: Call qmd_deep_search with the user's question.

    line 45
  4. Very specific:

    Use collection filter from config: _core/config.yaml → qmd.collection_name (default: pm-kit)

    line 46
  5. Very specific:

    Retrieve top docs: Call qmd_get or qmd_multi_get for the top-scored results.

    line 48
  6. Distinctive:

    Synthesize answer: Read the retrieved content and produce a grounded answer with source citations.

    line 50
  7. Distinctive:

    When QMD is not available or not indexed:

    line 54
  8. Distinctive:

    When running in Fallback mode, append after the answer:

    line 109

“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/ask — Question Answering

Fast answers from your vault. Uses QMD hybrid search (BM25 + vector + rerank) when available, with automatic fallback to vault grep.

Context

Config: @_core/config.yaml

Input

User input: $ARGUMENTS

Processing Steps

Step 1: Detect Search Backend

Check if QMD MCP tools are available in the current session:

  1. Try qmd_status (MCP tool) to check QMD availability and index state.
  2. Evaluate result:
    • QMD available AND has embedded docs → use QMD mode
    • QMD available but 0 embedded docs → use Fallback mode + hint
    • QMD not available (tool missing/error) → use Fallback mode

Step 2: Parse Question

  • Detect project if mentioned
  • Identify question type:
    • "what did we decide about X" → decisions
    • "who's blocked" → blockers
    • "find doc for X" → docs
    • "status of X" → index

Step 3A: QMD Mode (preferred)

When QMD is available and indexed:

  1. Deep search: Call qmd_deep_search with the user's question.
    • Use collection filter from config: _core/config.yaml → qmd.collection_name (default: pm-kit)
    • Cap results: use qmd.max_results from config (default: 8)
  2. Retrieve top docs: Call qmd_get or qmd_multi_get for the top-scored results.
    • Apply minimum score threshold from config: qmd.min_score (default: 0.35)
  3. Synthesize answer: Read the retrieved content and produce a grounded answer with source citations.

Step 3B: Fallback Mode (vault grep)

When QMD is not available or not indexed:

  1. Search Strategy

    Question TypeSearch Path
    Decisionsdecisions/{project}/*.md
    Blockersblockers/{project}/*.md
    Docsdocs/{project}/*.md, docs/general/*.md
    Status01-index/{project}.md
    GeneralAll folders
  2. Search Methods
    • Filename match first (fastest — naming-as-API)
    • Frontmatter field match
    • Content grep (slower)

Step 4: Return Answer

Output Format

With results

## Answer

{Direct answer — 1-3 sentences, grounded in source content}

### Sources
- `{file-path}` — {brief context why this source is relevant}
- `{file-path}` — {brief context}

### Search Mode
{QMD (deep) | Fallback (vault grep)}

No results

## No Results Found

Searched: {folders or QMD collection}
Query: "{query}"

**Suggestions**:
- Try broader terms
- Check spelling
- Run `qmd embed` if QMD is installed but not indexed

### Search Mode
{QMD (deep) | Fallback (vault grep)}

Fallback mode hint

When running in Fallback mode, append after the answer:

Tip: Install QMD for smarter search with semantic understanding. See handbook/QMD_INTEGRATION.md for setup.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.