Skip to content
Development
Command

/write-docs

Write docs for a Solana program, SDK or component from its code and IDL

From plugin
ai-kit
11154 skills15 agents54 commands4 MCP
> /plugin marketplace add solanabr/ai-kit
> /plugin install solana-ai-kit@stbr

Command definition

write-docs.md
description: "Write docs for a Solana program, SDK or component from its code and IDL"

Document the code in `$ARGUMENTS`. Take facts from the source and the IDL (`target/idl/<name>.json`) rather than from memory. For a full documentation set (guides, architecture, runbooks), hand off to the `tech-docs-writer` agent.

What each doc type needs

| Type | Include | |------|---------| | Program | Program IDs per cluster. Per instruction: accounts (signer, writable, PDA seeds), arguments with valid ranges, errors with codes, who may call it, CU estimate. Per account: fields with sizes, total size including the discriminator, rent, and which instructions create, mutate and close it | | SDK/API | Functions with parameters, return values, thrown errors, and a working example | | Unity/C# component | Serialized fields, events, usage; patterns in [solana-game SKILL.md](../skills/ext/solana-game/skill/SKILL.md) (install first: `bash .claude/bin/skills.sh add solana-game`) | | README | What it is, program IDs, install, quick start, instruction summary, test and deploy commands, audit status |

Rules

  • Examples must run against the current IDL and generated client; mark any you could not run.
  • State the security assumptions: who can call what, which accounts must be trusted, what the upgrade authority can change.
  • Explain why a non-obvious choice was made; skip what the code already says plainly.
Read more
@solanabr
Ships withai-kit

Claude Code, set up to ship on Solana. Not programs alone — the whole lifecycle: validating the idea, building the program and the app around it, shipping it, and the launch and growth work that follows.

1113 skills15 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
111
Star history of solanabr/solana-ai-kit on GitHub, a chart by star-history.com

Other commands on ai-kit.

add-skill

add-skill

Command

Install a pinned skill extension on demand (/add-skill <id>), or list core packs and extensions

@solanabr@solanabrInstall Command
adv

adv

Command

Short for /adversarial: run every task through proposer and adversary pairs, no triage

@solanabr@solanabrInstall Command
adversarial

adversarial

Command

Put a task's load-bearing claims and key decisions through a proposer and an adversary, with proof

@solanabr@solanabrInstall Command
audit-solana

audit-solana

Command

Audit Solana program code for exploitable bugs and write a findings report

@solanabr@solanabrInstall Command
benchmark

benchmark

Command

Compare per-instruction CU with the stored baseline to catch regressions

@solanabr@solanabrInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command