@namch/agent-assistant 1.0.4 → 1.1.1

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 (86) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +1 -1
  3. package/agents/planner.md +59 -11
  4. package/agents/reporter.md +1 -1
  5. package/cli/install.js +532 -171
  6. package/code-assistants/antigravity-assistant/AntigravityGlobal.agent.md +64 -114
  7. package/code-assistants/antigravity-assistant/GEMINI.md +81 -106
  8. package/code-assistants/claude-assistant/CLAUDE.md +60 -38
  9. package/code-assistants/copilot-assistant/agent-assistant.agent.md +135 -118
  10. package/code-assistants/cursor-assistant/.cursorrules +42 -84
  11. package/code-assistants/cursor-assistant/rules/agent-assistant.mdc +37 -135
  12. package/commands/ask/fast.md +6 -4
  13. package/commands/ask/hard.md +6 -4
  14. package/commands/ask.md +3 -3
  15. package/commands/auto.md +3 -3
  16. package/commands/brainstorm/fast.md +6 -4
  17. package/commands/brainstorm/hard.md +6 -4
  18. package/commands/brainstorm.md +3 -3
  19. package/commands/code/fast.md +6 -4
  20. package/commands/code/focus.md +22 -46
  21. package/commands/code/hard.md +23 -48
  22. package/commands/code.md +3 -3
  23. package/commands/cook/fast.md +5 -3
  24. package/commands/cook/focus.md +22 -51
  25. package/commands/cook/hard.md +23 -55
  26. package/commands/cook.md +3 -3
  27. package/commands/debug/fast.md +5 -3
  28. package/commands/debug/focus.md +35 -40
  29. package/commands/debug/hard.md +38 -16
  30. package/commands/debug.md +3 -3
  31. package/commands/deploy/check.md +4 -4
  32. package/commands/deploy/preview.md +4 -4
  33. package/commands/deploy/production.md +4 -4
  34. package/commands/deploy/rollback.md +4 -4
  35. package/commands/deploy.md +3 -3
  36. package/commands/design/fast.md +6 -4
  37. package/commands/design/focus.md +28 -44
  38. package/commands/design/hard.md +53 -17
  39. package/commands/design.md +3 -3
  40. package/commands/docs/audit.md +5 -5
  41. package/commands/docs/business.md +5 -5
  42. package/commands/docs/core.md +5 -5
  43. package/commands/docs.md +3 -3
  44. package/commands/fix/fast.md +5 -3
  45. package/commands/fix/focus.md +36 -44
  46. package/commands/fix/hard.md +23 -37
  47. package/commands/fix.md +3 -3
  48. package/commands/plan/fast.md +6 -4
  49. package/commands/plan/focus.md +6 -4
  50. package/commands/plan/hard.md +6 -4
  51. package/commands/plan.md +3 -3
  52. package/commands/report/fast.md +6 -4
  53. package/commands/report/focus.md +6 -4
  54. package/commands/report/hard.md +6 -4
  55. package/commands/report.md +3 -3
  56. package/commands/review/fast.md +5 -3
  57. package/commands/review/hard.md +5 -3
  58. package/commands/review.md +3 -3
  59. package/commands/test/fast.md +5 -3
  60. package/commands/test/focus.md +24 -43
  61. package/commands/test/hard.md +24 -16
  62. package/commands/test.md +3 -3
  63. package/documents/HSOL-ASSESSMENT.md +121 -0
  64. package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1341 -0
  65. package/documents/business/business-glossary.md +6 -6
  66. package/documents/knowledge-architecture.md +81 -1
  67. package/documents/knowledge-domain.md +4 -3
  68. package/documents/knowledge-overview.md +1 -1
  69. package/documents/knowledge-source-base.md +22 -17
  70. package/package.json +2 -2
  71. package/rules/AGENTS.md +187 -0
  72. package/rules/CONTEXT-GATE.md +362 -0
  73. package/rules/CORE.md +188 -0
  74. package/rules/ERRORS.md +127 -0
  75. package/rules/PHASES.md +156 -0
  76. package/rules/REFERENCE.md +179 -0
  77. package/rules/SKILLS.md +167 -0
  78. package/skills/find-skills/SKILL.md +137 -0
  79. package/rules/ADAPTIVE-EXECUTION.md +0 -271
  80. package/rules/AGENT-RULES.md +0 -285
  81. package/rules/BOOTSTRAP.md +0 -301
  82. package/rules/ERROR-RECOVERY.md +0 -201
  83. package/rules/EXECUTION-PROTOCOL.md +0 -485
  84. package/rules/ORCHESTRATION-LAWS.md +0 -218
  85. package/rules/QUICK-REFERENCE.md +0 -204
  86. package/rules/SKILL-DISCOVERY.md +0 -370
