workflow

A required process for making code changes. It gives different steps for features, bug fixes, refactoring, APIs, and user-interface components, including TDD, which means writing tests before or alongside the implementation.

In plain words
What is it for?
Use it to guide everyday development work, from planning a feature or reproducing a bug to testing, reviewing, documenting, and preparing a pull request.
Why use it?
It prevents changes from being made without clarification, testing, security checks, or a final review, and helps catch regressions before code is merged.

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/jy315189/everything-cursor/workflow
Clone the repo
git clone --depth 1 https://github.com/jy315189/everything-cursor

Made for: Cursor.

Per session 292 This file is loaded in full into every session.
When invoked 292 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.00292 $0.00292
Opus 5 $0.00146 $0.00146
Sonnet 5 $0.00058 $0.00058
Haiku 4.5 $0.00029 $0.00029

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

Security

Grade A, and why

workflow 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/workflow.mdc · 34 lines

What it actually says

Development Workflow

Standard Process

Task Type Workflow
New feature Plan → Define types → TDD → Self-review → PR
Bug fix Reproduce with test → Fix → Verify → Regression test → PR
Refactor Ensure tests pass → Incremental changes → Test after each → PR
API endpoint Types → Integration tests → Handler → Validation → Docs → PR
UI component Props interface → Unit tests → Implement → Accessibility check → PR

Before Writing Code

  1. Clarify — What exactly needs to be built? What are the acceptance criteria?
  2. Break down — Split into tasks completable in 1-4 hours
  3. Assess risk — Security implications? Performance concerns? Breaking changes?

Self-Review Checklist (before every PR)

Security:    □ No secrets  □ Input validated  □ No injection vectors
Quality:     □ Functions ≤50 lines  □ Files ≤800 lines  □ Errors handled
Testing:     □ Tests included  □ Edge cases covered  □ Coverage ≥80%
Style:       □ Immutable patterns  □ No any  □ No console.log
Docs:        □ JSDoc updated  □ README updated if needed  □ CHANGELOG entry
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 · 34 lines · 292 tokens per session scan A 6b0550aa0a00

Subscribe to this mod's changes

workflow is a cursor rule published in the GitHub repository jy315189/everything-cursor (2 stars, last pushed 6mo ago), licensed MIT. It adds 292 tokens to every session, about $0.0015 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-31.