agentleFS
NiltonRodriguezNiltonRodriguez/praxis/AGENTS.md

praxis

AGENTS.md0 starsChanged 4 months agoApache-2.0View on GitHub

Framework: PRAXIS v1.1 | Full config: GEMINI.md + .gemini/ | Jules guide: JULES.md PRAXIS — from prâxis (πρᾶξις), action informed by reflection. Not an acronym. Every feature follows: DISCOVER → PLAN → VALIDATE → ARCHITECT → DESIGN → STORIES → BUILD → TEST → REVIEW → RETRO. These rules are always active and cannot be overridden. Sync requirement: This section is inlined from _praxis/governance/definition-of-done-L0-L1.md because Jules cannot follow file references. If that file changes, update this section to match. Before…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,266 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 repository5 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

25 rules. About 0 are common, 14 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every feature follows: DISCOVER → PLAN → VALIDATE → ARCHITECT → DESIGN → STORIES → BUILD → TEST → REVIEW → RETRO.

    line 8
  2. Very specific:

    Read _praxis-output/status.yaml to understand current project state.

    line 12
  3. Very specific:

    Only implement stories from _praxis-output/stories/epics/ or specs from .gemini/specs/.

    line 13
  4. Very specific:

    Follow architecture in _praxis-output/architecture/architecture.md.

    line 15
  5. Very specific:

    Follow coding standards in _praxis/guidelines/dev-guidelines.md.

    line 16
  6. Very specific:

    Follow golden rules in _praxis/governance/golden-rules.md.

    line 17
  7. Very specific:

    State Engine owns routing: Never decide "what comes next" — the rulebook at _praxis/governance/orchestration-rules.md does that via …

    line 18
  8. Very specific:

    Sync-not-Handoff: when a test fails for an edge case not in canvas §Safeguards, do NOT patch the code.

    line 19
  9. Very specific:

    Never modify .gemini/, _praxis/, or _praxis-output/ governance files.

    line 21
  10. Distinctive:

    Run the full project test suite after implementation.

    line 22
  11. Very specific:

    Use /task:classify to determine the right workflow for ambiguous tasks.

    line 24
  12. Distinctive:

    Do NOT write, generate, or suggest code unless explicitly requested

    line 31
  13. Distinctive:

    Do NOT modify, refactor, or delete existing code without explicit approval

    line 32
  14. Distinctive:

    Do NOT create files, directories, functions, routes, or components without instruction

    line 33
  15. Distinctive:

    If a request is ambiguous or incomplete — STOP and ask for clarification

    line 37
  16. Distinctive:

    No assumptions — base all actions on explicit information only

    line 38
  17. Distinctive:

    Before significant actions, summarize the task and seek confirmation

    line 39
  18. Distinctive:

    Stop on uncertainty and consult the user

    line 44
  19. Distinctive:

    When implementing a story or spec, the assignment constitutes authorization for writes within that story/spec scope

    line 47
  20. Distinctive:

    Before marking any task complete, verify all criteria for the task's level:

    line 54
  21. Distinctive:

    All Level 0 criteria, plus:

    line 67
  22. Very specific:

    All Level 1 criteria, plus full DoD from _praxis/governance/definition-of-done.md (8 categories: Code Quality, Testing, Security, …

    line 75
  23. Distinctive:

    Commit after each completed layer

    line 82
  24. Distinctive:

    No dead code — remove unused functions and imports

    line 88
  25. Very specific:

    Follow the project's architecture as defined in _praxis-output/architecture/architecture.md

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md

AGENTS.md — {Project Name}

Framework: PRAXIS v1.1 | Full config: GEMINI.md + .gemini/ | Jules guide: JULES.md

Methodology

PRAXIS — from prâxis (πρᾶξις), action informed by reflection. Not an acronym. Every feature follows: DISCOVER → PLAN → VALIDATE → ARCHITECT → DESIGN → STORIES → BUILD → TEST → REVIEW → RETRO.

Rules

  1. Read _praxis-output/status.yaml to understand current project state.
  2. Only implement stories from _praxis-output/stories/epics/ or specs from .gemini/specs/.
  3. The REASONS Canvas is the binding spec for every story. Read it via tier-based resolution: L0/L1 inline in spec; L2 inline in story; L3/L4 standalone at _praxis-output/stories/epics/{epic}/canvases/STORY-{NNN}-canvas.md. Implement Operations from §O, honor Safeguards, apply Norms.
  4. Follow architecture in _praxis-output/architecture/architecture.md.
  5. Follow coding standards in _praxis/guidelines/dev-guidelines.md.
  6. Follow golden rules in _praxis/governance/golden-rules.md.
  7. State Engine owns routing. Never decide "what comes next" — the rulebook at _praxis/governance/orchestration-rules.md does that via deterministic table lookup.
  8. Sync-not-Handoff: when a test fails for an edge case not in canvas §Safeguards, do NOT patch the code. Emit Gate 7 verdict with EDGE_CASE_MISSING_FROM_SAFEGUARDS; the engine routes to /spdd:prompt-update.
  9. Max 500 lines per task. Commit after each logical layer.
  10. Never modify .gemini/, _praxis/, or _praxis-output/ governance files.
  11. Run the full project test suite after implementation. ALL project tests must pass.
  12. For new projects, run /project:setup before starting development.
  13. Use /task:classify to determine the right workflow for ambiguous tasks.

Golden Rules (Inline — Jules Cannot Follow File References)

These rules are always active and cannot be overridden.

Code & System Integrity

  • Do NOT write, generate, or suggest code unless explicitly requested
  • Do NOT modify, refactor, or delete existing code without explicit approval
  • Do NOT create files, directories, functions, routes, or components without instruction
  • Preserve existing architectural patterns, coding style, and operational logic

Requirement Clarification

  • If a request is ambiguous or incomplete — STOP and ask for clarification
  • No assumptions — base all actions on explicit information only
  • Before significant actions, summarize the task and seek confirmation

Operational Transparency

  • Explain what will be done before doing it
  • Log every decision with reasoning
  • Stop on uncertainty and consult the user

Command Authorization

  • When implementing a story or spec, the assignment constitutes authorization for writes within that story/spec scope
  • Outside assigned work, the Code & System Integrity rules apply without exception

Build Phase Quality Gate (DoD — Inline for Jules)

Sync requirement: This section is inlined from _praxis/governance/definition-of-done-L0-L1.md because Jules cannot follow file references. If that file changes, update this section to match.

Before marking any task complete, verify all criteria for the task's level:

Level 0 — Micro (8 criteria)

  • Spec file created and status set to completed in .gemini/specs/
  • Code compiles / parses without errors
  • Formatter applied (Black/Prettier/rustfmt per stack)
  • Full project test suite passes (all existing tests, not just affected scope)
  • No secrets or credentials in code
  • Input validated/sanitized at entry points
  • No sensitive data in log statements
  • No unbounded queries (all data access uses LIMIT or pagination)

Level 1 — Small (11 criteria)

All Level 0 criteria, plus:

  • ≥1 new test covers the change
  • Linter clean — zero errors
  • [if AI] LLM outputs validated before rendering or downstream use
  • Efficient patterns (no polling where events available; caching for repeated reads)
  • Spec file status set to completed

Level 2+ — Full

All Level 1 criteria, plus full DoD from _praxis/governance/definition-of-done.md (8 categories: Code Quality, Testing, Security, Accessibility, Documentation, Version Control, Efficiency & Sustainability, Traceability).

Batch Limits

  • Max 500 lines of generated code per task
  • Flag changesets > 250 lines for splitting
  • A single story covers ≤ 3 endpoints OR ≤ 5 UI components
  • Commit after each completed layer

Coding Standards Summary (Inline for Jules)

  • Functions do one thing — max 20 lines preferred, 40 hard limit
  • Meaningful names — no abbreviations, no magic numbers
  • No dead code — remove unused functions and imports
  • Follow the project's architecture as defined in _praxis-output/architecture/architecture.md
  • Dependencies flow per the chosen architecture style (no boundary violations)
  • Input validation at entry layer (Pydantic, Zod, Joi)
  • Parameterized queries only — NEVER string concatenation for SQL
  • Structured error responses with appropriate HTTP status codes
  • Catch specific exceptions — never bare except or catch

Working with Jules

Jules operates as an asynchronous agent — it receives a task, works on it in an isolated VM, and submits results. Key constraints:

  • No interactive commands: Jules cannot run long-running processes or interactive prompts
  • No TOML commands: Jules does not parse .gemini/commands/ — use story/spec references instead
  • No hooks: Jules does not trigger SessionStart or AfterTool hooks
  • Single VM: One task = one isolated environment

Jules Input Contract (REASONS Canvas required)

Jules consumes an approved REASONS Canvas — never a raw user prompt. The canvas is the spec; Jules executes Operations and honors Safeguards.

How to Assign Work to Jules

  1. Story implementation (L2): Reference the story file directly. The canvas is embedded.
    Implement the story in _praxis-output/stories/epics/EPIC-001/STORY-001.md.
    The story contains a REASONS Canvas (R/E/A/S/O/N/Safeguards) — this is the spec.
    Generate code from §O Operations. Honor §Safeguards. Apply §N Norms.
    If during execution a §Safeguards violation arises or an edge case
    is not enumerated, HALT and PR-comment "Canvas needs SYNC-1 update at §Safeguards"
    — do NOT patch the code.
    Follow the architecture in _praxis-output/architecture/architecture.md.
    Follow the coding standards in this AGENTS.md file.
    Run all tests before submitting.
  2. Story implementation (L3/L4): Reference the story wrapper; follow the Canvas: link.
    Open _praxis-output/stories/epics/EPIC-001/STORY-001.md.
    Resolve the canvas: read the `canvas_path` frontmatter field; load that file.
    The canvas contains R/E/A/S/O/N/Safeguards — this is the spec.
    Verify the canvas is approved (`approved_by` non-null). If not, HALT.
    Generate code from §O Operations. Honor §Safeguards.
    On any safeguard violation or missing edge case, HALT and PR-comment:
    "Canvas needs SYNC-1 update — reason: <reason_code>" — do NOT patch.
  3. Spec implementation (L0/L1): Reference the spec file. The slim canvas is embedded.
    Implement the spec in .gemini/specs/SPEC-001.md.
    The spec contains a slim REASONS canvas (R + Approach & Files + O + Safeguards).
    Generate code from §O Operations. Honor §Safeguards.
  4. Maintenance tasks: Describe clearly with bounded scope
    Update all deprecated API calls in backend/services/
    Run tests after each file change
    Max 500 lines total

Jules Scheduled Tasks

Jules supports daily/weekly/monthly scheduled tasks. Useful PRAXIS automations:

ScheduleTaskPrompt Template
WeeklyDependency audit"Check for outdated dependencies. List packages with available updates and any known CVEs."
WeeklyDead code scan"Scan backend/ and frontend/ for unused exports, unreachable code, and unused imports. Report findings."
MonthlyDocumentation review"Verify all public functions have docstrings. List undocumented functions."

See JULES.md for detailed prompt templates and setup instructions.

File Map

  • _praxis/agents/ — Agent definitions (16 agents — no Orchestrator; Process Analyst owns Phase 10)
  • _praxis/workflows/ — Workflow task definitions (by phase)
  • _praxis/templates/ — Document templates (story.md, story-lite.md, reasons-canvas.md)
  • _praxis-output/ — Generated artifacts (PRD, architecture, stories, canvases, reviews, retro)
  • _praxis-output/stories/epics/{epic}/canvases/ — L3/L4 standalone REASONS canvases
  • _praxis-output/audit/ — Session audit + canvas_events: blocks (SPDD telemetry)
  • _praxis-output/retro/canvas-churn-{N}.md — Process Analyst's abstraction-quality reports
  • _praxis/governance/ — Golden rules, DORA, DoR/DoD, orchestration-rules.md (State Engine)
  • .gemini/context/ — Project architecture, tech stack, domain knowledge
  • _praxis/guidelines/ — Standards, security (4 domains), architecture knowledge base
  • .gemini/specs/ — Lightweight specifications with slim REASONS embedded (Level 0-1)
  • .gemini/commands/ — TOML command definitions (Gemini CLI only)
  • .gemini/scripts/ — Hook scripts (gate-verdict, sync-check, audit-canvas — Bash + PowerShell pairs)
  • .agents/ — Antigravity IDE integration (rules, workflows, skills)

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.