with one click
update-docs
// Update README.md, CLAUDE.md, ARCH.md, and the website (website/index.html, website/cli.html) to match the current project state
// Update README.md, CLAUDE.md, ARCH.md, and the website (website/index.html, website/cli.html) to match the current project state
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | update-docs |
| description | Update README.md, CLAUDE.md, ARCH.md, and the website (website/index.html, website/terminal.html) to match the current project state |
| allowed-tools | Bash, Read, Edit, Write, Glob, Grep |
Synchronize all project documentation with the actual codebase. Read the source of truth (Rust source files, Cargo.toml, config) and update each doc file so it accurately reflects the current state โ no stale references, no missing features, no wrong counts.
Scope covers both repo-level docs (README.md, CLAUDE.md, ARCH.md) and the public website under website/ (index.html, terminal.html). The Rust source is authoritative; website copy must stay aligned with it.
Read these files to build an accurate picture:
Cargo.toml โ version, edition, dependencies and their versionssrc/main.rs โ CLI args (clap struct fields), Provider enum variants, version constant, agent loop logic, modessrc/commands.rs โ COMMANDS constant array, CommandResult enum variants, slash command behaviorsrc/config.rs โ constants (MAX_ITERATIONS, MAX_MESSAGES, SPINNER_PHRASES count), SYSTEM_PROMPT (tool definitions), config keyssrc/tools.rs โ tool names in execute_tool match arms, tool behaviorsrc/ui.rs โ AgentUI trait methods, PlainUI/InteractiveUI differences, constants (MAX_RESULT_LINES, MAX_ANSWER_WIDTH)src/llm.rs โ MODELS constant (provider, name, config key), pricing in price_per_million, TokenUsage structsrc/llm_openai.rs โ API endpoint, request/response structs, max_tokenssrc/llm_anthropic.rs โ API endpoint, headers, anthropic-version, max_tokens.aictl/config โ config keys and descriptionsFrom the source code, extract these concrete values:
Cargo.toml or main.rsexecute_tool, with a one-line descriptionconfig_get() calls and in .aictl/configCargo.toml.rs file under src/ with its responsibilityFor each file, compare the checklist against what the doc currently says. Fix any discrepancies. Do NOT rewrite from scratch โ preserve the existing structure and style, and make targeted edits.
execute_tool arms exactlyprice_per_million.aictl/config and actual config_get callssrc/*.rs file with accurate one-line descriptionexecute_tool arms with accurate descriptionsThe public landing page. Marketing copy, but the concrete numbers and names must still match the source. Check:
<meta name="description"> and <meta property="og:description"> โ provider count, model count, mention of Ollama / GGUF / MLXv0.24.2 ยท Rust ยท single binary ยท open source) โ must match Cargo.tomlsrc/security.rs actual mechanisms)<ul class="providers"> list (must match the Provider enum + local backends)<ul> entries under <div class="tools"> blocks must be a faithful subset of execute_tool arms with accurate one-linershref="#..." must resolve to an id that still existsThe long-form user guide. Same source-of-truth rules as index.html, plus more detail. Check:
<meta name="description"> โ topic list matches sections on the pageinstall.shAICTL_PROVIDER, AICTL_MODEL, AICTL_TOOLS_ENABLED, AICTL_MEMORY, AICTL_INCOGNITO, AICTL_LLM_TIMEOUT, AICTL_SECURITY_*, AICTL_PROMPT_FILE, etc.) โ must match src/config.rs and src/security.rsKEY_NAMES in src/keys.rssrc/llm.rs MODELS and the image-capability matrix in CLAUDE.mdCOMMANDS array in src/commands.rs with accurate descriptions/agent menu, --agent, --list-agents, ~/.aictl/agents/ path--session, --list-sessions, --clear-sessions, --incognito, AICTL_INCOGNITOexecute_tool arm with accurate description/gguf, --pull-gguf-model, etc.) and MLX (/mlx, --pull-mlx-model, etc.) flows match src/llm_gguf.rs and src/llm_mlx.rs; feature-flag wording matches Cargo.toml [features]src/security.rs policy (CWD jail, blocked paths, env scrub, timeout, injection guard, --unrestricted)Rules specific to the website:
ids. Don't restructure the DOM for stylistic reasons โ style.css depends on it and website/DESIGN.md is load-bearing.—, &). Don't convert to raw Unicode inside entities that are already encoded.ids without also updating the nav and ToC that link to them; don't remove an id that's linked from elsewhere.website/dist/ โ it's a build output. bun run build regenerates it from the source files.After editing, confirm:
website/index.html, and website/terminal.htmlwebsite/index.html, and website/terminal.htmlCargo.toml, src/main.rs (if hardcoded), README.md (if referenced), and the hero tag in website/index.htmlwebsite/terminal.html REPL sectionhref="#..." and cross-page href="index.html#...") resolves to an existing id