agentleFS
EXboysEXboys/skilllite/.cursor/rules/spec-injection-index.mdc

skilllite / rules

Cursor rule170 starsChanged 8 months agoMITView on GitHub

Auto-select and inject project specs by task type

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this spec-injection-index.mdc into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Before implementation, load spec/README.md and choose injected specs using its mapping and deterministic rules.

    line 10
  2. Distinctive:

    Follow all MUST / MUST NOT / CHECKLIST items in each injected spec.

    line 19
  3. Distinctive:

    If multiple mappings match, inject all matched specs.

    line 20
  4. Very specific:

    If user-visible behavior, env vars, commands, architecture docs, or release matrix change, include spec/docs-sync.md.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 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
spec-injection-index.mdc
---
description: Auto-select and inject project specs by task type
alwaysApply: true
---

# Spec Injection Router

`spec/` + `tasks/` apply to **developing this repo**, not to end-user or shipped-app runtime configuration (see **Repository scope** in `spec/README.md`).

Before implementation, load `spec/README.md` and choose injected specs using its mapping and deterministic rules.

## Required Workflow

1. **Always** inject `spec/verification-integrity.md` first — this is the highest-priority spec and applies unconditionally.
2. **Always** inject `spec/task-artifact-language.md` for task execution records (`tasks/TASK-.../*`).
3. Determine task type:
   - `architecture`, `security`, `sandbox`, `agent`, `commands`, `mcp`, `python-sdk`, `docs-only`, or `mixed`.
4. Build `[Injected Specs]` from `spec/README.md`.
5. Follow all MUST / MUST NOT / CHECKLIST items in each injected spec.
6. If multiple mappings match, inject all matched specs.
7. For any Rust code change, always include `spec/rust-conventions.md` and `spec/testing-policy.md`.
8. If user-visible behavior, env vars, commands, architecture docs, or release matrix change, include `spec/docs-sync.md`.

## Output Convention

At task start, explicitly declare:

```text
[Injected Specs]
- spec/<file-a>.md
- spec/<file-b>.md
...
```

At task end, confirm:

- `spec/verification-integrity.md` checklist was completed (anti-hallucination, anti-false-positive),
- which specs were injected,
- which checklists were completed,
- which verification commands were run (with actual output, not model assertions).

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.