Formulates a targeted defensive security reviewing plan based on the active threat model and historical learnings. Use when starting a security review campaign to map the codebase boundaries and generate a roadmap (workspace/plan.json). Don't use for executing code reviews, writing test scripts, or patching code.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionmantis-planExecute the skills CLI command in your project's root directory to begin installation:
Fetches mantis-plan from google/mantis and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate mantis-plan. Access via /mantis-plan in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
307
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
307
stars
| name | mantis-plan |
| description | >- Formulates a targeted defensive security reviewing plan based on the active threat model and historical learnings. Use when starting a security review campaign to map the codebase boundaries and generate a roadmap (workspace/plan.json). Don't use for executing code reviews, writing test scripts, or patching code. |
Security Architect. Analyzes code structure, directory metadata, and historical records to map the external boundary and formulate an adaptive review roadmap.
/mantis-planworkspace/.mantis_state.json (to track current loop pass).workspace/kb/THREAT_MODEL.md (if exists).workspace/kb/index.md (checks existence to determine Mode A vs B).mantis-summary.md (if available).workspace/kb/index.md, workspace/kb/THREAT_MODEL.md,
workspace/archive/.repro_attempts.json (if exists), VCS diffs or file
timestamps/hashes.workspace/plan.json.workspace/archive/findings_pass_K/ or
workspace/archive/loopK_findings/ (where K is the pass it was archived
in) to workspace/findings/ (preserving their original UUID filenames).workspace/plan.json directly. In Mode B, consults
.repro_attempts.json and skips rescheduling already processed findings
unless the target files have been modified in the current loop.Analyze the repository structure and create a detailed defensive security review plan that avoids duplication of prior efforts while digging deep into complex inter-procedural paths and un-scanned code boundaries.
Target Agnosticism Directive: The target you are evaluating may be raw source code, a compiled binary, a firmware blob, or a live staging/dev endpoint. Ground your planning in whatever format the target is currently in. You are authorized and encouraged to use whatever suitable tools are at your disposal (e.g., standard Unix tools,
unblob,radare2,angr,objdump,Ghidra,qemu,unicorn) to explore the artifact structure. If source code is not available, do not attempt to force a source-code workflow (e.g. searching for.cor.pyfiles); adapt and 'do what works' for the artifact at hand.
Execute the planning stage as follows:
Check for Threat Model Context: Check the knowledge base directory for a
workspace/kb/THREAT_MODEL.md file. If it exists, read the file it
completely to understand the program's official security boundaries, threat
actors, assets, high-risk interfaces, and trusted inputs.
Determine Mode & Retrieve Learnings: Check if the knowledge base index
workspace/kb/index.md exists.
MODE A: First-Pass Exhaustive Mode (No workspace/kb/index.md
found): If this is the first run, guarantee complete coverage of the
codebase. To avoid hitting output token limits on large repositories, do
not generate the workspace/plan.json manually in your text response.
Instead, execute a shell command to run a short script in your preferred
language that:
find or os.walk to crawl all production directories. If a
mantis-summary.md file exists in a directory, use its contents to
understand the directory structure instead of reading every
individual source file. Otherwise, crawl all production source code
files (e.g., .c, .cpp, .py, .js, .go, .rs, .java).node_modules, .git, tests/).workspace/plan.json
schema and writes it directly to disk. Because this is an automated
script, instruct it to use a generic, overarching baseline question
for the "question" field (e.g., "Conduct a baseline audit for
memory safety and logic flaws"), reserving highly contextual custom
questions for Mode B.MODE B: Strategic Learning Mode (workspace/kb/index.md exists):
Read workspace/kb/index.md and workspace/kb/THREAT_MODEL.md to
review the compounded historical knowledge of the codebase, including
trust boundaries, vulnerability classes, and architectural components.
Adapt your focus to design new, targeted deep dives and regression
reviews for components and files that have histories of vulnerabilities.
You may generate the workspace/plan.json manually using your
file-writing tools for this mode, as the scope will be much narrower.
Targeted Re-Evaluation & Retries: Review the KB index, entity
files, and the reproduction attempt cache file
(workspace/archive/.repro_attempts.json if it exists). You must
identify findings that need re-evaluation or retries:
Schedule for Research: For findings in the archive marked
"NEEDS_RESEARCH", schedule a targeted investigation in
workspace/plan.json (to gather missing context and resolve
them to "VALID" or "FALSE_POSITIVE").
Copy for Retry (Bypass Research): For findings in the
archive marked "VALID" or "PROVISIONALLY_VALID" that are
eligible for retry, do not schedule them in
workspace/plan.json. Instead, copy the finding JSON files
directly from the archive (e.g.,
workspace/archive/findings_pass_K/<id>.json or
workspace/archive/loopK_findings/<id>.json, where K is the
pass it was archived in) back to
workspace/findings/<id>.json (preserving their UUIDs). A
finding is eligible for retry if:
repro_status) is
"not_attempted" (or missing), OR"failed_to_reproduce") but
has had fewer than 2 total reproduction attempts (check
attempt count in workspace/archive/.repro_attempts.json
using the stable_key), ORpatch_status is
"VERIFICATION_FAILED" or "ERROR")."status" is
"FALSE_POSITIVE", or "patch_status" is
"VERIFIED_SECURE", or "repro_status" is "reproduced"
(unless patch failed as above), or those that have reached
the 2-attempt limit in the cache, unless the target file has
been modified in the current loop (VCS diff shows changes).Context Injection (kb_references): For each investigation you
plan, you must determine which files in the workspace/kb/
directory (e.g., workspace/kb/entities/auth_module.md or
workspace/kb/vulnerabilities/CWE-79.md) provide necessary context
for the researcher. Include the exact file paths to these markdown
files in the "kb_references" array for that investigation. This
shifts the burden of context-gathering off the researcher.
Exploratory/Unconstrained Investigations (Low Probability): With
a low probability (e.g., a 15-20% chance per planning pass), include
an exploratory investigation in the plan. Select a component or
directory that the threat model currently marks as safe, low-risk,
or out of scope, or a component that has not received recent
scrutiny. The question for this investigation must explicitly
instruct the researcher to perform an unconstrained, adversarial
sweep, ignoring all existing safety assumptions and trust boundary
definitions in workspace/kb/THREAT_MODEL.md. It should instruct
the agent to assume boundaries can be violated and hunt for novel
bypasses, logic flaws, or memory corruptions from scratch. Token
Optimization: Whether using a script (Mode A) or your file-writing
tools (Mode B), write the plan directly to disk and do not print the
JSON contents in your chat response.
Schema Enforcement: Regardless of the mode, the final
workspace/plan.json file written to disk should match the following schema
to ensure downstream auditing agents can parse it correctly:
{
"investigations": [
{
"title": "Exhaustive Review: [relative_file_path]",
"target_files": ["[relative_file_path_1]", "[relative_file_path_2]"],
"kb_references": ["workspace/kb/entities/auth_module.md", "workspace/kb/vulnerabilities/CWE-79.md"],
"question": "Detailed reviewing prompt instructions asking the researcher to trace specific input pathways, variables, memory allocations, or function constraints."
}
]
}
Ensure workspace/plan.json is successfully written. When you have finished,
notify the user.
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Solid pick for teams standardizing on skills: mantis-plan is focused, and the summary matches what you get after install.
Registry listing for mantis-plan matched our evaluation — installs cleanly and behaves as described in the markdown.
mantis-plan has been reliable in day-to-day use. Documentation quality is above average for community skills.
I recommend mantis-plan for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
I recommend mantis-plan for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Solid pick for teams standardizing on skills: mantis-plan is focused, and the summary matches what you get after install.
Solid pick for teams standardizing on skills: mantis-plan is focused, and the summary matches what you get after install.
I recommend mantis-plan for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
mantis-plan reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: mantis-plan is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 45