workflow

A task workflow that chooses one of four levels, from a quick bug fix to a complex system change. More complicated work receives more planning, documentation, and checkpoints.

In plain words
What is it for?
It helps structure bug fixes, small enhancements, complete features, and architectural or system-level changes.
Why use it?
It prevents small fixes from receiving unnecessary process while ensuring large changes are considered in enough detail.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/kfnzero/mantis-mcp-server/workflow
Clone the repo
git clone --depth 1 https://github.com/kfnzero/mantis-mcp-server

Made for: Cursor.

Per session 3,450 This file is loaded in full into every session.
When invoked 3,450 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03450 $0.03450
Opus 5 $0.01725 $0.01725
Sonnet 5 $0.00690 $0.00690
Haiku 4.5 $0.00345 $0.00345

Measured 2d ago against content hash ea8a260cba11, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • workflow — 100% identical, 0 lines differ
.cursor/rules/Core Implementation/workflow.mdc · 489 lines

How it starts

The opening of the file, as written. The whole thing — 489 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ADAPTIVE STRUCTURED WORKFLOW PROTOCOL

TL;DR: Follow a workflow process that scales based on task complexity. Level 1 (Bug Fix) uses a streamlined process, while Level 4 (Complex System) uses the complete formal process with all checkpoints.

🔧 TASK COMPLEXITY LEVELS

The workflow scales across four complexity levels:

  1. Level 1: Quick Bug Fix

    • Simple errors, UI glitches, minor issues
    • Streamlined process with minimal documentation
    • Focus on rapid resolution and targeted updates
  2. Level 2: Simple Enhancement

    • Small features, minor improvements
    • Basic process with essential documentation
    • Focus on clean implementation and clear documentation
  3. Level 3: Intermediate Feature

    • Complete features, significant changes
    • Standard process with full section tracking
    • Focus on comprehensive planning and documentation
  4. Level 4: Complex System

    • Major systems, architectural changes
    • Full formal process with detailed checkpoints
    • Focus on architectural integrity and complete documentation

🚨 SECTION TRANSITION MARKERS

These visual markers indicate workflow section transitions (Level 3-4 only):

======== INITIALIZATION COMPLETE ⟹ STARTING DOCUMENTATION SETUP ========

======== DOCUMENTATION SETUP COMPLETE ⟹ STARTING TASK PLANNING ========

======== TASK PLANNING COMPLETE ⟹ STARTING CREATIVE PHASES ========

======== CREATIVE PHASES COMPLETE ⟹ STARTING IMPLEMENTATION ========

======== IMPLEMENTATION COMPLETE ⟹ STARTING REFLECTION ========

======== REFLECTION COMPLETE ⟹ STARTING ARCHIVING ========

======== ARCHIVING COMPLETE ⟹ TASK FINISHED ========

🎨 CREATIVE PHASE MARKERS

For tasks requiring extended creative work, use these prominent markers to create a dedicated thinking space:

🎨🎨🎨 ENTERING CREATIVE PHASE: [DESIGN/ALGORITHM/ARCHITECTURE] 🎨🎨🎨
Focus: [Specific focus area]
Objective: [What you aim to accomplish]
Constraints: [Any constraints to consider]

Breaking down the problem:
- [Component 1]
- [Component 2]
- [Component 3]

[Structured creative exploration with systematic analysis]

🎨 CREATIVE CHECKPOINT: [Milestone reached]
- Progress: [Brief progress description]
- Decisions made:
  - [Decision 1]
  - [Decision 2]
- Verification:
  - [Verify solution addresses requirements]
  - [Verify compliance with constraints]
  - [Verify consistency with existing system]
- Open questions:
  - [Question 1]
  - [Question 2]
- Next creative milestone: [Description]

🎨🎨🎨 EXITING CREATIVE PHASE - RETURNING TO TASK TRACKING 🎨🎨🎨

🔄 CREATIVE PHASE SUMMARY:
- Completed: [Brief description of creative work]
- Key decisions: [Important decisions made]
- Next steps: [Follow-up implementation tasks]
- Documentation: [Where decisions were documented]
- Verification: [Confirmation that solution meets requirements and constraints]

Read the full file on GitHub · 489 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 489 lines · 3,450 tokens per session scan A ea8a260cba11

Subscribe to this mod's changes

workflow is a cursor rule published in the GitHub repository kfnzero/mantis-mcp-server (10 stars, last pushed 12mo ago), licensed MIT. It adds 3,450 tokens to every session, about $0.0173 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.