wiki-tools

A toolkit for creating, updating, listing templates for, validating, and evaluating Pi local wiki extensions.

In plain words
What is it for?
Use it to build or maintain wiki extensions, test searches and citations against realistic questions, and assess accuracy, usefulness, and output size.
Why use it?
It provides repeatable checks for whether a local documentation package searches the right files, returns useful excerpts, and explains setup and missing-document behavior clearly.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/firstp1ck/pi-coding-agent-forge/wiki-tools
Any agent
npx skills add Firstp1ck/pi-coding-agent-forge --skill wiki-tools
Clone the repo
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge

Made for: Claude Code, Codex.

Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00057 $0.01343
Opus 5 $0.00028 $0.00672
Sonnet 5 $0.00011 $0.00269
Haiku 4.5 $0.00006 $0.00134

Measured 3d ago against content hash 7ee16c206eb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wiki-tools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pi-extension-wiki-tools/skills/wiki-tools/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wiki Tools

Use this skill to scaffold, tune, validate, and evaluate Pi local wiki extension packages.

Reference: generalized wiki quality improvements.

Quality target

Aim for 90-95/100 confidence before considering a generated wiki complete. Confidence must come from observed tool behavior against realistic prompts, not just successful file generation.

Score every generated wiki on:

  • Accuracy: corpus path/file types/format are correct; titles/headings match source; top search results include canonical pages; extracts answer the prompt with valid local citations.
  • Effectiveness: setup/status/missing-docs behavior is clear; prompt routing is specific; diagnostics and safety language fit the domain; workflow is repeatable.
  • Token output: search/read/extract outputs are bounded; exact-section extracts are preferred for final answers; omitted/truncated output is visible.

If any category is below 90/100, keep tuning or explicitly document why confidence remains lower.

Required workflow

  1. Inspect available templates with list_wiki_templates or /wiki-templates when the template name is unclear.
  2. Profile the corpus before or immediately after creation:
    • canonical docs path
    • repo/source URL
    • source format: markdown, asciidoc, or html
    • indexed file extensions
    • include/partial/generated-page behavior
    • broad corpus/domain terms that may need downweighting or stopwording
    • domain query expansions and aliases
  3. Use create_wiki or /wiki-create for new local wiki packages. Prefer /wiki-create for interactive creation because it previews inferred values, confirms creation, validates, and can queue an agent tuning/review pass.
  4. Tune generated package files before declaring success:
    • index.ts: CONFIG.format, CONFIG.fileExtensions, prompt detection, query expansions, stopwords/downweights, parser assumptions, cache/schema behavior.
    • For every created wiki, derive CONFIG.searchStopwords and CONFIG.termWeights from that wiki's own corpus/profile and simulation results. Keep generic language stopwords minimal, downweight only broad domain terms that demonstrably over-rank noisy pages, and do not reuse another wiki's terms without evidence.
    • skills/*/SKILL.md: precise source priority, compact search, search/sections/extract workflow, diagnostics, safety warnings, token discipline.
    • README.md and references/*: corpus profile, limitations, smoke-test findings, evaluation summary.
  5. Use validate_wiki or /wiki-validate after creation or manual edits.
  6. Run practical package checks when feasible:
    npm install --package-lock-only --ignore-scripts
    npm pack --dry-run
    bun build index.ts --target=node --outfile=/tmp/<pkg>-index-check.js
    
  7. Run the generated smoke-test command/tool when docs are available to check title, heading, and link fidelity.
  8. Evaluate with at least five realistic simulations across difficulty levels:
    • novice setup question
    • beginner configuration question
    • intermediate troubleshooting/API question
    • advanced system/architecture question
    • expert edge case or developer workflow
  9. For each simulation, record top search results, selected page, section list size, extract size, matched sections, omitted/truncated state, and accuracy/effectiveness/token-output scores.
  10. Prefer this answer workflow for generated wiki skills:
search -> sections -> exact section extract -> final answer with local citation

Query extraction is useful for exploration but can over-select sections on large pages. 11. Use update_wiki or /wiki-update only when the user wants to refresh scaffolded files from the template. Avoid overwriting customized files unless explicitly requested or the dry-run shows safe changes.

Read the full file on GitHub · 100 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 100 lines · 57 tokens per session scan A 7ee16c206eb5

Subscribe to this mod's changes

wiki-tools is a skill published in the GitHub repository Firstp1ck/pi-coding-agent-forge (74 stars, last pushed 3d ago), licensed MIT. It adds 57 tokens to every session and 1,343 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.