cursorrules

A set of project rules for JavaScript or TypeScript code style. It requires ESLint to check code quality and Prettier to format code, and limits comments to cases where they explain something genuinely non-obvious.

In plain words
What is it for?
Use it when preparing code for a pull request: run the project's lint and format commands, remove comments that merely repeat the code, and mark genuinely necessary explanations with their reason.
Why use it?
Formatting and linting catch mechanical problems before review, while unnecessary comments can become misleading as code changes. These rules make the expected checks and comment standards explicit.

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/smekai/taskplanner/cursorrules
Clone the repo
git clone --depth 1 https://github.com/smekai/taskplanner

Made for: Cursor.

Per session 2,201 This file is loaded in full into every session.
When invoked 2,201 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.02201 $0.02201
Opus 5 $0.01100 $0.01100
Sonnet 5 $0.00440 $0.00440
Haiku 4.5 $0.00220 $0.00220

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

Security

Grade A, and why

cursorrules 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 2d 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.

.cursorrules · 196 lines

How it starts

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

Code Style

ESLint and Prettier cover the mechanical part — run npm run lint and npm run format before a PR.

This is enforced. npm run lint runs scripts/check-comments.js, which fails on any comment in src/ outside src/test/. Machine directives (eslint-disable, @ts-expect-error, prettier-ignore) are exempt. For the genuinely non-obvious case, prefix the comment with WHY: and give the reason — the check counts those and lets them through.

Beyond that: a comment is a signal that the code is not clear enough yet. Before writing one, try to make it unnecessary — name the function after the comment, extract the condition into a named predicate, split the branch out. Names and types stay true as the code changes; comments drift.

Do not write:

  • Comments that restate the code (// increment nextId).
  • Doc blocks on every exported symbol. A precise name and type already say it.
  • Section banners, decorative dividers, or step-by-step narration of a function body.
  • Rationale that belongs in the commit message, CHANGELOG.md, or a task's ### Plan.

Do write, sparingly:

  • A one-line note where the code must stay non-obvious: a workaround for an external bug, a deliberate deviation from an API contract, or an output format that must match byte-for-byte.

Comments belong in tests. A test name plus a short note explains the failure a case guards against far better than a comment sitting beside the code it guards.

If you find yourself explaining a function in prose, that is the signal to rewrite the function.

TaskPlanner — AI Agent Instructions

This project uses TaskPlanner for task management. Tasks are stored as markdown files in the .tasks/ directory.

Task File Structure

Each state has its own file:

  • BacklogBACKLOG.md
  • NextNEXT.md
  • In ProgressIN_PROGRESS.md
  • DoneDONE.md
  • RejectedREJECTED.md

Auxiliary file (optional rolling log, not a task state):

  • Work LogWORK_LOG.md

Read the full file on GitHub · 196 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. 2d ago First seen · 196 lines · 2,201 tokens per session scan A feb2ac28f83a

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository smekai/taskplanner (19 stars, last pushed 4d ago), licensed MIT. It adds 2,201 tokens to every session, about $0.0110 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.