001-workflow-v2

001-workflow-v2 is a cursor rule for Cursor from phuoctrung-ppt/ai-sdlc-workflow. It costs 379 tokens per session, scanned A, original, MIT.

Règles de travail pour les changements protégés dans un projet de code. Elles imposent notamment des plans, des revues et des fichiers d'archivage dans des emplacements précis.

In plain words
What is it for?
Elles servent à encadrer les changements, contrôler les chemins protégés, exécuter les contrôles automatiques et conserver les plans, revues et relais de session.
Why use it?
Elles évitent que des fichiers sensibles soient modifiés sans plan ni vérification documentée.

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/phuoctrung-ppt/ai-sdlc-workflow/001-workflow-v2
Clone the repo
git clone --depth 1 https://github.com/phuoctrung-ppt/ai-sdlc-workflow

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 001-workflow-v2

README.md
[![agentmods](https://agentmods.dev/badge/rules/phuoctrung-ppt/ai-sdlc-workflow/001-workflow-v2.svg)](https://agentmods.dev/rules/phuoctrung-ppt/ai-sdlc-workflow/001-workflow-v2)
Your own site
<a href="https://agentmods.dev/rules/phuoctrung-ppt/ai-sdlc-workflow/001-workflow-v2"><img src="https://agentmods.dev/badge/rules/phuoctrung-ppt/ai-sdlc-workflow/001-workflow-v2.svg" alt="Measured on agentmods" height="20"></a>
Per session 379 This file is loaded in full into every session.
When invoked 379 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.00379 $0.00379
Opus 5 $0.00189 $0.00189
Sonnet 5 $0.00076 $0.00076
Haiku 4.5 $0.00038 $0.00038

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

Security

Grade A, and why

001-workflow-v2 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 4d 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/001-workflow-v2.mdc · 53 lines

What it actually says

Workflow Rules (V2)

Canonical workflow: AGENTS.md + .cursor/config/workflow-policy.json. Project memory: .memory/ (not full AGENTS.md on every turn).

Protected Changes

Classifier: .cursor/config/protected-paths.json. Fail closed only for protected paths.

  • Plan artifact required: docs/plans/** or docs/adr/**
  • Review artifact required: docs/reviews/**
  • Override: .cursor/hooks/review-override.sh --skip-review "reason"

Hooks

  • preToolUse — worker path scopes from worker-scopes.json
  • stop — blocks protected changes without current plan/review
  • Session start — use context-builder, not legacy skill-loader alone

Artifacts

Type Path
Plans docs/plans/YYYY-MM-DD-feature.md (compact: ≤500 tokens body)
ADRs docs/adr/NNNN-title.md
Reviews docs/reviews/YYYY-MM-DD-desc.md (audit only — not injected as context)
Patterns .cursor/patterns/ (Tier 3 — injected when triggered)
Handoffs .cursor/context/handoffs/*.json

Compact Plan Format

# Feature Name
**Goal:** one sentence | **Protected:** yes/no | **Agents:** a, b

## Constraints
(from .memory/constraints.md — do not duplicate AGENTS.md)

## Files
| Path | Action | Owner |

## Execution
1. agent: step

## Risks
- ...
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. 4d ago First seen · 53 lines · 379 tokens per session scan A e94088dd42dc

Subscribe to this mod's changes

001-workflow-v2 is a cursor rule published in the GitHub repository phuoctrung-ppt/ai-sdlc-workflow (2 stars, last pushed 18d ago), licensed MIT. It adds 379 tokens to every session, about $0.0019 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.