agent-spec-wiki

agent-spec-wiki is a skill for Claude Code, Codex from ZhangHanDong/agent-spec. It costs 31 tokens per session (1,435 once invoked), scanned A, original, MIT.

A workflow for maintaining a live code wiki: a set of pages that records how a software project is structured and how its source files connect.

In plain words
What is it for?
Use it to initialise, check, enrich, and review agent-spec wiki pages, source-file traces, and Rust architecture inventories.
Why use it?
It helps keep architecture notes and code references current while preserving durable project knowledge in the right places.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/docs-lint.sh.

Good fit Use it to initialise, check, enrich, and review agent-spec wiki pages, source-file traces, and Rust architecture inventories.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ZhangHanDong/agent-spec
agentmods
npx agentmods add skills/zhanghandong/agent-spec/agent-spec-wiki

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-spec-wiki

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhanghandong/agent-spec/agent-spec-wiki/github.svg)](https://agentmods.dev/skills/zhanghandong/agent-spec/agent-spec-wiki)
Your own site
<a href="https://agentmods.dev/skills/zhanghandong/agent-spec/agent-spec-wiki"><img src="https://agentmods.dev/badge/skills/zhanghandong/agent-spec/agent-spec-wiki/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-spec-wiki

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhanghandong/agent-spec/agent-spec-wiki"><img src="https://agentmods.dev/badge/skills/zhanghandong/agent-spec/agent-spec-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00031 $0.01435
Opus 5 $0.00015 $0.00718
Sonnet 5 $0.00006 $0.00287
Haiku 4.5 $0.00003 $0.00144

Measured 10d ago against content hash 27be5098eeb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

agent-spec-wiki 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 10d 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.

skills/agent-spec-wiki/SKILL.md · 168 lines

How it starts

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

Agent-Spec Code Live Wiki Workflow

Version: 1.0.0 | Last Updated: 2026-08-14 | Tracks: agent-spec 1.4.0

Use this skill for repo-local code live wiki maintenance and review.

Rules

  • Treat .agent-spec/wiki/ as agent working memory, not KLL truth.
  • Put durable truth in knowledge/, executable contracts in specs/, and reader-authored docs in docs/.
  • Keep .agent-spec/wiki/** as tracked live wiki memory when the project wants it in git; keep .agent-spec/runs, .agent-spec/trace, temp files, and runtime state ignored.
  • Preserve source_files frontmatter in every maintained wiki article.
  • Before broad source reading, run wiki status and prefer fresh wiki articles when they cover the needed area.
  • Use wiki query <text> before opening many files, and use wiki inspect <path> when you need the wiki pages, KLL requirements, and task specs related to a source or knowledge path.
  • After code or architecture changes, update affected articles, run wiki index, then run wiki lint or wiki check.
  • Archive old wiki material into learnings/ or archive/ summaries with source links instead of deleting it abruptly.
  • Non-goals: no built-in LLM long-form wiki generation, no web UI, and no replacement for KLL requirements or decisions.
  • Rust architecture inventory is deterministic Cargo metadata; prose remains agent-authored and must cite source files.
  • Reject symlinks in source, article, and architecture traversal. The CLI has no generated docs/wiki compatibility mode; .agent-spec/wiki is the single maintained wiki model.

Workflow

agent-spec wiki init --code . --wiki .agent-spec/wiki
agent-spec wiki seed --code . --wiki .agent-spec/wiki
agent-spec wiki seed --code . --wiki .agent-spec/wiki --check
agent-spec wiki status --code . --wiki .agent-spec/wiki
agent-spec wiki query "intent compiler" --wiki .agent-spec/wiki
agent-spec wiki inspect src/spec_wiki/live.rs --code . --wiki .agent-spec/wiki
agent-spec wiki inventory --code . --format json
agent-spec wiki inventory --code . --format mermaid
agent-spec wiki project-map --code . --wiki .agent-spec/wiki --format json --out .agent-spec/wiki/architecture/project-map.json
agent-spec wiki project-map --code . --wiki .agent-spec/wiki --format mermaid --out .agent-spec/wiki/architecture/project-map.mmd
agent-spec wiki inspect-project brain-rs --code . --wiki .agent-spec/wiki --format text
agent-spec wiki index --wiki .agent-spec/wiki
agent-spec wiki lint --code . --wiki .agent-spec/wiki
agent-spec wiki check --code . --wiki .agent-spec/wiki
agent-spec wiki meta update --code . --wiki .agent-spec/wiki
bash scripts/docs-lint.sh

Read the full file on GitHub · 168 lines

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. 10d ago First seen · 168 lines · 31 tokens per session scan A 27be5098eeb4

Subscribe to this mod's changes

agent-spec-wiki is a skill published in the GitHub repository ZhangHanDong/agent-spec (454 stars, last pushed 11d ago), licensed MIT. It adds 31 tokens to every session and 1,435 once invoked, about $0.0002 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.