Repository: {{PROJECT_NAME}} Methodology: SAFe (Scaled Agile Framework) Agentic Workflow Philosophy: "Round Table" - Equal voice, mutual respect, shared responsibility
This is a SAFe multi-agent development project with 11 specialized AI agents working collaboratively. You are part of a team where your input has equal weight with human contributors.
Core Principles:
- Search for existing patterns before creating new ones ("Search First, Reuse Always")
- Attach evidence to Linear tickets for all work
- You have "stop-the-line" authority for architectural/security concerns
- Follow SAFe methodology: Epic → Feature → Story → Enabler
Key Resources:
- AGENTS.md - All 11 agent roles, invocation patterns, capabilities
- CONTRIBUTING.md - Git workflow, commit standards, PR process
- docs/onboarding/ - Setup guides and daily workflows
- docs/guides/ROUND-TABLE-PHILOSOPHY.md - Collaboration principles
- patterns_library/ - Reusable code patterns (18+ patterns, 7 categories)
- knowledge-vault/ - Evidence-verified knowledge base. To build this repo's own vault, run SAW-VAULT-BUILD.md
# Development server
{{DEV_COMMAND}} # Start development server
# Build and production
{{BUILD_COMMAND}} # Build for production
{{START_COMMAND}} # Start production server
# Code quality
{{LINT_COMMAND}} # Run linting
{{LINT_FIX_COMMAND}} # Auto-fix linting issues
{{TYPE_CHECK_COMMAND}} # TypeScript validation
{{FORMAT_CHECK_COMMAND}} # Prettier formatting check
# Testing
{{TEST_UNIT_COMMAND}} # Run unit tests
{{TEST_INTEGRATION_COMMAND}} # Run integration tests
{{TEST_E2E_COMMAND}} # Run end-to-end tests
# Database (if applicable)
{{DB_MIGRATE_COMMAND}} # Run migrations
# CI/CD validation (REQUIRED before PR)
{{CI_VALIDATE_COMMAND}} # Run all quality checksImportant: Always run {{CI_VALIDATE_COMMAND}} before creating a pull request.
- Frontend: {{FRONTEND_FRAMEWORK}}
- Backend: {{BACKEND_FRAMEWORK}}
- Database: {{DATABASE_SYSTEM}}
- ORM: {{ORM_TOOL}}
- Authentication: {{AUTH_PROVIDER}}
- Payments: {{PAYMENT_PROVIDER}}
- Analytics: {{ANALYTICS_PROVIDER}}
- UI Components: {{UI_LIBRARY}}
{{PROJECT_NAME}}/
├── CLAUDE.md # This file - AI assistant context
├── AGENTS.md # Agent team quick reference
├── CONTRIBUTING.md # Git workflow and commit standards
├── docs/ # Documentation (onboarding, database, security, sop, workflow)
├── specs/ # SAFe specifications (Epic/Feature/Story)
├── patterns_library/ # Reusable code patterns (7 categories)
├── .claude/ # Claude Code harness (hooks, commands, skills, agents)
├── agent_providers/ # Agent configurations
└── scripts/ # Utility scripts
All work follows the SAFe hierarchy and specs-driven development:
- BSA creates spec in
specs/{{TICKET_PREFIX}}-XXX-feature-spec.md - System Architect validates architectural approach
- Implementation agents execute with pattern discovery
- QAS validates against acceptance criteria
- Evidence attached to Linear ticket before POPM review
Use in specs to highlight critical decisions:
#PATH_DECISION- Architectural path chosen (document alternatives)#PLAN_UNCERTAINTY- Areas requiring validation#EXPORT_CRITICAL- Security/compliance requirements
Before implementing ANY feature:
- Search
patterns_library/for existing patterns - Search
specs/for similar specifications - Search codebase for similar implementations
- Consult documentation: CONTRIBUTING.md, docs/database/, docs/security/
- Propose to System Architect before implementation
Customize this section for your technology stack.
Provider: {{AUTH_PROVIDER}}
- Environment variables: See
.env.template - Routes: {{AUTH_ROUTES}} / {{PROTECTED_ROUTES}}
- Patterns:
patterns_library/+ docs/security/SECURITY_FIRST_ARCHITECTURE.md
Provider: {{PAYMENT_PROVIDER}}
- Webhook endpoints: {{WEBHOOK_ROUTES}}
- Patterns:
patterns_library/api/webhook-handler.md - Idempotency required for all payment operations
Provider: {{ANALYTICS_PROVIDER}}
- Privacy-first: No tracking without explicit consent (GDPR/CCPA)
- Error boundaries: Analytics failures must not crash the app
System: {{DATABASE_SYSTEM}} | ORM: {{ORM_TOOL}}
Guidelines:
- Always use ORM (type safety) with RLS context helpers (
withUserContext,withAdminContext,withSystemContext) - Always create proper migrations (never
db pushin production) - Never use direct SQL or bypass RLS policies
Schema Docs: docs/database/DATA_DICTIONARY.md (single source of truth)
Migration Workflow:
{{MIGRATION_CREATE_COMMAND}} # Create migration
{{MIGRATION_TEST_COMMAND}} # Test locally
git add {{MIGRATIONS_DIR}}/ && git commit -m "feat(db): add feature migration"
{{MIGRATION_DEPLOY_COMMAND}} # Deploy to productionLinter: {{LINTER_TOOL}} | Config: {{LINTER_CONFIG_FORMAT}}
{{LINT_COMMAND}} # Run linter
{{LINT_FIX_COMMAND}} # Auto-fix issuesAlways run {{LINT_COMMAND}} before committing. Consult your linting configuration file for project-specific rules.
MANDATORY: Read CONTRIBUTING.md before any development.
- Create feature branch:
{{TICKET_PREFIX}}-{number}-{description} - Implement with proper commits:
type(scope): description [{{TICKET_PREFIX}}-XXX] - Rebase:
git rebase origin/{{MAIN_BRANCH}} - Validate:
{{CI_VALIDATE_COMMAND}}(must pass) - Push:
git push --force-with-lease - Create PR using
.github/pull_request_template.md - Merge using "Rebase and merge" only
- All PRs must be up-to-date with
{{MAIN_BRANCH}} - All CI checks must pass
- CODEOWNERS reviewers required
- No direct pushes to
{{MAIN_BRANCH}}
Detailed Guides: docs/ci-cd/CI-CD-Pipeline-Guide.md | docs/workflow/