Entry Point Analyzer
alt-research2/SolidityGuard
Analyzes Solidity contract entry points to map attack surface.
Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.
$ npx skills add ccashwell/evm-cortex --skill access-control-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex access-control-patterns --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/access-control-patterns .claude/skills/access-control-patterns && 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 "access-control-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/access-control-patterns into .claude/skills/access-control-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "access-control-patterns", 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/access-control-patternsType 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 access-control-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex access-control-patterns --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/access-control-patterns .agents/skills/access-control-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "access-control-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/access-control-patterns into .agents/skills/access-control-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "access-control-patterns", 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 access-control-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex access-control-patterns --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/access-control-patterns .cursor/skills/access-control-patterns && 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 "access-control-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/access-control-patterns into .cursor/skills/access-control-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "access-control-patterns", 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/access-control-patterns--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 access-control-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex access-control-patterns --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/access-control-patterns .gemini/skills/access-control-patterns && 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 "access-control-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/access-control-patterns into .gemini/skills/access-control-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "access-control-patterns", 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 access-control-patternsInstalls 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 access-control-patterns -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/access-control-patterns .github/skills/access-control-patterns && 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 "access-control-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/access-control-patterns into .github/skills/access-control-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "access-control-patterns", 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 access-control-patterns -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 access-control-patterns --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/access-control-patterns .opencode/skills/access-control-patterns && 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 "access-control-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/access-control-patterns into .opencode/skills/access-control-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "access-control-patterns", 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.
access-control-patternsAccess control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.
Access Control Patterns is an agent skill from ccashwell/evm-cortex. Access control design patterns for Solidity protocols. Use when implementing role-based permissions, timelocks, emergency controls, or multi-sig requirements. Covers Ownable2Step, AccessControl, AccessManager, timelock patterns, and emergency pause.
Its SKILL.md is about 1.8k 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 Backend & APIs, covering Authorization and RBAC. It works with Solidity. 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.
Access Control Patterns loads about 1.8k tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 178 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). 178 words, ~1,820 tokens.
.claude/skills/access-control-patterns/SKILL.md (or your agent's skills folder).Two-step ownership transfer prevents accidental transfer to a wrong address.
import {Ownable2Step, Ownable} from "@openzeppelin/contracts/access/Ownable2Step.sol";
contract Treasury is Ownable2Step {
constructor(address initialOwner) Ownable(initialOwner) {}
function withdrawFunds(address to, uint256 amount) external onlyOwner {
if (to == address(0)) revert ZeroAddress();
(bool success,) = to.call{value: amount}("");
if (!success) revert TransferFailed();
}
}
// Transfer flow:
// 1. Current owner calls transferOwnership(newOwner)
// 2. newOwner calls acceptOwnership()
// 3. Ownership transferred only after step 2For protocols needing multiple permission levels.
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
contract Protocol is AccessControl {
bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
bytes32 public constant GUARDIAN_ROLE = keccak256("GUARDIAN_ROLE");
bytes32 public constant TREASURY_ROLE = keccak256("TREASURY_ROLE");
constructor(address admin) {
_grantRole(DEFAULT_ADMIN_ROLE, admin);
}
function updateParameters(uint256 newFee) external onlyRole(OPERATOR_ROLE) {
// routine parameter updates
}
function emergencyPause() external onlyRole(GUARDIAN_ROLE) {
_pause();
}
function withdrawFees(address to) external onlyRole(TREASURY_ROLE) {
// treasury management
}
}DEFAULT_ADMIN_ROLE (multisig/timelock)
├── OPERATOR_ROLE (parameter updates, routine operations)
├── GUARDIAN_ROLE (emergency pause, circuit breakers)
├── TREASURY_ROLE (fee collection, fund management)
├── UPGRADER_ROLE (proxy upgrades — timelock only)
└── MINTER_ROLE (token minting — restricted)constructor(address admin) {
_grantRole(DEFAULT_ADMIN_ROLE, admin);
// OPERATOR_ROLE is managed by DEFAULT_ADMIN_ROLE (default)
// GUARDIAN can manage itself (guardians can add/remove other guardians)
_setRoleAdmin(GUARDIAN_ROLE, GUARDIAN_ROLE);
// MINTER is managed by OPERATOR (operators control minters)
_setRoleAdmin(MINTER_ROLE, OPERATOR_ROLE);
}Centralized permission management for complex protocols with multiple contracts.
import {AccessManager} from "@openzeppelin/contracts/access/manager/AccessManager.sol";
import {AccessManaged} from "@openzeppelin/contracts/access/manager/AccessManaged.sol";
contract Vault is AccessManaged {
constructor(address manager) AccessManaged(manager) {}
function setFee(uint256 fee) external restricted {
// AccessManager checks if msg.sender has permission for this function
}
}
// In the AccessManager:
// 1. Define roles (groups of addresses)
// 2. Assign function permissions to roles
// 3. Optionally add execution delays per roleCritical operations should have a time delay, giving users time to react.
struct TimelockOperation {
bytes32 id;
address target;
uint256 value;
bytes data;
uint256 readyTimestamp;
bool executed;
}
uint256 public constant MIN_DELAY = 2 days;
mapping(bytes32 => TimelockOperation) public operations;
function schedule(
address target,
uint256 value,
bytes calldata data,
uint256 delay
) external onlyRole(OPERATOR_ROLE) returns (bytes32 id) {
if (delay < MIN_DELAY) revert DelayTooShort(delay, MIN_DELAY);
id = keccak256(abi.encode(target, value, data, block.timestamp));
operations[id] = TimelockOperation({
id: id,
target: target,
value: value,
data: data,
readyTimestamp: block.timestamp + delay,
executed: false
});
emit OperationScheduled(id, target, value, data, block.timestamp + delay);
}
function execute(bytes32 id) external onlyRole(OPERATOR_ROLE) {
TimelockOperation storage op = operations[id];
if (op.readyTimestamp == 0) revert OperationNotFound();
if (op.executed) revert AlreadyExecuted();
if (block.timestamp < op.readyTimestamp) revert NotReady(op.readyTimestamp);
op.executed = true;
(bool success,) = op.target.call{value: op.value}(op.data);
if (!success) revert ExecutionFailed();
emit OperationExecuted(id);
}import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";
contract Vault is Pausable, AccessControl {
bytes32 public constant GUARDIAN_ROLE = keccak256("GUARDIAN_ROLE");
// Guardians can pause immediately (no timelock)
function pause() external onlyRole(GUARDIAN_ROLE) {
_pause();
}
// Unpausing requires higher privilege (admin/timelock)
function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) {
_unpause();
}
function deposit(uint256 amount) external whenNotPaused {
// ...
}
// Withdrawals may remain enabled during pause
function emergencyWithdraw() external {
// always available — user safety
}
}For critical operations, require multiple signatures or approvals.
mapping(bytes32 => uint256) public approvalCount;
mapping(bytes32 => mapping(address => bool)) public hasApproved;
uint256 public constant REQUIRED_APPROVALS = 3;
function approve(bytes32 operationId) external onlyRole(OPERATOR_ROLE) {
if (hasApproved[operationId][msg.sender]) revert AlreadyApproved();
hasApproved[operationId][msg.sender] = true;
approvalCount[operationId] += 1;
emit Approved(operationId, msg.sender, approvalCount[operationId]);
}
function execute(bytes32 operationId) external onlyRole(OPERATOR_ROLE) {
if (approvalCount[operationId] < REQUIRED_APPROVALS) {
revert InsufficientApprovals(approvalCount[operationId], REQUIRED_APPROVALS);
}
// ...
}Ownable2Step over Ownable for single-owner contractsAccessControl for multi-role protocolsrenounceRole considered for immutability guarantees post-setup© 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/access-control-patterns of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Access Control Patterns 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 |
|---|---|---|---|---|---|---|
| Access Control Patterns this skillccashwell/evm-cortex | 131 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Entry Point Analyzeralt-research2/SolidityGuard | 104 | — | ~959 | Automated safety check: Pass | Custom licence | |
| Solidity Vulnerability Scanneralt-research2/SolidityGuard | 104 | — | ~1.6k | Automated safety check: Notes | Custom licence | |
| Smart Contract Auditelophanto/EloPhanto | 106 | — | ~2.7k | Automated safety check: Pass | Custom licence | |
| Configuring Horizoncoollabsio/coolify | 63k | 4 repos | ~898 | Automated safety check: Pass | MIT | |
| K8s Security PoliciesCybereason-Public/owLSM | 280 | 11 repos | ~2k | Automated safety check: Pass | GPL-2.0 |
alt-research2/SolidityGuard
Analyzes Solidity contract entry points to map attack surface.
alt-research2/SolidityGuard
Comprehensive Solidity contract security scanner detecting 104 vulnerability patterns across reentrancy, access control, arithmetic, DeFi, proxy, and token categories.
elophanto/EloPhanto
A skill your agent uses when reviewing a Solidity, Vyper, or Rust (Solana/Anchor) smart contract for paid audit work or pre-launch sanity check.
coollabsio/coolify
A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.
Cybereason-Public/owLSM
Comprehensive guide for implementing NetworkPolicy, PodSecurityPolicy, RBAC, and Pod Security Standards in Kubernetes.
payloadcms/payload
A skill your agent uses when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API).
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
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.
ccashwell/evm-cortex
A skill your agent uses when preparing a codebase for security audit.
Works with
Categories
Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex. Access Control Patterns is an agent skill from ccashwell/evm-cortex. Access control design patterns for Solidity protocols.
Access Control Patterns fits situations like: implementing role-based permissions; emergency controls; multi-sig requirements.
Run `npx skills add ccashwell/evm-cortex --skill access-control-patterns -a claude-code`. Or copy the skill folder (skills/access-control-patterns in ccashwell/evm-cortex) into .claude/skills/access-control-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill access-control-patterns -a codex`. Or copy the skill folder (skills/access-control-patterns in ccashwell/evm-cortex) into .agents/skills/access-control-patterns 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 access-control-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/access-control-patterns, .gemini/skills/access-control-patterns, .github/skills/access-control-patterns and .opencode/skills/access-control-patterns in your project.
SKILL.md names no scripts, command-line tools or credentials: Access Control Patterns 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.
Access Control Patterns 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.8k tokens (SKILL.md is roughly 7.3k 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 Access Control Patterns: Entry Point Analyzer (alt-research2/SolidityGuard, 104 stars), Solidity Vulnerability Scanner (alt-research2/SolidityGuard, 104 stars), Smart Contract Audit (elophanto/EloPhanto, 106 stars) and Configuring Horizon (coollabsio/coolify, 63k 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.