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.
Works with
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:
Fetches 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:
Restart Cursor to activate mantis-architecture. Access via /mantis-architecture 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-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.
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.
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