agentleFS
JeremyDev87JeremyDev87/codingbuddy/.cursor/rules/imports.mdc

codingbuddy / rules

Cursor rule31 starsChanged 8 months agoMITView on GitHub

codingbuddy common rules - applied to all conversations

  • 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 repository9 other files it gives its agents.

The file

We split this imports.mdc into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    EVAL: only on explicit request

    line 12
  2. Very specific:

    When PLAN, ACT, EVAL, AUTO keywords detected → Immediately call parse_mode MCP tool

    line 17
  3. Very specific:

    After completing work in any mode → call update_context MCP tool to persist decisions and notes.

    line 21
  4. Very specific:

    Use get_project_config MCP tool to retrieve project-specific settings (language, tech stack, conventions).

    line 39
  5. Distinctive:

    When a skill might apply to the user's task:

    line 43
  6. Very specific:

    Call recommend_skills with the user's prompt

    line 44
  7. Very specific:

    If recommendations returned, call get_skill with the top skillName

    line 45
  8. Distinctive:

    Follow the loaded skill instructions

    line 46
  9. Distinctive:

    All details in Single Source of Truth:

    line 56

≈ “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
imports.mdc
---
description: codingbuddy common rules - applied to all conversations
globs:
alwaysApply: true
---

# codingbuddy Rules

## Workflow

- **PLAN** → **ACT** → **PLAN** (default flow)
- **EVAL** only on explicit request
- **AUTO** for autonomous PLAN → ACT → EVAL cycle until quality achieved

## Required Actions

When `PLAN`, `ACT`, `EVAL`, `AUTO` keywords detected → **Immediately** call `parse_mode` MCP tool

## Context Persistence

After completing work in any mode → call `update_context` MCP tool to persist decisions and notes.

## Quality Tools

- `analyze_task` — Pre-planning task analysis with risk assessment
- `generate_checklist` — Contextual checklists for security, accessibility, performance
- `search_rules` — Search project rules and guidelines
- `get_code_conventions` — Get code conventions and style guide

## Core Principles

- TDD: Red → Green → Refactor
- Test coverage 90%+
- TypeScript strict (no `any`)
- Server Components first

## Project Config

Use `get_project_config` MCP tool to retrieve project-specific settings (language, tech stack, conventions).

## Skills

When a skill might apply to the user's task:
1. Call `recommend_skills` with the user's prompt
2. If recommendations returned, call `get_skill` with the top skillName
3. Follow the loaded skill instructions

Key skill triggers:
- Bug/error/debug → `systematic-debugging`
- New feature/build → `brainstorming` → `writing-plans`
- TDD/test → `test-driven-development`
- Plan execution → `executing-plans`

## Detailed Rules

All details in Single Source of Truth:

- [`packages/rules/.ai-rules/rules/augmented-coding.md`](../../packages/rules/.ai-rules/rules/augmented-coding.md)
- [`packages/rules/.ai-rules/rules/clarification-guide.md`](../../packages/rules/.ai-rules/rules/clarification-guide.md)
- [`packages/rules/.ai-rules/rules/core.md`](../../packages/rules/.ai-rules/rules/core.md)
- [`packages/rules/.ai-rules/rules/parallel-execution.md`](../../packages/rules/.ai-rules/rules/parallel-execution.md)
- [`packages/rules/.ai-rules/rules/project.md`](../../packages/rules/.ai-rules/rules/project.md)
- [`packages/rules/.ai-rules/rules/structured-reasoning-guide.md`](../../packages/rules/.ai-rules/rules/structured-reasoning-guide.md)
- [`packages/rules/.ai-rules/agents/README.md`](../../packages/rules/.ai-rules/agents/README.md)

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.