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.
npx agentmods add commands/anton-abyzov/specweave/docs-initgit clone --depth 1 https://github.com/anton-abyzov/specweaveWhat 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 | $0.00023 | $0.01715 |
| Opus 5 | $0.00012 | $0.00857 |
| Sonnet 5 | $0.00005 | $0.00343 |
| Haiku 4.5 | $0.00002 | $0.00171 |
Grade A, and why
docs-init 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.
How it starts
The opening of the file, as written. The whole thing — 339 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Initialize Documentation Site
Initialize a Docusaurus documentation site with spec-driven documentation structure, living docs integration, and SpecWeave-optimized configuration.
Usage
/docs:init [options]
What I Do
- Scaffold Docusaurus Site: Create standard Docusaurus 3.x structure
- Configure Plugins: Set up Mermaid diagrams, search, versioning
- SpecWeave Integration: Link to
.specweave/docs/living documentation - Theme Customization: Apply professional theme with dark mode
- Sidebar Generation: Auto-generate sidebar from directory structure
Options
--template <template>- Template type: classic, material, custom (default: classic)--typescript- Use TypeScript configuration (default: true)--mermaid- Enable Mermaid diagram support (default: true)--search- Add Algolia DocSearch or local search (default: local)--versioning- Enable documentation versioning (default: false)--output <path>- Output directory (default:./docs-site)
Generated Structure
docs-site/
├── docs/ # Documentation content
│ ├── intro.md
│ ├── features/
│ ├── api/
│ └── guides/
├── blog/ # Optional blog
├── src/
│ ├── components/ # React components
│ ├── css/ # Custom styles
│ └── pages/ # Custom pages
├── static/ # Static assets
│ ├── img/
│ └── diagrams/
├── docusaurus.config.ts # Main configuration
├── sidebars.ts # Sidebar configuration
├── package.json
└── tsconfig.json
SpecWeave Integration
Living Docs Auto-Sync
Automatically imports content from .specweave/docs/:
// docusaurus.config.ts
module.exports = {
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'specweave-docs',
path: '../.specweave/docs',
routeBasePath: 'specweave',
sidebarPath: './sidebars.ts',
},
],
],
};
Architecture Diagrams
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.
- 3d ago First seen · 339 lines · 23 tokens per session scan A 86f86b74fa6a
docs-init is a command published in the GitHub repository anton-abyzov/specweave (159 stars, last pushed 3d ago), licensed MIT. It adds 23 tokens to every session and 1,715 once invoked, about $0.0001 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.
Other commands, from other repositories
monitor-ci
Monitors pull request CI checks until they are resolved (pass or fail).
plan-regression-tests
Plan regression tests for existing code with it.skip statements.
export
Export the wiki (or architecture model) to markdown, HTML, JSON, or Structurizr DSL.
doc
Use this command to create a new feature doc, how-to, concept, reference, or troubleshooting guide — it scaffolds the file, frontmatter, structure, and sidebar entry.
review-teardown
Delete a review branch to free the shared Pantheon review slot.
dev-docs-update
Update dev documentation before context compaction.