AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Solidity Security Scan

skill-grantkee-claude-extensions-solidity-security-scan · by grantkee

|

No reviews yet
0 installs
8 views
0.0% view→install

Install

$ agentstack add skill-grantkee-claude-extensions-solidity-security-scan

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-grantkee-claude-extensions-solidity-security-scan)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Solidity Security Scan? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Solidity Security Scan Orchestrator

One-command security scan for Solidity projects. Spawns 3-4 specialized agents in parallel, each covering a distinct analysis domain, then consolidates all reports into a unified summary with cross-report pattern analysis.

Agents Orchestrated

| Agent | Domain | Always/Conditional | Output File | | ---------------------------- | ------------------------------------------------- | -------------------------- | ------------------------------- | | solidity-sentinel | Defensive analysis (aderyn + slither + manual) | Always | solidity-sentinel-report.md | | solidity-nemesis | Adversarial exploit hypotheses with economics | Always | nemesis.md + invariants.md | | solidity-gas-architect | Gas optimization with scrutineer validation | Always | gas-report.md | | tn-solidity-deploy-auditor | Deployment script security (5 parallel subagents) | If .s.sol files in scope | solidity-deployment-report.md |

Severity Scale

| Level | Definition | Examples | | ------------ | ----------------------------------------------------------------------- | ------------------------------------------------------------------------ | | CRITICAL | Direct fund loss, unauthorized transfer, complete access control bypass | Reentrancy with value, unprotected selfdestruct, proxy storage collision | | HIGH | Conditional fund loss, broken accounting, governance takeover | Flash loan exploitation, initialization gap, oracle manipulation | | MEDIUM | DoS vectors, griefing, precision loss, missing critical events | Unbounded loops, front-running windows, stale oracle reads | | LOW | Gas inefficiencies with security implications, minor validation gaps | Missing zero-address checks, suboptimal storage packing | | INFO | Code quality, best practices, documentation | NatSpec gaps, naming conventions, style |

Process

Phase 1: Context & Scope

Step 1: Detect Scope

Determine what Solidity files to analyze based on user input:

PR number provided:

gh pr diff  --name-only | grep '\.sol$'

Branch provided or current branch differs from main:

git diff main...HEAD --name-only | grep '\.sol$'

Specific files provided: Use the provided file list directly.

No scope specified — full project scan:

find  -name "*.sol" \
  -not -path "*/node_modules/*" \
  -not -path "*/lib/*" \
  -not -path "*/out/*" \
  -not -path "*/cache/*" \
  -not -path "*/test/*" \
  -not -path "*/script/*" | head -200
Step 2: Enumerate & Classify
  1. Count Solidity files and LOC for report metadata:

``bash find -name "*.sol" \ -not -path "*/node_modules/*" \ -not -path "*/lib/*" \ -not -path "*/out/*" \ -not -path "*/cache/*" | xargs wc -l 2>/dev/null | tail -1 ``

  1. Check for .s.sol files in scope to determine deploy-auditor inclusion:

``bash find -name "*.s.sol" \ -not -path "*/node_modules/*" \ -not -path "*/lib/*" \ -not -path "*/out/*" \ -not -path "*/cache/*" ``

If .s.sol files exist, set DEPLOY_SCRIPTS_IN_SCOPE = true.

  1. Identify project type:
  • Check for foundry.toml → Foundry
  • Check for hardhat.config.js or hardhat.config.ts → Hardhat
  • Otherwise → bare Solidity
Step 4: Validate Scope

If zero .sol files are found, stop and report:

> "No Solidity files found in scope. Check the target path and any filters applied."

If the scope is very large (100+ files), warn the user and suggest narrowing.

Phase 2: Parallel Analysis

Spawn all agents simultaneously using the Agent tool. Each agent is self-contained — it handles its own subagent spawning, verification, and report generation internally.

CRITICAL: Spawn all agents in a single message with multiple Agent tool calls to maximize parallelism.

