Before responding to the user's first message in any session, complete the following steps in order:
- Load the
styleskill (from global skills) - Read
CONVENTIONS.mdand follow all conventions defined there - Review local Anchor/Solana skills in
/skills/directory - Read metadata from all local skills to understand what patterns are available
This repository contains comprehensive Anchor/Solana skills in the /skills/ directory. These skills must be understood at the start of every session before proceeding with any Anchor/Solana development work.
Critical: The local skills contain essential security patterns, implementation guides, and best practices specific to this project's Solana escrow program. Not reviewing these skills before development could result in security vulnerabilities or incorrect implementations.
At the beginning of each session:
- Read
CONVENTIONS.mdto understand coding conventions for both TypeScript and Rust/Anchor - Glob for available skills using the pattern
skills/*/SKILL.md - Read the skills README at
skills/README.mdto understand what each skill covers - Acknowledge the available skills with a message like:
I have reviewed the style skill and discovered the local Anchor/Solana skills in /skills/. Available skills: [list discovered skills] I understand this project implements the Flex Payment Scheme escrow on Solana and will follow the security patterns and best practices documented in the skills. - When user asks to implement Anchor code, load the appropriate skills based on the task
- Always prioritize loading security-related skills when writing or reviewing Anchor code
- Security First: Any security-related skill must ALWAYS be loaded when writing or reviewing Anchor programs
- Local Skills Take Precedence: These skills contain project-specific patterns that override general Anchor knowledge
- Dynamic Discovery: Skills may be added, removed, or renamed - always glob to discover current skills
- Check README First: The
skills/README.mdprovides an overview of all available skills and their purposes
When writing or reviewing Anchor code, always load the anchor-security skill first.
Follow the security checklist and code quality standards in CONVENTIONS.md (Rust/Anchor Conventions > Security section).
For project design context, read /docs/flex-arch.md and /docs/flex-solana.md.
I'M SUPER SERIOUS.