solana-glossary: Command for Claude Code

.claude/commands/plan-feature.md

plan-feature is a command for Claude Code from solanabr/solana-glossary. It costs 10 tokens per session (1,958 once invoked), scanned A, a copy of plan-feature, MIT.

A planning command for designing features on Solana, a blockchain platform. It turns a feature idea into user stories, technical requirements, architecture, dependencies, edge cases, and success criteria for both blockchain and supporting software.

In plain words
What is it for?
Use it to plan Solana features involving smart contracts, blockchain accounts, wallets or tokens, off-chain clients, indexers, RPC infrastructure, and security or performance requirements.
Why use it?
It helps expose missing decisions before implementation, including how on-chain programs, user accounts, clients, indexers, and external services fit together.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is solanabr/solana-glossary's own configuration. It tells Claude Code how to work on solana-glossary itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything solana-glossary configures →

Reuse

Borrowing it

Nothing to install: this file belongs to solanabr/solana-glossary. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/solanabr/solana-glossary/main/.claude/commands/plan-feature.md
Clone the repo
git clone --depth 1 https://github.com/solanabr/solana-glossary

Made for: Claude Code.

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 plan-feature

README.md
[![agentmods](https://agentmods.dev/badge/commands/solanabr/solana-glossary/plan-feature.svg)](https://agentmods.dev/commands/solanabr/solana-glossary/plan-feature)
Your own site
<a href="https://agentmods.dev/commands/solanabr/solana-glossary/plan-feature"><img src="https://agentmods.dev/badge/commands/solanabr/solana-glossary/plan-feature.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 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,958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00010 $0.01958
Opus 5 $0.00005 $0.00979
Sonnet 5 $0.00002 $0.00392
Haiku 4.5 $0.00001 $0.00196

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

Security

Grade A, and why

plan-feature 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 7d 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.

Origin

This is a copy

100% identical to plan-feature — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/plan-feature.md · 348 lines

How it starts

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

Create a detailed implementation plan for a Solana blockchain feature.

Feature Description

$ARGUMENTS

Planning Framework

1. Feature Analysis

Break down the feature into:

User Stories

  • As a [user type], I want to [action] so that [benefit]

Technical Requirements

  • On-chain components (programs, accounts)
  • Off-chain components (clients, indexers)
  • Integration points

Dependencies

  • External programs (Token, Metaplex, etc.)
  • SDKs and libraries
  • Infrastructure (RPC, indexer)

Edge Cases

  • Error conditions
  • Boundary values
  • Concurrent access

Success Criteria

  • Functional requirements met
  • Security requirements met
  • Performance targets met

2. Architecture Design

On-Chain Architecture

┌─────────────────────────────────────────────────┐
│                  Your Program                    │
├─────────────────────────────────────────────────┤
│  Instructions      │  Accounts       │  Events  │
│  - initialize      │  - UserAccount  │  - Init  │
│  - action          │  - StateAccount │  - Action│
│  - close           │  - VaultPDA     │  - Close │
└─────────────────────────────────────────────────┘
          │                    │
          ▼                    ▼
┌─────────────────┐  ┌─────────────────┐
│  Token Program  │  │  System Program │
└─────────────────┘  └─────────────────┘

Client Architecture

┌──────────────┐     ┌──────────────┐     ┌──────────────┐
│   Frontend   │────▶│  SDK/Client  │────▶│     RPC      │
│   (React/    │     │  (@solana/   │     │   (Helius/   │
│    Unity)    │     │   kit)       │     │   Triton)    │
└──────────────┘     └──────────────┘     └──────────────┘

Data Flow

User Action → Frontend → Transaction Build → Sign → Send → Confirm → Update UI

3. Account Design

For each account type:

### [AccountName]

**Purpose:** [What this account stores]

**Seeds (if PDA):** `["prefix", key1, key2]`

**Size:** [Calculate exact bytes]

| Field | Type | Size | Description |
|-------|------|------|-------------|
| discriminator | [u8; 8] | 8 | Anchor discriminator |
| field1 | Pubkey | 32 | Description |
| field2 | u64 | 8 | Description |
| **Total** | | **X** | + rent exempt |

**Rent:** ~X.XXX SOL

**Lifecycle:**
1. Created by: [instruction]
2. Modified by: [instructions]
3. Closed by: [instruction]

Read the full file on GitHub · 348 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. 7d ago First seen · 348 lines · 10 tokens per session scan A c9f93026166b

Subscribe to this mod's changes

plan-feature is a command published in the GitHub repository solanabr/solana-glossary (19 stars, last pushed 27d ago), licensed MIT. It adds 10 tokens to every session and 1,958 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to plan-feature, differing in 0 lines, and is treated as a copy.