flare-builders-toolkit
Skill1 starsChanged 6 months agoMITView on GitHub
Master skill for building, testing, auditing, and deploying smart contracts on the Flare-family EVM chains (Flare, Songbird, Coston2). Use this skill as the entry point for any Flare-related development task. It bundles 16 specialized sub-skills covering: chain registry and addresses (Permit2, Multicall3, DEXes, routers, tokens), Flare protocols (FTSO, FDC, FAssets, Smart Accounts), Enosys contracts and rewards, security-first Solidity standards, Flare-specific audit checklists (Permit2 chain availability, fee-on-transfer detection, blacklistable token surface, basefee floors, FTSO redistributor proxy upgradeability), the cross-project lessons-learned from real Flare builds, and the audit/gas/test workflow (`audit`, `audit-contract`, `gas-optimize`, `test-foundry`, `test-hardhat`). Trigger on: any Flare/Songbird/Coston2 development question, "how do I X on Flare", security review request, audit kickoff, contract verification on flare-explorer or flarescan, address lookup, RPC selection, FTSO reward claim, FAssets minting, Permit2 integration on Flare, or "I'm starting a new Flare contract — what do I need to know". Security is the default: any contract under discussion is assumed hostile-attacked.
In this repository16 other files it gives its agents.
- audit-contractSkill
- auditSkill
- enosys-contractsSkill
- enosys-dex-v3Skill
- flare-dapp-pitfallsSkill
- flare-fassetsSkill
- flare-fdcSkill
- flare-ftsoSkill
- flare-generalSkill
- flare-networkSkill
- flare-securitySkill
- flare-smart-accountsSkill
- gas-optimizeSkill
- soliditySkill
- test-foundrySkill
- test-hardhatSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Security is the default: Every contract under discussion is assumed hostile-attacked.
- Distinctive: line 37
When the user asks a Flare-development question, route them to the most specific sub-skill that fits.
- Distinctive: line 39
Don't try to answer from this skill alone — it's the router, not the source of truth.
- Distinctive: line 70
When the task is "build and ship a Flare contract", walk these in order.
- Very specific: line 93
After both run, reread flare-security Part 2 — Flare-specific overlays aren't in the generic audit checklists.
- Very specific: line 101
Before broadcasting to Flare mainnet, every item below must be green.
- Very specific: line 142
If the user is asking you to review a specific contract, start with flare-security to set the security baseline, then run audit and …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Flare Builders Toolkit — Master Skill
This skill is the entry point to a 16-skill bundle for Flare-family EVM development. When invoked, route to the right sub-skill(s) based on what the task needs.
Security is the default. Every contract under discussion is assumed
hostile-attacked. Patterns that aren't safe-by-default (Ownable instead of
Ownable2Step, raw transfer instead of SafeERC20, unbounded loops,
push-style ETH transfers, missing reentrancy guards) are flagged as findings,
not described as alternatives. Read flare-security
first for any contract design or review work.
How to use this skill
When the user asks a Flare-development question, route them to the most specific sub-skill that fits. Multiple sub-skills can apply to one question. Don't try to answer from this skill alone — it's the router, not the source of truth.
Routing table
| User asks about… | Use sub-skill(s) |
| Chain ID, RPC URL, block explorer URL, faucet, faster RPC | flare-network |
| Token address (WFLR, WSGB, USDT0, USDC.e, sFLR, FXRP, HLN, APS, …) | flare-network |
| Permit2 / Multicall3 deployed address per chain | flare-network |
| Enosys V3 / SparkDEX V3.1 / SparkDEX V4 / BlazeSwap / OpenOcean address | flare-network |
Contract verification on flare-explorer or flarescan | flare-network |
| What is FTSO / FDC / FAssets / Smart Accounts | flare-general, then the specific protocol skill |
| Reading FTSO price feeds, anchor feeds, volatility | flare-ftso |
| Cross-chain proofs, BTC/XRPL state into Flare | flare-fdc |
| FXRP minting, redemption, agents, gasless payments | flare-fassets |
| ERC-4337 smart accounts on Flare | flare-smart-accounts |
| Enosys DEX V3 NFT positions, reward managers, FlareDrops, rFLR, APS incentives | enosys-dex-v3 |
| Enosys Loans/CDP, governance staking, contract addresses | enosys-contracts |
| Why X is silently failing on Flare (RPC log range, MetaMask SDK hang, claim OOG, basefee, EIP-3855, WFLR transfer hook) | flare-dapp-pitfalls |
| Solidity coding standards (general) | solidity |
| Security review of a Flare contract before deploy | flare-security |
| Run a checklist-style audit against a contract | audit |
| Run an adversarial multi-agent audit against a contract | audit-contract |
| Optimize gas | gas-optimize |
| Generate a Foundry test suite | test-foundry |
| Generate a Hardhat test suite | test-hardhat |
| "I'm building a new Flare contract" | Sequence below ↓ |
Standard flow for a new Flare contract
When the task is "build and ship a Flare contract", walk these in order. Read the linked skills as you go — don't try to remember everything.
- Plan — read
flare-generalplus any protocol-specific skills the contract will touch (flare-ftso,flare-fdc,flare-fassets,flare-smart-accounts,enosys-contracts,enosys-dex-v3). - Address resolution — every concrete address goes through
flare-network. Don't guess; don't trust training-data addresses; look them up. - Coding standards —
solidityCyfrin standards as the baseline. - Flare-specific security overlays —
flare-securitycovers whatsoliditydoesn't: Permit2 chain availability, FoT detection, blacklist surface, basefee floors, FTSO redistributor proxy quirks. Addflare-dapp-pitfallsfor the gotcha catalog. - Test —
test-foundryfor unit + fork + fuzz coverage. (Hardhat alternative intest-hardhat; Foundry is preferred.) - Optimize gas —
gas-optimizefor ranked savings. - Audit —
audit(systematic, 115+ items) +audit-contract(adversarial, multi-agent). After both run, rereadflare-securityPart 2 — Flare-specific overlays aren't in the generic audit checklists. - Deploy + verify — verification commands in
flare-networkwork for both Blockscout (flare-explorer) and Routescan/Etherscan-style (flarescan).
Pre-deploy checklist (mandatory)
Before broadcasting to Flare mainnet, every item below must be green. Full
detail in flare-security.
forge buildclean; all contracts under 24 KB runtimeforge test(unit) +forge test --fork-url flare(fork) all pass- Slither no high/medium findings
- Owner is NOT the deployer EOA —
Ownable2Step+ Ledger/multisig handoff Ownable2Step(notOwnable); reentrancy guards on every state-changing external function; CEI in every flowSafeERC20+forceApprovefor every token interaction- No
tx.originfor auth; no unbounded loops over user-controlled data - Pause / emergency-stop present and tested
- Custom errors prefixed with contract name +
__ - Permit2 chain availability verified if the contract depends on Permit2
- FoT and blacklistable-token surface explicitly designed for
- Basefee floor present in any incentive-math
audit+audit-contractboth run; findings fixed or accepted- Contract verifies cleanly on both
flare-explorerandflarescan
Conventions
- Sub-skill folders are flat. Each contains a
SKILL.md(frontmatter + body) plus optionalreferences/,scripts/, or*.mdsupporting docs. - Protocol skills (
flare-ftso,flare-fassets) include reference scripts in TypeScript and Solidity. They're illustrative; the user is responsible for security review before signing or broadcasting. - Address registry (
flare-network) is the single source of truth for any deployed-contract or token address. If a sub-skill mentions a different address thanflare-network, raise it as a discrepancy and verify.
When NOT to use this skill
- For non-EVM chain interactions outside the FAssets / FDC bridge surface — use chain-specific tooling.
- For Flare validator-node operation or staking management — see Flare's validator docs.
- For executing transactions — this skill is documentation/reference only. Wallet signing happens in user-controlled environments.
Contract under review?
If the user is asking you to review a specific contract, start with
flare-security to set the security baseline,
then run audit and audit-contract
against the file. After those complete, reread flare-security Part 2 to
verify the Flare-specific overlays — Permit2 availability, FoT detection,
blacklist surface, basefee floor, FTSO redistributor handling — were caught.
The generic audit skills are not chain-aware.
For more detailed orientation, the README.md in this same directory is a human-readable map of the toolkit.
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.

