Submit solana anchor skill#147
Open
manueldezman wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Solana Anchor Skill, a kit-style skill for building, recovering, testing, and debugging Anchor projects.
Anchor projects are easy to start, but builders repeatedly hit the same rough edges: missing Anchor CLI/AVM setup, unclear scaffold defaults, brittle PDA/account constraints, inconsistent test harnesses, and incomplete generated tests. This skill packages those workflows into one progressive, token-efficient skill that can be invoked naturally from prompts like “create an Anchor program,” “anchor command not found,” “debug PDA seeds,” or “generate Anchor tests.”
Canonical repo: https://github.com/manueldezman/solana-anchor-skill
What This Skill Does
This is one unified
solana-anchorskill, not separate scaffold/test/install skills.It supports:
anchor initwith preflight checks instead of blindly scaffolding.solana-program-test..tsor.rstests matching the detected framework, not pseudocode.anchor testagainst local validator/LiteSVM-compatible setup, with Surfpool documented only as an opt-in path when external mainnet state cannot be faked locally.Why It Matters
A lot of Anchor help stops at “run
anchor init” or generates happy-path tests that look plausible but do not survive real projects.This skill focuses on the parts that cost Solana builders time:
Structure
The submission follows the requested kit-style layout inspired by
solana-game-skill:README.mdLICENSEinstall.shagents/openai.yamlcommands/skill/SKILL.mdskill/The skill uses progressive routing from
skill/SKILL.mdinto focused files:scaffolding.mdcli-installation.mdtesting-anchor.mdtypescript-tests.mdrust-tests.mdprogram-patterns.mdresources.mdanti-patterns.mdValidation
This was not submitted blind. The workflow was exercised locally and the findings were folded back into the skill docs as reusable guidance.
Validation performed:
install.shshell syntax checked successfully.rg.anchor testcompleted successfully on the generated fixture.Reviewer Notes
The skill is designed to be safe and transparent:
This should slot cleanly into the kit as a practical Solana builder skill for scaffolding, CLI recovery, Anchor program work, and serious test generation.