Agent 1: Solidity Sentinel
Agent({
  subagent_type: "general-purpose",
  description: "Solidity sentinel defensive analysis",
  prompt: "You are being spawned as part of a solidity-security-scan orchestration.

Read the agent definition at /agents/solidity-sentinel.md and follow its instructions exactly.

Target path: 
Scope: 
Solidity files in scope:

Execute all phases of the solidity-sentinel agent and write the final report to:
/reports/solidity-sentinel-report.md

Report back with a brief summary of findings by severity count."
})

Replace ` with the path to the claude-extensions-personal repo (where agent definitions live), and ` with the project being analyzed.

Agent 2: Solidity Nemesis
Agent({
  subagent_type: "general-purpose",
  description: "Solidity nemesis adversarial analysis",
  prompt: "You are being spawned as part of a solidity-security-scan orchestration.

Read the agent definition at /agents/solidity-nemesis.md and follow its instructions exactly.

Target path: 
Scope: 
Solidity files in scope:

Execute all phases of the solidity-nemesis agent and write the reports to:
- /reports/nemesis.md (exploit hypothesis report)
- /reports/invariants.md (property map from invariant auditor)

Report back with a brief summary: top exploit hypothesis, count by severity, vectors with no viable path."
})
Agent 3: Solidity Gas Architect
Agent({
  subagent_type: "general-purpose",
  description: "Solidity gas optimization analysis",
  prompt: "You are being spawned as part of a solidity-security-scan orchestration.

Read the agent definition at /agents/solidity-gas-architect.md and follow its instructions exactly.

Target path: 
Scope: 
Solidity files in scope:

Execute all phases of the solidity-gas-architect agent and write the final report to:
/reports/gas-report.md

Report back with a brief summary: total optimizations proposed, estimated savings, scrutineer flags."
})
Agent 4: Solidity Deploy Auditor (Conditional)

Only spawn if DEPLOY_SCRIPTS_IN_SCOPE = true.

Agent({
  subagent_type: "general-purpose",
  description: "Solidity deployment script audit",
  prompt: "You are being spawned as part of a solidity-security-scan orchestration.

Read the agent definition at /agents/tn-solidity-deploy-auditor.md and follow its instructions exactly.

Target path: 
Deployment scripts in scope:

Execute all phases of the tn-solidity-deploy-auditor agent and write the final report to:
/reports/solidity-deployment-report.md

Report back with a brief summary of findings by severity and subagent."
})

Phase 3: Consolidation

After ALL parallel agents complete, spawn a general-purpose consolidation subagent.

Agent({
  description: "Consolidate Solidity security scan reports",
  prompt: "You are the consolidation agent for a solidity-security-scan. Your job is to read all individual reports and produce a unified summary.

Read the following report files at /reports:
1. solidity-sentinel-report.md
2. nemesis.md
3. invariants.md
4. gas-report.md
[5. solidity-deployment-report.md — if it exists]

Produce a consolidated summary file at /reports/solidity-security-scan-summary.md with this structure:

---

# Solidity Security Scan Summary

## Scan Metadata
- **Target**: [target path]
- **Project type**: [Foundry / Hardhat / Bare]
- **Solidity files analyzed**: [count]
- **Total LOC**: [count]
- **Scan date**: [date]
- **Agents executed**: [list which agents ran]

## Executive Summary

[2-3 paragraphs: overall risk assessment, what the protocol does, where value concentrates, and the most significant findings across all agents. Write for a human security reviewer.]

**Overall Risk Level**: [CRITICAL / HIGH / MEDIUM / LOW / CLEAN]
**Total findings**: [count across all reports, by severity]

## Sentinel Digest

- [3-5 sentences summarizing defensive findings]
- Confirmed findings: [count] | False positives eliminated: [count]
- Cross-tool agreement: [which findings were caught by multiple analysis tracks]
- Key categories: [access-control, reentrancy, value-flow, etc.]

## Nemesis Digest

- Top exploit hypothesis: [one-line with expected profit]
- Total hypotheses: [count by severity]
- Invariants verified unbreakable: [count from invariants.md]
- Vectors with no viable path: [list]

## Gas Architect Digest

- Total optimization proposals: [count]
- Estimated total savings: [gas amount]
- Scrutineer flags: [any safety concerns raised]
- Top 3 optimizations: [brief list]

## Deploy Auditor Digest (if applicable)

- Key management findings: [summary]
- Proxy atomicity: [summary]
- Front-running windows: [summary]
- Environment assumptions: [summary]

## Cross-Report Patterns

Issues identified by multiple agents carry the highest confidence:

| Pattern | Agents | Severity | Description |
|---------|--------|----------|-------------|
| [pattern] | sentinel + nemesis | [sev] | [one-line] |

[Highlight where sentinel found a bug that nemesis chained into an exploit hypothesis.
Highlight where gas optimizations interact with security findings.
Highlight where deployment issues relate to contract-level vulnerabilities.]

## Priority Action Items

Numbered list ordered by severity, with references to which report contains the details:

1. **[CRITICAL]** [description] — see sentinel-report Finding N / nemesis EXP-N
2. **[HIGH]** [description] — see sentinel-report Finding N
3. ...

---

After writing the file, return the full content of the summary."
})

