Interactively guides the design and implementation of custom deterministic orchestrator harnesses. Use when a user wants to build their own pipeline to wrap and run Mantis skills reliably. Don't use for executing the default pipeline directly.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionmantis-pipeline-adapterExecute the skills CLI command in your project's root directory to begin installation:
Fetches mantis-pipeline-adapter 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-pipeline-adapter. Access via /mantis-pipeline-adapter 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-pipeline-adapter |
| description | >- Interactively guides the design and implementation of custom deterministic orchestrator harnesses. Use when a user wants to build their own pipeline to wrap and run Mantis skills reliably. Don't use for executing the default pipeline directly. |
Interactive Pipeline Design Consultant. Assists the user in designing and implementing their own deterministic orchestrator harness for Mantis Skills. Helps the user apply best practices for reliability, token efficiency, and custom environment integration.
/mantis-pipeline-adapterworkspace/.mantis_state.json (to track current loop pass).schema.json (as the canonical pipeline specification reference).workspace/findings/*.json (as the State Store).workspace/learnings.jsonl (to understand memory rotation).Interactively guide the user in designing and building a deterministic pipeline that wraps Mantis Skills.
Follow these guidelines during the consultation:
Use the following guidelines as your technical reference when advising the user.
workspace/findings/*.json) or a database as the single source of truth.
Skills should read from and write to this store. For horizontal scaling,
recommend a centralized database.workspace/learnings.jsonl) must be rotated.
Upon successful completion and verification of the Knowledge Base synthesis
stage, the orchestrator should ensure the archive directory exists (e.g.,
mkdir -p workspace/archive/learnings/) and move
workspace/learnings.jsonl to a numbered archive (e.g.,
workspace/archive/learnings/learnings_pass_${N}_${X}.jsonl where ${N} is
the loop pass and ${X} is a sub-index). If the synthesis fails, the active
queue must be left intact to prevent data loss.graph TD
Harness[Programmatic Harness / Orchestrator] <--> DB[(State Store: Disk/DB)]
subgraph Stages [Decomposed Stages]
KB[KB Architect]
TM[Threat Modeler]
P[Plan]
R[Researcher]
D[Deduplicator]
V[Validator/Review]
C[Critic]
Rep[Reproducer]
Ch[Chainer]
Pat[Patcher]
Cal[Calibrator]
Ref[Reflector]
end
Harness --> KB
Harness --> TM
Harness --> P
Harness --> R
Harness --> D
Harness --> V
Harness --> C
Harness --> Rep
Harness --> Ch
Harness --> Pat
Pat -.->|Re-attack Bypass Loop| Rep
Harness --> Cal
Harness --> Ref
subgraph LLM Pool [Tailored LLMs]
ModelA[Frontier Model: Deep Reasoning]
ModelB[Flash/Lite Model: Fast & Cheap]
ModelC[Alternative Provider: Diversified Logic]
end
KB -.-> ModelA
TM -.-> ModelB
P -.-> ModelB
R -.-> ModelA
R -.-> ModelC
D -.-> ModelB
V -.-> ModelB
C -.-> ModelA
Rep -.-> ModelA
Ch -.-> ModelA
Pat -.-> ModelA
Cal -.-> ModelB
Ref -.-> ModelB
To prevent the LLM from repeating large blocks of text (which increases latency, cost, and the risk of mangling data), use UUIDs as the primary key for all findings.
workspace/findings/<UUID>.json containing the full details (matching the
standard schema in Mantis Researcher).Instead of asking the LLM to read all findings, merge them in context, and write them back, use the following pattern:
Harness Action: Reads all workspace/findings/*.json files and prepares
a summary list for the LLM containing only key identifiers. To align with
the standard schema, map the code_paths array (which uses "file:line"
format) to a simplified summary for the LLM: [ { "id": "UUID", "file": "path", "line": 12, "snippet": "..." } ].
LLM Action: Analyzes the summary and outputs a mapping of duplicates:
{
"primary_uuid_1": ["duplicate_uuid_a", "duplicate_uuid_b"],
"primary_uuid_2": []
}
Harness Action (Deterministic):
code_paths, taking highest severity, concatenating history).workspace/findings/primary_uuid_1.json on disk.mkdir -p workspace/findings/.trash/).workspace/findings/duplicate_uuid_a.json and
workspace/findings/duplicate_uuid_b.json to the trash staging
directory (workspace/findings/.trash/).workspace/findings/<UUID>.json, pass
only the relevant code context and finding description to the LLM.{"valid": true, "reason": "..."}).workspace/findings/<UUID>.json file with the validation status and reason.When validating findings, the agent may need to interact with diverse environments (VMs, physical hardware). Use the Model Context Protocol (MCP) to expose a clean, restricted API.
[Reproducer Agent] <--- MCP ---> [Custom MCP Server] <--- API ---> [Target Env]reboot_vm(), execute_payload().power_cycle_device() (via smart
plug), send_usb_packet().The pipeline can be split into independent services. When scaling horizontally
(e.g., multiple workers running the Reproducer stage in parallel):
Reproducer,
Patcher), spawn multiple parallel agents attempting to solve the exact
same finding using diverse logic paths. For the Reproducer stage, prune
all other trajectories as soon as one worker succeeds to save compute costs
while escaping LLM "give up" loops. For the Patcher stage, wait for all
patches to be generated and tested, then evaluate the successful ones to
select the most minimal, idiomatic, and correct fix.Match task complexity with the appropriate model tier:
Emphasize that using cheaper models for utility stages (like deduplication or calibration) must be validated with empirical evaluations against a benchmark dataset to ensure quality is not degraded.
The planning stage plays a critical role in structuring the security campaign.
The strategist (/mantis-plan) generates workspace/plan.json to define
targeted investigations, context pointers, and specific questions for the
auditor. The researcher (/mantis-researcher) reads workspace/plan.json at
startup to guide its sweep. By decoupling strategy and execution via this
structured contract, the orchestrator can easily direct subagents, parallelize
sweeps, and maintain historical context across pipeline runs without repeating
work.
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.
mantis-pipeline-adapter has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: mantis-pipeline-adapter is the kind of skill you can hand to a new teammate without a long onboarding doc.
Useful defaults in mantis-pipeline-adapter — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend mantis-pipeline-adapter for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in mantis-pipeline-adapter — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Registry listing for mantis-pipeline-adapter matched our evaluation — installs cleanly and behaves as described in the markdown.
mantis-pipeline-adapter has been reliable in day-to-day use. Documentation quality is above average for community skills.
mantis-pipeline-adapter fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
mantis-pipeline-adapter reduced setup friction for our internal harness; good balance of opinion and flexibility.
Solid pick for teams standardizing on skills: mantis-pipeline-adapter is focused, and the summary matches what you get after install.
showing 1-10 of 46