@@ -20,12 +20,14 @@ execution-mode: execute
20
20
 
21
21
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
22
22
 
23
- 1. ORCHESTRATION-LAWS.md
24
- 2. ADAPTIVE-EXECUTION.md
25
- 3. EXECUTION-PROTOCOL.md
23
+ 1. CORE.md — Identity, Laws, Routing
24
+ 2. PHASES.md — Phase Execution
25
+ 3. AGENTS.md — Tiered Execution
26
26
 
27
27
  **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
28
28
 
29
+ **Skills Resolution**: When delegating, load `SKILLS.md` on-demand. Fast variant uses matrix-only (no dynamic discovery for speed optimization).
30
+
29
31
  ---
30
32
 
31
33
  ## 🔀 TIERED EXECUTION
@@ -41,7 +43,7 @@ execution-mode: execute
41
43
 
42
44
  ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
43
45
 
44
- One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/EXECUTION-PROTOCOL.md § Phase output structure.
46
+ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/PHASES.md § Phase output structure.
45
47
 
46
48
  ---
47
49
 
@@ -20,12 +20,14 @@ execution-mode: execute
20
20
 
21
21
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
22
22
 
23
- 1. ORCHESTRATION-LAWS.md
24
- 2. ADAPTIVE-EXECUTION.md
25
- 3. EXECUTION-PROTOCOL.md
23
+ 1. CORE.md — Identity, Laws, Routing
24
+ 2. PHASES.md — Phase Execution
25
+ 3. AGENTS.md — Tiered Execution
26
26
 
27
27
  **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
28
28
 
29
+ **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (focus variant enables find-skills for superior skill matching).
30
+
29
31
  ---
30
32
 
31
33
  ## 🔀 TIERED EXECUTION
@@ -59,7 +61,7 @@ All files in `./reports/` → English only.
59
61
 
60
62
  ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
61
63
 
62
- One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/EXECUTION-PROTOCOL.md § Phase output structure.
64
+ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/PHASES.md § Phase output structure.
63
65
 
64
66
  ---
65
67
 
@@ -19,12 +19,14 @@ execution-mode: execute
19
19
 
20
20
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
21
21
 
22
- 1. ORCHESTRATION-LAWS.md
23
- 2. ADAPTIVE-EXECUTION.md
24
- 3. EXECUTION-PROTOCOL.md
22
+ 1. CORE.md — Identity, Laws, Routing
23
+ 2. PHASES.md — Phase Execution
24
+ 3. AGENTS.md — Tiered Execution
25
25
 
26
26
  **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
27
27
 
28
+ **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (hard/focus variants enable find-skills).
29
+
28
30
  ---
29
31
 
30
32
  ## 🔀 TIERED EXECUTION
@@ -58,7 +60,7 @@ All files in `./reports/` → English only.
58
60
 
59
61
  ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
60
62
 
61
- One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/EXECUTION-PROTOCOL.md § Phase output structure.
63
+ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/PHASES.md § Phase output structure.
62
64
 
63
65
  ---
64
66
 
@@ -19,9 +19,9 @@ execution-mode: router
19
19
 
