@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.
- package/.agents/rules/agent.md +66 -0
- package/.claude/commands/eha/README.md +3 -0
- package/.claude/commands/eha/eha-bootstrap.md +9 -0
- package/.claude/commands/eha/eha-discuss.md +9 -0
- package/.claude/commands/eha/eha-execute.md +9 -0
- package/.claude/commands/eha/eha-parity.md +9 -0
- package/.claude/commands/eha/eha-refresh.md +9 -0
- package/.claude/commands/eha/eha-verify.md +9 -0
- package/.claude/rules/agent-rules.md +64 -0
- package/.github/instructions/agent-rules.instructions.md +63 -0
- package/.github/instructions/eha-workflows.instructions.md +21 -0
- package/LICENSE +21 -0
- package/README.md +337 -0
- package/bin/eha.js +163 -0
- package/docs/eyehateagent-contract.md +475 -0
- package/docs/eyehateagent-maintenance.md +103 -0
- package/docs/project-docs/changelog.md +287 -0
- package/docs/project-docs/foundation/architecture.md +117 -0
- package/docs/project-docs/foundation/status.md +32 -0
- package/docs/project-docs/foundation/workflow.md +63 -0
- package/docs/project-docs/index.md +20 -0
- package/docs/project-docs/testing.md +73 -0
- package/docs/vibes/project-docs-template/foundation/architecture.md +79 -0
- package/docs/vibes/project-docs-template/foundation/changelog.md +53 -0
- package/docs/vibes/project-docs-template/foundation/feature-inventory.md +46 -0
- package/docs/vibes/project-docs-template/foundation/phases.md +60 -0
- package/docs/vibes/project-docs-template/foundation/prd.md +69 -0
- package/docs/vibes/project-docs-template/foundation/status.md +57 -0
- package/docs/vibes/project-docs-template/foundation/workflow.md +59 -0
- package/docs/vibes/project-docs-template/getting-started.md +52 -0
- package/docs/vibes/project-docs-template/index.md +66 -0
- package/docs/vibes/project-docs-template/operations/ci-cd.md +56 -0
- package/docs/vibes/project-docs-template/operations/compliance.md +46 -0
- package/docs/vibes/project-docs-template/operations/governance.md +46 -0
- package/docs/vibes/project-docs-template/operations/observability.md +53 -0
- package/docs/vibes/project-docs-template/operations/production-runbook.md +62 -0
- package/docs/vibes/project-docs-template/operations/security.md +49 -0
- package/docs/vibes/project-docs-template/technical/api-contract.md +49 -0
- package/docs/vibes/project-docs-template/technical/database.md +59 -0
- package/docs/vibes/project-docs-template/technical/error-handling.md +54 -0
- package/docs/vibes/project-docs-template/technical/internationalization.md +46 -0
- package/docs/vibes/project-docs-template/technical/testing.md +57 -0
- package/docs/vibes/project-docs-template/technical/ui-ux.md +68 -0
- package/docs/vibes/project-docs-template/technical-guidelines/index.md +52 -0
- package/docs/vibes/reusable-prompts/00-project-docs-bootstrap.md +59 -0
- package/docs/vibes/reusable-prompts/00-project-docs-parity.md +88 -0
- package/docs/vibes/reusable-prompts/00-project-docs-refresh.md +81 -0
- package/docs/vibes/reusable-prompts/01-sdd-execute.md +34 -0
- package/docs/vibes/reusable-prompts/02-sdd-discuss.md +27 -0
- package/docs/vibes/skills/analysis/SKILL.md +173 -0
- package/docs/vibes/skills/api-design/SKILL.md +199 -0
- package/docs/vibes/skills/code-audit/SKILL.md +170 -0
- package/docs/vibes/skills/full-verification/SKILL.md +173 -0
- package/docs/vibes/skills/parity/SKILL.md +158 -0
- package/docs/vibes/skills/project-elevation/SKILL.md +157 -0
- package/docs/vibes/skills/test-authoring/SKILL.md +201 -0
- package/docs/vibes/skills/test-authoring/references/patterns.md +116 -0
- package/docs/vibes/skills/test-authoring/references/test-types.md +52 -0
- package/package.json +53 -0
- package/src/engine/index.js +22 -0
- package/src/engine/install.js +222 -0
- package/src/engine/runtime-adapters.js +106 -0
- package/src/engine/state.js +109 -0
- package/src/engine/workflow-registry.js +75 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: always_on
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
description: "Lean always-on rules for guardrails, context, intake, verification, and doc sync."
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Agent Rules
|
|
10
|
+
|
|
11
|
+
## 1. Guardrails & Approach
|
|
12
|
+
|
|
13
|
+
Prevent unilateral changes that could surprise the user and balance proactive execution with alignment.
|
|
14
|
+
|
|
15
|
+
- **1.1** Ask before making material architecture, naming, or tool changes. Skip this for micro-decisions.
|
|
16
|
+
- **1.2** Balance proactive execution with user alignment so initiative never outpaces agreement.
|
|
17
|
+
- **1.3** If a better approach exists, compare the user's apparent expectation with the recommended path clearly and briefly. Use a short table when that sharpens the tradeoff. Phrasing to use: *"I have an alternative approach that may be better - want me to use it instead?"*
|
|
18
|
+
|
|
19
|
+
## 2. Context & Cache Integrity
|
|
20
|
+
|
|
21
|
+
Protect the prompt prefix cache and manage context-window capacity to preserve the 90% cached-token discount.
|
|
22
|
+
|
|
23
|
+
- **2.1** Keep always-on context small. Keep rules generic and leave project-specific facts in project docs under `docs/project-docs/`.
|
|
24
|
+
- **2.2** Read the smallest owning doc that resolves the decision rather than scanning the entire repository.
|
|
25
|
+
- **2.3** **Prefix Stability (Gemini):** Never reorder tool definitions, system instructions, or serialized schemas mid-session — the implicit prefix cache requires a byte-identical prompt prefix for the 90% cached-token discount. Do not inject dynamic content (timestamps, session IDs, reordered JSON keys) before or between stable blocks. Append all per-turn dynamic data after the stable prefix. If cache-hit rates drop unexpectedly, suspect non-deterministic serialization or framework-injected metadata before other causes.
|
|
26
|
+
- **2.4** **Session Continuity (No Dynamic Compaction):** Never modify, compact, or delete prior chat turns mid-session—this destroys the hardware prefix cache. If context reaches ~65% capacity, compile a comprehensive session-handoff.md to `active-repo/memories/session/session-handoff.md` (overwriting any previous handoff, and ensure `active-repo/memories/session/` is added to `.gitignore` if created). The handoff must contain a full, detailed summary of the active conversation's progress, decisions, and open threads, strictly redact all sensitive information (such as API keys, passwords, credentials, or PII), and incorporate any user-provided compaction arguments as next-session focus areas. Prompt the user to run `/clear` or open a new session with this file loaded, providing a copy-pasteable short prompt (e.g., "Resume session from memories/session/session-handoff.md") to load the handoff instantly.
|
|
27
|
+
|
|
28
|
+
## 3. Intake & Scope Alignment
|
|
29
|
+
|
|
30
|
+
Structure incoming requests before acting to reduce rework and catch ambiguity early.
|
|
31
|
+
|
|
32
|
+
- **3.1** For non-trivial tasks, follow this 7-step checklist before coding:
|
|
33
|
+
1. Summarize the request in 1–3 sentences.
|
|
34
|
+
2. Analyze before implementing. Brainstorm when the task benefits from options, tradeoffs, or sequencing.
|
|
35
|
+
3. Ask clarifying questions when the request is ambiguous, under-specified, expectations are misplaced, or confidence is below 95%. **Clarify scope or output format before execution, not at completion.**
|
|
36
|
+
4. Make a short ordered plan or todo list.
|
|
37
|
+
5. Treat a user-provided list as full scope unless the user changes it.
|
|
38
|
+
6. Confirm if the plan could materially change scope, output, or direction.
|
|
39
|
+
7. Then proceed.
|
|
40
|
+
- **3.2** Skip the intake checklist only for trivial single-step edits.
|
|
41
|
+
|
|
42
|
+
## 4. Docs, Verification, and Completion
|
|
43
|
+
|
|
44
|
+
Ensure every task ends with verified output, synchronized documentation, and clear follow-ups.
|
|
45
|
+
|
|
46
|
+
- **4.1** State a point once, in its strongest owning section.
|
|
47
|
+
- **4.2** Default live response shape when no stronger format applies: Summary -> What I'll Do -> Result or Next Action -> Validation or Limitation -> Optional Follow-Up.
|
|
48
|
+
- **4.3** Stronger formats win: user formatting requests > mode-specific files > skill or prompt `Output Contract`.
|
|
49
|
+
- **4.4** **Knowledge & Memory Preservation:** Preserve unique information when writing to memory. If valuable legacy or codebase knowledge does not fit standard headings, decide: new section, new file, or ask the user if the best location is ambiguous.
|
|
50
|
+
- **4.5** **Documentation Sync:** After code or rule changes, sync affected docs under `docs/project-docs/` to ensure they remain the canonical source of truth.
|
|
51
|
+
- **4.6** **Follow-Up Suggestions:** After completing a task, you may suggest 1–3 high-value, optional next actions. Never apply them silently. Phrasing: *"Task complete. Noticed X could be improved - want me to handle that too? or I can explain it if you want to review first."*
|
|
52
|
+
|
|
53
|
+
## 5. Contract Essentials
|
|
54
|
+
|
|
55
|
+
Embed the critical behavioral rules from the contract so agents follow them without opening the full contract on every task.
|
|
56
|
+
|
|
57
|
+
- **5.1 Skills & Relevance:** Treat attached or mentioned skills as relevance hints, not automatic requirements. If a skill is clearly unnecessary, say so briefly and proceed directly unless the user insists. Prefer the single most relevant skill over chaining multiple.
|
|
58
|
+
- **5.2 Decision Precedence:** Resolve routing, conflict, and behavior decisions in this strict order:
|
|
59
|
+
1. User's requested goal and output.
|
|
60
|
+
2. User's explicit constraints or preferences.
|
|
61
|
+
3. The active contract (`docs/eyehateagent-contract.md`) and the owning project docs under `docs/project-docs/`.
|
|
62
|
+
4. Attached context (skills, notes, or examples) treated as relevance hints unless made mandatory.
|
|
63
|
+
5. Automatic agent judgment.
|
|
64
|
+
- **5.3 Failure & Fallback:** If a required project doc is missing, note the gap and create the smallest owning doc that unblocks the task. If code, tests, configs, or runtime-facing artifacts conflict with active docs and authority is unclear, do not guess: surface the conflict, cite the evidence, and ask the user before choosing the fix path.
|
|
65
|
+
- **5.4 Codebase & Comment Integrity:** Maintain absolute documentation and codebase integrity when making modifications. Preserve all existing comments, docstrings, formatting, and structures that are unrelated to your changes unless explicitly instructed otherwise. Never delete unrelated comments or placeholder code silently.
|
|
66
|
+
- **5.5 Completion & Verification:** End each task with the requested output and the narrowest applicable validation from `docs/project-docs/testing.md` (or a structural review with an explicit limitation if no executable check exists). Re-read output for correctness, edge cases, and unexpected side effects before finishing. Include a doc-sync check when ownership changed.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run the EHA bootstrap workflow"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Read `docs/eyehateagent-contract.md` first.
|
|
6
|
+
|
|
7
|
+
Execute `docs/vibes/reusable-prompts/00-project-docs-bootstrap.md`.
|
|
8
|
+
|
|
9
|
+
If the user provides additional context, apply it while preserving the workflow's output contract and the owning-doc rules in `docs/project-docs/`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run the EHA discuss workflow"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Read `docs/eyehateagent-contract.md` first.
|
|
6
|
+
|
|
7
|
+
Execute `docs/vibes/reusable-prompts/02-sdd-discuss.md`.
|
|
8
|
+
|
|
9
|
+
If the user provides additional context, apply it while preserving the workflow's output contract and the owning-doc rules in `docs/project-docs/`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run the EHA execute workflow"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Read `docs/eyehateagent-contract.md` first.
|
|
6
|
+
|
|
7
|
+
Execute `docs/vibes/reusable-prompts/01-sdd-execute.md`.
|
|
8
|
+
|
|
9
|
+
If the user provides additional context, apply it while preserving the workflow's output contract and the owning-doc rules in `docs/project-docs/`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run the EHA parity workflow"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Read `docs/eyehateagent-contract.md` first.
|
|
6
|
+
|
|
7
|
+
Execute `docs/vibes/reusable-prompts/00-project-docs-parity.md`.
|
|
8
|
+
|
|
9
|
+
If the user provides additional context, apply it while preserving the workflow's output contract and the owning-doc rules in `docs/project-docs/`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run the EHA refresh workflow"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Read `docs/eyehateagent-contract.md` first.
|
|
6
|
+
|
|
7
|
+
Execute `docs/vibes/reusable-prompts/00-project-docs-refresh.md`.
|
|
8
|
+
|
|
9
|
+
If the user provides additional context, apply it while preserving the workflow's output contract and the owning-doc rules in `docs/project-docs/`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run the EHA verify workflow"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Read `docs/eyehateagent-contract.md` first.
|
|
6
|
+
|
|
7
|
+
Execute `docs/vibes/reusable-prompts/00-project-docs-parity.md`.
|
|
8
|
+
|
|
9
|
+
If the user provides additional context, apply it while preserving the workflow's output contract and the owning-doc rules in `docs/project-docs/`.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Lean always-on rules for guardrails, context, intake, verification, and doc sync."
|
|
3
|
+
applyTo: "**"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Agent Rules
|
|
7
|
+
|
|
8
|
+
## 1. Guardrails & Approach
|
|
9
|
+
|
|
10
|
+
Prevent unilateral changes that could surprise the user and balance proactive execution with alignment.
|
|
11
|
+
|
|
12
|
+
- **1.1** Ask before making material architecture, naming, or tool changes. Skip this for micro-decisions.
|
|
13
|
+
- **1.2** Balance proactive execution with user alignment so initiative never outpaces agreement.
|
|
14
|
+
- **1.3** If a better approach exists, compare the user's apparent expectation with the recommended path clearly and briefly. Use a short table when that sharpens the tradeoff. Phrasing to use: *"I have an alternative approach that may be better - want me to use it instead?"*
|
|
15
|
+
|
|
16
|
+
## 2. Context & Cache Integrity
|
|
17
|
+
|
|
18
|
+
Protect the prompt prefix cache and manage context-window capacity to preserve the 90% cached-token discount.
|
|
19
|
+
|
|
20
|
+
- **2.1** Keep always-on context small. Keep rules generic and leave project-specific facts in project docs under `docs/project-docs/`.
|
|
21
|
+
- **2.2** Read the smallest owning doc that resolves the decision rather than scanning the entire repository.
|
|
22
|
+
- **2.3** **Prefix & Lookback Integrity (Claude):** Cache reads cost 90% less but require a byte-identical prefix in tools -> system -> messages order. Never reorder, add, or remove tool definitions mid-session. Never inject dynamic content (timestamps, per-request IDs) into the system prompt — move it to a late user message instead.
|
|
23
|
+
- **2.4** **Claude Cache Breakpoints:** In heavy agentic loops, be aware of the ~20-block lookback window. If a single turn produces more than ~15 tool-use/tool-result pairs, explicitly request the user to perform a minor conversational interaction or place a cache breakpoint block to prevent silent cache misses on subsequent turns.
|
|
24
|
+
- **2.5** **Session Continuity (No Dynamic Compaction):** Never modify, compact, or delete prior chat turns mid-session—this destroys the hardware prefix cache. If context reaches ~65% capacity, compile a comprehensive session-handoff.md to `active-repo/memories/session/session-handoff.md` (overwriting any previous handoff, and ensure `active-repo/memories/session/` is added to `.gitignore` if created). The handoff must contain a full, detailed summary of the active conversation's progress, decisions, and open threads, strictly redact all sensitive information (such as API keys, passwords, credentials, or PII), and incorporate any user-provided compaction arguments as next-session focus areas. Prompt the user to run `/clear` or open a new session with this file loaded, providing a copy-pasteable short prompt (e.g., "Resume session from memories/session/session-handoff.md") to load the handoff instantly.
|
|
25
|
+
|
|
26
|
+
## 3. Intake & Scope Alignment
|
|
27
|
+
|
|
28
|
+
Structure incoming requests before acting to reduce rework and catch ambiguity early.
|
|
29
|
+
|
|
30
|
+
- **3.1** For non-trivial tasks, follow this 7-step checklist before coding:
|
|
31
|
+
1. Summarize the request in 1–3 sentences.
|
|
32
|
+
2. Analyze before implementing. Brainstorm when the task benefits from options, tradeoffs, or sequencing.
|
|
33
|
+
3. Ask clarifying questions when the request is ambiguous, under-specified, expectations are misplaced, or confidence is below 95%. **Clarify scope or output format before execution, not at completion.**
|
|
34
|
+
4. Make a short ordered plan or todo list.
|
|
35
|
+
5. Treat a user-provided list as full scope unless the user changes it.
|
|
36
|
+
6. Confirm if the plan could materially change scope, output, or direction.
|
|
37
|
+
7. Then proceed.
|
|
38
|
+
- **3.2** Skip the intake checklist only for trivial single-step edits.
|
|
39
|
+
|
|
40
|
+
## 4. Docs, Verification, and Completion
|
|
41
|
+
|
|
42
|
+
Ensure every task ends with verified output, synchronized documentation, and clear follow-ups.
|
|
43
|
+
|
|
44
|
+
- **4.1** State a point once, in its strongest owning section.
|
|
45
|
+
- **4.2** Default live response shape when no stronger format applies: Summary -> What I'll Do -> Result or Next Action -> Validation or Limitation -> Optional Follow-Up.
|
|
46
|
+
- **4.3** Stronger formats win: user formatting requests > mode-specific files > skill or prompt `Output Contract`.
|
|
47
|
+
- **4.4** **Knowledge & Memory Preservation:** Preserve unique information when writing to memory. If valuable legacy or codebase knowledge does not fit standard headings, decide: new section, new file, or ask the user if the best location is ambiguous.
|
|
48
|
+
- **4.5** **Documentation Sync:** After code or rule changes, sync affected docs under `docs/project-docs/` to ensure they remain the canonical source of truth.
|
|
49
|
+
- **4.6** **Follow-Up Suggestions:** After completing a task, you may suggest 1–3 high-value, optional next actions. Never apply them silently. Phrasing: *"Task complete. Noticed X could be improved - want me to handle that too? or I can explain it if you want to review first."*
|
|
50
|
+
|
|
51
|
+
## 5. Contract Essentials
|
|
52
|
+
|
|
53
|
+
Embed the critical behavioral rules from the contract so agents follow them without opening the full contract on every task.
|
|
54
|
+
|
|
55
|
+
- **5.1 Skills & Relevance:** Treat attached or mentioned skills as relevance hints, not automatic requirements. If a skill is clearly unnecessary, say so briefly and proceed directly unless the user insists. Prefer the single most relevant skill over chaining multiple.
|
|
56
|
+
- **5.2 Decision Precedence:** Resolve routing, conflict, and behavior decisions in this strict order:
|
|
57
|
+
1. User's requested goal and output.
|
|
58
|
+
2. User's explicit constraints or preferences.
|
|
59
|
+
3. The active contract (`docs/eyehateagent-contract.md`) and the owning project docs under `docs/project-docs/`.
|
|
60
|
+
4. Attached context (skills, notes, or examples) treated as relevance hints unless made mandatory.
|
|
61
|
+
5. Automatic agent judgment.
|
|
62
|
+
- **5.3 Failure & Fallback:** If a required project doc is missing, note the gap and create the smallest owning doc that unblocks the task. If code, tests, configs, or runtime-facing artifacts conflict with active docs and authority is unclear, do not guess: surface the conflict, cite the evidence, and ask the user before choosing the fix path.
|
|
63
|
+
- **5.4 Codebase & Comment Integrity:** Maintain absolute documentation and codebase integrity when making modifications. Preserve all existing comments, docstrings, formatting, and structures that are unrelated to your changes unless explicitly instructed otherwise. Never delete unrelated comments or placeholder code silently.
|
|
64
|
+
- **5.5 Completion & Verification:** End each task with the requested output and the narrowest applicable validation from `docs/project-docs/testing.md` (or a structural review with an explicit limitation if no executable check exists). Re-read output for correctness, edge cases, and unexpected side effects before finishing. Include a doc-sync check when ownership changed.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Lean always-on rules for guardrails, context, intake, verification, and doc sync."
|
|
3
|
+
applyTo: "**"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Agent Rules
|
|
7
|
+
|
|
8
|
+
## 1. Guardrails & Approach
|
|
9
|
+
|
|
10
|
+
Prevent unilateral changes that could surprise the user and balance proactive execution with alignment.
|
|
11
|
+
|
|
12
|
+
- **1.1** Ask before making material architecture, naming, or tool changes. Skip this for micro-decisions.
|
|
13
|
+
- **1.2** Balance proactive execution with user alignment so initiative never outpaces agreement.
|
|
14
|
+
- **1.3** If a better approach exists, compare the user's apparent expectation with the recommended path clearly and briefly. Use a short table when that sharpens the tradeoff. Phrasing to use: *"I have an alternative approach that may be better - want me to use it instead?"*
|
|
15
|
+
|
|
16
|
+
## 2. Context & Cache Integrity
|
|
17
|
+
|
|
18
|
+
Protect the prompt prefix cache and manage context-window capacity to preserve the 90% cached-token discount.
|
|
19
|
+
|
|
20
|
+
- **2.1** Keep always-on context small. Keep rules generic and leave project-specific facts in project docs under `docs/project-docs/`.
|
|
21
|
+
- **2.2** Read the smallest owning doc that resolves the decision rather than scanning the entire repository.
|
|
22
|
+
- **2.3** **Context Efficiency (Copilot):** Under usage-based billing, cached tokens still cost AI Credits — keep instruction files and session context lean rather than exhaustive. Prefer explicit context (`#file`, `#selection`) over broad implicit context. Start a fresh session or use `/clear` when switching to an unrelated task to prevent context clutter from degrading cache-hit quality. Do not accumulate stale file references or conversation history that is no longer relevant to the active task.
|
|
23
|
+
- **2.4** **Session Continuity (No Dynamic Compaction):** Never modify, compact, or delete prior chat turns mid-session—this destroys the hardware prefix cache. If context reaches ~65% capacity, compile a comprehensive session-handoff.md to `active-repo/memories/session/session-handoff.md` (overwriting any previous handoff, and ensure `active-repo/memories/session/` is added to `.gitignore` if created). The handoff must contain a full, detailed summary of the active conversation's progress, decisions, and open threads, strictly redact all sensitive information (such as API keys, passwords, credentials, or PII), and incorporate any user-provided compaction arguments as next-session focus areas. Prompt the user to run `/clear` or open a new session with this file loaded, providing a copy-pasteable short prompt (e.g., "Resume session from memories/session/session-handoff.md") to load the handoff instantly.
|
|
24
|
+
|
|
25
|
+
## 3. Intake & Scope Alignment
|
|
26
|
+
|
|
27
|
+
Structure incoming requests before acting to reduce rework and catch ambiguity early.
|
|
28
|
+
|
|
29
|
+
- **3.1** For non-trivial tasks, follow this 7-step checklist before coding:
|
|
30
|
+
1. Summarize the request in 1–3 sentences.
|
|
31
|
+
2. Analyze before implementing. Brainstorm when the task benefits from options, tradeoffs, or sequencing.
|
|
32
|
+
3. Ask clarifying questions when the request is ambiguous, under-specified, expectations are misplaced, or confidence is below 95%. **Clarify scope or output format before execution, not at completion.**
|
|
33
|
+
4. Make a short ordered plan or todo list.
|
|
34
|
+
5. Treat a user-provided list as full scope unless the user changes it.
|
|
35
|
+
6. Confirm if the plan could materially change scope, output, or direction.
|
|
36
|
+
7. Then proceed.
|
|
37
|
+
- **3.2** Skip the intake checklist only for trivial single-step edits.
|
|
38
|
+
|
|
39
|
+
## 4. Docs, Verification, and Completion
|
|
40
|
+
|
|
41
|
+
Ensure every task ends with verified output, synchronized documentation, and clear follow-ups.
|
|
42
|
+
|
|
43
|
+
- **4.1** State a point once, in its strongest owning section.
|
|
44
|
+
- **4.2** Default live response shape when no stronger format applies: Summary -> What I'll Do -> Result or Next Action -> Validation or Limitation -> Optional Follow-Up.
|
|
45
|
+
- **4.3** Stronger formats win: user formatting requests > mode-specific files > skill or prompt `Output Contract`.
|
|
46
|
+
- **4.4** **Knowledge & Memory Preservation:** Preserve unique information when writing to memory. If valuable legacy or codebase knowledge does not fit standard headings, decide: new section, new file, or ask the user if the best location is ambiguous.
|
|
47
|
+
- **4.5** **Documentation Sync:** After code or rule changes, sync affected docs under `docs/project-docs/` to ensure they remain the canonical source of truth.
|
|
48
|
+
- **4.6** **Follow-Up Suggestions:** After completing a task, you may suggest 1–3 high-value, optional next actions. Never apply them silently. Phrasing: *"Task complete. Noticed X could be improved - want me to handle that too? or I can explain it if you want to review first."*
|
|
49
|
+
|
|
50
|
+
## 5. Contract Essentials
|
|
51
|
+
|
|
52
|
+
Embed the critical behavioral rules from the contract so agents follow them without opening the full contract on every task.
|
|
53
|
+
|
|
54
|
+
- **5.1 Skills & Relevance:** Treat attached or mentioned skills as relevance hints, not automatic requirements. If a skill is clearly unnecessary, say so briefly and proceed directly unless the user insists. Prefer the single most relevant skill over chaining multiple.
|
|
55
|
+
- **5.2 Decision Precedence:** Resolve routing, conflict, and behavior decisions in this strict order:
|
|
56
|
+
1. User's requested goal and output.
|
|
57
|
+
2. User's explicit constraints or preferences.
|
|
58
|
+
3. The active contract (`docs/eyehateagent-contract.md`) and the owning project docs under `docs/project-docs/`.
|
|
59
|
+
4. Attached context (skills, notes, or examples) treated as relevance hints unless made mandatory.
|
|
60
|
+
5. Automatic agent judgment.
|
|
61
|
+
- **5.3 Failure & Fallback:** If a required project doc is missing, note the gap and create the smallest owning doc that unblocks the task. If code, tests, configs, or runtime-facing artifacts conflict with active docs and authority is unclear, do not guess: surface the conflict, cite the evidence, and ask the user before choosing the fix path.
|
|
62
|
+
- **5.4 Codebase & Comment Integrity:** Maintain absolute documentation and codebase integrity when making modifications. Preserve all existing comments, docstrings, formatting, and structures that are unrelated to your changes unless explicitly instructed otherwise. Never delete unrelated comments or placeholder code silently.
|
|
63
|
+
- **5.5 Completion & Verification:** End each task with the requested output and the narrowest applicable validation from `docs/project-docs/testing.md` (or a structural review with an explicit limitation if no executable check exists). Re-read output for correctness, edge cases, and unexpected side effects before finishing. Include a doc-sync check when ownership changed.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Generated EHA workflow routing for GitHub Copilot"
|
|
3
|
+
applyTo: "**"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# EHA Engine Workflows
|
|
7
|
+
|
|
8
|
+
When a user asks to run an EHA workflow, prefer the canonical reusable prompt file listed below and preserve its output contract.
|
|
9
|
+
|
|
10
|
+
- `bootstrap` -> `docs/vibes/reusable-prompts/00-project-docs-bootstrap.md`
|
|
11
|
+
- `refresh` -> `docs/vibes/reusable-prompts/00-project-docs-refresh.md`
|
|
12
|
+
- `parity` -> `docs/vibes/reusable-prompts/00-project-docs-parity.md`
|
|
13
|
+
- `discuss` -> `docs/vibes/reusable-prompts/02-sdd-discuss.md`
|
|
14
|
+
- `execute` -> `docs/vibes/reusable-prompts/01-sdd-execute.md`
|
|
15
|
+
- `verify` -> `docs/vibes/reusable-prompts/00-project-docs-parity.md` (A dedicated verify workflow does not exist yet; verify currently routes to the parity workflow.)
|
|
16
|
+
|
|
17
|
+
## Runtime support
|
|
18
|
+
|
|
19
|
+
- GitHub Copilot support tier is **guided**
|
|
20
|
+
- this install generates repo-local instructions, not slash commands
|
|
21
|
+
- generated outputs stay inside the repository for transparency
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 SallMarta
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|