@sallmarta/eye-hate-agent 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +38 -310
  2. package/bin/eha.js +203 -118
  3. package/docs/templates/project-docs-template/foundation/architecture.md +79 -0
  4. package/docs/templates/project-docs-template/foundation/changelog.md +53 -0
  5. package/docs/templates/project-docs-template/foundation/feature-inventory.md +46 -0
  6. package/docs/templates/project-docs-template/foundation/phases.md +60 -0
  7. package/docs/templates/project-docs-template/foundation/prd.md +69 -0
  8. package/docs/templates/project-docs-template/foundation/status.md +57 -0
  9. package/docs/templates/project-docs-template/foundation/workflow.md +59 -0
  10. package/docs/templates/project-docs-template/getting-started.md +52 -0
  11. package/docs/{vibes → templates}/project-docs-template/index.md +12 -12
  12. package/docs/templates/project-docs-template/operations/ci-cd.md +56 -0
  13. package/docs/templates/project-docs-template/operations/compliance.md +46 -0
  14. package/docs/templates/project-docs-template/operations/governance.md +46 -0
  15. package/docs/templates/project-docs-template/operations/observability.md +53 -0
  16. package/docs/templates/project-docs-template/operations/production-runbook.md +62 -0
  17. package/docs/templates/project-docs-template/operations/security.md +49 -0
  18. package/docs/templates/project-docs-template/technical/api-contract.md +49 -0
  19. package/docs/templates/project-docs-template/technical/database.md +59 -0
  20. package/docs/templates/project-docs-template/technical/error-handling.md +54 -0
  21. package/docs/templates/project-docs-template/technical/internationalization.md +46 -0
  22. package/docs/templates/project-docs-template/technical/testing.md +57 -0
  23. package/docs/templates/project-docs-template/technical/ui-ux.md +68 -0
  24. package/docs/{vibes → templates}/project-docs-template/technical-guidelines/index.md +3 -3
  25. package/docs/{vibes → templates}/reusable-prompts/00-project-docs-bootstrap.md +2 -4
  26. package/docs/{vibes → templates}/reusable-prompts/00-project-docs-parity.md +3 -5
  27. package/docs/{vibes → templates}/reusable-prompts/00-project-docs-refresh.md +2 -4
  28. package/docs/{vibes → templates}/reusable-prompts/02-sdd-discuss.md +2 -2
  29. package/{.agents/rules/agent.md → docs/templates/rules/agent-rules.md} +6 -11
  30. package/docs/templates/skills/architecture/db-schema-design/SKILL.md +14 -0
  31. package/docs/{vibes/skills → templates/skills/auditing}/full-verification/SKILL.md +1 -1
  32. package/docs/{vibes/skills → templates/skills/auditing}/parity/SKILL.md +2 -2
  33. package/docs/templates/skills/engineering/refactor-specialist/SKILL.md +13 -0
  34. package/docs/{vibes/skills → templates/skills/engineering}/test-authoring/SKILL.md +177 -1
  35. package/docs/templates/skills/engineering/ui-ux-implementation/SKILL.md +13 -0
  36. package/docs/templates/skills/operations/ci-cd-authoring/SKILL.md +13 -0
  37. package/docs/templates/skills/operations/observability-setup/SKILL.md +13 -0
  38. package/package.json +4 -6
  39. package/src/engine/index.js +7 -12
  40. package/src/engine/install.js +67 -163
  41. package/src/engine/runtime-adapters.js +263 -50
  42. package/src/engine/skill-registry.js +67 -0
  43. package/src/engine/state.js +29 -7
  44. package/src/engine/workflow-registry.js +14 -23
  45. package/.claude/commands/eha/README.md +0 -3
  46. package/.claude/commands/eha/eha-bootstrap.md +0 -9
  47. package/.claude/commands/eha/eha-discuss.md +0 -9
  48. package/.claude/commands/eha/eha-execute.md +0 -9
  49. package/.claude/commands/eha/eha-parity.md +0 -9
  50. package/.claude/commands/eha/eha-refresh.md +0 -9
  51. package/.claude/commands/eha/eha-verify.md +0 -9
  52. package/.claude/rules/agent-rules.md +0 -64
  53. package/.github/instructions/agent-rules.instructions.md +0 -63
  54. package/.github/instructions/eha-workflows.instructions.md +0 -21
  55. package/docs/eyehateagent-contract.md +0 -475
  56. package/docs/eyehateagent-maintenance.md +0 -103
  57. package/docs/project-docs/changelog.md +0 -293
  58. package/docs/project-docs/foundation/architecture.md +0 -117
  59. package/docs/project-docs/foundation/status.md +0 -32
  60. package/docs/project-docs/foundation/workflow.md +0 -63
  61. package/docs/project-docs/index.md +0 -20
  62. package/docs/project-docs/testing.md +0 -73
  63. package/docs/vibes/project-docs-template/foundation/architecture.md +0 -79
  64. package/docs/vibes/project-docs-template/foundation/changelog.md +0 -53
  65. package/docs/vibes/project-docs-template/foundation/feature-inventory.md +0 -46
  66. package/docs/vibes/project-docs-template/foundation/phases.md +0 -60
  67. package/docs/vibes/project-docs-template/foundation/prd.md +0 -69
  68. package/docs/vibes/project-docs-template/foundation/status.md +0 -57
  69. package/docs/vibes/project-docs-template/foundation/workflow.md +0 -59
  70. package/docs/vibes/project-docs-template/getting-started.md +0 -52
  71. package/docs/vibes/project-docs-template/operations/ci-cd.md +0 -56
  72. package/docs/vibes/project-docs-template/operations/compliance.md +0 -46
  73. package/docs/vibes/project-docs-template/operations/governance.md +0 -46
  74. package/docs/vibes/project-docs-template/operations/observability.md +0 -53
  75. package/docs/vibes/project-docs-template/operations/production-runbook.md +0 -62
  76. package/docs/vibes/project-docs-template/operations/security.md +0 -49
  77. package/docs/vibes/project-docs-template/technical/api-contract.md +0 -49
  78. package/docs/vibes/project-docs-template/technical/database.md +0 -59
  79. package/docs/vibes/project-docs-template/technical/error-handling.md +0 -54
  80. package/docs/vibes/project-docs-template/technical/internationalization.md +0 -46
  81. package/docs/vibes/project-docs-template/technical/testing.md +0 -57
  82. package/docs/vibes/project-docs-template/technical/ui-ux.md +0 -68
  83. package/docs/vibes/skills/project-elevation/SKILL.md +0 -157
  84. package/docs/vibes/skills/test-authoring/references/patterns.md +0 -116
  85. package/docs/vibes/skills/test-authoring/references/test-types.md +0 -52
  86. /package/docs/{vibes → templates}/reusable-prompts/01-sdd-execute.md +0 -0
  87. /package/docs/{vibes/skills → templates/skills/architecture}/api-design/SKILL.md +0 -0
  88. /package/docs/{vibes/skills/analysis → templates/skills/architecture/system-analysis}/SKILL.md +0 -0
  89. /package/docs/{vibes/skills/code-audit → templates/skills/auditing/security-audit}/SKILL.md +0 -0
