Ask

From kv0906/pm-kit · View interactive version

Ask is an AI agent skill from the GitHub repository kv0906/pm-kit. 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?".

How to use this skill

Skill file

/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:

Step 2: Parse Question

Step 3A: QMD Mode (preferred)

When QMD is available and indexed:

  1. Deep search: Call qmd_deep_search with the user's question.
  1. Retrieve top docs: Call qmd_get or qmd_multi_get for the top-scored results.
  1. 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 Type | Search Path |

|--------------|-------------|

| Decisions | decisions/{project}/*.md |

| Blockers | blockers/{project}/*.md |

| Docs | docs/{project}/*.md, docs/general/*.md |

| Status | 01-index/{project}.md |

| General | All folders |

  1. Search Methods

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.