agentsclimarketplace

Anchor workflow

Skill Nerfherder16/BrickLayer/.claude/skills/anchor-workflow

Solana/Anchor development workflow for ADBP3. Build, test, and deploy Anchor programs. Run simulations (simulate.py, monte_carlo.py, analyze.py). Check backing ratio, treasury health, and token mechanics. Use when working on the ADBP reserve-backed credit system.From its SKILL.md

Install
npx -y skills add Nerfherder16/BrickLayer --skill anchor-workflow

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.4 KB, as published. Nobody here has run it

Anchor Workflow — ADBP3

You are assisting with the ADBP3 Solana reserve-backed credit platform. This skill covers:

  • Anchor smart contract build/test/deploy
  • Python simulation and analysis scripts
  • Monte Carlo modeling of treasury mechanics
  • Backing ratio and fee optimization

Project Location

/home/nerfherder/Dev/Bricklayer2.0/projects/ADBP3/

Key Files

FilePurpose
simulate.pyCore treasury simulation
monte_carlo.pyMonte Carlo backing ratio analysis
analyze.pyCampaign findings analyzer
constants.pyGround-truth system parameters
project-brief.mdConfirmed mechanics (do not re-derive)
ARCHITECTURE.mdSystem architecture

Common Commands

Anchor (when Anchor.toml / programs/ exist)

# Build programs
cd /path/to/anchor-project && anchor build

# Run tests
anchor test

# Deploy to devnet
anchor deploy --provider.cluster devnet

# Verify IDL
anchor idl fetch <program_id> --provider.cluster devnet

Python Simulations

cd /home/nerfherder/Dev/Bricklayer2.0/projects/ADBP3

# Run core simulation
MPLBACKEND=Agg python simulate.py

# Monte Carlo analysis
MPLBACKEND=Agg python monte_carlo.py

# Analyze findings
python analyze.py

# Run all sims
MPLBACKEND=Agg python simulate.py && python analyze.py

System Mechanics (ground truth — never re-derive)

  • Employee pays $1.00/credit → 100% to treasury wallet
  • Treasury earns 4% APR compounded monthly
  • 10% admin fee on purchases → separate from treasury
  • Discretionary burns cost treasury $2/credit
  • Health metric: backing_ratio = treasury_wallet / total_credits_outstanding
  • Target backing ratio: ≥ 1.0 (fully backed)

Workflow

  1. Read project-brief.md and constants.py before any simulation changes
  2. Never modify confirmed mechanics in constants.py without explicit instruction
  3. Use MPLBACKEND=Agg for headless matplotlib runs
  4. Check results.tsv for prior simulation results before running new ones
  5. Findings go in findings/ — use BrickLayer finding format

Keep looking

Skills are one crate of 607,721. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.