@@ -0,0 +1,57 @@
1
+ # Status
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains. (Note: This dashboard is updated automatically by the EHA agent).
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Current State
28
+ Summarize the current implementation state, maturity, and major constraints.
29
+
30
+ ## 8. Recent Accomplishments
31
+ What was finished since the last update.
32
+
33
+ ## 9. Upcoming Focus
34
+ What the team is tackling next week/month.
35
+
36
+ ## 10. Key Metrics Health
37
+ Live data on project health (e.g., "Test Coverage: 85%", "Open Bugs: 12").
38
+
39
+ ## 11. Roadmap
40
+ | Workstream | Status | Notes |
41
+ | --- | --- | --- |
42
+ | TBD | Planned | |
43
+
44
+ ## 12. Epics
45
+ Active and upcoming epics.
46
+
47
+ ## 13. Risks / Blockers
48
+ Immediate blockers holding up progress.
49
+
50
+ ## 14. Success Metrics
51
+ How we measure if the goals of this document are achieved.
52
+
53
+ ## 15. Related Documents
54
+ [Link to related document](path) - Short brief note about why it's related.
55
+
56
+ ## 16. Open Questions
57
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,59 @@
1
+ # Workflow
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Local Development Loop
28
+ How to spin up and iterate.
29
+
30
+ ## 8. Branching Strategy
31
+ GitFlow, Trunk-based, or custom rules. Diagram of branching logic is preferred. Use mermaid.
32
+
33
+ ```mermaid
34
+ gitGraph
35
+ commit
36
+ branch develop
37
+ checkout develop
38
+ commit
39
+ branch feature
40
+ checkout feature
41
+ commit
42
+ checkout develop
43
+ merge feature
44
+ ```
45
+
46
+ ## 9. PR & Code Review Process
47
+ Required approvers, templates, and conventions.
48
+
49
+ ## 10. Issue Tracking & Triage
50
+ How bugs and features are logged.
51
+
52
+ ## 11. Success Metrics
53
+ How we measure if the goals of this document are achieved.
54
+
55
+ ## 12. Related Documents
56
+ [Link to related document](path) - Short brief note about why it's related.
57
+
58
+ ## 13. Open Questions
59
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,52 @@
1
+ # Getting Started
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Explain how to set up, run, and orient a new contributor or operator in this repository.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Prerequisites
28
+ Required tools, accounts, credentials, environment variables, or secrets handling.
29
+
30
+ ## 8. First Steps
31
+ 1. Clone or open the repository.
32
+ 2. Install dependencies or required tools.
33
+ 3. Configure local environment values.
34
+ 4. Run the standard startup or verification commands.
35
+
36
+ ## 9. Local Setup
37
+ Detailed steps for install, environment bootstrap, and local run.
38
+
39
+ ## 10. Verification
40
+ First validation command and where to find deeper testing guidance (e.g., `testing.md`).
41
+
42
+ ## 11. Troubleshooting
43
+ List known setup issues and their solutions.
44
+
45
+ ## 12. Success Metrics
46
+ How we measure if the goals of this document are achieved.
47
+
48
+ ## 13. Related Documents
49
+ [Link to related document](path) - Short brief note about why it's related.
50
+
51
+ ## 14. Open Questions
52
+ Any unresolved questions or assumptions. Can be empty.
@@ -7,28 +7,28 @@ Status: [Proposed | Draft | Live | Deprecated | Archived]
7
7
  ---