20
20
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
21
21
 
22
- 1. ORCHESTRATION-LAWS.md
23
- 2. ADAPTIVE-EXECUTION.md
24
- 3. EXECUTION-PROTOCOL.md
22
+ 1. CORE.md — Identity, Laws, Routing
23
+ 2. PHASES.md — Phase Execution
24
+ 3. AGENTS.md — Tiered Execution
25
25
 
26
26
  **⛔ Do not run any workflow phase until all are loaded.** Follow **all** rules in those files. Then run this file's ROUTING LOGIC, LOAD the chosen variant workflow, and execute it.
27
27
 
@@ -16,12 +16,14 @@ execution-mode: execute
16
16
  ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS PHASE 1)
17
17
 
18
18
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
- 1. ORCHESTRATION-LAWS.md
20
- 2. ADAPTIVE-EXECUTION.md
21
- 3. EXECUTION-PROTOCOL.md
19
+ 1. CORE.md — Identity, Laws, Routing
20
+ 2. PHASES.md — Phase Execution
21
+ 3. AGENTS.md — Tiered Execution
22
22
 
23
23
  **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
24
24
 
25
+ **Skills Resolution**: When delegating, load `SKILLS.md` on-demand. Fast variant uses matrix-only (no dynamic discovery for speed optimization).
26
+
25
27
  ---
26
28
 
27
29
  ## 🔀 TIERED EXECUTION
@@ -16,12 +16,14 @@ execution-mode: execute
16
16
  ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS PHASE 1)
17
17
 
18
18
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
- 1. ORCHESTRATION-LAWS.md
20
- 2. ADAPTIVE-EXECUTION.md
21
- 3. EXECUTION-PROTOCOL.md
19
+ 1. CORE.md — Identity, Laws, Routing
20
+ 2. PHASES.md — Phase Execution
21
+ 3. AGENTS.md — Tiered Execution
22
22
 
23
23
  **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
24
24
 
25
+ **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (hard/focus variants enable find-skills).
26
+
25
27
  ---
26
28
 
27
29
  ## 🔀 TIERED EXECUTION
@@ -16,9 +16,9 @@ execution-mode: router
16
16
  ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS EXECUTION)
17
17
 
18
18
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
- 1. ORCHESTRATION-LAWS.md
20
- 2. ADAPTIVE-EXECUTION.md
21
- 3. EXECUTION-PROTOCOL.md
19
+ 1. CORE.md — Identity, Laws, Routing
20
+ 2. PHASES.md — Phase Execution
21
+ 3. AGENTS.md — Tiered Execution
22
22
 
23
23
  **⛔ Do not run any workflow phase until all are loaded.** Follow **all** rules in those files. Then run this file's ROUTING LOGIC, LOAD the chosen variant workflow, and execute it.
24
24
 
@@ -16,12 +16,14 @@ execution-mode: execute
16
16
  ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS PHASE 1)
17
17
 
18
18
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
- 1. ORCHESTRATION-LAWS.md
20
- 2. ADAPTIVE-EXECUTION.md
21
- 3. EXECUTION-PROTOCOL.md
19
+ 1. CORE.md — Identity, Laws, Routing
20
+ 2. PHASES.md — Phase Execution
21
+ 3. AGENTS.md — Tiered Execution
22
22
 
23
23
  **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
24
24
 
25
+ **Skills Resolution**: When delegating, load `SKILLS.md` on-demand. Fast variant uses matrix-only (no dynamic discovery for speed optimization).
26
+
25
27
  ---
26
28
 
27
29
  ## 🔀 TIERED EXECUTION
@@ -20,12 +20,14 @@ execution-mode: execute
20
20
 
21
21
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
22
22
 
23
- 1. ORCHESTRATION-LAWS.md
24
- 2. ADAPTIVE-EXECUTION.md
25
- 3. EXECUTION-PROTOCOL.md
23
+ 1. CORE.md — Identity, Laws, Routing
24
+ 2. PHASES.md — Phase Execution
25
+ 3. AGENTS.md — Tiered Execution
26
26
 
