reference-triggers

A standard process for consulting example or reference files during a coding workflow. It records which file was used, why it was consulted, and the important lessons taken from it.

In plain words
What is it for?
It is for reviewing workflow, command, and reflection examples and documenting the relevant points before continuing.
Why use it?
It makes reference-based decisions easier to trace and reduces the risk of overlooking required examples or instructions.

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/reference-triggers
Clone the repo
git clone --depth 1 https://github.com/kfnzero/mantis-mcp-server

Made for: Cursor.

Per session 931 This file is loaded in full into every session.
When invoked 931 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.00931 $0.00931
Opus 5 $0.00465 $0.00465
Sonnet 5 $0.00186 $0.00186
Haiku 4.5 $0.00093 $0.00093

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

Security

Grade A, and why

reference-triggers 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:

.cursor/rules/Core Implementation/reference-triggers.mdc · 152 lines

How it starts

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

ENHANCED REFERENCE TRIGGERS

TL;DR: Use the standardized 📚 REFERENCE CHECK template when consulting example files. Document key insights extracted from reference files. Mandatory reference points are at the start of each major workflow section.

📚 STANDARDIZED REFERENCE CHECK FORMAT

Each time you need to consult a reference file, use this standardized format:

📚 REFERENCE CHECK:
- CONSULTING: [file name]
- PURPOSE: [specific reason for consulting]
- CRITICAL ELEMENTS: [key items to look for]

Key insights:
- [Key insight 1]
- [Key insight 2]
- [Key insight 3]

✓ Reference consultation complete

📚 KEY EXAMPLE FILES

1. workflow-examples.mdc

Contains essential examples for workflow implementation:

  • Initialization format
  • Documentation setup
  • Task planning structure
  • Section transitions

2. command-examples.mdc

Contains examples for proper command execution:

  • Single command format
  • Command documentation
  • Result reporting
  • Platform-specific adaptations

3. reflection-examples.mdc

Contains examples for structured reflection:

  • "What Went Well" format
  • "Challenges" format
  • "Lessons Learned" format
  • "Improvements for Next Time" format

4. archive-examples.mdc

Contains examples for proper archiving:

  • Archive entry format
  • Cross-linking format
  • Archive cleanup

5. creative-phase-examples.mdc

Contains examples for structured creative phases:

  • Algorithm design creative phases
  • UI design creative phases
  • Architecture planning creative phases
  • Level-specific examples
  • Systematic verification approach

📚 MANDATORY REFERENCE POINTS

At these points in the workflow, you MUST consult the specified reference files:

  1. Start of INITIALIZATION:

    • workflow-examples.mdc
  2. Start of TASK PLANNING:

    • workflow-examples.mdc
  3. Before FIRST COMMAND in IMPLEMENTATION:

    • command-examples.mdc
  4. Start of REFLECTION:

    • reflection-examples.mdc
  5. Start of ARCHIVING:

    • archive-examples.mdc

Read the full file on GitHub · 152 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 · 152 lines · 931 tokens per session scan A a33db606e908

Subscribe to this mod's changes

reference-triggers is a cursor rule published in the GitHub repository kfnzero/mantis-mcp-server (10 stars, last pushed 12mo ago), licensed MIT. It adds 931 tokens to every session, about $0.0047 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.