agentleFS
Catalyst-Forge-LLCCatalyst-Forge-LLC/ember-dossier/.cursor/rules/forgetrail-lessons-gate.mdc

ember-dossier / rules

Cursor rule0 starsChanged 47 days agoMITView on GitHub

Before substantial feature work, run ForgeTrail lessons + anti-patterns (MCP) and fold findings into the plan

The file

We split this forgetrail-lessons-gate.mdc into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run getAntiPatterns once and searchLessons (one or more queries) when any of these is true:

    line 12
  2. Very specific:

    Call getAntiPatterns (no args).

    line 22
  3. Very specific:

    Call searchLessons with 2–4 short keyword queries.

    line 23
  4. Distinctive:

    Do not mention MCP, tool names, or “lessons gate” in UI copy or user-facing summaries unless they ask how the workflow is wired up.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
forgetrail-lessons-gate.mdc
---
description: Before substantial feature work, run ForgeTrail lessons + anti-patterns (MCP) and fold findings into the plan
alwaysApply: true
---

# ForgeTrail lessons gate (when + how)

This complements **`forgetrail-lessons-mcp.mdc`** (tool details + globs) and **`forgetrail-phase-status.mdc`** (phase footer).

## When to run the gate (do it early, before large edits)

Run **`getAntiPatterns`** once and **`searchLessons`** (one or more queries) when **any** of these is true:

- You expect to touch **≥3 files**, or **≥2** top-level areas (e.g. skill + site + docs).
- **New or changed** user-facing flow, skill contract, or site copy.
- The user asks for a **plan**, **feature**, **refactor**, or **milestone** that clearly spans multiple files.

**Skip the gate** for: single-file typos; renames with no behavior change; or when the user explicitly asks to skip.

## How to run it (order)

1. Call **`getAntiPatterns`** (no args). Skim for items that apply.
2. Call **`searchLessons`** with **2–4 short keyword queries**.
3. **Fold in before coding:** 3–6 bullets of what you will **do** or **avoid**. Do **not** paste full MCP dumps unless the user asks.

## Product-facing users

Do not mention MCP, tool names, or “lessons gate” in UI copy or user-facing summaries unless they ask how the workflow is wired up.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.