imports

A set of coding-workflow rules that reacts to PLAN, ACT, EVAL, and AUTO keywords and calls specified tools. TDD means test-driven development: write a failing test, make it pass, then improve the code.

In plain words
What is it for?
Use it to trigger planning modes, persist decisions, analyse tasks, create quality checklists, retrieve project settings, and follow development rules.
Why use it?
It standardises how tasks are planned, executed, evaluated, documented, and checked against project conventions.

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/jeremydev87/codingbuddy/imports
Clone the repo
git clone --depth 1 https://github.com/JeremyDev87/codingbuddy

Made for: Cursor.

Per session 590 This file is loaded in full into every session.
When invoked 590 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.00590 $0.00590
Opus 5 $0.00295 $0.00295
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

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

Security

Grade A, and why

imports 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 yesterday.

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.

.cursor/rules/imports.mdc · 65 lines

How it starts

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

codingbuddy Rules

Workflow

  • PLANACTPLAN (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 → brainstormingwriting-plans
  • TDD/test → test-driven-development
  • Plan execution → executing-plans

Detailed Rules

All details in Single Source of Truth:

Read the full file on GitHub · 65 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. yesterday First seen · 65 lines · 590 tokens per session scan A cb2c1f07889f

Subscribe to this mod's changes

imports is a cursor rule published in the GitHub repository JeremyDev87/codingbuddy (31 stars, last pushed 4mo ago), licensed MIT. It adds 590 tokens to every session, about $0.0030 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-30.