nemesis-scan
Skill2 starsChanged 8 months agoMITView on GitHub
Deep combined audit using iterative Feynman + State Inconsistency analysis across 8 phases with specialized agents. Language-agnostic. Dynamically discovers domain-specific patterns via Phase -1 before the main pipeline. Spawns nemesis-orchestrator which coordinates domain discovery, recon, mapping, interrogation, state checking, feedback loop, journey tracing, verification, and reporting. Triggers on /nemesis-scan or deep combined audit.
In this repository36 other files it gives its agents.
- agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- create-agentSkill
- doc-writerSkill
- feynman-auditorSkill
- gh-issueSkill
- human-writingSkill
- mermaidSkill
- nemesis-ogSkill
- outline-codeSkill
- report-to-pr-commentsSkill
- skill-creatorSkill
- solidity-security-scanSkill
- state-inconsistency-auditorSkill
- telx-reviewSkill
- tn-add-benchmarkSkill
- tn-bug-scanSkill
- tn-debug-e2eSkill
- tn-domain-consensusSkill
- tn-domain-contractsSkill
- tn-domain-epochSkill
- tn-domain-executionSkill
- tn-domain-networkingSkill
- tn-domain-storageSkill
- tn-domain-workerSkill
- tn-hardenSkill
- tn-nemesis-scanSkill
- tn-review-contractsSkill
- tn-reviewSkill
- tn-rust-engineerSkill
- tn-rust-skillsSkill
- tn-security-evalSkill
- tn-threat-modelSkill
- tn-write-crate-docSkill
- tn-write-e2eSkill
- tn-write-proptestSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Fresh flag: If --fresh is present, skip cache check and force domain discovery.
- Distinctive: line 34
Create the output directory:
- Very specific: line 47
Read the header of .audit/domain-patterns.md if it exists.
- Distinctive: line 99
After the orchestrator returns, relay its summary to the user with paths to the report files.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Nemesis Scan
Deep combined Feynman + State Inconsistency audit orchestrated across 8 specialized agents, with dynamic domain pattern discovery.
Activation
- User says
/nemesis-scanornemesis scanordeep combined audit - User wants maximum-depth business logic + state inconsistency coverage
Invocation Format
/nemesis-scan [target] [optional: --hints "domain description"] [optional: --fresh]Examples:
/nemesis-scan src/contracts/— audit contracts, auto-discover domain/nemesis-scan src/consensus/ --hints "DAG-based BFT consensus"— audit with domain hints/nemesis-scan src/ --fresh— force domain pattern regeneration
Execution
- Determine the target scope from the user's request (files, directories, or modules to audit)
- Parse optional arguments:
- Domain hints: Extract text after
--hints(quoted string). If absent, set to"none". - Fresh flag: If
--freshis present, skip cache check and force domain discovery.
- Domain hints: Extract text after
- Create the output directory:
mkdir -p .audit/nemesis-scan/research .audit/findings Cache check — determine if domain discovery is needed:
# Check if cached domain-patterns exist if [ -f .audit/domain-patterns.md ]; then head -5 .audit/domain-patterns.md fiRead the header of
.audit/domain-patterns.mdif it exists. The cache is valid when ALL of:- The file exists
- The
_Git hash:_line matches currentgit rev-parse --short HEAD - The
_Target scope:_line matches the requested scope - The
_User hints:_line matches the provided hints - The
--freshflag was NOT passed
Set
discovery_needed = trueif cache is invalid or missing. Setdiscovery_needed = falseif cache is valid.- Resolve the path to this skill's
references/directory for agent prompts. - Spawn the
nemesis-orchestratoragent:
Agent({
subagent_type: "nemesis-orchestrator",
description: "Run nemesis-scan pipeline",
prompt: "Run the full nemesis-scan pipeline on the following target scope:
Target: [target files/directories]
Domain hints: [user hints or 'none']
Discovery needed: [true/false]
References are at: [absolute path to skills/nemesis-scan/references/]
All agents MUST read core-rules.md and language-adaptation.md.
[If discovery_needed is true:]
Run Phase -1 (Domain Discovery) FIRST:
- Phase -1a: Spawn nemesis-strategy with target scope, hints, and research-guide.md
- Phase -1b: Spawn parallel nemesis-researcher agents (one per research topic from strategy plan)
- Phase -1c: Compile fragments into .audit/domain-patterns.md with cache metadata
[If discovery_needed is false:]
Skip Phase -1. Domain patterns are cached at .audit/domain-patterns.md
Then execute all 8 phases in order, with all agents reading .audit/domain-patterns.md for domain context:
- Phase 0+1 (parallel): nemesis-recon + nemesis-mapper
- Phase 2: nemesis-feynman (full mode)
- Phase 3: nemesis-state-check (full mode)
- Phase 4: feedback loop (max 3 iterations)
- Phase 5: nemesis-journey
- Phase 6: nemesis-verifier
- Phase 7: nemesis-reporter
Write phase outputs to .audit/nemesis-scan/
Write final reports to .audit/findings/nemesis-scan-verified.md and .audit/findings/nemesis-scan-raw.md
Present a concise summary when complete."
})- After the orchestrator returns, relay its summary to the user with paths to the report files.
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
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.

