# Wiki Query

> Use when asking a question against a personal wiki built with wiki-init and wiki-ingest. Do not answer from general knowledge — always read the wiki pages first.

- **Type:** Skill
- **Install:** `agentstack add skill-kfchou-wiki-skills-wiki-query`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [kfchou](https://agentstack.voostack.com/s/kfchou)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [kfchou](https://github.com/kfchou)
- **Source:** https://github.com/kfchou/wiki-skills/tree/main/skills/wiki-query

## Install

```sh
agentstack add skill-kfchou-wiki-skills-wiki-query
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Wiki Query

Ask a question. Read the wiki. Synthesize with citations. Offer to file the answer back.

## Pre-condition

Find `SCHEMA.md` (search from cwd upward, or `~/wikis/`). If not found, tell the user to run `wiki-init` first. Read it to get wiki root path and cross-reference convention.

## Process

### 1. Read `wiki/index.md` first

Scan the full index to identify which pages are likely relevant. Do NOT answer from general knowledge — the wiki is the source of truth here, even if you think you know the answer.

### 2. Read relevant pages

Read the identified pages in full. Follow one level of `[[slug]]` links if they point to pages that seem relevant to the question.

### 3. Synthesize the answer

Write a response that:
- Is grounded in the wiki pages you read
- Cites inline using `[[slug]]` for every claim sourced from a specific page
- Notes agreements and disagreements between pages
- Flags gaps: "The wiki has no page on X" or "[[page]] doesn't cover Y yet"
- Suggests follow-up sources to ingest or questions to investigate

Format for the question type:
- Factual → prose with citations
- Comparison → table
- How-it-works → numbered steps
- What-do-we-know-about-X → structured summary with open questions

### 4. Always offer to save

After answering, say:

> "Worth saving as `wiki/pages/.md`?"

If yes:
- Write the page with frontmatter: `tags: [query, analysis]`, `sources: [all cited slugs]`
- Add entry to `wiki/index.md` under the correct category (Analyses or similar)
- Append to `wiki/log.md`:
  ```
  ## [] query | 
  Filed as: [[]]
  ```

If no:
- Append to `wiki/log.md`:
  ```
  ## [] query | 
  Not filed.
  ```

## Common Mistakes

- **Answering from memory** — Always read the wiki pages. The wiki may contradict what you think you know, and that contradiction is valuable signal.
- **Skipping the save offer** — Good query answers compound the wiki's value. Always offer.
- **No citations** — Every factual claim should trace back to a `[[slug]]`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [kfchou](https://github.com/kfchou)
- **Source:** [kfchou/wiki-skills](https://github.com/kfchou/wiki-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-kfchou-wiki-skills-wiki-query
- Seller: https://agentstack.voostack.com/s/kfchou
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
