@sallmarta/eye-hate-agent 1.0.0

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 (64) hide show
  1. package/.agents/rules/agent.md +66 -0
  2. package/.claude/commands/eha/README.md +3 -0
  3. package/.claude/commands/eha/eha-bootstrap.md +9 -0
  4. package/.claude/commands/eha/eha-discuss.md +9 -0
  5. package/.claude/commands/eha/eha-execute.md +9 -0
  6. package/.claude/commands/eha/eha-parity.md +9 -0
  7. package/.claude/commands/eha/eha-refresh.md +9 -0
  8. package/.claude/commands/eha/eha-verify.md +9 -0
  9. package/.claude/rules/agent-rules.md +64 -0
  10. package/.github/instructions/agent-rules.instructions.md +63 -0
  11. package/.github/instructions/eha-workflows.instructions.md +21 -0
  12. package/LICENSE +21 -0
  13. package/README.md +337 -0
  14. package/bin/eha.js +163 -0
  15. package/docs/eyehateagent-contract.md +475 -0
  16. package/docs/eyehateagent-maintenance.md +103 -0
  17. package/docs/project-docs/changelog.md +287 -0
  18. package/docs/project-docs/foundation/architecture.md +117 -0
  19. package/docs/project-docs/foundation/status.md +32 -0
  20. package/docs/project-docs/foundation/workflow.md +63 -0
  21. package/docs/project-docs/index.md +20 -0
  22. package/docs/project-docs/testing.md +73 -0
  23. package/docs/vibes/project-docs-template/foundation/architecture.md +79 -0
  24. package/docs/vibes/project-docs-template/foundation/changelog.md +53 -0
  25. package/docs/vibes/project-docs-template/foundation/feature-inventory.md +46 -0
  26. package/docs/vibes/project-docs-template/foundation/phases.md +60 -0
  27. package/docs/vibes/project-docs-template/foundation/prd.md +69 -0
  28. package/docs/vibes/project-docs-template/foundation/status.md +57 -0
  29. package/docs/vibes/project-docs-template/foundation/workflow.md +59 -0
  30. package/docs/vibes/project-docs-template/getting-started.md +52 -0
  31. package/docs/vibes/project-docs-template/index.md +66 -0
  32. package/docs/vibes/project-docs-template/operations/ci-cd.md +56 -0
  33. package/docs/vibes/project-docs-template/operations/compliance.md +46 -0
  34. package/docs/vibes/project-docs-template/operations/governance.md +46 -0
  35. package/docs/vibes/project-docs-template/operations/observability.md +53 -0
  36. package/docs/vibes/project-docs-template/operations/production-runbook.md +62 -0
  37. package/docs/vibes/project-docs-template/operations/security.md +49 -0
  38. package/docs/vibes/project-docs-template/technical/api-contract.md +49 -0
  39. package/docs/vibes/project-docs-template/technical/database.md +59 -0
  40. package/docs/vibes/project-docs-template/technical/error-handling.md +54 -0
  41. package/docs/vibes/project-docs-template/technical/internationalization.md +46 -0
  42. package/docs/vibes/project-docs-template/technical/testing.md +57 -0
  43. package/docs/vibes/project-docs-template/technical/ui-ux.md +68 -0
  44. package/docs/vibes/project-docs-template/technical-guidelines/index.md +52 -0
  45. package/docs/vibes/reusable-prompts/00-project-docs-bootstrap.md +59 -0
  46. package/docs/vibes/reusable-prompts/00-project-docs-parity.md +88 -0
  47. package/docs/vibes/reusable-prompts/00-project-docs-refresh.md +81 -0
  48. package/docs/vibes/reusable-prompts/01-sdd-execute.md +34 -0
  49. package/docs/vibes/reusable-prompts/02-sdd-discuss.md +27 -0
  50. package/docs/vibes/skills/analysis/SKILL.md +173 -0
  51. package/docs/vibes/skills/api-design/SKILL.md +199 -0
  52. package/docs/vibes/skills/code-audit/SKILL.md +170 -0
  53. package/docs/vibes/skills/full-verification/SKILL.md +173 -0
  54. package/docs/vibes/skills/parity/SKILL.md +158 -0
  55. package/docs/vibes/skills/project-elevation/SKILL.md +157 -0
  56. package/docs/vibes/skills/test-authoring/SKILL.md +201 -0
  57. package/docs/vibes/skills/test-authoring/references/patterns.md +116 -0
  58. package/docs/vibes/skills/test-authoring/references/test-types.md +52 -0
  59. package/package.json +53 -0
  60. package/src/engine/index.js +22 -0
  61. package/src/engine/install.js +222 -0
  62. package/src/engine/runtime-adapters.js +106 -0
  63. package/src/engine/state.js +109 -0
  64. package/src/engine/workflow-registry.js +75 -0
