@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.
- package/CHANGELOG.md +46 -0
- package/README.md +1 -1
- package/agents/planner.md +59 -11
- package/agents/reporter.md +1 -1
- package/cli/install.js +532 -171
- package/code-assistants/antigravity-assistant/AntigravityGlobal.agent.md +64 -114
- package/code-assistants/antigravity-assistant/GEMINI.md +81 -106
- package/code-assistants/claude-assistant/CLAUDE.md +60 -38
- package/code-assistants/copilot-assistant/agent-assistant.agent.md +135 -118
- package/code-assistants/cursor-assistant/.cursorrules +42 -84
- package/code-assistants/cursor-assistant/rules/agent-assistant.mdc +37 -135
- package/commands/ask/fast.md +6 -4
- package/commands/ask/hard.md +6 -4
- package/commands/ask.md +3 -3
- package/commands/auto.md +3 -3
- package/commands/brainstorm/fast.md +6 -4
- package/commands/brainstorm/hard.md +6 -4
- package/commands/brainstorm.md +3 -3
- package/commands/code/fast.md +6 -4
- package/commands/code/focus.md +22 -46
- package/commands/code/hard.md +23 -48
- package/commands/code.md +3 -3
- package/commands/cook/fast.md +5 -3
- package/commands/cook/focus.md +22 -51
- package/commands/cook/hard.md +23 -55
- package/commands/cook.md +3 -3
- package/commands/debug/fast.md +5 -3
- package/commands/debug/focus.md +35 -40
- package/commands/debug/hard.md +38 -16
- package/commands/debug.md +3 -3
- package/commands/deploy/check.md +4 -4
- package/commands/deploy/preview.md +4 -4
- package/commands/deploy/production.md +4 -4
- package/commands/deploy/rollback.md +4 -4
- package/commands/deploy.md +3 -3
- package/commands/design/fast.md +6 -4
- package/commands/design/focus.md +28 -44
- package/commands/design/hard.md +53 -17
- package/commands/design.md +3 -3
- package/commands/docs/audit.md +5 -5
- package/commands/docs/business.md +5 -5
- package/commands/docs/core.md +5 -5
- package/commands/docs.md +3 -3
- package/commands/fix/fast.md +5 -3
- package/commands/fix/focus.md +36 -44
- package/commands/fix/hard.md +23 -37
- package/commands/fix.md +3 -3
- package/commands/plan/fast.md +6 -4
- package/commands/plan/focus.md +6 -4
- package/commands/plan/hard.md +6 -4
- package/commands/plan.md +3 -3
- package/commands/report/fast.md +6 -4
- package/commands/report/focus.md +6 -4
- package/commands/report/hard.md +6 -4
- package/commands/report.md +3 -3
- package/commands/review/fast.md +5 -3
- package/commands/review/hard.md +5 -3
- package/commands/review.md +3 -3
- package/commands/test/fast.md +5 -3
- package/commands/test/focus.md +24 -43
- package/commands/test/hard.md +24 -16
- package/commands/test.md +3 -3
- package/documents/HSOL-ASSESSMENT.md +121 -0
- package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1341 -0
- package/documents/business/business-glossary.md +6 -6
- package/documents/knowledge-architecture.md +81 -1
- package/documents/knowledge-domain.md +4 -3
- package/documents/knowledge-overview.md +1 -1
- package/documents/knowledge-source-base.md +22 -17
- package/package.json +2 -2
- package/rules/AGENTS.md +187 -0
- package/rules/CONTEXT-GATE.md +362 -0
- package/rules/CORE.md +188 -0
- package/rules/ERRORS.md +127 -0
- package/rules/PHASES.md +156 -0
- package/rules/REFERENCE.md +179 -0
- package/rules/SKILLS.md +167 -0
- package/skills/find-skills/SKILL.md +137 -0
- package/rules/ADAPTIVE-EXECUTION.md +0 -271
- package/rules/AGENT-RULES.md +0 -285
- package/rules/BOOTSTRAP.md +0 -301
- package/rules/ERROR-RECOVERY.md +0 -201
- package/rules/EXECUTION-PROTOCOL.md +0 -485
- package/rules/ORCHESTRATION-LAWS.md +0 -218
- package/rules/QUICK-REFERENCE.md +0 -204
- package/rules/SKILL-DISCOVERY.md +0 -370
package/commands/report/fast.md
CHANGED
|
@@ -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.
|
|
24
|
-
2.
|
|
25
|
-
3.
|
|
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/
|
|
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
|
|
package/commands/report/focus.md
CHANGED
|
@@ -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.
|
|
24
|
-
2.
|
|
25
|
-
3.
|
|
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/
|
|
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
|
|
package/commands/report/hard.md
CHANGED
|
@@ -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.
|
|
23
|
-
2.
|
|
24
|
-
3.
|
|
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/
|
|
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
|
|
package/commands/report.md
CHANGED
|
@@ -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.
|
|
23
|
-
2.
|
|
24
|
-
3.
|
|
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
|
|
package/commands/review/fast.md
CHANGED
|
@@ -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.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
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
|
package/commands/review/hard.md
CHANGED
|
@@ -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.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
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
|
package/commands/review.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.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
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
|
|
package/commands/test/fast.md
CHANGED
|
@@ -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.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
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
|
package/commands/test/focus.md
CHANGED
|
@@ -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.
|
|
24
|
-
2.
|
|
25
|
-
3.
|
|
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
|
-
## 🛡️
|
|
69
|
+
## 🛡️ CONTEXT GATE CHECKPOINT
|
|
68
70
|
|
|
69
|
-
>
|
|
70
|
-
>
|
|
71
|
-
> **
|
|
72
|
-
>
|
|
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
|
-
###
|
|
77
|
+
### ⚡ EXECUTION
|
|
75
78
|
|
|
76
79
|
```yaml
|
|
77
|
-
|
|
78
|
-
mode: "
|
|
79
|
-
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
90
|
+
**DO NOT proceed to Phase 2 until Context Gate completes.**
|
|
91
|
+
- Rejected approaches
|
|
92
|
+
- Planning noise
|
|
93
|
+
- Chat history
|
|
109
94
|
|
|
110
|
-
|
|
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
|
```
|
package/commands/test/hard.md
CHANGED
|
@@ -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.
|
|
21
|
-
2.
|
|
22
|
-
3.
|
|
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
|
-
|
|
99
|
-
3. PROCEED: Continue to test execution phases
|
|
100
|
+
## 🛡️ VERIFICATION CHECKPOINT
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
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.
|