agentleFS
po4ykapo4yka/llm-wiki-skills/skills/wiki-query/SKILL.md

wiki-query

Skill3 starsChanged 5 months agoMITView on GitHub

Answer questions from an existing LLM-Wiki vault and save reusable answers back into the wiki. Use when the user asks for research, synthesis, comparison, decision support, or recall from a raw/wiki/schema knowledge base.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use wiki-capture, wiki-setup and 6 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.
  • jehrhardtSkill

    wiki-capture

    Quickly capture raw thoughts, links, images, or notes to today's Obsidian daily note from anywhere in Pi. Use when the user wants to jot something down for later wiki processing.

    Also in 4 projects that use this

  • Ivy-Chen1999Skill

    wiki-setup

    Initialize a new Obsidian wiki vault with the correct structure, special files, and configuration. Use this skill when the user wants to set up a new wiki from scratch, initialize the vault structure, create the .env file, or says things like "set up my wiki", "initialize obsidian", "create a new vault", "get started with the wiki". Also use when the user needs to reconfigure their existing vault or fix a broken setup.

    Also in 3 projects that use this

  • justvinhhereSkill

    wiki-review

    Use when the user runs /review, says "show pending changes", "what's uncommitted", or wants an audit of uncommitted wiki edits before they land in history. Narrates uncommitted changes, flags structural issues scoped to those changes, and commits them with a conventional subject. Fully automatic.

    Also in 4 projects that use this

  • joeseesunSkill

    defuddle

    Extract clean article content from web pages or local HTML files. Removes clutter (ads, sidebars, nav) and returns readable content with metadata.

    Also in 4 projects that use this

  • javatarzSkill

    wiki

    Access and manage the local GitHub Wiki clone. Use this skill when you need to read wiki content (architecture, design docs, guides), update wiki documentation, check wiki status, or push wiki changes. The wiki contains high-level system design and architectural documentation.

    Also in 3 projects that use this

  • KKodiacSkill

    obsidian-bases

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 9 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    read all wiki files;

    line 38
  2. Distinctive:

    read raw sources when needed.

    line 39
  3. Very specific:

    create wiki/queries/* for reusable answers.

    line 40
  4. Very specific:

    create draft wiki/synthesis/* only when requested or clearly useful.

    line 41
  5. Distinctive:

    Not allowed unless explicitly requested:

    line 44
  6. Distinctive:

    delete or archive pages.

    line 49
  7. Very specific:

    Read wiki/index.md first and identify candidate pages.

    line 59
  8. Distinctive:

    Use exact search for user terms, synonyms, entity names, wikilink targets, frontmatter types and tags.

    line 63
  9. Very specific:

    Use raw sources when the claim is high-impact, current, legal/financial/medical/security-relevant, or the wiki page is stale.

    line 73
  10. Distinctive:

    If the answer is durable, create:

    line 87
  11. Distinctive:

    Prefer a concise thesis first, evidence grouped by theme, explicit uncertainty, links to relevant wiki pages and one action-oriented next …

    line 125
  12. Distinctive:

    Avoid pretending the wiki knows more than it does, citing generated pages as if they were raw sources, or leaving reusable answers in chat …

    line 127
  13. Very specific:

    Default write scope is limited to new wiki/queries/* files and, when clearly useful or requested, draft wiki/synthesis/* pages.

    line 131
  14. Very specific:

    Never rewrite, delete, or archive an existing source/entity/concept page, and never mark a claim verified, without an explicit user request …

    line 132
  15. Distinctive:

    Leave protected human-owned sections untouched.

    line 133
  16. Very specific:

    Every saved query page carries review_required: true in its frontmatter, and destructive edits to existing pages require explicit request …

    line 134

“Common” is measured: kept by at least 6 in 10 of the 21 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

Wiki Query

Goal

Answer from the compiled wiki first, verify against raw sources when needed, and save reusable answers back into the wiki.

When to use

  • The user asks a question answerable from the existing vault.
  • Research, synthesis, comparison or decision support should reuse wiki knowledge.
  • A reusable answer should be filed back into the wiki.

A filled question-to-answer example ships in assets/worked-example.md.

Inputs

  • User question.
  • wiki/index.md.
  • Relevant wiki pages.
  • Raw sources when verification is required.
  • Optional output format: memo, table, checklist, PRD, slides outline, report.

Write permissions

Allowed:

  • read all wiki files;
  • read raw sources when needed;
  • create wiki/queries/* for reusable answers;
  • create draft wiki/synthesis/* only when requested or clearly useful;
  • append to wiki/log.md when saving an answer.

Not allowed unless explicitly requested:

  • rewrite existing source/entity/concept pages;
  • mark claims verified;
  • edit protected human-owned sections;
  • delete or archive pages.

Procedure

1. Clarify the question internally

Identify the answer type, time sensitivity, verification needs and whether the answer should be saved. Do not ask a clarifying question when the best effort is obvious.

2. Start with the map

Read wiki/index.md first and identify candidate pages.

3. Search the wiki

Use exact search for user terms, synonyms, entity names, wikilink targets, frontmatter types and tags. Prefer focused reads over loading many full files.

4. Build an evidence set

For each important claim, classify support:

extracted | inferred | ambiguous | synthesis | unsupported | conflicting

Use raw sources when the claim is high-impact, current, legal/financial/medical/security-relevant, or the wiki page is stale.

5. Answer clearly

Distinguish:

  • what the wiki says;
  • what is directly sourced;
  • what is inferred;
  • what remains uncertain;
  • what should be checked next.

6. File back reusable output

If the answer is durable, create:

wiki/queries/YYYY-MM-DD-question-slug.md

Suggested structure:

---
type: query
status: draft
created: YYYY-MM-DD
source_paths: []
review_required: true
---

# Question

## Answer

## Evidence used

## Inferences

## Open questions

## Pages to update

Append to wiki/log.md if a page is saved.

Output

A direct answer to the user's question: a concise thesis, evidence grouped by theme and labeled extracted | inferred | ambiguous | synthesis | unsupported | conflicting, explicit uncertainty, and links to the wiki pages used. When the answer is durable, the same content is also filed as wiki/queries/YYYY-MM-DD-question-slug.md (using the structure above) with a matching entry appended to wiki/log.md.

Answer style

Prefer a concise thesis first, evidence grouped by theme, explicit uncertainty, links to relevant wiki pages and one action-oriented next step when appropriate.

Avoid pretending the wiki knows more than it does, citing generated pages as if they were raw sources, or leaving reusable answers in chat only.

Safety gates

  • Default write scope is limited to new wiki/queries/* files and, when clearly useful or requested, draft wiki/synthesis/* pages.
  • Never rewrite, delete, or archive an existing source/entity/concept page, and never mark a claim verified, without an explicit user request and review.
  • Leave protected human-owned sections untouched.
  • Every saved query page carries review_required: true in its frontmatter, and destructive edits to existing pages require explicit request and review before they happen.

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.