27
27
  **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
28
28
 
29
+ **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (focus variant enables find-skills for superior skill matching).
30
+
29
31
  ---
30
32
 
31
33
  ## 🔀 TIERED EXECUTION
@@ -64,54 +66,33 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
64
66
 
65
67
  ---
66
68
 
67
- ## 🛡️ STRICT CONTEXT GATE — Automatic Context Optimization
69
+ ## 🛡️ CONTEXT GATE CHECKPOINT
68
70
 
69
- > **⚡ FOCUS MODE**: This checkpoint executes automatically. NO user input required.
70
- >
71
- > **PURPOSE**: Prevent "context rot" by forcibly clearing strategy discussion noise.
72
- > This acts as a mandatory "firewall" before test execution phases.
71
+ > **⛔ BLOCKING**: Load Context Gate protocol NOW before proceeding.
72
+ >
73
+ > **LOAD**: `rules/CONTEXT-GATE.md` Execute FOCUS MODE (Test variant)
74
+ >
75
+ > This is a MANDATORY checkpoint. Cannot skip or bypass.
73
76
 
74
- ### 🔒 AUTOMATIC EXECUTION (NO PROMPT)
77
+ ### EXECUTION
75
78
 
76
79
  ```yaml
77
- strict_context_gate:
78
- mode: "AUTOMATIC - No user interaction"
79
- behavior: "Force Clear context & Execute"
80
+ context_gate_execution:
81
+ mode: "FOCUS (Automatic)"
82
+ trigger: "After Phase 1 (Test Strategy) completes"
83
+ protocol: "Follow rules/CONTEXT-GATE.md § FOCUS MODE § test_focus_variant"
80
84
 
81
- execution:
82
- 1. ANNOUNCE: |
83
- ## 🛡️ Strict Context Gate Automatic
84
-
85
- ✅ **Test Strategy Complete**: Strategy defined, test types identified.
86
- 🔒 **Focus Mode**: Automatically clearing context for test execution.
87
-
88
- ⚡ Executing: **Clear context & Execute**...
89
-
90
- 2. CONTEXT_DIRECTIVE: |
91
- ╔══════════════════════════════════════════════════════════════════╗
92
- ║ ⛔ MANDATORY CONTEXT RESET — FOCUS MODE ║
93
- ╠══════════════════════════════════════════════════════════════════╣
94
- ║ IGNORE: All strategy discussions, rejected approaches, ║
95
- ║ and intermediate test planning reasoning. ║
96
- ║ ║
97
- ║ SOLE SOURCE OF TRUTH: Finalized test strategy. ║
98
- ║ ║
99
- ║ PROCEED: Execute test phases with FRESH context mindset. ║
100
- ║ Focus purely on test execution and verification. ║
101
- ╚══════════════════════════════════════════════════════════════════╝
102
-
103
- 3. LOAD: Finalized test strategy as if seeing it for the first time
104
-
105
- 4. PROCEED: Start Phase 2 (Dependency Mapping) immediately
85
+ variant_adjustments:
86
+ plan_source: "Finalized test strategy from Phase 1"
87
+ remaining_phases: "Phase 2 3 4 → 5"
106
88
  ```
107
89
 
108
- ### 📋 Post-Gate Status
90
+ **DO NOT proceed to Phase 2 until Context Gate completes.**
91
+ - Rejected approaches
92
+ - Planning noise
93
+ - Chat history
109
94
 
110
- ```markdown
111
- 🔒 **Context Gate Passed**
112
- - Previous context: DISCARDED
113
- - Active context: Test strategy only
114
- - Mode: Fresh execution start
95
+ Mode: Fresh execution start
115
96
 
116
97
  Proceeding to Test Execution...
117
98
  ```