@@ -0,0 +1,170 @@
1
+ ---
2
+ name: code-audit
3
+ description: "Project-aware expert-role code audit for bugs, risk, redundancy, dead code, weak boundaries, and logic flaws. Reads project docs first, then audits code against the repository's actual architecture and quality rules."
4
+ argument-hint: "Point to the code, file, module, or change to audit"
5
+ ---
6
+
7
+ # Code Audit — Project-Aware
8
+
9
+ Performs an **expert, systematic, critical audit** of code or code-related artifacts after first reading the project documentation that defines the repository's architecture, verification model, and constraints.
10
+
11
+ This skill is reusable across application code, backend services, scripts, automation, infrastructure code, and documentation-driven repositories.
12
+
13
+ ---
14
+
15
+ ## Required Project Inputs
16
+
17
+ | Document | Why it matters |
18
+ | --- | --- |
19
+
20
+ | `docs/project-docs/foundation/architecture.md` | Defines boundaries, dependencies, stack choices, and anti-violation rules |
21
+ | `docs/project-docs/technical/testing.md` | Defines available validation and evidence strength |
22
+ | `docs/project-docs/foundation/prd.md` | Clarifies scope, non-goals, and project stage |
23
+ | Relevant feature or guideline docs | Clarify local behavior, workflows, APIs, schemas, or UX expectations |
24
+ | The target code and nearby tests | Provide actual evidence for findings |
25
+
26
+ ---
27
+
28
+ ## When To Use
29
+
30
+ | Trigger | Example request |
31
+ | --- | --- |
32
+ | Change review | "Audit this change for correctness and boundary risk" |
33
+ | Module or file review | "Audit this module for dead code and duplication" |
34
+ | Reliability check | "Audit this service for failure handling gaps" |
35
+ | Architecture review | "Audit this workflow for boundary violations" |
36
+
37
+ Use `full-verification` instead when the user wants one broad verification entry point across code, docs, contracts, and repository state rather than a code-first audit.
38
+
39
+ ---
40
+
41
+ ## Procedure
42
+
43
+ ### Step 1 — Understand intent
44
+
45
+ - What is this code supposed to do?
46
+ - What inputs, outputs, and side effects should it have?
47
+ - Which boundary does it sit behind?
48
+ - What project rules apply here?
49
+
50
+ ### Step 2 — Check correctness risks
51
+
52
+ Look for:
53
+
54
+ - runtime crashes
55
+ - missing validation
56
+ - broken assumptions around nullability or absence
57
+ - incorrect state transitions
58
+ - failure to handle empty, partial, duplicate, or delayed inputs
59
+ - unsafe retry or transaction behavior
60
+ - concurrency or sequencing defects
61
+ - schema or serialization mismatches
62
+
63
+ ### Step 3 — Check boundary violations
64
+
65
+ Use `architecture.md` to inspect:
66
+
67
+ - layer or module import violations
68
+ - leaked internal types across boundaries
69
+ - controllers or UI doing business logic that belongs elsewhere
70
+ - repositories or services depending on the wrong layer
71
+ - transport or persistence details leaking into durable domain concepts when the project forbids that
72
+
73
+ ### Step 4 — Check risk and operability
74
+
75
+ Look for:
76
+
77
+ - security exposure
78
+ - data-loss potential
79
+ - missing error translation
80
+ - logging or observability gaps
81
+ - migration or compatibility risk
82
+ - unbounded memory, time, or query behavior
83
+ - hidden coupling to environment or deployment assumptions
84
+
85
+ ### Step 5 — Check redundancy and dead paths
86
+
87
+ Look for:
88
+
89
+ - duplicated logic
90
+ - unused or unreachable branches
91
+ - stale abstractions
92
+ - helper functions with no callers
93
+ - repeated literal values that should be owned centrally
94
+ - duplicated normalization or mapping logic that should be shared
95
+
96
+ ### Step 6 — Check logic quality
97
+
98
+ Look for:
99
+
100
+ - unnecessarily complicated logic
101
+ - wrong abstraction level
102
+ - mismatch between code shape and problem shape
103
+ - poor data-structure choice
104
+ - fragile condition ordering
105
+ - subtle off-by-one or ordering issues
106
+ - code that technically works but will be hard to maintain safely
107
+
108
+ ### Step 7 — Prioritize findings
109
+
110
+ Classify findings by severity:
111
+
112
+ - critical
113
+ - high
114
+ - medium
115
+ - low
116
+
117
+ Each finding should include:
118
+
119
+ - location
120
+ - issue
121
+ - why it matters
122
+ - concrete corrective direction
123
+
124
+ ---
125
+
126
+ ## Output Contract
127
+
128
+ Include:
129
+
130
+ 1. audit summary
131
+ 2. findings ordered by severity
132
+ 3. positive observations where relevant
133
+ 4. recommended next actions in priority order
134
+
135
+ ---
136
+
137
+ ## Quality Checks
138
+
139
+ - No finding without evidence from the target artifact
140
+ - No severity inflation
141
+ - No style nitpicks disguised as bugs
142
+ - No architecture complaint without reference to actual project boundaries
143
+ - No recommendation that ignores project stage or available validation
144
+
145
+ ---
146
+
147
+ ## Anti-Patterns
148
+
149
+ - Calling something dead code without checking workspace usage
150
+ - Calling something a bug without defining the failure condition
151
+ - Criticizing a pattern that the project explicitly chose in `architecture.md`
152
+ - Recommending wide rewrites before testing a local fix or a smaller boundary change
153
+
154
+ ---
155
+
156
+ ## Natural Prompt Shapes
157
+
158
+ - "Review this code for bugs, risks, and boundary issues."
159
+ - "Audit this module like a strict senior reviewer."
160
+ - "Check whether this implementation has correctness or security problems."
161
+ - "Find dead code, logic flaws, and maintainability risks in this change."
162
+
163
+ ---
164
+
165
+ ## Example Requests
166
+
167
+ - "Audit this service for boundary violations"
168
+ - "Review this change for correctness risks"
169
+ - "Check this module for dead code and duplication"
170
+ - "Audit this workflow implementation for operability gaps"
@@ -0,0 +1,173 @@
1
+ ---
2
+ name: full-verification
3
+ description: "Project-aware expert-role broad verification that reads project docs first, classifies the verification target, and routes to the best specialist skill for executable or non-executable checks across code, contracts, docs, architecture, quality, security, reliability, and project health."
4
+ argument-hint: "Describe what should be verified against the contract, project docs, guidelines, code, APIs, architecture, or repository state"
5
+ ---
6
+
7
+ # Full Verification — Project-Aware
8
+
9
+ Provides an **expert, project-aware broad verification entry point** for requests that ask whether something is correct, consistent, healthy, complete, or aligned with the repository's contract and project docs.
10
+
11
+ This skill is **routing-first**. Its primary job is to identify the dominant verification question and route to the single best specialist skill rather than duplicating every verification procedure itself.
12
+
13
+ This skill is intentionally **not tied to any single stack or framework**. When executable checks are needed, it should select the correct framework, commands, and conventions from the project's `technical/testing.md`, `foundation/architecture.md`, and local repository patterns.
14
+
15
+ ---
16
+
17
+ ## Required Project Inputs
18
+
19
+ | Document | Why it matters |
20
+ | --- | --- |
21
+ | `docs/eyehateagent-contract.md` | Defines routing, ownership, precedence, and the active skill model |
22
+
23
+ | `docs/project-docs/technical/testing.md` | Defines executable and non-executable verification rules, commands, and fallback policy |
24
+ | `docs/project-docs/foundation/architecture.md` | Defines boundaries, stack, interfaces, dependency rules, and runtime assumptions |
25
+ | `docs/project-docs/foundation/prd.md` | Defines goals, scope, non-goals, and success criteria |
26
+ | `docs/project-docs/foundation/status.md` | Defines maturity, roadmap, active workstreams, and readiness context |
27
+ | Relevant guideline docs under `docs/project-docs/technical-guidelines/` | Define technical standards such as API, logging, database, error-handling, code style, or design patterns |
28
+ | Relevant code, tests, docs, contracts, and repository artifacts | Provide the actual evidence surfaces to verify against |
29
+
30
+ If required project docs are missing, surface that gap explicitly and limit confidence rather than guessing.
31
+
32
+ ---
33
+
34
+ ## When To Use
35
+
36
+ | Trigger | Example request |
37
+ | --- | --- |
38
+ | Broad verification request | "Verify this feature against the project docs, contract, and actual code" |
39
+ | API and implementation alignment | "Check whether this API matches the docs, code, and guideline standards" |
40
+ | Repository consistency and health check | "Evaluate this project for health, maturity, architecture drift, and consistency" |
41
+ | Stack-aware validation request | "Use the right testing and review approach for this Go service" |
42
+ | Requirements or decision consistency review | "Check whether these requirements and design decisions still match the repo" |
43
+
44
+ Use a specialist skill directly when the dominant question is already obvious:
45
+
46
+ - `test-authoring` for executable verification strategy, stack-aware test selection, and test-writing decisions
47
+ - `code-audit` for code correctness, bug, risk, security, and boundary review
48
+ - `parity` for repository drift across docs, platform instruction surfaces, skills, prompts, and summaries
49
+ - `project-elevation` for forward-looking improvement and readiness planning
50
+ - `analysis` for root-cause reasoning, trade-off evaluation, and requirement or decision analysis
51
+ - `api-design` for API, schema, interface, or boundary contract design and review
52
+
53
+ ---
54
+
55
+ ## Procedure
56
+
57
+ ### Step 1 — Identify the verification target
58
+
59
+ Determine what the user wants verified:
60
+
61
+ - executable behavior or regression risk
62
+ - code quality, bug risk, or security exposure
63
+ - API or interface contract alignment
64
+ - docs or contract consistency
65
+ - architecture or design consistency
66
+ - project health, maturity, readiness, or reliability posture
67
+ - requirements, assumptions, trade-offs, or design-decision consistency
68
+
69
+ ### Step 2 — Gather the governing truth
70
+
71
+ Read the contract and the owning project docs first.
72
+
73
+ Extract:
74
+
75
+ - applicable verification rules
76
+ - current stack and boundary model
77
+ - active guidelines and standards
78
+ - project stage and readiness expectations
79
+ - available evidence and validation commands
80
+
81
+ If documentation and implementation disagree, determine whether the repository already defines which side is authoritative for that fact. If it does not, surface the conflict and ask the user before deciding the fix path.
82
+
83
+ ### Step 3 — Choose the dominant verification mode
84
+
85
+ Prefer the single strongest verification path unless the user explicitly asks for a broader sweep.
86
+
87
+ | Dominant verification question | Route to |
88
+ | --- | --- |
89
+ | How should this be verified, tested, or regression-checked in the current stack? | `test-authoring` |
90
+ | Is this code correct, safe, consistent, and free of obvious bugs or boundary violations? | `code-audit` |
91
+ | Does this API or interface contract match the docs, code, and boundary rules? | `api-design` |
92
+ | Do the docs, platform instruction surfaces, skills, prompts, and repository artifacts still agree? | `parity` |
93
+ | What should improve next, and how healthy or mature is this project at its current stage? | `project-elevation` |
94
+ | Do the requirements, trade-offs, design decisions, or explanations hold up? | `analysis` |
95
+
96
+ Example prompt shapes by verification category:
97
+
98
+ | Verification category | Example prompts |
99
+ | --- | --- |
100
+ | Executable verification strategy | "Verify this Python bug fix and tell me which `pytest` checks should run." / "Use the right test approach for this Go handler and tell me what command to run." |
101
+ | Code quality, bug, risk, or security review | "Verify whether this module has bug risks, security issues, or boundary violations." / "Check this implementation against the docs and code-quality rules." |
102
+ | API or interface contract alignment | "Verify whether this API matches the project docs, guideline standards, and actual code." / "Check whether this repository contract still matches the service and its documented boundary rules." |
103
+ | Docs, contract, or repository consistency | "Verify whether the project docs still match the current repository and contract." / "Check for drift across docs, platform instruction surfaces, skills, prompts, and quick-reference files." |
104
+ | Architecture, health, maturity, or readiness | "Verify this project's health and maturity against the contract and current repository state." / "Check whether the architecture and current implementation still support production readiness." |
105
+ | Requirements, trade-offs, or decision consistency | "Verify whether these requirements and design decisions still hold up against the current repo." / "Check whether this technical trade-off still makes sense given the architecture and status docs." |
106
+
107
+ ### Step 4 — Select the stack-aware checks
108
+
109
+ When executable validation is required, choose the appropriate framework and commands from project docs and local repo conventions.
110
+
111
+ Examples of the decision pattern:
112
+
113
+ - Go project -> use the Go testing approach documented in `testing.md`
114
+ - Python project -> use the Python testing approach documented in `testing.md`
115
+ - documentation-only project -> use structural consistency review rather than inventing executable checks
116
+
117
+ Do not hardcode frameworks in the skill itself when the owning repo docs should decide them.
118
+
119
+ ### Step 5 — Report the routed verification plan
120
+
121
+ State:
122
+
123
+ - what is being verified
124
+ - which specialist skill is the best fit
125
+ - why that route was chosen over nearby alternatives
126
+ - what evidence and checks should be used
127
+ - what remains outside the chosen verification path
128
+
129
+ ---
130
+
131
+ ## Output Contract
132
+
133
+ When using this skill, the output should include:
134
+
135
+ 1. the verification target summary
136
+ 2. the dominant verification mode
137
+ 3. the specialist skill selected and why
138
+ 4. the project docs and evidence surfaces consulted
139
+ 5. the recommended checks or commands to run, or the reason no executable check exists
140
+ 6. the expected output or findings type from the selected path
141
+ 7. any residual risks or uncovered verification areas
142
+ 8. whether user direction is required before deciding between conflicting docs and implementation
143
+
144
+ ---
145
+
146
+ ## Quality Checks
147
+
148
+ - Route to the single best specialist skill unless the user explicitly asks for a broader sweep
149
+ - Do not duplicate another skill's full procedure inside this skill
150
+ - Do not assume frameworks or commands before checking the project docs
151
+ - Keep executable and non-executable verification clearly separated
152
+ - State when confidence is limited by missing docs or missing evidence
153
+ - Do not assume docs or implementation win when the repository does not define authority for the disputed fact
154
+
155
+ ---
156
+
157
+ ## Anti-Patterns
158
+
159
+ - Treating verification as synonymous with writing tests
160
+ - Hardcoding stack-specific frameworks into the skill text
161
+ - Routing a docs-drift problem to `code-audit`
162
+ - Routing a forward-looking improvement question to `analysis`
163
+ - Running a multi-skill sweep by default when one dominant verification path would answer the request
164
+ - Claiming the repository passed a check when the relevant evidence or command was never examined
165
+
166
+ ---
167
+
168
+ ## Example Requests
169
+
170
+ - "Verify this feature against the project docs, contract, and actual code"
171
+ - "Check whether this API matches the docs, code, and guideline standards"
172
+ - "Evaluate this project for health, maturity, architecture drift, and consistency"
173
+ - "Use the right verification approach for this stack and tell me what to run"
@@ -0,0 +1,158 @@
1
+ ---
2
+ name: parity
3
+ description: "Expert-role parity check across project docs, platform instruction surfaces, skills, reusable prompts, workflows, quick-reference material, and implementation evidence when authority depends on the current codebase. Use when checking whether the template system still agrees with itself or when preparing cleanup after major changes."
4
+ argument-hint: "Describe the scope to audit: full repository, docs only, reusable prompt system, platform instruction surfaces and skills, or a specific workstream"
5
+ ---
6
+
7
+ # Parity — Project-Aware
8
+
9
+ Performs an **expert repository-wide drift audit** to find contradictions, stale summaries, duplicated ownership, code-vs-doc authority conflicts, and historical artifacts that should be classified rather than confused with active truth.
10
+
11
+ This skill is the reusable complement to the parity reusable prompt. Use it when the task is analytical rather than generative.
12
+
13
+ ---
14
+
15
+ ## Required Project Inputs
16
+
17
+ | Document | Why it matters |
18
+ | --- | --- |
19
+ | `docs/eyehateagent-contract.md` | Ownership map and canonical doc contract |
20
+ | `docs/project-docs/foundation/prd.md` | Active project identity and scope |
21
+ | `docs/project-docs/foundation/architecture.md` | Active stack and architecture truth |
22
+ | `docs/project-docs/technical/testing.md` | Active verification truth |
23
+ | `docs/project-docs/foundation/status.md` | Active roadmap and current-state truth |
24
+ | Platform instruction surfaces | Automatic behavior layer |
25
+ | Skills and reusable prompts | Reusable procedure and generation layers |
26
+ | Workflow, handoff, and historical docs | Potentially valid references or stale artifacts |
27
+ | Relevant code, tests, configs, and runtime-facing artifacts | Evidence for whether active docs still match the current repository |
28
+
29
+ ---
30
+
31
+ ## When To Use
32
+
33
+ | Trigger | Example request |
34
+ | --- | --- |
35
+ | Full-repo review | "Audit the whole repository for drift after a cleanup pass" |
36
+ | Documentation review | "Check whether project docs, reusable prompts, and the current repository still agree" |
37
+ | Template maintenance | "Audit platform instruction surfaces and skills after changing the contract" |
38
+ | Handoff preparation | "Find contradictions before handing this repo to another maintainer" |
39
+
40
+ Use `full-verification` instead when the user asks for a broad verification entry point and repository drift is only one possible verification path.
41
+
42
+ Typical audit targets include:
43
+
44
+ Check for disagreement across:
45
+
46
+ - project identity and naming
47
+ - stack and dependency choices
48
+ - architecture and dependency rules
49
+ - test commands and quality gates
50
+ - roadmap, phase, or epic naming
51
+ - API or integration ownership
52
+ - reusable prompt outputs vs project-doc contract
53
+ - rule expectations vs documented workflow
54
+ - active docs vs current code, tests, configs, or runtime-facing behavior when authority is disputed
55
+
56
+ ---
57
+
58
+ ## Procedure
59
+
60
+ ### Step 1 — Establish the source of truth
61
+
62
+ Use the project docs defined by `docs/eyehateagent-contract.md` as the default source of truth for documentation ownership unless the repository explicitly states otherwise.
63
+
64
+ ### Step 2 — Compare dependent layers
65
+
66
+ Compare the source-of-truth docs against:
67
+
68
+ - platform instruction surfaces
69
+ - skills
70
+ - reusable prompts
71
+ - workflow docs
72
+ - quick references and summaries
73
+ - relevant code, tests, configs, and runtime-facing artifacts when a finding depends on current implementation behavior or authority order
74
+
75
+ If code and docs conflict and the repository does not explicitly define which side is authoritative for that fact, surface the conflict and ask the user before choosing the fix path.
76
+
77
+ ### Step 3 — Classify each mismatch
78
+
79
+ Every mismatch should be classified as one of:
80
+
81
+ - contradiction
82
+ - stale summary
83
+ - duplicated ownership
84
+ - historical artifact
85
+ - optional module not active in the current repo
86
+
87
+ ### Step 4 — Assess impact
88
+
89
+ Determine whether the mismatch affects:
90
+
91
+ - implementation safety
92
+ - automation behavior
93
+ - reusable prompt outputs
94
+ - onboarding clarity
95
+ - release or verification confidence
96
+ - authority certainty between docs and implementation
97
+
98
+ ### Step 5 — Recommend ownership-level fixes
99
+
100
+ Recommend which owning file or layer should be updated. Do not spread the same fact across more files than necessary.
101
+
102
+ ---
103
+
104
+ ## Output Contract
105
+
106
+ For each finding, include:
107
+
108
+ 1. severity
109
+ 2. fact in conflict
110
+ 3. source-of-truth location
111
+ 4. conflicting location
112
+ 5. classification
113
+ 6. why it matters
114
+ 7. recommended owner to update
115
+ 8. whether user direction is required before deciding the fix path
116
+
117
+ End with:
118
+
119
+ 1. highest-priority drift items
120
+ 2. acceptable historical artifacts that should not be treated as blockers
121
+
122
+ ---
123
+
124
+ ## Quality Checks
125
+
126
+ - Do not confuse reference material with active truth
127
+ - Do not propose fixing both sides of a contradiction when one side clearly owns the fact
128
+ - Distinguish blocking contradictions from harmless historical leftovers
129
+ - Keep the audit actionable, not just descriptive
130
+ - Do not assume docs or code win when authority for the disputed fact is not explicit
131
+
132
+ ---
133
+
134
+ ## Anti-Patterns
135
+
136
+ - Treating summary files as the owner when the contract defines a different source of truth
137
+ - Reporting drift without naming the owning file or layer that should change
138
+ - Escalating every historical artifact as a blocker instead of classifying it correctly
139
+ - Duplicating the same fact across multiple layers as a fix for drift
140
+ - Assuming implementation drift or documentation drift without checking whether the repository defines authority for that fact
141
+
142
+ ---
143
+
144
+ ## Natural Prompt Shapes
145
+
146
+ - "Check whether the docs and repository still agree."
147
+ - "Audit this repo for drift after the latest changes."
148
+ - "Find contradictions across docs, platform instruction surfaces, skills, and prompts."
149
+ - "Tell me which mismatches are real blockers versus harmless leftovers."
150
+
151
+ ---
152
+
153
+ ## Example Requests
154
+
155
+ - "Audit the repository for contradictions after the latest template changes"
156
+ - "Check whether reusable prompts and skills still match the contract"
157
+ - "Find stale summaries in the project docs"
158
+ - "Classify which mismatches are blockers versus historical artifacts"
@@ -0,0 +1,157 @@
1
+ ---
2
+ name: project-elevation
3
+ description: "Project-aware expert-role elevation analysis to identify missing capabilities, weak reliability, poor user or operator experience, and high-value next improvements. Reads project docs first, then suggests realistic upgrades for the repository's current stage."
4
+ argument-hint: "Point to the project, module, workflow, or feature to evaluate for improvement"
5
+ ---
6
+
7
+ # Project Elevation — Project-Aware
8
+
9
+ Performs an **expert forward-looking evaluation** of a project, feature, workflow, or module to find meaningful improvements in reliability, usability, maintainability, delivery readiness, and developer experience.
10
+
11
+ This skill is designed to avoid generic wish lists. It should recommend improvements that are realistic for the repository's actual scope, stage, and constraints.
12
+
13
+ ---
14
+
15
+ ## Required Project Inputs
16
+
17
+ | Document | Why it matters |
18
+ | --- | --- |
19
+
20
+ | `docs/project-docs/foundation/prd.md` | Clarifies goals, stakeholders, non-goals, and success metrics |
21
+ | `docs/project-docs/foundation/architecture.md` | Defines stack, boundaries, and implementation constraints |
22
+ | `docs/project-docs/foundation/status.md` | Shows maturity, roadmap, and current execution state |
23
+ | `docs/project-docs/technical/testing.md` | Shows current verification maturity and release confidence |
24
+ | Relevant feature, API, workflow, or UX docs | Clarify what the system already promises |
25
+
26
+ ---
27
+
28
+ ## When To Use
29
+
30
+ | Trigger | Example request |
31
+ | --- | --- |
32
+ | Roadmap review | "Evaluate this project for the next highest-value improvements" |
33
+ | Feature assessment | "What is missing from this workflow before it is production-ready?" |
34
+ | Reliability review | "Where should this module be elevated for resilience first?" |
35
+ | Delivery readiness | "What should improve before we call this MVP complete?" |
36
+
37
+ Use `full-verification` instead when the user wants a broad verification pass across code, docs, contract, architecture, and project health rather than a forward-looking improvement plan.
38
+
39
+ Use `analysis` instead when the main question is why something behaves the way it does, whether a decision is correct, or which option is better.
40
+
41
+ Use `code-audit` instead when the main question is whether an existing implementation has correctness, logic, or boundary defects.
42
+
43
+ Use `test-authoring` instead when the main question is how a change or behavior should be verified.
44
+
45
+ ---
46
+
47
+ ## Procedure
48
+
49
+ ### Step 1 — Understand the current state
50
+
51
+ - What does the system already do?
52
+ - Who uses it or depends on it?
53
+ - What stage is it in: concept, prototype, MVP, production, maintenance?
54
+ - What is explicitly out of scope?
55
+ - What current constraints would make some improvements unrealistic right now?
56
+
57
+ ### Step 2 — Scan for missing failure handling
58
+
59
+ Look for places where the system could fail silently or recover poorly.
60
+
61
+ Examples:
62
+
63
+ - no clear offline or dependency-failure behavior
64
+ - missing retry, timeout, or rollback behavior
65
+ - no error-state UX or operator feedback
66
+ - missing migration or compatibility handling
67
+ - no recovery path for partial success or interruption
68
+
69
+ ### Step 3 — Scan for natural feature gaps
70
+
71
+ Look for missing capabilities that are implied by current user flows or system promises.
72
+
73
+ Examples:
74
+
75
+ - one-way workflows with no cleanup or reverse action
76
+ - creation or capture flow with no correction, update, archival, or removal path
77
+ - discovery or lookup behavior with no empty, degraded, or large-result handling
78
+ - output generation or save action with no review, history, or management path
79
+ - automation with no observability or intervention path
80
+ - release or rollout process with no rollback, verification, or recovery checks
81
+
82
+ ### Step 4 — Scan for improvement opportunities
83
+
84
+ Evaluate:
85
+
86
+ - reliability
87
+ - security
88
+ - performance
89
+ - observability
90
+ - developer experience
91
+ - user experience
92
+ - maintainability
93
+
94
+ Prioritize changes that improve the system materially without violating the project's scope or stage.
95
+
96
+ ### Step 5 — Prioritize recommendations
97
+
98
+ Classify each recommendation as:
99
+
100
+ - must-have
101
+ - high-value
102
+ - nice-to-have
103
+ - future
104
+
105
+ Tie the rating back to current goals and constraints from `prd.md` and `status.md`.
106
+
107
+ Prefer the smallest realistic next step over a broad rewrite when both could address the same gap.
108
+
109
+ ---
110
+
111
+ ## Output Contract
112
+
113
+ Include:
114
+
115
+ 1. elevation summary
116
+ 2. missing error handling
117
+ 3. missing features
118
+ 4. improvement opportunities by category
119
+ 5. recommended roadmap or next actions
120
+
121
+ ---
122
+
123
+ ## Quality Checks
124
+
125
+ - No gold-plating for an early-stage project
126
+ - No recommendation that conflicts with explicit non-goals
127
+ - No large rewrite suggestion without a clear payoff
128
+ - No generic checklist detached from the actual repository
129
+ - Recommendations are prioritized and actionable
130
+
131
+ ---
132
+
133
+ ## Anti-Patterns
134
+
135
+ - Suggesting enterprise-scale systems for a small internal or MVP project
136
+ - Ignoring what the project explicitly does not want to become
137
+ - Producing a long unranked list with no delivery guidance
138
+ - Using this skill as a generic root-cause analysis or code-review wrapper when `analysis` or `code-audit` is the real fit
139
+ - Recommending improvements that the current architecture cannot plausibly support without acknowledging that cost
140
+
141
+ ---
142
+
143
+ ## Natural Prompt Shapes
144
+
145
+ - "What should we improve next in this project?"
146
+ - "What is still missing before this workflow is ready?"
147
+ - "Where are the biggest maturity or readiness gaps right now?"
148
+ - "What are the highest-value next improvements without overbuilding?"
149
+
150
+ ---
151
+
152
+ ## Example Requests
153
+
154
+ - "Evaluate this project for the next highest-value improvements"
155
+ - "What should improve before this workflow is production-ready?"
156
+ - "Where is the biggest reliability gap in this module?"
157
+ - "What should we add before calling this MVP complete?"