Defi Amm Security
affaan-m/ECC
Security checklist for Solidity AMM contracts, liquidity pools, and swap flows.
Token-efficient smart contract security auditing via Behavioral State Analysis (BSA).
$ npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install quillai-network/quillshield_skills behavioral-state-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/quillai-network/quillshield_skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/behavioral-state-analysis/skills/behavioral-state-analysis .claude/skills/behavioral-state-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "behavioral-state-analysis" agent skill from https://github.com/quillai-network/quillshield_skills/tree/main/plugins/behavioral-state-analysis/skills/behavioral-state-analysis into .claude/skills/behavioral-state-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "behavioral-state-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/quillai-network/quillshield_skills/tree/main/plugins/behavioral-state-analysis/skills/behavioral-state-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install quillai-network/quillshield_skills behavioral-state-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/quillai-network/quillshield_skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/behavioral-state-analysis/skills/behavioral-state-analysis .agents/skills/behavioral-state-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "behavioral-state-analysis" agent skill from https://github.com/quillai-network/quillshield_skills/tree/main/plugins/behavioral-state-analysis/skills/behavioral-state-analysis into .agents/skills/behavioral-state-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "behavioral-state-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install quillai-network/quillshield_skills behavioral-state-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/quillai-network/quillshield_skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/behavioral-state-analysis/skills/behavioral-state-analysis .cursor/skills/behavioral-state-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "behavioral-state-analysis" agent skill from https://github.com/quillai-network/quillshield_skills/tree/main/plugins/behavioral-state-analysis/skills/behavioral-state-analysis into .cursor/skills/behavioral-state-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "behavioral-state-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/quillai-network/quillshield_skills.git --path plugins/behavioral-state-analysis/skills/behavioral-state-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install quillai-network/quillshield_skills behavioral-state-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/quillai-network/quillshield_skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/behavioral-state-analysis/skills/behavioral-state-analysis .gemini/skills/behavioral-state-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "behavioral-state-analysis" agent skill from https://github.com/quillai-network/quillshield_skills/tree/main/plugins/behavioral-state-analysis/skills/behavioral-state-analysis into .gemini/skills/behavioral-state-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "behavioral-state-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install quillai-network/quillshield_skills behavioral-state-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/quillai-network/quillshield_skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/behavioral-state-analysis/skills/behavioral-state-analysis .github/skills/behavioral-state-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "behavioral-state-analysis" agent skill from https://github.com/quillai-network/quillshield_skills/tree/main/plugins/behavioral-state-analysis/skills/behavioral-state-analysis into .github/skills/behavioral-state-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "behavioral-state-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install quillai-network/quillshield_skills behavioral-state-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/quillai-network/quillshield_skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/behavioral-state-analysis/skills/behavioral-state-analysis .opencode/skills/behavioral-state-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "behavioral-state-analysis" agent skill from https://github.com/quillai-network/quillshield_skills/tree/main/plugins/behavioral-state-analysis/skills/behavioral-state-analysis into .opencode/skills/behavioral-state-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "behavioral-state-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
behavioral-state-analysisToken-efficient smart contract security auditing via Behavioral State Analysis (BSA).
Behavioral State Analysis is an agent skill from quillai-network/quillshield_skills. Token-efficient smart contract security auditing via Behavioral State Analysis (BSA). Scopes analysis to contract type, runs only relevant threat engines, and uses tiered output depth. Use for auditing smart contracts, security reviews, or DeFi threat modeling.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/confidence-scoring.md` and `references/threat-engines.md`).
It sits in Security, covering Smart contract auditing, Threat modeling and Crypto and DeFi analysis. The repository describes itself as: Structured skills for smart contract security audits. Infers state invariants, detects semantic guard gaps, models flash loan + oracle attack chains, simulates adversarial… The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8bdd3c0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Behavioral State Analysis loads about 1.4k tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 589 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from quillai-network/quillshield_skills at commit 8bdd3c0, republished under its MIT licence (© quillai-network). 589 words, ~1,396 tokens.
.claude/skills/behavioral-state-analysis/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Audit smart contracts by extracting behavioral intent, then systematically breaking it across security dimensions.
Follow these strictly to avoid context exhaustion:
Extract intent from code and docs. Output per contract:
Contract: <Name>
Type: <DeFi/Token/Governance/NFT/Utility/Proxy>
States: [list]
Key Invariants (≤5):
- <invariant>
Privileged Roles: [list]
Value Entry/Exit Points: [list or "none"]Then select engines:
| Contract Type | Run ETE | Run ACTE | Run SITE |
|---|---|---|---|
| DeFi (DEX/lending/vault/staking) | Yes | Yes | Yes |
| Token (ERC20/721/1155) | Yes | Lite | Lite |
| Governance/DAO | Lite | Yes | Yes |
| NFT marketplace | Yes | Yes | Lite |
| Utility/Library | No | Lite | Lite |
| Proxy/Upgradeable | No | Yes | Yes |
Lite = check only the top-priority item for that engine (see below).
Run only the engines selected above. For each engine, analyze in this priority order — stop if contract surface is exhausted:
Economic Threat Engine (ETE):
deposits == withdrawals + balance hold?Access Control Threat Engine (ACTE):
User → [actions] → Admin?State Integrity Threat Engine (SITE):
Lite mode = run only item #1 from that engine's list.
For each hypothesis from Phase 2:
Score: Confidence = (Evidence × Feasibility × Impact) / FP_Rate
| Factor | 1.0 | 0.7 | 0.4 | 0.1 |
|---|---|---|---|---|
| Evidence | Concrete path, no deps | Specific state needed | Pattern-based | Heuristic |
| Feasibility | PoC confirmed | Achievable state | External conditions | Infeasible |
Impact: 5=total loss, 4=partial loss, 3=griefing, 2=info leak, 1=best practice FP_Rate: 0.05 (known pattern) → 0.15 (moderate) → 0.40 (weak) → 0.60 (heuristic)
Prioritization: Report findings ≥10% confidence. Never suppress Impact ≥4.
### [F-N] Title
Severity: Critical|High|Medium|Low | Confidence: X%
Location: contract.sol#L10-L25, functionName()
Root Cause: <1-2 sentences>
Exploit: <numbered steps, ≤5>
Impact: <1 sentence with quantified risk>
Fix: <code diff or 1-2 sentence recommendation>
PoC: <only for Critical/High — minimal test code>A→B→C, test transitive trustblock.timestamp manipulation, expired signatures, replay© quillai-network, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in plugins/behavioral-state-analysis/skills/behavioral-state-analysis of quillai-network/quillshield_skills.
Open the folder on GitHubat commit 8bdd3c0
Behavioral State Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Behavioral State Analysis this skillquillai-network/quillshield_skills | 129 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Defi Amm Securityaffaan-m/ECC | 275k | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Meme Coin Security Auditawarexone/Agentic-Bug-Hunter | 5.3k | 1 repos | ~2.4k | Automated safety check: Pass | MIT | |
| Solana Devsolana-foundation/solana-dev-skill | 574 | — | ~3.8k | Automated safety check: Pass | MIT | |
| Solidity AuditorGabson0x/bountyforge | 443 | — | ~3.7k | Automated safety check: Pass | None | |
| Solidity Auditorpashov/skills | 1.2k | 1 repos | ~9.9k | Automated safety check: Pass | MIT |
affaan-m/ECC
Security checklist for Solidity AMM contracts, liquidity pools, and swap flows.
awarexone/Agentic-Bug-Hunter
Screens EVM and Solana meme coins for rug pull signs such as hidden mint, honeypot logic and fee tricks, starting with fast kill signals before any code review.
solana-foundation/solana-dev-skill
A skill your agent uses when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my…
Gabson0x/bountyforge
Security audit of Solidity code while you develop. An agent skill from Gabson0x/bountyforge.
pashov/skills
Security audit of Solidity code while you develop. An agent skill from pashov/skills.
VelaPayments/vela-payments
End-to-end Stellar development playbook. An agent skill from VelaPayments/vela-payments.
quillai-network/quillshield_skills
Detects Denial of Service and griefing vulnerabilities in smart contracts.
quillai-network/quillshield_skills
Detects unsafe external call patterns and token integration vulnerabilities in smart contracts.
quillai-network/quillshield_skills
Detects input validation failures and arithmetic vulnerabilities in smart contracts.
quillai-network/quillshield_skills
Detects price oracle manipulation and flash loan attack vectors in DeFi smart contracts.
quillai-network/quillshield_skills
Detects vulnerabilities in upgradeable proxy smart contracts including storage layout collisions, uninitialized implementations, function selector clashing, delegatecall context issues, and upgrade…
quillai-network/quillshield_skills
Systematically detects all reentrancy vulnerability variants in smart contracts — classic, cross-function, cross-contract, and read-only reentrancy.
Categories
Token-efficient smart contract security auditing via Behavioral State Analysis (BSA). Behavioral State Analysis is an agent skill from quillai-network/quillshield_skills. Token-efficient smart contract security auditing via Behavioral State Analysis (BSA).
Behavioral State Analysis fits situations like: auditing smart contracts; security reviews; deFi threat modeling.
Run `npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a claude-code`. Or copy the skill folder (plugins/behavioral-state-analysis/skills/behavioral-state-analysis in quillai-network/quillshield_skills) into .claude/skills/behavioral-state-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a codex`. Or copy the skill folder (plugins/behavioral-state-analysis/skills/behavioral-state-analysis in quillai-network/quillshield_skills) into .agents/skills/behavioral-state-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add quillai-network/quillshield_skills --skill behavioral-state-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/behavioral-state-analysis, .gemini/skills/behavioral-state-analysis, .github/skills/behavioral-state-analysis and .opencode/skills/behavioral-state-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: Behavioral State Analysis is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Behavioral State Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 957 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Behavioral State Analysis: Defi Amm Security (affaan-m/ECC, 275k stars), Meme Coin Security Audit (awarexone/Agentic-Bug-Hunter, 5.3k stars), Solana Dev (solana-foundation/solana-dev-skill, 574 stars) and Solidity Auditor (Gabson0x/bountyforge, 443 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
quillai-network (a GitHub organization) maintains it in quillai-network/quillshield_skills, which has 129 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on March 30, 2026.
Source: quillai-network/quillshield_skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.