8
8
 
9
9
  ## 1. Description
10
- > [!NOTE] Use this index to list the optional and conditional regular project docs that are active for a repository. The always-required core docs are defined by the contract and do not need registry entries to exist. This index is the authoritative registry for optional and conditional regular docs; starter template files are recommended references, not the activation mechanism.
10
+ Use this index to list the optional and conditional regular project docs that are active for a repository. The always-required core docs are defined by the contract and do not need registry entries to exist. This index is the authoritative registry for optional and conditional regular docs; starter template files are recommended references, not the activation mechanism.
11
11
 
12
12
  ## 2. Important
13
- > [!NOTE] Notes of important findings or critical constraints. Can be empty.
13
+ Notes of important findings or critical constraints. Can be empty.
14
14
 
15
15
  ## 3. Table of Contents
16
- > [!NOTE] TOC goes here.
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
17
 
18
18
  ## 4. Scope
19
- > [!NOTE] The boundaries of what this document covers.
19
+ The boundaries of what this document covers.
20
20
 
21
21
  ## 5. Goals
22
- > [!NOTE] What we aim to achieve with this specific document.
22
+ What we aim to achieve with this specific document.
23
23
 
24
24
  ## 6. Non Goals
25
- > [!NOTE] What is explicitly excluded from the scope of this document.
25
+ What is explicitly excluded from the scope of this document.
26
26
 