Phase 4: Present Results

After the consolidation agent returns, output a concise summary to the conversation:

## Solidity Security Scan Complete

**Overall Risk**: [CRITICAL / HIGH / MEDIUM / LOW / CLEAN]
**Target**: [path] ([Foundry/Hardhat/Bare], [N] contracts, [N] LOC)

### Findings by Severity
| Severity | Count |
|----------|-------|
| Critical | N |
| High     | N |
| Medium   | N |
| Low      | N |
| Info     | N |

### Top Findings
1. [one-line description with severity and source agent]
2. ...
3. ...

### Agents Executed
- solidity-sentinel → solidity-sentinel-report.md
- solidity-nemesis → nemesis.md + invariants.md
- solidity-gas-architect → gas-report.md
[- tn-solidity-deploy-auditor → solidity-deployment-report.md]

### Reports
- **Full summary**: /reports/solidity-security-scan-summary.md
- **Sentinel report**: /reports/solidity-sentinel-report.md
- **Nemesis report**: /reports/nemesis.md
- **Invariant map**: /reports/invariants.md
- **Gas report**: /reports/gas-report.md
[- **Deployment report**: /reports/solidity-deployment-report.md]

Keep this concise — full details are in the individual reports and the summary file.

Rules

  • Spawn all Phase 2 agents in a single message. Parallel execution is the entire point of this skill. Never spawn them sequentially.
  • Do not duplicate agent work. Each agent handles its own subagent spawning, verification, and report writing. The orchestrator's job is scope detection, agent spawning, consolidation, and presentation.
  • Do not present partial results. Wait for ALL agents to complete before spawning the consolidation agent.
  • Deploy-auditor is conditional. Only spawn when .s.sol files are found in scope. Do not spawn it for projects without deployment scripts.
  • Provide the agent definition path. Each spawned agent needs the path to its agent definition file in this repo so it can read its full instructions.
  • Target path vs repo path. The target path is the Solidity project being analyzed. The repo path is this claude-extensions-personal directory where agent definitions live. Keep these distinct.
  • If an agent fails, report it. If a subagent errors out (e.g., tool not installed, compilation failure), include the failure in the summary rather than silently dropping it.
  • No unverified findings. Each agent handles its own verification internally. The consolidation agent reads verified reports only.

Expected Agent Counts

| Phase | Agents | Notes | | ------------ | ---------- | ----------------------------------------------- | | 2 | 3-4 | Core analysis agents (parallel) | | 2 (internal) | ~15-25 | Subagents spawned by the core agents internally | | 3 | 1 | Consolidation agent | | Total | ~20-30 | Typical full scan |

What This Skill Does NOT Do

  • Does not modify Solidity source code — analysis only
  • Does not deploy or interact with contracts on-chain
  • Does not run forge script or execute transactions
  • Does not replace individual agent runs — use agents directly for focused analysis
  • Does not include STRIDE or DREAD agents — those are telcoin-network specific, not generic Solidity

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.