Plan Arbiter
BuilderIO/skills
A skill your agent uses when asked to compare, cross-review, merge, judge, choose, or arbitrate competing plans from multiple agents such as Codex and Claude Code; when given two or more proposed…
Governance vulnerabilities and safe design patterns for onchain DAOs.
$ npx skills add ccashwell/evm-cortex --skill governance-attacks -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex governance-attacks --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/ccashwell/evm-cortex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/governance-attacks .claude/skills/governance-attacks && 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 "governance-attacks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/governance-attacks into .claude/skills/governance-attacks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "governance-attacks", 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/ccashwell/evm-cortex/tree/main/skills/governance-attacksType 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 ccashwell/evm-cortex --skill governance-attacks -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex governance-attacks --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/governance-attacks .agents/skills/governance-attacks && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "governance-attacks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/governance-attacks into .agents/skills/governance-attacks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "governance-attacks", 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 ccashwell/evm-cortex --skill governance-attacks -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex governance-attacks --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/governance-attacks .cursor/skills/governance-attacks && 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 "governance-attacks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/governance-attacks into .cursor/skills/governance-attacks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "governance-attacks", 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/ccashwell/evm-cortex.git --path skills/governance-attacks--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 ccashwell/evm-cortex --skill governance-attacks -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex governance-attacks --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/governance-attacks .gemini/skills/governance-attacks && 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 "governance-attacks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/governance-attacks into .gemini/skills/governance-attacks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "governance-attacks", 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 ccashwell/evm-cortex governance-attacksInstalls 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 ccashwell/evm-cortex --skill governance-attacks -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/governance-attacks .github/skills/governance-attacks && 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 "governance-attacks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/governance-attacks into .github/skills/governance-attacks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "governance-attacks", 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 ccashwell/evm-cortex --skill governance-attacks -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ccashwell/evm-cortex governance-attacks --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/governance-attacks .opencode/skills/governance-attacks && 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 "governance-attacks" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/governance-attacks into .opencode/skills/governance-attacks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "governance-attacks", 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.
governance-attacksGovernance vulnerabilities and safe design patterns for onchain DAOs.
Governance Attacks is an agent skill from ccashwell/evm-cortex. Governance vulnerabilities and safe design patterns for onchain DAOs. Use when designing or auditing governance systems, voting mechanisms, proposal workflows, or treasury management. Covers flash loan voting, vote buying, proposal griefing, timelock bypass, and quorum manipulation.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Design patterns and Proposals and quotes. The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.
Read from SKILL.md and the folder at commit f8f3301. 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 (its code samples are solidity).
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.
Governance Attacks loads about 1.9k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 165 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 ccashwell/evm-cortex at commit f8f3301, republished under its MIT licence (© ccashwell). 165 words, ~1,886 tokens.
.claude/skills/governance-attacks/SKILL.md (or your agent's skills folder).Borrow governance tokens → acquire voting power → vote → return tokens. All in one transaction.
1. Flash borrow 10M GOV tokens
2. Delegate to self (if not already delegated)
3. Cast vote on active proposal
4. Return tokenscontract SafeGovernor {
// Voting power is snapshotted BEFORE proposal voting begins
function propose(
address[] memory targets,
uint256[] memory values,
bytes[] memory calldatas,
string memory description
) public returns (uint256 proposalId) {
uint256 snapshot = block.number + votingDelay;
// votingDelay ensures tokens must be held before voting starts
proposals[proposalId].snapshot = snapshot;
proposals[proposalId].deadline = snapshot + votingPeriod;
// ...
}
function _getVotes(address account, uint256 blockNumber)
internal
view
returns (uint256)
{
// Historical balance — flash loans have zero effect
return token.getPastVotes(account, blockNumber);
}
}uint256 public votingDelay = 1 days; // blocks between propose and vote start
uint256 public votingPeriod = 1 weeks; // duration of voting
uint256 public proposalThreshold = 100_000e18; // tokens needed to proposeOff-chain vote buying markets where token holders sell their voting power.
1. Attacker deploys contract: "Deposit GOV tokens, vote my way, earn rewards"
2. Token holders delegate to attacker's contract
3. Attacker controls large voting block// Voters must lock tokens for extended periods to gain voting power
// Makes vote buying expensive (capital must be locked, not just held momentarily)
struct LockInfo {
uint256 amount;
uint256 unlockTime;
}
function getVotingPower(address account) public view returns (uint256) {
LockInfo memory lock = locks[account];
if (lock.unlockTime <= block.timestamp) return 0;
// Voting power decays linearly toward unlock
uint256 timeRemaining = lock.unlockTime - block.timestamp;
uint256 maxLockDuration = 4 * 365 days;
return lock.amount * timeRemaining / maxLockDuration;
}Spamming proposals to exhaust voter attention or bloat governance systems.
// VULNERABLE: low proposal threshold
function propose(...) external {
require(getVotes(msg.sender) >= proposalThreshold);
// proposalThreshold = 1 token → anyone can spam proposals
}
// DEFENSE: meaningful proposal threshold + proposal deposit
uint256 public proposalThreshold = 100_000e18; // 0.1% of supply
uint256 public proposalDeposit = 10 ether;
mapping(uint256 => address) public proposalDepositors;
function propose(...) external payable returns (uint256 proposalId) {
if (getVotes(msg.sender) < proposalThreshold) revert BelowThreshold();
if (msg.value < proposalDeposit) revert InsufficientDeposit();
proposalId = _createProposal(...);
proposalDepositors[proposalId] = msg.sender;
}
// Refund deposit if proposal passes or is not spam
function refundDeposit(uint256 proposalId) external {
if (state(proposalId) != ProposalState.Succeeded &&
state(proposalId) != ProposalState.Executed) {
revert ProposalNotSucceeded();
}
payable(proposalDepositors[proposalId]).call{value: proposalDeposit}("");
}Governance proposals typically execute through a timelock. Attacks that bypass or shorten the timelock.
// Attack: propose to reduce timelock delay to 0, then execute malicious proposals
// Defense: minimum timelock delay is hardcoded, not governable
contract SafeTimelock {
uint256 public constant MINIMUM_DELAY = 2 days;
uint256 public constant MAXIMUM_DELAY = 30 days;
function setDelay(uint256 newDelay) external onlySelf {
if (newDelay < MINIMUM_DELAY) revert DelayTooShort();
if (newDelay > MAXIMUM_DELAY) revert DelayTooLong();
delay = newDelay;
}
}// Guardian can veto proposals but cannot execute them
// Provides a safety net without centralization risk
address public guardian;
function veto(uint256 proposalId) external {
if (msg.sender != guardian) revert NotGuardian();
if (state(proposalId) == ProposalState.Executed) revert AlreadyExecuted();
proposals[proposalId].vetoed = true;
emit ProposalVetoed(proposalId, msg.sender);
}
// Guardian power can be revoked by governance after sufficient decentralization
function renounceGuardian() external {
if (msg.sender != guardian) revert NotGuardian();
guardian = address(0);
emit GuardianRenounced();
}Exploiting delegation mechanics for concentrated voting power.
// Attack: create many accounts, receive airdrop, delegate all to one address
// Defense: identity verification for airdrops is hard onchain
// Attack: delegate, vote, undelegate, re-delegate to another proposal
// Defense: delegation snapshot at proposal creation time
function delegate(address delegatee) external {
_delegate(msg.sender, delegatee);
// Checkpointing ensures changes don't affect active proposals
}Reducing effective quorum by increasing total supply or burning opposing votes.
// VULNERABLE: quorum as percentage of totalSupply at vote time
function quorumReached(uint256 proposalId) public view returns (bool) {
return proposalVotes[proposalId].forVotes >= totalSupply() * quorumPct / 100;
// totalSupply can change between proposal and vote
}
// SAFE: quorum as absolute number, snapshotted at proposal creation
function quorumReached(uint256 proposalId) public view returns (bool) {
uint256 snapshot = proposals[proposalId].snapshot;
uint256 quorum = token.getPastTotalSupply(snapshot) * quorumPct / 100;
return proposalVotes[proposalId].forVotes >= quorum;
}// Recommended parameters for production governance
struct GovernanceConfig {
uint256 votingDelay; // 1-2 days
uint256 votingPeriod; // 5-7 days
uint256 proposalThreshold; // 0.1-1% of supply
uint256 quorumPercentage; // 4-10% of supply
uint256 timelockDelay; // 2-7 days
bool snapshotVoting; // always true
bool guardianEnabled; // true until sufficiently decentralized
}© ccashwell, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/governance-attacks of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Governance Attacks 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 |
|---|---|---|---|---|---|---|
| Governance Attacks this skillccashwell/evm-cortex | 131 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Plan ArbiterBuilderIO/skills | 4.6k | — | ~1k | Automated safety check: Pass | MIT | |
| Qv Quality Reportingtetherto/qvac | 683 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Dev Rfcpproenca/dot-skills | 215 | — | ~3.8k | Automated safety check: Pass | MIT | |
| Triangulate Spec ReviewQoderAI/better-harness | 2.4k | — | ~614 | Automated safety check: Pass | MIT | |
| Python Pep Authorpproenca/dot-skills | 215 | — | ~2.1k | Automated safety check: Pass | MIT |
BuilderIO/skills
A skill your agent uses when asked to compare, cross-review, merge, judge, choose, or arbitrate competing plans from multiple agents such as Codex and Claude Code; when given two or more proposed…
tetherto/qvac
Run the deterministic code-quality audit, turn related findings into contextual remediation groups, prepare approval-gated Asana proposals, reconcile recurring runs, or configure twice-monthly…
pproenca/dot-skills
Create well-structured RFCs and technical proposals for software projects.
QoderAI/better-harness
Review and improve architecture specs, ADRs, plugin or agent directory proposals, and other design documents by running multiple independent AI reviewers such as Claude, Qoder, Codex, or Cursor…
pproenca/dot-skills
Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…
majiayu000/spellbook
A skill your agent uses when you want a second-opinion review via Codex CLI, cross-verification after another agent implements changes, debugging help, or alternative implementation proposals.
ccashwell/evm-cortex
A skill your agent uses when preparing for a security audit, performing reconnaissance on a new codebase, or creating a protocol overview.
ccashwell/evm-cortex
A skill your agent uses when integrating with Aave V3 for lending, borrowing, flash loans, or building on top of Aave markets.
ccashwell/evm-cortex
Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.
ccashwell/evm-cortex
A skill your agent uses when running a local Ethereum node with Anvil.
ccashwell/evm-cortex
A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.
ccashwell/evm-cortex
A skill your agent uses when performing deep analysis of specific findings or high-risk areas during a security audit.
Categories
Governance vulnerabilities and safe design patterns for onchain DAOs. Governance Attacks is an agent skill from ccashwell/evm-cortex. Governance vulnerabilities and safe design patterns for onchain DAOs.
Governance Attacks fits situations like: auditing governance systems; voting mechanisms; proposal workflows; treasury management.
Run `npx skills add ccashwell/evm-cortex --skill governance-attacks -a claude-code`. Or copy the skill folder (skills/governance-attacks in ccashwell/evm-cortex) into .claude/skills/governance-attacks in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill governance-attacks -a codex`. Or copy the skill folder (skills/governance-attacks in ccashwell/evm-cortex) into .agents/skills/governance-attacks 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 ccashwell/evm-cortex --skill governance-attacks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/governance-attacks, .gemini/skills/governance-attacks, .github/skills/governance-attacks and .opencode/skills/governance-attacks in your project.
SKILL.md names no scripts, command-line tools or credentials: Governance Attacks 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.
Governance Attacks 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.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Governance Attacks: Plan Arbiter (BuilderIO/skills, 4.6k stars), Qv Quality Reporting (tetherto/qvac, 683 stars), Dev Rfc (pproenca/dot-skills, 215 stars) and Triangulate Spec Review (QoderAI/better-harness, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ccashwell (a GitHub user) maintains it in ccashwell/evm-cortex, which has 131 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on September 30, 2026.
Source: ccashwell/evm-cortex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.