safe-agentic-workflow / rules
Cursor rule419 starsChanged 4 months agoMITView on GitHub
SAFe x AI-DLC fusion for running programs: in programs that adopt it, Bolts take the place of sprints and Units of Work of Features, plus Mob Elaboration and the human-in-the-loop validation gate. Opt-in per program. Activate when planning or running multi-issue programs.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,531 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/00-core-principles.mdcCursor rule
- .cursor/rules/01-git-workflow.mdcCursor rule
- .cursor/rules/02-pattern-discovery.mdcCursor rule
- .cursor/rules/04-knowledge-vault.mdcCursor rule
- .cursor/rules/10-backend-python.mdcCursor rule
- .cursor/rules/11-frontend-react.mdcCursor rule
- .cursor/rules/12-database-sql.mdcCursor rule
- .cursor/rules/13-testing.mdcCursor rule
- .cursor/rules/14-spec-creation.mdcCursor rule
- .cursor/rules/15-deployment.mdcCursor rule
- .cursor/rules/16-stripe-payments.mdcCursor rule
- .cursor/rules/20-agent-architect.mdcCursor rule
- .cursor/rules/21-agent-backend.mdcCursor rule
- .cursor/rules/22-agent-qas.mdcCursor rule
- .cursor/rules/23-agent-security.mdcCursor rule
- .cursor/rules/30-background-agents.mdcCursor rule
- .cursor/rules/31-mcp-integration.mdcCursor rule
- .cursor/rules/README.mdCursor rule
- agent-coordinationSkill
- api-patternsSkill
- confluence-docsSkill
- deployment-sopSkill
- frontend-patternsSkill
- git-advancedSkill
- linear-sopSkill
- migration-patternsSkill
- orchestration-patternsSkill
- pattern-discoverySkill
- release-patternsSkill
- rls-patternsSkill
- safe-ai-dlcSkill
- safe-workflowSkill
- security-auditSkill
- spec-creationSkill
- stripe-patternsSkill
- team-coordinationSkill
- testing-patternsSkill
- vault-syncSkill
- agent-coordinationSkill
- api-patternsSkill
- confluence-docsSkill
- deployment-sopSkill
- frontend-patternsSkill
- git-advancedSkill
- linear-sopSkill
- migration-patternsSkill
- orchestration-patternsSkill
- pattern-discoverySkill
- release-patternsSkill
- rls-patternsSkill
- safe-ai-dlcSkill
- safe-workflowSkill
- security-auditSkill
- spec-creationSkill
- stripe-patternsSkill
- team-coordinationSkill
- testing-patternsSkill
- vault-syncSkill
The file
We split this 03-safe-ai-dlc.mdc into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this rule when work spans multiple issues and needs cadence — turning an audit, epic, or initiative into an executable program.
- Distinctive: line 54
Validate with the human: before Construction begins
- Distinctive: line 56
Verify the gates are real — a green check that masks a failure is not an exit
- Distinctive: line 62
Never guess these — surface options with a recommendation and stop:
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: "SAFe x AI-DLC fusion for running programs: in programs that adopt it, Bolts take the place of sprints and Units of Work of Features, plus Mob Elaboration and the human-in-the-loop validation gate. Opt-in per program. Activate when planning or running multi-issue programs." alwaysApply: false --- # SAFe x AI-DLC (Program Cadence) Use this rule when work spans **multiple issues and needs cadence** — turning an audit, epic, or initiative into an executable program. For a single isolated ticket, use `.cursor/rules/01-git-workflow.mdc` instead. SAFe supplies the hierarchy and guardrails. AI-DLC supplies the cadence and the human checkpoint. Inside a program that adopts this fusion, the **sprint gives way to the Bolt** — an hours-to-days swarm — because agent teams elaborate, build, and verify far faster than a week-long sprint assumes. Adopting the fusion is a per-program choice; the standard sprint path stays valid. ## Vocabulary - **Bolt** — the unit of cadence. A short swarm (hours to a few days) with an entry gate, a handful of issues, and a hard exit. Numbered `bolt:0`, `bolt:1`, and so on. - **Unit of Work** — one coherent outcome; a project in the tracker. Mapped to the SAFe Feature here, though AWS frames it as replacing the Epic. - **Mob Elaboration** — the Inception activity: read the issue, break it into sub-issues, list unknowns, and ask clarifying questions **before writing any code**. - **Mob Construction** — the Construction activity: implement against the elaborated plan. - **The three phases** — Inception, Construction, Operations. - **The loop** — AI plans → AI asks → **human validates business context** → AI executes. ## The Fusion Mapping | SAFe | AI-DLC | Linear | | ----------------- | ------------------------------------- | ----------------------------------- | | Portfolio Epic | The Program | Initiative | | Epic/value stream | Program stream | Sub-initiative, or project priority | | Feature | Unit of Work | Project | | PI increment | Bolt | `bolt:N` label + target date | | Phase gate | Inception / Construction / Operations | Project Milestone (3 per project) | | Story/Enabler | Story | Issue | | Task | Mob task | Sub-issue | | WSJF/Role/DoD | prioritization / mob role / gate | description + `agent:*` + AC/DoD | ## Dependency-Wiring Rules Wire `blocks` / `blockedBy` so the enforcement lands **before** the thing it enforces: - **Fix the gate before the fix it verifies** - **Rotate before scrub** (credentials) - **Capture before alert** (observability) - **Upgrades before re-baseline** (supply chain) Chains are usually rooted at CI hardening. Find that keystone and sequence its Bolt first. ## Running a Bolt 1. Open and elaborate every issue (Mob Elaboration) 2. **Validate with the human** before Construction begins 3. Construct in dependency order, rebase-first 4. Verify the gates are **real** — a green check that masks a failure is not an exit 5. Post evidence to the tracker 6. RTE prepares the PR; the human (HITL) merges ## Human-Gate Checklist Never guess these — surface options with a recommendation and stop: - Secret or credential actions - Security policy (CSP allow-list, auth behavior, headers) - CI or branch-protection decisions - Severity or risk policy, fix-vs-suppress budget - SOP exceptions - Signing the Definition of Done ## Anti-Patterns - Forcing an ambiguous epic into one Bolt — run a **spike** instead - Creating sub-issues before Inception - Treating a Bolt as a calendar sprint (it exits on evidence, not a date) - Skipping human validation to move faster ## References - `docs/guides/SAFE-AI-DLC-METHODOLOGY.md` -- Methodology guide (rationale, worked example) - `specs_templates/program_template.md` -- Program document scaffolding - AI-DLC source: <https://aws.amazon.com/blogs/devops/ai-driven-development-life-cycle/>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

