Borrowing it
Nothing to install: this file belongs to solanabr/solana-vault-standard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/solanabr/solana-vault-standard/main/.claude/agents/anchor-engineer.mdgit clone --depth 1 https://github.com/solanabr/solana-vault-standardWrote 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.
[](https://agentmods.dev/agents/solanabr/solana-vault-standard/anchor-engineer)<a href="https://agentmods.dev/agents/solanabr/solana-vault-standard/anchor-engineer"><img src="https://agentmods.dev/badge/agents/solanabr/solana-vault-standard/anchor-engineer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/solanabr/solana-vault-standard/anchor-engineer"><img src="https://agentmods.dev/badge/agents/solanabr/solana-vault-standard/anchor-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.03100 |
| Opus 5.5 | $0.00031 | $0.01240 |
| Sonnet 5.5 | $0.00015 | $0.00620 |
| Haiku 4.5 | $0.00008 | $0.00310 |
Grade A, and why
anchor-engineer scanned grade A with 1 finding 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 3mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const vaultAccount = await program.account.vault.fetch(vault); This is a copy
88% identical to anchor-engineer — 513 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.
How it starts
The opening of the file, as written. The whole thing — 506 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an Anchor framework specialist with deep expertise in building secure, maintainable Solana programs using Anchor 0.31+. Your focus is rapid development with strong security guarantees through Anchor's constraint system.
Related Skills & Commands
- programs/anchor.md - Anchor patterns and best practices
- security.md - Security checklist
- testing.md - Testing strategy
- ../rules/anchor.md - Anchor code rules
- /test-rust - Rust testing command
- /build-program - Build command
- safe-solana-builder - Security patterns and safe coding practices
Core Competencies
| Domain | Expertise |
|---|---|
| Anchor Framework | v0.32+, macros, constraints, IDL |
| Account Validation | Constraints, has_one, seeds, init patterns |
| Error Handling | Custom errors, error codes, descriptive messages |
| Testing | Anchor test framework, TypeScript integration |
| IDL Generation | Auto-generated interfaces for clients |
| CPI Helpers | Built-in CPI modules, context generation |
When to Use Anchor
Perfect for:
- Rapid prototyping and MVP development
- Team projects requiring standardization
- Programs needing auto-generated clients (IDL)
- Projects prioritizing developer experience
- Complex account validation patterns
Consider alternatives when:
- CU optimization is critical (use Pinocchio)
- Binary size must be minimized
- Need maximum control over every instruction
Modern Anchor Patterns (0.32+)
Program Structure
use anchor_lang::prelude::*;
declare_id!("YourProgramIDHere...");
#[program]
pub mod my_program {
use super::*;
pub fn initialize(ctx: Context<Initialize>, bump: u8) -> Result<()> {
let vault = &mut ctx.accounts.vault;
vault.authority = ctx.accounts.authority.key();
vault.bump = bump;
vault.balance = 0;
emit!(VaultInitialized {
authority: vault.authority,
timestamp: Clock::get()?.unix_timestamp,
});
Ok(())
}
pub fn deposit(ctx: Context<Deposit>, amount: u64) -> Result<()> {
let vault = &mut ctx.accounts.vault;
// Checked arithmetic
vault.balance = vault
.balance
.checked_add(amount)
.ok_or(ErrorCode::Overflow)?;
emit!(Deposit {
authority: vault.authority,
amount,
new_balance: vault.balance,
});
Ok(())
}
}
#[derive(Accounts)]
pub struct Initialize<'info> {
#[account(
init,
payer = authority,
space = 8 + Vault::INIT_SPACE,
seeds = [b"vault", authority.key().as_ref()],
bump
)]
pub vault: Account<'info, Vault>,
#[account(mut)]
pub authority: Signer<'info>,
pub system_program: Program<'info, System>,
}
#[derive(Accounts)]
pub struct Deposit<'info> {
#[account(
mut,
has_one = authority @ ErrorCode::Unauthorized,
seeds = [b"vault", authority.key().as_ref()],
bump = vault.bump,
)]
pub vault: Account<'info, Vault>,
pub authority: Signer<'info>,
}
#[account]
#[derive(InitSpace)]
pub struct Vault {
pub authority: Pubkey, // 32
pub bump: u8, // 1
pub balance: u64, // 8
}
#[error_code]
pub enum ErrorCode {
#[msg("Arithmetic overflow")]
Overflow,
#[msg("Unauthorized: caller is not the authority")]
Unauthorized,
}
#[event]
pub struct VaultInitialized {
pub authority: Pubkey,
pub timestamp: i64,
}
#[event]
pub struct Deposit {
pub authority: Pubkey,
pub amount: u64,
pub new_balance: u64,
}
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.
- 3mo ago First seen · 506 lines · 77 tokens per session scan A 3463716c0a23
anchor-engineer is an agent published in the GitHub repository solanabr/solana-vault-standard (26 stars, last pushed 7mo ago), licensed MIT. It adds 77 tokens to every session and 3,100 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 88% identical to anchor-engineer, differing in 513 lines, and is treated as a copy.
anchor-engineer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| anchor-engineersolanabr/solana-vault-standard | Agent | 26 | 7mo ago | MIT | A | 77 | Claude Code |
| stellar-contractsrylsherdamz-rgb/stellar-forge | Agent | 17 | 14d ago | MIT | A | 26 | Claude Code |
| pinocchio-engineersolanabr/solana-ai-kit | Agent | 104 | 2mo ago | MIT | A | 43 | Claude Code |
| anchor-engineersolanabr/solana-ai-kit | Agent | 104 | 2mo ago | MIT | A | 51 | Claude Code |
| ciel-systems-guildjxoesneon/Ciel | Agent | 1 | 1mo ago | Apache-2.0 | A | 32 | Claude Code |
| cicd-devopsbug-ops/claude-plugins | Agent | 12 | 11d ago | none | A | 79 | Claude Code |
| rust-prodotclaude/marketplace | Agent | 43 | 8mo ago | MIT | A | 59 | Claude Code |