agentleFS
bybren-llcbybren-llc/safe-agentic-workflow/.cursor/rules/00-core-principles.mdc

safe-agentic-workflow / rules

Cursor rule419 starsChanged 4 months agoMITView on GitHub

SAFe methodology core principles, round-table philosophy, search-first-reuse-always, evidence-based delivery. Apply to ALL work in this repository.

The file

We split this 00-core-principles.mdc into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every agent and human contributor's input carries equal weight

    line 13
  2. Very specific:

    Search patterns_library/ for existing code patterns

    line 21
  3. Very specific:

    Search specs/ for similar specifications

    line 22
  4. Distinctive:

    Search the codebase for similar implementations

    line 23
  5. Distinctive:

    Only create new patterns if nothing exists (and that is BSA/Architect's job)

    line 25
  6. Distinctive:

    All work follows: Epic > Feature > Story > Enabler

    line 31
  7. Distinctive:

    Use these in specs to flag critical decisions:

    line 41
  8. Distinctive:

    Every agent role has an explicit exit state defining its handoff point:

    line 58
  9. Distinctive:

    All work requires evidence attached to the project management ticket

    line 82
  10. Distinctive:

    No work is "done" without verifiable evidence

    line 84

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
00-core-principles.mdc
---
description: "SAFe methodology core principles, round-table philosophy, search-first-reuse-always, evidence-based delivery. Apply to ALL work in this repository."
alwaysApply: true
---

# SAFe Core Principles

This repository uses **SAFe (Scaled Agile Framework) Agentic Workflow** with 11 specialized AI agent roles. You are part of a collaborative team where every contributor has equal voice.

## Round Table Philosophy

- Equal voice, mutual respect, shared responsibility
- Every agent and human contributor's input carries equal weight
- "Stop-the-line" authority: ANY contributor can halt work for architectural or security concerns
- Decisions are evidence-based, not authority-based

## Search First, Reuse Always

**MANDATORY before implementing anything:**

1. Search `patterns_library/` for existing code patterns
2. Search `specs/` for similar specifications
3. Search the codebase for similar implementations
4. Consult documentation (see CONTRIBUTING.md, docs/)
5. Only create new patterns if nothing exists (and that is BSA/Architect's job)

See `patterns_library/README.md` for the full pattern index (18+ patterns across 7 categories).

## SAFe Hierarchy

All work follows: **Epic > Feature > Story > Enabler**

1. BSA creates spec in `specs/{{TICKET_PREFIX}}-XXX-feature-spec.md`
2. System Architect validates the architectural approach
3. Implementation agents execute using discovered patterns
4. QAS validates against acceptance criteria
5. Evidence is attached to the project management ticket before POPM review

## Metacognitive Tags

Use these in specs to flag critical decisions:

- `#PATH_DECISION` -- Architectural path chosen (document alternatives)
- `#PLAN_UNCERTAINTY` -- Areas requiring validation
- `#EXPORT_CRITICAL` -- Security or compliance requirements

## Key Resources

- `CLAUDE.md` -- Full AI assistant context and development commands
- `AGENTS.md` -- All 11 agent roles, invocation patterns, exit states
- `CONTRIBUTING.md` -- Git workflow, commit standards, PR process
- `patterns_library/` -- Reusable code patterns (copy-paste ready)
- `docs/onboarding/` -- Setup guides and daily workflows
- `docs/guides/ROUND-TABLE-PHILOSOPHY.md` -- Collaboration principles

## Exit States

Every agent role has an explicit exit state defining its handoff point:

| Role             | Exit State                                |
|------------------|-------------------------------------------|
| BE-Developer     | "Ready for QAS"                           |
| FE-Developer     | "Ready for QAS"                           |
| Data-Engineer    | "Ready for QAS"                           |
| QAS              | "Approved for RTE"                        |
| RTE              | "Ready for HITL Review"                   |
| System Architect | "Stage 1 Approved - Ready for ARCHitect"  |
| HITL             | MERGED                                    |

## Quality Gates

| Gate            | Owner            | Blocking?                |
|-----------------|------------------|--------------------------|
| Stop-the-Line   | Implementer      | YES -- no AC = no work   |
| QAS Gate        | QAS              | YES -- no approval = stop|
| Stage 1 Review  | System Architect | YES -- pattern check     |
| Stage 2 Review  | ARCHitect-CLI    | YES -- architecture check|
| HITL Merge      | {{AUTHOR_NAME}}  | YES -- final authority   |

## Evidence-Based Delivery

- All work requires evidence attached to the project management ticket
- Evidence includes: command output, test results, validation screenshots
- No work is "done" without verifiable evidence

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.