agentleFS
grantkeegrantkee/claude-extensions/skills/tn-security-eval/SKILL.md

tn-security-eval

Skill2 starsChanged 8 months agoMITView on GitHub

Comprehensive security evaluation for telcoin-network PRs and branches. Orchestrates 10 parallel agents covering consensus safety, state transitions, crypto, DoS, determinism, contract safety, dependency audit, nemesis logic audit, DREAD scoring, and STRIDE classification, with independent verification to eliminate false positives. Trigger on: "security eval", "security audit PR", "is this PR safe", "pre-merge security".

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 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.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If given a PR number: run git diff main...HEAD or gh pr diff <number>

    line 31
  2. Very specific:

    If given a branch: run git diff main...<branch>

    line 32
  3. Distinctive:

    If given specific files: use those directly

    line 33
  4. Distinctive:

    Read all changed files in full plus their direct dependents

    line 34
  5. Distinctive:

    After all 10 agents complete, extract each discrete finding into a canonical structure:

    line 60
  6. Very specific:

    After extracting all structured findings in Phase 3, invoke the findings-verifier agent via the Agent tool to independently verify each …

    line 87
  7. Distinctive:

    All extracted findings in canonical schema (from Phase 3)

    line 90
  8. Very specific:

    Do not present findings to the user before findings-verifier completes.

    line 102

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Evaluation Orchestrator

Comprehensive security evaluation for telcoin-network code changes. Spawns 10 specialized security agents in parallel, each focused on a specific attack surface, then independently verifies findings to eliminate false positives and provides root-cause remediation for confirmed vulnerabilities.

Severity Scale (Blockchain-Calibrated)

LevelDefinitionExamples
CRITICALConsensus break, fund loss, chain halt, or forked stateQuorum miscalculation, determinism violation in state transition, unprotected fund transfer
HIGHSecurity degradation or data corruptionMissing signature verification, unbounded allocation, unsafe key handling
MEDIUMDefense-in-depth gap or reliability issueMissing input validation on network boundary, inadequate error handling in consensus path
LOWCode quality issue with security implicationsInconsistent error types, missing logging in security-relevant paths
INFOObservation or hardening suggestionStyle inconsistency, documentation gap in security-sensitive code

Process

Phase 1: Scope Identification

Determine what code to evaluate:

  • If given a PR number: run git diff main...HEAD or gh pr diff <number>
  • If given a branch: run git diff main...<branch>
  • If given specific files: use those directly
  • Read all changed files in full plus their direct dependents

Phase 2: Spawn Security Agents

Spawn ALL 10 agents in parallel using the Agent tool. Each agent receives:

  1. The list of changed files and their diffs
  2. The full content of changed files

The 10 agents and their focus areas:

AgentFocusSkills to Invoke
tn-consensus-safetyBFT assumptions, quorum logic, vote counting, leader electiontn-harden + tn-threat-model
tn-state-transitionsInvariant violations, partial state updates, rollback safetytn-nemesis + tn-review
tn-crypto-correctnessSignatures, hashing, key management, nonce handlingtn-review (crypto paths)
tn-dos-vectorsResource exhaustion, unbounded allocations, amplificationtn-harden (blocking audit)
tn-determinism-verifierHashMap iteration, SystemTime, thread-dependent ordering, randomnesstn-harden (determinism)
tn-contract-safetyAccess control, reentrancy, accounting, upgrade safetytn-review-contracts
tn-dependency-auditorNew crates, CVE exposure, supply chain, feature flagsCargo.toml diff analysis
tn-nemesis-auditorDeep iterative business logic + state inconsistency cross-analysistn-nemesis
tn-dread-evaluatorAttacker-perspective risk assessment, DREAD scoring, attack surface prioritizationtn-threat-model
tn-stride-threat-modelSTRIDE threat classification: spoofing, tampering, repudiation, info disclosure, DoS, privilege escalationtn-threat-model

Phase 3: Extract Structured Findings

After all 10 agents complete, extract each discrete finding into a canonical structure:

Finding ID: [agent-name]-[N]
Source Agent: [which of the 10]
Severity: CRITICAL / HIGH / MEDIUM / LOW / INFO
Title: [one-line summary]
Location: file_path:line_number
Claim: [standalone factual assertion — what is wrong]
Key Question: [the specific thing a verifier must answer]
Relevant Files: [files needed to verify]
Source: [agent name, e.g., "tn-consensus-safety", "tn-state-transitions"]

Critical: The Claim field contains ONLY the factual assertion (e.g. "function X does not validate input Y"), never the reasoning chain that led to it. This preserves independence for Phase 4 verifiers.

Assign each finding a verification tier:

TierSeveritiesVerification Strategy
Tier 1CRITICAL, HIGHVerified individually — one agent per finding
Tier 2MEDIUMBatched 2-3 per agent, grouped by subsystem
Tier 3LOWBatched 3-5 per agent
SkipINFONo verification — observations, not vulnerability claims

Phase 4: Verify and Present

After extracting all structured findings in Phase 3, invoke the findings-verifier agent via the Agent tool to independently verify each finding, produce remediation, and present the final report.

Pass to the agent:

  1. All extracted findings in canonical schema (from Phase 3)
  2. The evaluation scope context (PR number, branch, or file list)
  3. The full content of all changed files

The findings-verifier agent handles:

  • Independent subagent verification (anti-confirmation bias — verifiers receive only the claim and key question, never the original agent's reasoning)
  • Tiered verification (CRITICAL/HIGH individually, MEDIUM batched 2-3, LOW batched 3-5, INFO skipped)
  • Root-cause remediation with decision tree (clear fix → code, multiple approaches → options, architectural → flag for human)
  • Checking for similar patterns elsewhere in the codebase
  • Updating the report with verification results and proposed fixes
  • Presenting confirmed findings with verification stats

Do not present findings to the user before findings-verifier completes. Unverified findings waste time.

Expected Agent Counts

PhaseAgentsNotes
210Fixed — one per security domain
4 (via findings-verifier)6-12Verification agents, depends on finding count and tiers
4 (re-verify)0-3Low-confidence CRITICAL/HIGH verdicts only
4 (remediation)3-8Confirmed findings only
Total19-33Typical ~24

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.