27
27
  ## 7. How to Use This Documentation
28
- > [!NOTE] A guide for new developers on where to start reading.
28
+ A guide for new developers on where to start reading.
29
29
 
30
30
  ## 8. Documentation Ownership
31
- > [!NOTE] Who is responsible for keeping specific files up to date (e.g., "Backend team owns `api-contract.md`").
31
+ Who is responsible for keeping specific files up to date (e.g., "Backend team owns `api-contract.md`").
32
32
 
33
33
  ## 9. Foundational Required Docs
34
34
  - `prd.md`
@@ -47,7 +47,7 @@ Status: [Proposed | Draft | Live | Deprecated | Archived]
47
47
  | `phases/index.md` | Multi-phase planning or epic registry | conditional | TBD | When roadmap work needs explicit phase tracking |
48
48
  | `YOUR_NEW_DOC.md` | State the purpose of the next optional regular doc here | conditional | TBD | State the creation trigger for the next optional regular doc here |
49
49
 
50
- > [!NOTE] Use status values such as `active`, `conditional`, `deprecated`, or `archived`. Add a new row in the `## 10. Optional And Conditional Docs` table above for each additional optional regular doc type that the repo activates.
50
+ Use status values such as `active`, `conditional`, `deprecated`, or `archived`. Add a new row in the `## 10. Optional And Conditional Docs` table above for each additional optional regular doc type that the repo activates.
51
51
 
52
52
  ## 11. Registry Rules
53
53
  - Add a new row in the `## 10. Optional And Conditional Docs` table above when an optional or conditional regular doc becomes part of the repo's active documentation set.
@@ -57,10 +57,10 @@ Status: [Proposed | Draft | Live | Deprecated | Archived]
57
57
  - If a listed doc is deprecated or archived, update its status rather than silently removing its history.
58
58
 
59
59
  ## 12. Success Metrics
60
- > [!NOTE] How we measure if the goals of this document are achieved.
60
+ How we measure if the goals of this document are achieved.
61
61
 
62
62
  ## 13. Related Documents
63
- > [!NOTE] [Link to related document](path) - Short brief note about why it's related.
63
+ [Link to related document](path) - Short brief note about why it's related.
64
64
 
65
65
  ## 14. Open Questions
