Synthesizes raw learnings and codebase analysis into an interlinked Markdown Knowledge Base (KB). Use at the beginning of a loop to build or update architecture.md, entities, and vulnerabilities. Don't use for generating threat models or formulating execution plans.
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
Time estimate: 15-45 minutes depending on use case complexity
Prerequisites
Submit your Claude Code skill and start earning
epx add google/mantis/mantis-architectureCompatible with
Supported agents
| name | mantis-architecture |
| description | >- Synthesizes raw learnings and codebase analysis into an interlinked Markdown Knowledge Base (KB). Use at the beginning of a loop to build or update architecture.md, entities, and vulnerabilities. Don't use for generating threat models or formulating execution plans. |
Knowledge Base Synthesizer. Translates ephemeral insights from the learnings
queue (workspace/learnings.jsonl) and structural analysis of the codebase into
a canonical, interlinked Markdown Knowledge Base (workspace/kb/).
/mantis-architectureworkspace/learnings.jsonl (raw insights from the current round).workspace/historical_learnings.jsonl (optional, past vulnerability
metadata).workspace/kb/ (to validate/decay check).workspace/.mantis_state.json (to retrieve pass count).workspace/kb/ (architecture.md,
entities/[component_name].md, vulnerabilities/[CWE-ID].md,
index.md).workspace/learnings.jsonl to
workspace/archive/learnings/learnings_pass_${N}_${X}.jsonl.workspace/learnings.jsonl must exist.workspace/learnings.jsonl to archive only after
programmatically verifying all KB Markdown updates were written
successfully. KB files are overwritten in-place.Analyze the codebase and pending learnings to construct a permanent, Markdown-based memory for future agents.
Execute the architecture stage as follows:
Read the Inbox (workspace/learnings.jsonl and
workspace/historical_learnings.jsonl):
workspace/learnings.jsonl (and
workspace/historical_learnings.jsonl if it exists). Extract all
trajectory insights, discovered vulnerabilities, viable crash paths, and
verified patches.Analyze Source Code Boundaries:
Build or Update the Knowledge Base (KB):
Create or update files in the workspace/kb/ directory using standard
Markdown. Follow these strict paths:
workspace/kb/architecture.md: High-level data flows, zone
definitions, system design, and overall availability/uptime
requirements (if documented or inferable from configuration like
systemd, kubernetes, or load balancers).workspace/kb/entities/[component_name].md: Specific definitions
for components (e.g., auth_module.md). Must include links to
associated vulnerability classes and document known constraints
(e.g., "This module sanitizes input X"). Document the component's
criticality and availability requirements (classify as CRITICAL,
STANDARD, or LOW_CRITICALITY if applicable). Incorporate trajectory
insights here.workspace/kb/vulnerabilities/[CWE-ID_or_BugClass].md: Descriptions
of bug classes (e.g., CWE-79.md or Memory-Corruption.md) that
have been historically relevant to this codebase, including examples
of what not to do.workspace/kb/index.md: A root catalog containing links and 1-line
summaries to every file created above. This is the map the Planner
will read.Important Formatting Rules: Use relative links to cross-reference
entities and vulnerabilities (e.g., [Auth Module](entities/auth_module.md)). Ensure all markdown files are
concise and focused on actionable security context.
Validate and Decay Knowledge (Drift Prevention):
workspace/kb/entities/ against the live source code.Transactional Inbox Clearing & Archiving:
workspace/learnings.jsonl to the archive directory:
mkdir -p workspace/archive/learnings/).N by reading "pass_number" from
workspace/.mantis_state.json. If missing or invalid, scan
workspace/archive/ for folders matching findings_pass_N or
loopN_findings and resolve N to max_found + 1, defaulting to 1
if no archives exist.X by counting existing files matching
learnings_pass_${N}_*.jsonl in workspace/archive/learnings/ and
adding 1.mv workspace/learnings.jsonl workspace/archive/learnings/learnings_pass_${N}_${X}.jsonl.workspace/learnings.jsonl
intact in its original location to ensure no data is lost.When complete, notify the user.
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionmantis-architectureExecute the skills CLI command in your project's root directory to begin installation:
epx add google/mantis/mantis-architectureFetches mantis-architecture 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:
.cursor/skills/mantis-architecture
Restart Cursor to activate mantis-architecture. Access via /mantis-architecturein your agent's command palette.
Learn more:View source on GitHubSkills CLI docsAbout CursorWhat are agent skills?
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.
mantis-review
google/mantis · security · same repo
mantis-chain
google/mantis · security · same repo
mantis-patch
google/mantis · security · same repo
mantis-calibrate
google/mantis · security · same repo
mantis-report
google/mantis · security · same repo
mantis-researcher
google/mantis · security · same repo
I recommend mantis-architecture for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Registry listing for mantis-architecture matched our evaluation — installs cleanly and behaves as described in the markdown.
mantis-architecture has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: mantis-architecture is the kind of skill you can hand to a new teammate without a long onboarding doc.
Useful defaults in mantis-architecture — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend mantis-architecture for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
mantis-architecture fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
I recommend mantis-architecture for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in mantis-architecture — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
We added mantis-architecture from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 70