imports

imports is a cursor rule for Cursor from JeremyDev87/codingbuddy. It costs 590 tokens per session, scanned A, original, MIT.

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

Written for Cursor: installed under .cursor/.

Good fit Use it to trigger planning modes, persist decisions, analyse tasks, create quality checklists, retrieve project settings, and follow development rules.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/jeremydev87/codingbuddy/imports
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.

Clone the repo
git clone --depth 1 https://github.com/JeremyDev87/codingbuddy

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for imports

README.md
[![agentmods](https://agentmods.dev/badge/rules/jeremydev87/codingbuddy/imports/github.svg)](https://agentmods.dev/rules/jeremydev87/codingbuddy/imports)
Your own site
<a href="https://agentmods.dev/rules/jeremydev87/codingbuddy/imports"><img src="https://agentmods.dev/badge/rules/jeremydev87/codingbuddy/imports/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for imports

Your own site · 80×15
<a href="https://agentmods.dev/rules/jeremydev87/codingbuddy/imports"><img src="https://agentmods.dev/badge/rules/jeremydev87/codingbuddy/imports.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00590 $0.00590
Opus 5.5 $0.00236 $0.00236
Sonnet 5.5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured 1mo ago against content hash cb2c1f07889f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

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

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

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. 1mo ago 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 6mo ago), licensed MIT. It adds 590 tokens to every session, about $0.0024 per session on Opus 5.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.