update-docs

update-docs is a command for Claude Code from keep-starknet-strange/starknet-agentic. It costs 0 tokens per session (1,141 once invoked), scanned A, original, MIT.

A command for updating website documentation after changes to the starknet-agentic code repository. It compares the current code with the last commit that documentation covered.

In plain words
What is it for?
Use it to find repository changes since the recorded documentation baseline and update the website docs for affected tools, contracts, and interfaces.
Why use it?
It helps prevent documentation from falling behind by requiring the actual changed files and current interfaces to be reviewed.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the starknet-agentic-skills plugin — 19 skills, 2 commands, 1 plugin shipped together

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 commands/keep-starknet-strange/starknet-agentic/update-docs
Clone the repo
git clone --depth 1 https://github.com/keep-starknet-strange/starknet-agentic

Made for: Claude Code.

Or install starknet-agentic-skills, the plugin that ships this one along with the rest of its 19 skills, 2 commands, 1 plugin.

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 update-docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/keep-starknet-strange/starknet-agentic/update-docs.svg)](https://agentmods.dev/commands/keep-starknet-strange/starknet-agentic/update-docs)
Your own site
<a href="https://agentmods.dev/commands/keep-starknet-strange/starknet-agentic/update-docs"><img src="https://agentmods.dev/badge/commands/keep-starknet-strange/starknet-agentic/update-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,141 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.1 $0.00000 $0.01141
Opus 5 $0.00000 $0.00571
Sonnet 5 $0.00000 $0.00228
Haiku 4.5 $0.00000 $0.00114

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

Security

Grade A, and why

update-docs 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 6d 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.

website/.claude/commands/update-docs.md · 145 lines

How it starts

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

Update Website Documentation

This command updates the website documentation to reflect all changes made to the starknet-agentic repository since the last documentation update.

Execution Steps

Step 1: Get the Baseline Commit

Read website/CLAUDE.md and extract the commit hash from the docs-last-updated field at the end of the file. This is your baseline commit - the last commit that was reviewed for documentation updates. All changes after this commit need to be analyzed.

Step 2: Analyze All Changes Since Baseline

Run the following to get all changes since the last docs update:

git log --oneline <baseline_commit>..HEAD
git diff --stat <baseline_commit>..HEAD

CRITICAL: Do NOT rely on commit messages or summaries. You MUST:

  1. Read the actual changed files to understand what changed
  2. Explore the codebase to understand the current state of interfaces, APIs, and functionality
  3. Compare against what the documentation currently says

Use the Task tool with subagent_type=Explore to thoroughly research:

  • Changes to MCP server tools (packages/starknet-mcp-server/)
  • Changes to Cairo contracts (contracts/erc8004-cairo/, contracts/agent-account/, contracts/huginn-registry/)
  • Changes to skills (skills/)
  • Changes to examples (examples/)
  • Changes to packages (packages/)
  • Any new features, interfaces, or breaking changes

Step 3: Identify Documentation Gaps

Compare your findings against the existing documentation in website/content/docs/.

Documentation pages are defined in website/app/data/docs.ts and content lives in website/content/docs/{category}/{slug}.mdx.

Categories:

  • getting-started/ - Introduction, installation, quick-start, configuration
  • guides/ - Wallet management, MCP server, DeFi operations, agent identity
  • skills/ - Individual skill documentation
  • contracts/ - ERC-8004 contract documentation
  • api-reference/ - MCP tools, A2A protocol, SDK methods

Step 4: Update Existing Documentation

For each piece of documentation that needs updating:

Read the full file on GitHub · 145 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. 6d ago First seen · 145 lines · 0 tokens per session scan A bb3dfc1447e8

Subscribe to this mod's changes

update-docs is a command published in the GitHub repository keep-starknet-strange/starknet-agentic (80 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,141 tokens. 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.