adding-new-features

adding-new-features is a cursor rule for Claude Code, Cursor from eliornl/rolemule. It costs 16 tokens per session (3,499 once invoked), scanned A, original, MIT.

A set of checklists for adding API endpoints, software agents, database fields, and career-related tools to an application.

In plain words
What is it for?
Use it when creating backend routes, connecting frontend tests, adding database columns, integrating agents, or extending career tools.
Why use it?
It helps developers remember related security, ownership, error-handling, registration, logging, and test changes when introducing a feature. It reduces the risk of a feature working in one layer but failing elsewhere.

Cursor rule for Claude CodeCursor

Written for Claude Code and Cursor: installed under .claude/, but also a Cursor rule (.mdc). Also seen: mentions CLAUDE.md.

Good fit Use it when creating backend routes, connecting frontend tests, adding database columns, integrating agents, or extending career tools.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/eliornl/rolemule/adding-new-features
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/eliornl/rolemule

Made for: Claude Code, 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 adding-new-features

README.md
[![agentmods](https://agentmods.dev/badge/rules/eliornl/rolemule/adding-new-features/github.svg)](https://agentmods.dev/rules/eliornl/rolemule/adding-new-features)
Your own site
<a href="https://agentmods.dev/rules/eliornl/rolemule/adding-new-features"><img src="https://agentmods.dev/badge/rules/eliornl/rolemule/adding-new-features/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 adding-new-features

Your own site · 80×15
<a href="https://agentmods.dev/rules/eliornl/rolemule/adding-new-features"><img src="https://agentmods.dev/badge/rules/eliornl/rolemule/adding-new-features.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,499 The whole file, excluding the scripts and references it only reads on demand.
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.00016 $0.03499
Opus 5.5 $0.00006 $0.01400
Sonnet 5.5 $0.00003 $0.00700
Haiku 4.5 $0.00002 $0.00350

Measured 1mo ago against content hash 0f9071c17696, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adding-new-features 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.

.claude/rules/adding-new-features.mdc · 197 lines

How it starts

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

Adding New Features — Checklists

New API Endpoint

  1. Add Pydantic request/response models
  2. Add route handler with Depends(get_current_user) + Depends(get_database)
  3. Check ownership — verify the resource belongs to current_user
  4. Apply rate limiting for sensitive or expensive operations
  5. Log operations with logger.info(), errors with logger.error()
  6. Use APIError / create_error_response for all errors — never bare HTTPException
  7. Register router in main.py under /api/v1/ prefix
  8. If the endpoint is also in the legacy /api/ prefix, add include_in_schema=False
  9. Add API integration tests in tests/test_api/ using authed_client (mocked user) or authed_client_with_user (real DB user) as appropriate
  10. Add E2E mocked coverage in api-validation.spec.ts — add a test that mocks the endpoint and verifies the frontend renders its response without JS errors
  11. If the endpoint returns 429, add a matching test in rate-limit.spec.ts

Workflow start — duplicate detection (POST /api/v1/workflow/start)

Before changing how jobs are keyed or deduplicated:

  1. api/workflow.py — _find_duplicate_active_application / _fingerprint_job_content / _canonical_job_url; normalize_title_company_key is utils/application_dedupe.py (imported where needed). Duplicate responses use RES_3002 (409) and must release workflow_creating:{user_id} on that path.
  2. Fingerprint — stored on WorkflowSession.job_input_data["content_fingerprint"] only when normalized text length ≥ 80 (constant _MIN_JOB_CONTENT_FINGERPRINT_CHARS). Do not weaken NFKC / zero-width stripping without re-checking extension vs paste dedupe.
  3. Post-start duplicate handling — see rolemule-core.mdc § Duplicate job after start (find_conflicting_job_application in utils/application_dedupe.py, _maybe_fail_duplicate_job_after_analyzer in workflows/job_application_workflow.py, integrity handling in api/workflow.py _update_job_application_with_final_state).
  4. Tests — extend tests/test_api/test_workflow.py and tests/test_application_dedupe.py as appropriate; frontend must handle RES_3002 in ui/src/pages/dashboard-new-application.ts, ui/src/shared/api.ts, and the Chrome extension (popup.js, service-worker.js).
  5. Docs — rolemule-core.mdc § RES_3002 and § Duplicate job after start; dashboard-home.mdc § Toast Deduplication — notifyReady (c: / f: keys vs legacy bare sessionId).

Read the full file on GitHub · 197 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 · 197 lines · 16 tokens per session scan A 0f9071c17696

Subscribe to this mod's changes

adding-new-features is a cursor rule published in the GitHub repository eliornl/rolemule (38 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 3,499 once invoked, about $0.0001 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.