@@ -17,12 +17,14 @@ execution-mode: execute
17
17
 
18
18
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
19
 
20
- 1. ORCHESTRATION-LAWS.md
21
- 2. ADAPTIVE-EXECUTION.md
22
- 3. EXECUTION-PROTOCOL.md
20
+ 1. CORE.md — Identity, Laws, Routing
21
+ 2. PHASES.md — Phase Execution
22
+ 3. AGENTS.md — Tiered Execution
23
23
 
24
24
  **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
25
25
 
26
+ **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (hard/focus variants enable find-skills).
27
+
26
28
  ---
27
29
 
28
30
  ## 🔀 TIERED EXECUTION
@@ -95,23 +97,29 @@ option_1_clear_execute:
95
97
  1. ACKNOWLEDGE: "🚀 Context optimized. Executing test strategy."
96
98
  2. CONTEXT_DIRECTIVE: |
97
99
  ⛔ IGNORE strategy discussion and rejected approaches.
98
- FINALIZED STRATEGY is SOLE SOURCE OF TRUTH.
99
- 3. PROCEED: Continue to test execution phases
100
+ ## 🛡️ VERIFICATION CHECKPOINT
100
101
 
101
- option_2_review_strategy:
102
- behavior: "Clear and show summary"
103
- steps:
104
- 1. ACKNOWLEDGE: "⏸️ Context cleared."
105
- 2. OUTPUT: Display strategy summary
106
- 3. WAIT: For user approval
102
+ > **⛔ BLOCKING**: Load Context Gate protocol NOW before proceeding.
103
+ >
104
+ > **LOAD**: `rules/CONTEXT-GATE.md` — Execute HARD MODE (Test variant)
105
+ >
106
+ > This is a MANDATORY checkpoint. Cannot skip or bypass.
107
107
 
108
- option_3_continue_no_clear:
109
- behavior: "Proceed with caution"
110
- steps:
111
- 1. WARN: "⚠️ Discussion history retained."
112
- 2. PROCEED: Continue with existing context
108
+ ### ⚡ EXECUTION
109
+
110
+ ```yaml
111
+ context_gate_execution:
112
+ mode: "HARD (User Choice)"
113
+ trigger: "After Phase 1 (Test Strategy) completes"
114
+ protocol: "Follow rules/CONTEXT-GATE.md § HARD MODE § test_hard_variant"
115
+
116
+ variant_adjustments:
117
+ plan_source: "Finalized test strategy from Phase 1"
118
+ remaining_phases: "Phase 2 → 3 → 4 → 5"
113
119
  ```
114
120
 
121
+ **DO NOT proceed to Phase 2 until user selects option.**
122
+
115
123
  ---
116
124
 
117
125
  ## 🎭 Phase 2: DEPENDENCY MAPPING
package/commands/test.md CHANGED
@@ -16,9 +16,9 @@ execution-mode: router
16
16
  ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS EXECUTION)
17
17
 
18
18
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
- 1. ORCHESTRATION-LAWS.md
20
- 2. ADAPTIVE-EXECUTION.md
21
- 3. EXECUTION-PROTOCOL.md
19
+ 1. CORE.md — Identity, Laws, Routing
20
+ 2. PHASES.md — Phase Execution
21
+ 3. AGENTS.md — Tiered Execution
22
22
 
23
23
  **⛔ Do not run any workflow phase until all are loaded.** Follow **all** rules in those files. Then run this file's ROUTING LOGIC, LOAD the chosen variant workflow, and execute it.
24
24
 
