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.
git clone --depth 1 https://github.com/ZhangHanDong/agent-specnpx agentmods add skills/zhanghandong/agent-spec/agent-spec-wikiWrote 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.
[](https://agentmods.dev/skills/zhanghandong/agent-spec/agent-spec-wiki)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00031 | $0.01435 |
| Opus 5.5 | $0.00012 | $0.00574 |
| Sonnet 5.5 | $0.00006 | $0.00287 |
| Haiku 4.5 | $0.00003 | $0.00144 |
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 3mo 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.
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 inspecs/, and reader-authored docs indocs/. - 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_filesfrontmatter in every maintained wiki article. - Before broad source reading, run
wiki statusand prefer fresh wiki articles when they cover the needed area. - Use
wiki query <text>before opening many files, and usewiki 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 runwiki lintorwiki check. - Archive old wiki material into
learnings/orarchive/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/wikicompatibility mode;.agent-spec/wikiis 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
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.
- 3mo ago First seen · 168 lines · 31 tokens per session scan A 27be5098eeb4
agent-spec-wiki is a skill published in the GitHub repository ZhangHanDong/agent-spec (465 stars, last pushed 3mo ago), licensed MIT. It adds 31 tokens to every session and 1,435 once invoked, about $0.0001 per session on Opus 5.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.
agent-spec-wiki compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-spec-wikiZhangHanDong/agent-spec | Skill | 465 | 3mo ago | MIT | A | 31 | Claude Code, Codex |
| asddericrisco/rsc-harness | Skill | 682 | 5d ago | MIT | A | 145 | Claude Code, Codex |
| librarianJetBrains/thinkrail | Skill | 8.5k | yesterday | Apache-2.0 | A | 71 | Claude Code, Codex |
| making-thinkrail-extensionsJetBrains/thinkrail | Skill | 8.5k | yesterday | Apache-2.0 | A | 103 | Claude Code, Codex |
| managing-mcp-serversJetBrains/thinkrail | Skill | 8.5k | yesterday | Apache-2.0 | A | 62 | Claude Code, Codex |
| todosJetBrains/thinkrail | Skill | 8.5k | yesterday | Apache-2.0 | A | 58 | Claude Code, Codex |
| asking-user-questionsJetBrains/thinkrail | Skill | 8.5k | yesterday | Apache-2.0 | A | 43 | Claude Code, Codex |