66
- > [!NOTE] Any unresolved questions or assumptions. Can be empty.
66
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,56 @@
1
+ # CI/CD Configuration
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Pipeline Architecture
28
+ Overview of the branching and deployment flow. Flowcharts are preferred. Use mermaid.
29
+
30
+ ```mermaid
31
+ graph LR
32
+ A[Commit] --> B[Build]
33
+ B --> C[Test]
34
+ C --> D[Deploy]
35
+ ```
36
+
37
+ ## 8. Build Steps
38
+ Compilation, bundling, and artifact generation.
39
+
40
+ ## 9. Testing & Quality Gates
41
+ Automated tests, linting, and security scans.
42
+
43
+ ## 10. Deployment Environments
44
+ Staging, UAT, and Production definitions.
45
+
46
+ ## 11. Secrets & Environment Variables
47
+ Required credentials (stored securely).
48
+
49
+ ## 12. Success Metrics
50
+ How we measure if the goals of this document are achieved.
51
+
52
+ ## 13. Related Documents
53
+ [Link to related document](path) - Short brief note about why it's related.
54
+
55
+ ## 14. Open Questions
56
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,46 @@
1
+ # Compliance
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Data Privacy (GDPR / CCPA)
28
+ PII handling and user consent.
29
+
30
+ ## 8. Data Retention Policy
31
+ How long logs and backups are kept before deletion.
32
+
33
+ ## 9. Audit Logging
34
+ Tracking who modified what, and when.
35
+
36
+ ## 10. Legal Disclaimers & Terms
37
+ Required user agreements and copyright notices.
38
+
39
+ ## 11. Success Metrics
40
+ How we measure if the goals of this document are achieved.
41
+
42
+ ## 12. Related Documents
43
+ [Link to related document](path) - Short brief note about why it's related.
44
+
45
+ ## 13. Open Questions
46
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,46 @@
1
+ # Governance
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Versioning Policy (SemVer)
28
+ Rules for major, minor, and patch bumps.
29
+
30
+ ## 8. Release Cadence
31
+ Scheduled deploy windows (e.g., every Tuesday).
32
+
33
+ ## 9. Code Ownership & Maintainers
34
+ Who is responsible for which modules.
35
+
36
+ ## 10. Contribution Guidelines
37
+ Rules for external or cross-team PRs.
38
+
39
+ ## 11. Success Metrics
40
+ How we measure if the goals of this document are achieved.
41
+
42
+ ## 12. Related Documents
43
+ [Link to related document](path) - Short brief note about why it's related.
44
+
45
+ ## 13. Open Questions
46
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,53 @@
1
+ # Observability & Telemetry
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Logging Strategy & Levels
28
+ Formatting (e.g., JSON) and severity rules (Info/Warn/Error).
29
+
30
+ ## 8. Metrics & Dashboards
31
+ Key Performance Indicators (latency, error rates).
32
+
33
+ ## 9. Distributed Tracing
34
+ Request IDs and flow mapping across microservices.
35
+
36
+ ## 10. Alerting Rules & Thresholds
37
+ Conditions that trigger on-call pages. Flowcharts are preferred. Use mermaid.
38
+
39
+ ```mermaid
40
+ graph TD
41
+ A[Alert Triggered] --> B{Severity Level}
42
+ B -- High --> C[Page On-Call]
43
+ B -- Low --> D[Log to Ticket]
44
+ ```
45
+
46
+ ## 11. Success Metrics
47
+ How we measure if the goals of this document are achieved.
48
+
49
+ ## 12. Related Documents
50
+ [Link to related document](path) - Short brief note about why it's related.
51
+
52
+ ## 13. Open Questions
53
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,62 @@
1
+ # Production Runbook
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Describe what this runbook covers and which environment or service it applies to.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Environment Overview
28
+ Production environment summary. Key dependencies or infrastructure notes.
29
+
30
+ ## 8. Prerequisites and Access
31
+ - Required tools
32
+ - Required permissions or credentials
33
+ - Safety checks before making changes
34
+
35
+ ## 9. Release / Deployment Procedure
36
+ 1. Step 1
37
+ 2. Step 2
38
+ 3. Step 3
39
+
40
+ ## 10. Verification / Smoke Checks
41
+ Checks to run to ensure deployment is healthy.
42
+
43
+ ## 11. Rollback / Recovery
44
+ Steps to recover from a failed deployment. Flowcharts are preferred. Use mermaid.
45
+
46
+ ```mermaid
47
+ graph TD
48
+ A[Failure Detected] --> B[Trigger Rollback]
49
+ B --> C[Verify Previous State]
50
+ ```
51
+
52
+ ## 12. Operational Notes
53
+ Known gotchas.
54
+
55
+ ## 13. Success Metrics
56
+ How we measure if the goals of this document are achieved.
57
+
58
+ ## 14. Related Documents
59
+ [Link to related document](path) - Short brief note about why it's related.
60
+
61
+ ## 15. Open Questions
62
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,49 @@
1
+ # Security
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Security Objectives
28
+ Primary assets to protect.
29
+
30
+ ## 8. Identified Threats & Vectors
31
+ Known vulnerabilities (e.g., injection, XSS, DDOS).
32
+
33
+ ## 9. Mitigation Strategies
34
+ How the architecture neutralizes the threats.
35
+
36
+ ## 10. Access Control (RBAC)
37
+ Roles, permissions, and session management.
38
+
39
+ ## 11. Data Encryption (At-Rest / In-Transit)
40
+ Algorithms and key management.
41
+
42
+ ## 12. Success Metrics
43
+ How we measure if the goals of this document are achieved.
44
+
45
+ ## 13. Related Documents
46
+ [Link to related document](path) - Short brief note about why it's related.
47
+
48
+ ## 14. Open Questions
49
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,49 @@
1
+ # API Contract
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Base URL & Authentication
28
+ Core connection details and token requirements.
29
+
30
+ ## 8. Standard Request/Response Format
31
+ The expected shape of data (e.g., standard JSON wrapper).
32
+
33
+ ## 9. Endpoints (REST / GraphQL)
34
+ Specific routes, methods, payloads, and responses.
35
+
36
+ ## 10. Webhooks & Events
37
+ Outbound data events pushed to external systems.
38
+
39
+ ## 11. Rate Limiting & Constraints
40
+ Throttling rules and payload size limits.
41
+
42
+ ## 12. Success Metrics
43
+ How we measure if the goals of this document are achieved.
44
+
45
+ ## 13. Related Documents
46
+ [Link to related document](path) - Short brief note about why it's related.
47
+
48
+ ## 14. Open Questions
49
+ Any unresolved questions or assumptions. Can be empty.
@@ -0,0 +1,59 @@
1
+ # Database Schema
2
+
3
+ Last update: YYYY-MM-DD
4
+
5
+ Status: [Proposed | Draft | Live | Deprecated | Archived]
6
+
7
+ ---
8
+
9
+ ## 1. Description
10
+ Briefly describe the purpose of this document and what it contains.
11
+
12
+ ## 2. Important
13
+ Notes of important findings or critical constraints. Can be empty.
14
+
15
+ ## 3. Table of Contents
16
+ [Generate a hyperlinked table of contents here containing ALL headings in this file (1 through N). Use standard markdown links, e.g., - [1. Description](#1-description)]
17
+
18
+ ## 4. Scope
19
+ The boundaries of what this document covers.
20
+
21
+ ## 5. Goals
22
+ What we aim to achieve with this specific document.
23
+
24
+ ## 6. Non Goals
25
+ What is explicitly excluded from the scope of this document.
26
+
27
+ ## 7. Database Architecture
28
+ Type of DB (SQL/NoSQL) and clustering details.
29
+
30
+ ## 8. Entity Relationship Diagram (ERD)
31
+ Visual or text-based map of table relationships. ERDs are preferred. Use mermaid.
32
+
33
+ ```mermaid
34
+ erDiagram
35
+ CUSTOMER ||--o{ ORDER : places
36
+ ORDER ||--|{ LINE-ITEM : contains
37
+ CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
38
+ ```
39
+
40
+ ## 9. Schema Definitions (Tables/Collections)
41
+ Specific columns, types, and constraints.
42
+
43
+ ## 10. Indexes & Performance
44
+ Keys required for fast lookups.
45
+
46
+ ## 11. Migration Strategy
47
+ How schema changes are versioned and deployed.
48
+
49
+ ## 12. Data Dictionary
50
+ Single source of truth for business definitions. Define what key domain terms actually mean (e.g., "An *Active User* is someone who logged in within 30 days, excluding admins").
51
+
52
+ ## 13. Success Metrics
53
+ How we measure if the goals of this document are achieved.
54
+
55
+ ## 14. Related Documents
56
+ [Link to related document](path) - Short brief note about why it's related.
57
+
58
+ ## 15. Open Questions
59
+ Any unresolved questions or assumptions. Can be empty.