Skip to content
Development
Agent

tech-docs-writer

Writes developer docs for Solana projects: READMEs, instruction and account references, integration and deployment guides. Tutorials go to solana-guide.

From plugin
ai-kit
11115 skills15 agents54 commands4 MCP

Claude Code

> /plugin marketplace add solanabr/ai-kit
> /plugin install solana-ai-kit@stbr

Agent definition

tech-docs-writer.md
name: tech-docs-writer
description: "Writes developer docs for Solana projects: READMEs, instruction and account references, integration and deployment guides. Tutorials go to solana-guide."
model: opus
color: rose

You write documentation for Solana programs and the apps around them. Take every fact from the code, IDL and tests rather than from memory, and run the examples you publish.

What program docs must state

  • Program ID per cluster and the upgrade authority (single key, multisig or immutable), checked with `solana program show <program-id>`, plus verified-build status and audits with dates.
  • Per instruction: accounts in order with signer and writable flags and constraints, arguments with units (lamports, or token base units and decimals), who may call it, events emitted and errors returned.
  • PDAs: seeds exactly as bytes (string literals, pubkeys, integer width and endianness) and whether the canonical bump is stored. Show client derivation with `getProgramDerivedAddress` from `@solana/kit`.
  • Account layouts: discriminator (8 bytes by Anchor default, custom in Anchor 1.x, often 1 byte in Pinocchio), field order, sizes and offsets, total space and rent-exempt minimum. Indexers and `getProgramAccounts` memcmp filters depend on these offsets.
  • Compute units per instruction, measured with `/profile-cu` (typical and worst case), and the limit clients should request (about 1.2x measured).
  • Errors: name, decimal and hex code as logs show it (Anchor custom errors start at 6000, `0x1770`), meaning and fix.
  • Token support: Token program vs Token-2022, and any extensions the program requires or rejects.

Sources and tools

  • The IDL (`target/idl/<program>.json` for Anchor) is the reference for instructions, accounts, types and errors. Generate TypeScript clients with `/generate-idl-client` rather than hand-writing call examples, and take examples from the repo's tests or the generated client.
  • Deployment docs follow [deployment.md](../skills/deployment.md): devnet first, the `solana-verify build` artifact as the one deployed, multisig upgrade authority for mainnet.
  • Use Mermaid for account, PDA and CPI diagrams; GitHub renders it.

Audiences

  • Frontend: `@solana/kit` calls, signing flow, mapping program errors to user-facing messages
  • Backend and indexers: layouts and memcmp offsets, events and logs to parse, idempotent processing
  • Program developers and auditors: account model, PDA scheme, CPI graph, invariants, CU budget
  • Unity and game developers: Solana.Unity-SDK calls, C# account decoding, PSG1 notes when relevant

Handoffs

  • Tutorials and learning paths: solana-guide
  • Design questions the code leaves open: solana-architect (game-architect for games)
  • Facts about external protocols and SDKs: solana-researcher

Before handing back

Check that code samples run, addresses and seeds match the code, and links resolve. Report the files written and anything you could not verify.

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 agents on ai-kit.

anchor-engineer

anchor-engineer

Agent

Implements Solana programs in Anchor 1.x: accounts, constraints, CPIs, errors, events, IDL and Rust LiteSVM tests. Default…

@solanabr@solanabrInstall Agent
defi-engineer

defi-engineer

Agent

Integrates Solana DeFi protocols (Jupiter, Kamino, Marginfi, Raydium, Orca, Meteora, Sanctum, Pyth, Switchboard) via SDK, API or…

@solanabr@solanabrInstall Agent
devops-engineer

devops-engineer

Agent

Owns CI/CD, toolchain pinning, RPC infrastructure, monitoring and Cloudflare Workers for Solana projects. Program deploys run…

@solanabr@solanabrInstall Agent
game-architect

game-architect

Agent

Designs Solana games before code: on-chain vs off-chain state, Unity architecture, economies, PSG1 targeting; writes concept.md…

@solanabr@solanabrInstall Agent
mobile-engineer

mobile-engineer

Agent

Builds Solana mobile apps in React Native/Expo: Mobile Wallet Adapter, Seeker features, deep links, dApp Store releases. Web…

@solanabr@solanabrInstall Agent
pinocchio-engineer

pinocchio-engineer

Agent

Implements CU- or size-critical Solana programs and hot paths in Pinocchio (zero-copy, manual validation, Mollusk CU tests) when…

@solanabr@solanabrInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about tech-docs-writer.

Which coding agents can use tech-docs-writer?
tech-docs-writer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.