010-workflow

010-workflow is a cursor rule for coding agents from d-padmanabhan/agent-engineering-handbook. It costs 781 tokens per session, scanned A, original, MIT.

A set of rules for how a coding agent should classify, plan, scope, implement, and review tasks. It also specifies where the project's agent handbook is stored.

In plain words
What is it for?
Use it to decide whether a task needs a plan, approval, risk review, or verification before implementation.
Why use it?
It helps prevent an agent from making changes before understanding the task, getting approval, or checking the result. It also keeps shared instructions consistent across repositories.

Cursor rule

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/d-padmanabhan/agent-engineering-handbook/010-workflow
Clone the repo
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbook

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 010-workflow

README.md
[![agentmods](https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/010-workflow.svg)](https://agentmods.dev/rules/d-padmanabhan/agent-engineering-handbook/010-workflow)
Your own site
<a href="https://agentmods.dev/rules/d-padmanabhan/agent-engineering-handbook/010-workflow"><img src="https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/010-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 781 This file is loaded in full into every session.
When invoked 781 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.00781 $0.00781
Opus 5 $0.00391 $0.00391
Sonnet 5 $0.00156 $0.00156
Haiku 4.5 $0.00078 $0.00078

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

Security

Grade A, and why

010-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 5d 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.

rules/010-workflow.mdc · 70 lines

How it starts

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

Agent Workflow Gates

Stable Handbook Root

Resolve the handbook root from the current user's home directory:

HANDBOOK_ROOT="${HOME}/.cursor/agent-engineering-handbook"

Agents operating in any workspace MUST resolve handbook rules, skills, commands, references, hooks, and templates from this root, not from the active repository. Handbook-internal references use literal ${HANDBOOK_ROOT}/... paths. Do not expand them into a user-specific absolute path in authored content.

Classify Before Acting

  • Answer, explain, diagnose, review, or status requests are read-only unless the user also requests a change.
  • A trivial, obvious, low-risk local edit may proceed directly with proportionate verification.
  • Non-trivial work requires a brief plan and explicit user approval before implementation.
  • Complex, architectural, security-sensitive, destructive, or broad work requires a documented plan with scope, non-goals, risks, affected areas, and verification.
  • A remote mutation requires authorization under the agent audit rule (${HANDBOOK_ROOT}/rules/020-agent-audit.mdc), regardless of task size.

Plan Gate

Before non-trivial implementation:

  1. Inspect the smallest relevant code and current repository state.
  2. State the intended outcome, scope, assumptions, risks, and verification.
  3. Resolve only choices that materially change the implementation.
  4. Wait for explicit approval.

Do not demand a formal plan for typos, narrowly scoped obvious fixes, or read-only analysis.

Implementation Gate

  • Implement only the approved scope and preserve unrelated user work.
  • Prefer the smallest coherent change; do not add speculative features or broad cleanup.
  • Validate dependencies and configuration before relying on them.
  • Stop and re-plan when implementation reveals a material architectural, destructive, security, or scope change.
  • Update durable context only when the task is long-running or must survive a context reset.

Review Gate

  • Verify the result in proportion to risk using available tests, lint, format, type checks, builds, or focused substitutes.
  • Compare the result to the approved scope and inspect the final diff.
  • Report what changed, verification performed, known limitations, and any deferred issue.
  • Do not implement review follow-ups unless they are within the approved scope.

Read the full file on GitHub · 70 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. 5d ago First seen · 70 lines · 781 tokens per session scan A eacd619e413f

Subscribe to this mod's changes

010-workflow is a cursor rule published in the GitHub repository d-padmanabhan/agent-engineering-handbook (16 stars, last pushed 5d ago), licensed MIT. It adds 781 tokens to every session, about $0.0039 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.