Reference Documentation
.github/instructions/commit-msg.instructions.mdDefines the canonical commit message structure, conventions, and traceability requirements for the SEA-Forge™ platform to ensure clarity, automation support, and audit compliance.
| Section | Requirements |
|---|---|
| Subject | ≤ 72 characters, imperative mood (“Add”, “Fix”, “Refactor”), summarizes main action |
| Body | Wrapped at 72-100 columns, explains what changed and why (not just how) |
| Traceability | References spec/issue IDs (e.g., PRD-xxx, ADR-xxx, SDS-xxx, TS-xxx, DEV-, AI_) |
| Emojis | Small documented set for scanning (✨, 🐛, ♻️, ⚠️) - no decorative use |
| Risks | Calls out security, performance, UX, or operational risks and mitigation |
| Validation | Notes updated tests, docs, or scripts; mentions deferred follow-ups |
DO include reasoning for:
Keep concise for:
| Emoji | Type | Usage |
|---|---|---|
| ✨ | feat | New features or enhancements |
| 🐛 | fix | Bug fixes |
| ♻️ | refactor | Code restructuring without functional changes |
| ⚠️ | breaking | Breaking changes or critical warnings |
1
2
3
4
5
6
✨ feat(auth): add two-factor authentication
Implements TOTP-based 2FA to enhance account security.
Motivation: Addresses PRD-102 and mitigates risk of credential stuffing attacks.
Tested with new integration tests; docs updated.
Refs: PRD-102, SDS-45
1
2
3
4
5
6
🐛 fix(ui): resolve dropdown misalignment on profile page
Dropdown was misaligned due to conflicting CSS.
Root cause: Overlapping flexbox rules.
Tested on all supported browsers.
Fixes: DEV-789
1
2
3
4
5
6
♻️ refactor(user-service): modularize user validation logic
Split monolithic validateUser() into smaller, testable functions.
Motivation: Improves maintainability and test coverage.
Unit tests added.
Refs: ADR-112
1
2
3
4
5
6
⚠️ feat(config): support config inheritance via 'extends' key
BREAKING CHANGE: Config files now support 'extends' for modularity.
Migration: Existing configs must add 'extends' or update structure.
Mitigation: Migration script provided; see docs.
Refs: ADR-102, PRD-45
This standard is enforced via Copilot guardrails defined in .github/instructions/commit-msg.instructions.md.
All commits MUST: