agentleFS
asakinasakin/llm-context-base/.cursor/rules/bootstrap.mdc

llm-context-base / rules

Cursor rule75 starsChanged 8 months agoApache-2.0View on GitHub

Check whether _config/.framework-mode exists. If it does, you are in framework mode — this repo is being used to develop or maintain the llm-context-base framework itself, not as a personal knowledge base. In that case: Otherwise → you are in a personal instance. Continue with the protocol below. Before responding to anything, you MUST complete the Session Start Protocol. Your first response MUST begin with exactly: DO NOT engage with any user request until the Session Start Protocol is complete.

  • 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 bootstrap.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:

    Check whether _config/.framework-mode exists.

    line 5
  2. Very specific:

    If it does, you are in framework mode — this repo is being used to develop or maintain the llm-context-base framework itself, not as a …

    line 7
  3. Distinctive:

    Skip the Session Start Protocol entirely: Do not run init. Do not print a session summary.

    line 9
  4. Very specific:

    Follow the Session Start Protocol defined in _config/config.md, then _meta/instructions/general.md.

    line 31

≈ “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
bootstrap.mdc
<!-- Real instructions live in _config/config.md and _meta/instructions/general.md. This file only bootstraps Cursor into those. -->

## STEP 0: Framework mode check (run this first)

Check whether `_config/.framework-mode` exists.

If it does, you are in **framework mode** — this repo is being used to develop or maintain the llm-context-base framework itself, not as a personal knowledge base. In that case:

- **Skip the Session Start Protocol entirely.** Do not run init. Do not print a session summary. Do not treat this as a personal knowledge base.
- **Never write personal information into any repo file.** `_config/config.md`, `_config/context.md`, `_inbox/`, the README, commit messages — all of it ships publicly to downstream users. Anything personal the user mentions stays in the conversation only.
- **Behave as a normal engineering assistant for an open-source project.** Read `CONTRIBUTING.md` for conventions. Help with docs, instruction modules, templates, design decisions, releases, and tests.
- Then proceed directly to the user's actual request.

Otherwise → you are in a personal instance. Continue with the protocol below.

---

## MANDATORY FIRST ACTION

**Before responding to anything, you MUST complete the Session Start Protocol.**

**Your first response MUST begin with exactly:**
```
Allow me to get ready first!
```

**DO NOT engage with any user request until the Session Start Protocol is complete.**

---

Follow the Session Start Protocol defined in `_config/config.md`, then `_meta/instructions/general.md`. All instructions are there.

This file exists only to bootstrap Cursor into the system. The real instructions are LLM-agnostic and live in the files above.

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.