clarity-skills
llms.txt2 starsChanged 30 days agoMITView on GitHub
Agent skills for Clarity smart contracts on Stacks: development, security and auditing, testing and fuzzing, deployment, upgrades, governance, costs, protocol integrations (sBTC, Zest, Granite, Bitflow, Hermetica, Pyth), Bitcoin proofs and SIP compliance. Each skill is a SKILL.md folder following the Agent Skills format; install the whole set, since skills link to each other. Start with clarity:start: it names the skills to load for a task.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- clarity-apisSkill
- clarity-assetsSkill
- clarity-auditorSkill
- clarity-bitcoin-proofsSkill
- clarity-deploymentSkill
- clarity-ecosystemSkill
- clarity-environmentsSkill
- clarity-epochsSkill
- clarity-fuzzingSkill
- clarity-governanceSkill
- clarity-optimizerSkill
- clarity-oraclesSkill
- clarity-protocolsSkill
- clarity-scholarSkill
- clarity-securitySkill
- clarity-sip-complianceSkill
- clarity-stakingSkill
- clarity-startSkill
- clarity-system-integrationSkill
- clarity-testingSkill
- clarity-upgradesSkill
- clarity-walletsSkill
The file
We split this llms.txt into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Start with clarity:start: it names the skills to load for a task.
≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# Clarity skills > Agent skills for Clarity smart contracts on Stacks: development, security and auditing, testing and fuzzing, deployment, upgrades, governance, costs, protocol integrations (sBTC, Zest, Granite, Bitflow, Hermetica, Pyth), Bitcoin proofs and SIP compliance. Each skill is a SKILL.md folder following the Agent Skills format; install the whole set, since skills link to each other. Start with `clarity:start`: it names the skills to load for a task. ## Router - [clarity:start](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/start/SKILL.md): Start here for any Clarity (.clar) or Stacks smart-contract task: contracts, tokens, vaults, DeFi, tests, deployment, audits, sBTC or protocol integration, and questions about Clarity behavior, versions or addresses. Writing or changing a contract also needs clarity:scholar and clarity:security; this skill names the rest. ## Skills - [clarity:apis](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/apis/SKILL.md): Read Stacks chain data off-chain: Hiro and node APIs, transactions, contract events, balances, read-only calls, sBTC deposit and withdrawal history. Use for scripts, indexers, bots or exports that query Stacks data. - [clarity:assets](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/assets/SKILL.md): Handle assets in Clarity: STX, SIP-010 tokens, SIP-009 NFTs, sBTC (available vs locked), custody, transfers, burns and post-conditions. Use whenever a contract moves, holds or accounts for tokens. - [clarity:auditor](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/auditor/SKILL.md): Audit or security-review Clarity contracts: threat model, Clarity-specific checks, simnet PoC exploits, severity and findings. Use for any request to review, audit or find issues in .clar code. - [clarity:bitcoin-proofs](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/bitcoin-proofs/SKILL.md): Verify Bitcoin transactions from Clarity: transaction parsing, Merkle proofs (clarity-bitcoin, Clarity 6 natives), BTC payment checks, replay protection, sBTC settlement. Use when a contract must react to a Bitcoin payment. - [clarity:deployment](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/deployment/SKILL.md): Deploy Clarity contracts to testnet or mainnet: Clarinet deployment plans, scripted releases, initialization calls, nonces and post-deploy checks. Use to deploy, publish or initialize contracts. - [clarity:ecosystem](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/ecosystem/SKILL.md): Compose one Clarity contract across Stacks protocols: flash loan, liquidation and swap flows, vault strategies into Zest, Granite or Hermetica, atomicity. Use when a contract calls two or more protocols. - [clarity:environments](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/environments/SKILL.md): Why Clarity behaves differently in simnet, devnet, testnet and mainnet: costs, limits, epochs, boot contracts, forks. Use when something works in one environment but not another, or to pick where to test. - [clarity:epochs](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/epochs/SKILL.md): Clarity versions and Stacks epochs: which version to target, names added or removed (as-contract, block-height, at-block), behavior changes. Use when a keyword fails to compile or to ask when something changed. - [clarity:fuzzing](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/fuzzing/SKILL.md): Fuzz Clarity contracts with Rendezvous: invariants, property tests and counterexample replay. Use to fuzz a Clarinet project or add invariants or property tests. - [clarity:governance](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/governance/SKILL.md): Governance and admin control for Clarity protocols on Stacks: DAO proposals, multisigs, timelocks and 2-step ownership. Use for DAOs, proposals, multisigs, admin roles or owner transfer. - [clarity:optimizer](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/optimizer/SKILL.md): Cut Clarity execution costs: cost dimensions, block and tenure budgets, Clarinet cost reports and safe rewrites. Use when a transaction is too expensive or hits a block limit. - [clarity:oracles](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/oracles/SKILL.md): Read prices in Clarity: Pyth Lazer signed feeds, DIA, staleness and confidence checks, test fixtures, migrating from Pyth Core. Use for any price feed or oracle. - [clarity:protocols](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/protocols/SKILL.md): Verified Stacks DeFi addresses and exact function signatures: Zest, Granite, Bitflow, Stacks Swap, Hermetica, Stacking DAO, ALEX, Velar, USDCx, sBTC, Pyth. Use to call a protocol: loans, swaps, liquidations, deposits. - [clarity:scholar](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/scholar/SKILL.md): Write, build or refactor Clarity (.clar) contracts: syntax, types, responses, errors, traits, loops and layout. Use before writing or editing Clarity code, fixing compile errors, or answering how Clarity code behaves: what an expression returns, what aborts or rolls back, what the VM checks. - [clarity:security](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/security/SKILL.md): Load with clarity:scholar when writing or changing a contract that holds funds or has admin roles. Covers tx-sender vs contract-caller, as-contract? allowances, trait validation, signatures, arithmetic and rollback. Use for access control, custody or fixing a vulnerability. - [clarity:sip-compliance](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/sip-compliance/SKILL.md): Token standards in Clarity: SIP-010, SIP-009 and SIP-013 traits and conformance, metadata, SIP-018 signed data. Use when writing a token or NFT contract or checking trait conformance. - [clarity:staking](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/staking/SKILL.md): Stack STX through PoX from Clarity: stake and unstake, signers, reward cycles, delegation, with-staking/with-pox allowances, liquid staking (stSTX). Use for contracts or tools that stake STX. - [clarity:system-integration](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/system-integration/SKILL.md): Stacks system facts: boot contract and SIP trait addresses (pox-5, sip-010-trait) on mainnet and testnet, address versions, transactions, blocks and tenures. Use for standard Stacks addresses or chain mechanics. - [clarity:testing](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/testing/SKILL.md): Test Clarity contracts with Clarigen and the Clarinet SDK (vitest, simnet): setup, typed calls, mining blocks, coverage, mainnet forks, attacker contracts. Use whenever adding or fixing tests in a Clarinet project. - [clarity:upgrades](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/upgrades/SKILL.md): Make a Clarity protocol upgradable or migrate a deployed one: stable custody with replaceable logic, registries, timelocked cutovers, state migration. Use for upgrades, v2 logic, proxies or migrations. - [clarity:wallets](https://github.com/cybasecurity/clarity-skills/blob/main/plugin/skills/wallets/SKILL.md): Connect Stacks wallets (Leather, Xverse, Ledger) and call contracts from apps with @stacks/connect: contract calls, post-conditions, message signing. Use for frontend or dapp wallet integration. ## Optional - [README](https://github.com/cybasecurity/clarity-skills/blob/main/README.md): installation for Claude Code, Codex, Gemini CLI, OpenCode and other agents - [Changelog](https://github.com/cybasecurity/clarity-skills/blob/main/docs/CHANGELOG.md)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