@@ -0,0 +1,121 @@
1
+ # HSOL (Hybrid Skill Orchestration Layer) — Production Readiness Assessment
2
+
3
+ > **Purpose**: One-time evaluation of HSOL design and docs for production readiness and agent intelligence.
4
+ > **Scope**: SKILL-DISCOVERY.md, SKILL-ORCHESTRATION.md, _index.yaml, _dynamic.yaml, find-skills SKILL, Blueprint.
5
+ > **Project version**: 1.1.0
6
+
7
+ ---
8
+
9
+ ## Executive Summary
10
+
11
+ | Dimension | Rating | Notes |
12
+ |-----------|--------|--------|
13
+ | **Completeness** | Strong | Resolution algorithm, decision gate, blocking/async, variant/fitness, trust, conflict, edge cases are defined. |
14
+ | **Consistency** | Strong | Thresholds (0.75, 0.8), variant (fast/hard/focus), and flow align across Discovery, Orchestration, _index.yaml, Blueprint. |
15
+ | **Production readiness** | Good | Clear rules for tool scope, install commands, fallbacks; a few operational gaps (see below). |
16
+ | **Agent intelligence** | Strong | Matrix-first + dynamic enhancement, blocking when matrix insufficient so current task uses new skill; async when matrix adequate. |
17
+
18
+ **Verdict**: HSOL is **sufficient for production** as a **specification and rule set** for orchestrators and agents. Implementers (or AI following the rules) have enough to resolve skills, decide when to discover, and handle install/recommend. Suggested updates below are small clarifications and one extra edge case.
19
+
20
+ ---
21
+
22
+ ## Strengths
23
+
24
+ 1. **Clear separation of concerns**
25
+ - SKILL-DISCOVERY: *what* (10-step flow, resolution algorithm, when discovery runs).
26
+ - SKILL-ORCHESTRATION: *how to decide* (6-step flow, decision gate, trust, conflict, config).
27
+ - Single source of truth for thresholds in `_index.yaml`.
28
+
29
+ 2. **Variant + fitness logic**
30
+ - Fast → no discovery (keeps fast path low-latency).
31
+ - Hard/Focus + fitness ≥ 0.8 → skip discovery.
32
+ - Hard/Focus + 0.75 ≤ fitness < 0.8 → async (recommend for next time).
33
+ - Hard/Focus + fitness < 0.75 → blocking (current task uses new skill). Aligns with “skill for current work” goal.
34
+
35
+ 3. **Tool-scoped behavior**
36
+ - All install/verify actions are for the **current tool only**; `-g -y` and no cross-tool install unless user asks. Reduces confusion and errors.
37
+
38
+ 4. **Trust and safety**
39
+ - Low-trust + task-critical → ask user confirm before install.
40
+ - Trust progression and auto-promotion criteria are defined.
41
+ - Conflict resolution (ID collision, domain overlap) is specified.
42
+
43
+ 5. **Edge cases**
44
+ - Network timeout → proceed with matrix, surface message.
45
+ - No skills found → capability gap, offer general help + `npx skills init`.
46
+ - Installation failure → rollback, retry command, offer matrix-only.
47
+
48
+ 6. **Discoverability**
49
+ - BOOTSTRAP and QUICK-REFERENCE point to HSOL; rules reference Blueprint and each other.
50
+
51
+ ---
52
+
53
+ ## Gaps and Improvements
54
+
55
+ ### 1. Principle wording (minor)
56
+
57
+ **Issue**: SKILL-ORCHESTRATION says “Dynamic discovery never blocks execution.” We also have a **blocking** path when fitness < 0.75.
58
+
59
+ **Fix**: Clarify that discovery **does** block only when matrix is insufficient (< 0.75) so the current task can use the new skill; otherwise it does not block. (Doc update below.)
60
+
61
+ ### 2. find-skills missing or unavailable (operational)
62
+
63
+ **Issue**: If find-skills is not installed, or `npx skills find` fails (e.g. network, CLI not available), the blocking path cannot run. Doc does not state the fallback.
64
+
65
+ **Fix**: Add edge case: “If find-skills is not available or discovery cannot run, proceed with matrix skills only and optionally surface: ‘Dynamic skill discovery is unavailable. Using built-in skills.’” (Doc update below.)
66
+
67
+ ### 3. BOOTSTRAP reference table (discoverability)
68
+
69
+ **Issue**: BOOTSTRAP lists “Skill resolution (HSOL) → SKILL-ORCHESTRATION.md” but not SKILL-DISCOVERY.md. Implementers need both (algorithm + decision logic).
70
+
71
+ **Fix**: Add one row for “Matrix resolution algorithm (HSOL)” → SKILL-DISCOVERY.md, or a note that HSOL = SKILL-ORCHESTRATION + SKILL-DISCOVERY. (Doc update below.)
72
+
73
+ ### 4. _dynamic.yaml writer (optional clarity)
74
+
75
+ **Issue**: _dynamic.yaml says “HSOL validates and registers skill here” but does not say *who* writes it (e.g. skills CLI on `npx skills add`, or a post-install hook). For code implementations, this matters.
76
+
77
+ **Suggestion**: In _dynamic.yaml or Blueprint, add one line: “Updated when user runs `npx skills add <skill> -g -y` (skills CLI or install script appends/updates this file).” No change required if the repo is doc-only and the “resolver” is the human/orchestrator.
78
+
79
+ ### 5. Default variant (optional)
80
+
81
+ **Issue**: When user says `/cook` without `:fast` or `:hard`, the router picks a default. Discovery runs only for hard/focus. If the default is “hard”, discovery applies; if “fast”, it does not. Not ambiguous but could be explicit.
82
+
83
+ **Suggestion**: In SKILL-DISCOVERY or SKILL-ORCHESTRATION, one line: “When command has no variant, use the router’s default (e.g. hard for full workflows); discovery eligibility follows that variant.” Optional.
84
+
85
+ ### 6. Security (optional)
86
+
87
+ **Issue**: Doc does not mention malicious or low-quality skill content. We already have: low-trust → confirm; recommend trusted sources (e.g. vercel-labs/agent-skills).
88
+
89
+ **Suggestion**: Short note: “Skills execute in agent context. For production, prefer skills from trusted sources; user confirmation is required for low-trust, task-critical installs.” Optional.
90
+
91
+ ---
92
+
93
+ ## What Is Already Production-Ready
94
+
95
+ - **Decision logic**: Variant + fitness gates are deterministic and implementable.
96
+ - **Install flow**: Commands, scope (current tool), and confirm rules are clear.
97
+ - **Fallbacks**: Timeout, no skills, install failure are handled.
98
+ - **Config**: _index.yaml has discovery on/off, thresholds, variants, promotion; per-agent overrides exist.
99
+ - **Cross-doc alignment**: Thresholds (0.75, 0.8), variant list (hard, focus), and flow (blocking vs async) match across docs and config.
100
+
101
+ ---
102
+
103
+ ## Recommended Doc Updates (Applied)
104
+
105
+ 1. **SKILL-ORCHESTRATION.md**
106
+ - Clarify principle “non_blocking_discovery” so blocking path (fitness < 0.75) is explicit.
107
+ - Add edge case: “find-skills not installed or discovery unavailable → proceed with matrix only, optional message.”
108
+
109
+ 2. **BOOTSTRAP.md**
110
+ - Add SKILL-DISCOVERY.md to the reference table (or note “HSOL = SKILL-DISCOVERY + SKILL-ORCHESTRATION”) so both files are loaded when implementing HSOL.
111
+
112
+ 3. **Optional (not applied)**
113
+ - _dynamic.yaml: one line on who updates it (CLI/post-install).
114
+ - Default variant sentence in Discovery or Orchestration.
115
+ - One-sentence security note in Orchestration.
116
+
117
+ ---
118
+
119
+ ## Conclusion
120
+
121
+ HSOL is **ready for production use** as a specification: logic is complete, consistent, and sufficient for agents and orchestrators to resolve skills intelligently (matrix-first, dynamic when needed, blocking when matrix is insufficient). The suggested updates are small clarifications and one extra fallback; they improve robustness and discoverability without changing behavior.