Each file and section will follow this ID structure:
- Files:
{folder-prefix}-{file-name}-{sequence}(e.g.,CTX-project-conventions-001) - Sections:
{file-id}:{section-type}-{sequence}(e.g.,CTX-project-conventions-001:REQ-001)
CFG: 0-ai-configCTX: 1-contextARCH: 2-technical-designDEV: 3-development (implementation tasks)PRD: 3-development (product requirements)QA: 4-acceptence-reports
REQ: RequirementSPEC: SpecificationIMPL: ImplementationTEST: TestVAL: ValidationFEAT: FeatureBUG: Bug fixCHORE: Maintenance taskTASK: General taskSTORY: User storyEPIC: Collection of related storiesSPIKE: Research or exploration task
A feature requirement might be referenced as:
ARCH-auth-feature-001:REQ-003 (PASS)
This references:
- File:
/2-technical-design/features/auth-feature.md(ID: ARCH-auth-feature-001) - Section: Requirement #3 in that file (ID: REQ-003)
- Status: PASS
- Add ID frontmatter to each file:
--- id: ARCH-auth-feature-001 created: 2025-03-15 ---
- Add section IDs as HTML comments or in headings:
## Authentication Flow <!-- REQ-003 --> - Reference IDs in validation reports:
| Requirement ID | Status | Notes | |---------------|--------|-------| | ARCH-auth-feature-001:REQ-003 | PASS | All tests passing | | PRD-login-feature-002:STORY-001 | PASS | Verified by QA |
PRD-login-feature-001:STORY-002: Product requirement for login feature, story #2DEV-authentication-001:IMPL-005: Development implementation for authentication, implementation detail #5QA-security-report-001:TEST-003: QA security test report, test case #3
- Install:
npm install(future) - Build:
npm run build(future) - Lint:
npm run lint(future) - Test:
npm test(future) - Test single file:
npm test -- -f path/to/test(future)
- File Naming: Use kebab-case for files, folders (lowercase, hyphens)
- Code Style: camelCase for variables/functions, descriptive naming
- Indentation: 2 spaces for most languages (see dev-conventions.md)
- Documentation: Markdown for all docs, JSDoc for code comments
- Error Handling: Use exceptions, provide meaningful error messages
- Imports: Group imports by type, alphabetize within groups
- Document features before implementation (spec → implement → validate)
- Create validation reports for all completed features
- Check folder-locks.md before modifying directories (.ailock files)
- Follow preflight/post-flight hook patterns in workflow.md
- Assist with documentation using templates in workflow.md
- Implement features according to specifications in technical-design/
- Validate against standards in project_conventions.md
- Generate compliance reports following validation
- Do not modify locked folders without explicit permission
- Always use and reference section IDs in validation reports