@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
@@ -1,157 +0,0 @@
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?"
@@ -1,116 +0,0 @@
1
- # Test Patterns Reference — Project-Aware
2
-
3
- Quick reference for common test-pattern shapes. Use these as **structural examples**, then adapt them using the repository's `testing.md`, `architecture.md`, and local conventions.
4
-
5
- ---
6
-
7
- ## Pattern A: Narrow Unit Or Component Test
8
-
9
- Use when you want the fastest check at a clear boundary.
10
-
11
- ### Pattern A Skeleton
12
-
13
- ```text
14
- Arrange inputs and collaborators
15
- Act on one function, method, or component boundary
16
- Assert on the returned value, state change, or emitted effect
17
- ```
18
-
19
- ### Pattern A Good Fit
20
-
21
- - pure functions
22
- - mappers or transformers
23
- - validators
24
- - repository or service methods with mocked dependencies
25
- - small boundary-level business logic
26
-
27
- ### Pattern A Checklist
28
-
29
- - isolate one behavior
30
- - keep collaborators fake or mocked when helpful
31
- - assert on outcomes, not internal implementation noise
32
- - name tests by observable behavior
33
-
34
- ---
35
-
36
- ## Pattern B: Persistence Or Contract Test
37
-
38
- Use when you need confidence in schema, queries, serialization, or boundary compatibility.
39
-
40
- ### Pattern B Skeleton
41
-
42
- ```text
43
- Set up an isolated persistence or contract environment
44
- Insert or send representative inputs
45
- Read back or decode the resulting output
46
- Assert on correctness, constraints, and error cases
47
- ```
48
-
49
- ### Pattern B Good Fit
50
-
51
- - database queries
52
- - repository persistence rules
53
- - schema evolution
54
- - migration behavior
55
- - request / response or message serialization
56
- - interface compatibility checks
57
-
58
- ### Pattern B Checklist
59
-
60
- - include one happy path
61
- - include one invalid or edge case
62
- - assert on durable outcomes, not just returned status
63
- - use representative fixtures where that improves clarity
64
-
65
- ---
66
-
67
- ## Pattern C: Flow Or Interaction Test
68
-
69
- Use when the value lies in verifying a user, operator, or system flow instead of an isolated unit.
70
-
71
- ### Pattern C Skeleton
72
-
73
- ```text
74
- Start from a realistic entry point
75
- Drive the interaction or workflow
76
- Wait for the expected state transition
77
- Assert on visible output, routed behavior, or side effects
78
- ```
79
-
80
- ### Pattern C Good Fit
81
-
82
- - UI interactions
83
- - endpoint-to-service flow
84
- - command or job workflows
85
- - integration boundaries
86
- - navigation or routing flows
87
-
88
- ### Pattern C Checklist
89
-
90
- - keep the flow focused on one meaningful outcome
91
- - mock or isolate irrelevant external dependencies when possible
92
- - assert on the behavior the caller or user experiences
93
- - avoid testing multiple unrelated journeys in one case
94
-
95
- ---
96
-
97
- ## Common Assertions To Prefer
98
-
99
- - returned values or result envelopes
100
- - persisted state
101
- - emitted events or messages
102
- - visible UI state
103
- - boundary calls that materially define behavior
104
- - error category and recovery path
105
-
106
- Prefer observable behavior over internal implementation details.
107
-
108
- ---
109
-
110
- ## Common Anti-Patterns
111
-
112
- - testing too many branches in one test
113
- - asserting on private implementation details
114
- - using full integration tests when a narrow unit or contract test would falsify the same assumption
115
- - naming tests after implementation rather than behavior
116
- - copying framework-specific scaffolds without checking `testing.md`
@@ -1,52 +0,0 @@
1
- # Test Type Decision Table — Project-Aware
2
-
3
- Use this table to choose the smallest verification type that matches the actual boundary being changed. Confirm the final choice against the repository's `testing.md`.
4
-
5
- | Scenario | Preferred check type | Why |
6
- | --- | --- | --- |
7
- | Pure function, mapper, validator, parser | Unit | Fastest falsifiable check with minimal setup |
8
- | Internal service or repository rule | Unit or component | Verifies business behavior without unnecessary system setup |
9
- | Persistence query, migration, or schema rule | Persistence / migration test | Verifies durable state and compatibility at the right boundary |
10
- | Request, handler, controller, or public API contract | Contract or integration test | Verifies visible boundary behavior and schema expectations |
11
- | UI or operator interaction flow | Flow / interaction test | Verifies user-visible behavior rather than isolated internals |
12
- | Async job, workflow, or queue behavior | Component or integration test | Verifies sequencing, retry, and side-effect behavior |
13
- | Documentation, reusable prompt, or platform instruction surfaces change | Structural consistency review | Executable tests may not exist; consistency becomes the real boundary |
14
-
15
- ---
16
-
17
- ## Test Type Summary
18
-
19
- | Type | Best for | Typical cost | Isolation |
20
- | --- | --- | --- | --- |
21
- | Unit | Pure logic and narrow behavior | Lowest | Highest |
22
- | Component | One internal boundary with collaborators | Low to medium | High |
23
- | Persistence / contract | Durable state or schema behavior | Low to medium | Medium to high |
24
- | Flow / interaction | User or system-visible path | Medium | Medium |
25
- | Integration | Real dependency or end-to-end boundary | Highest | Lowest |
26
- | Consistency review | Docs, reusable prompts, platform instruction surfaces, and template systems | Low | High |
27
-
28
- ---
29
-
30
- ## Selection Rules
31
-
32
- 1. Prefer the narrowest check that can prove the change is correct.
33
- 2. Escalate to broader tests only when the boundary truly requires it.
34
- 3. Use project docs to choose commands, harnesses, and file placement.
35
- 4. When no executable validation exists, make the structural review explicit rather than pretending the repo is fully testable.
36
-
37
- ---
38
-
39
- ## Naming Guidance
40
-
41
- Prefer behavior-driven names such as:
42
-
43
- - `returns empty result when no records match`
44
- - `rejects invalid payload when required field is missing`
45
- - `shows retry state after dependency timeout`
46
- - `persists latest progress after successful update`
47
-
48
- Avoid placeholder names such as:
49
-
50
- - `test1`
51
- - `happy path`
52
- - `error case`