harness-everything 0.2.0 → 0.2.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 (70) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build-multi-agent-system/SKILL.md +68 -68
  3. package/create-agent-launcher/SKILL.md +48 -48
  4. package/docs/workflows/build-multi-agent-system.md +62 -62
  5. package/docs/workflows/create-agent-launcher.md +62 -62
  6. package/docs/workflows/environment-detection.md +63 -63
  7. package/docs/workflows/eval-harness.md +57 -57
  8. package/docs/workflows/fable-discipline.md +59 -59
  9. package/docs/workflows/fable-mode.md +32 -32
  10. package/docs/workflows/git-commit.md +62 -62
  11. package/docs/workflows/grill-me.md +62 -62
  12. package/docs/workflows/grill-with-docs.md +62 -62
  13. package/docs/workflows/improve-codebase-architecture.md +60 -60
  14. package/docs/workflows/repo-docs.md +59 -59
  15. package/docs/workflows/rewrite-commits.md +60 -60
  16. package/docs/workflows/security-review.md +58 -58
  17. package/docs/workflows/self-evolve.md +59 -59
  18. package/docs/workflows/tdd.md +39 -39
  19. package/docs/workflows/todo-driven-workflow.md +36 -36
  20. package/docs/workflows/using-git-worktrees.md +63 -63
  21. package/docs/workflows/verification-loop.md +69 -69
  22. package/docs/workflows/verify-before-claim.md +60 -60
  23. package/docs/workflows/zoom-out.md +62 -62
  24. package/environment-detection/SKILL.md +77 -77
  25. package/eval-framework/behavioral-test.js +105 -105
  26. package/eval-framework/mechanism-test.js +251 -251
  27. package/eval-harness/SKILL.md +59 -59
  28. package/fable-discipline/SKILL.md +38 -38
  29. package/fable-mode/SKILL.md +51 -51
  30. package/git-commit/SKILL.md +55 -55
  31. package/grill-me/SKILL.md +36 -36
  32. package/grill-with-docs/SKILL.md +99 -99
  33. package/harness-everything/SKILL.md +141 -141
  34. package/harness-everything/examples/README.md +9 -9
  35. package/harness-everything/examples/todo-workflow.md +22 -22
  36. package/harness-everything/scripts/todo-cli.js +157 -157
  37. package/harness-everything/scripts/verify-gate.js +31 -31
  38. package/hooks/scripts/atomic-commit-check.js +68 -68
  39. package/hooks/scripts/context-compact.js +114 -114
  40. package/hooks/scripts/lib/harness-state.js +29 -3
  41. package/hooks/scripts/lib/platforms/claude.js +42 -42
  42. package/hooks/scripts/lib/platforms/codex.js +46 -46
  43. package/hooks/scripts/lib/platforms/continue.js +41 -41
  44. package/hooks/scripts/lib/platforms/copilot.js +41 -41
  45. package/hooks/scripts/lib/platforms/cursor.js +41 -41
  46. package/hooks/scripts/rule-of-3.js +176 -176
  47. package/improve-codebase-architecture/SKILL.md +44 -44
  48. package/install-cognitive-os/SKILL.md +95 -95
  49. package/package.json +1 -1
  50. package/repo-docs/SKILL.md +45 -45
  51. package/rewrite-commits/SKILL.md +32 -32
  52. package/scripts/installer.js +649 -649
  53. package/scripts/lib/advisory-text.js +163 -163
  54. package/scripts/lib/claude-hooks.js +71 -71
  55. package/scripts/lib/gitignore.js +80 -58
  56. package/scripts/lib/manifest.js +82 -82
  57. package/scripts/lib/prompts.js +241 -241
  58. package/scripts/lib/skills.js +172 -172
  59. package/scripts/lib/workspace.js +28 -28
  60. package/security-review/SKILL.md +510 -510
  61. package/self-evolve/SKILL.md +54 -54
  62. package/skill-creator/SKILL.md +91 -91
  63. package/skill-creator/references/testing-workflow.md +32 -32
  64. package/skill-style/SKILL.md +48 -48
  65. package/tdd/SKILL.md +53 -53
  66. package/todo-driven-workflow/SKILL.md +54 -54
  67. package/using-git-worktrees/SKILL.md +161 -161
  68. package/verification-loop/SKILL.md +138 -138
  69. package/verify-before-claim/SKILL.md +86 -86
  70. package/zoom-out/SKILL.md +90 -90
@@ -1,63 +1,63 @@
1
- # Workflow: Environment Detection
2
-
3
- > Active shell, operating system, and toolset environment detection, providing safety guardrails and running preflight syntactic verification.
4
-
5
- ---
6
-
7
- ## 1. Skill Behavior Workflow
8
-
9
- This section visualizes how the `environment-detection` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
10
-
11
- ```mermaid
12
- graph TD
13
- Start([Before Command Execution]) --> DetectOS["Detect Operating System: Windows, macOS, Linux"]
14
- DetectOS --> DetectShell["Detect Shell: Bash, PowerShell, CMD, Zsh"]
15
- DetectShell --> ScanCapabilities["Scan available runtimes: Node, Python, .NET, Docker"]
16
- ScanCapabilities --> CheckSyntax["Inspect command for active shell compatibilities"]
17
- CheckSyntax --> SyntaxGuard{Syntax safe for shell?}
18
- SyntaxGuard -->|No| RewriteCmd["Transform/Rewrite command syntax to match active shell"]
19
- SyntaxGuard -->|Yes| Execute["Run command in persistent terminal"]
20
- RewriteCmd --> Execute
21
- Execute --> CaptureOutput["Interleave output and exit code correctly"]
22
- CaptureOutput --> End([Secure terminal result returned])
23
- ```
24
-
25
- ---
26
-
27
- ## 2. Triggering and Routing Path
28
-
29
- This diagram illustrates how the `environment-detection` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
30
-
31
- ```mermaid
32
- graph LR
33
- Router["harness-everything / tier-router.js"] -->|Pre-flight command execution| Env["environment-detection / SKILL.md"]
34
- Env -->|Guards runner execution commands in| TDD["tdd / SKILL.md"]
35
- Env -->|Guards script installations in| InstallOS["install-cognitive-os / SKILL.md"]
36
- Env -->|Guards PR quality checks in| VerLoop["verification-loop / SKILL.md"]
37
- ```
38
-
39
- ---
40
-
41
- ## 3. Real-World Use Case Flowchart
42
-
43
- Here we model concrete real-world scenarios and use cases of the `environment-detection` skill, illustrating standard success paths, error handling, or recovery loops.
44
-
45
- ```mermaid
46
- graph TD
47
- Start["Agent wants to run: 'rm -rf build && mkdir build' on Windows Powershell"] --> Trigger["Environment detection pre-flight check"]
48
- Trigger --> Detect["Identifies OS: Windows, Shell: PowerShell"]
49
- Detect --> AnalyzeSyntax["Identifies that 'rm -rf' will fail or behave unexpectedly in PowerShell"]
50
- AnalyzeSyntax --> Rewrite["Rewrites command to PowerShell equivalent or executes using native node commands"]
51
- Rewrite --> Run["Executes safely with exit code 0"]
52
- Run --> Done([Syntax error and execution crash avoided])
53
- ```
54
-
55
- ---
56
-
57
- ## 4. Verification Check
58
-
59
- To ensure that the `environment-detection` skill is operating in strict compliance with Harness OS design laws, verify the following:
60
-
61
- - [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
62
- - [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
63
- - [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
1
+ # Workflow: Environment Detection
2
+
3
+ > Active shell, operating system, and toolset environment detection, providing safety guardrails and running preflight syntactic verification.
4
+
5
+ ---
6
+
7
+ ## 1. Skill Behavior Workflow
8
+
9
+ This section visualizes how the `environment-detection` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
10
+
11
+ ```mermaid
12
+ graph TD
13
+ Start([Before Command Execution]) --> DetectOS["Detect Operating System: Windows, macOS, Linux"]
14
+ DetectOS --> DetectShell["Detect Shell: Bash, PowerShell, CMD, Zsh"]
15
+ DetectShell --> ScanCapabilities["Scan available runtimes: Node, Python, .NET, Docker"]
16
+ ScanCapabilities --> CheckSyntax["Inspect command for active shell compatibilities"]
17
+ CheckSyntax --> SyntaxGuard{Syntax safe for shell?}
18
+ SyntaxGuard -->|No| RewriteCmd["Transform/Rewrite command syntax to match active shell"]
19
+ SyntaxGuard -->|Yes| Execute["Run command in persistent terminal"]
20
+ RewriteCmd --> Execute
21
+ Execute --> CaptureOutput["Interleave output and exit code correctly"]
22
+ CaptureOutput --> End([Secure terminal result returned])
23
+ ```
24
+
25
+ ---
26
+
27
+ ## 2. Triggering and Routing Path
28
+
29
+ This diagram illustrates how the `environment-detection` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
30
+
31
+ ```mermaid
32
+ graph LR
33
+ Router["harness-everything / tier-router.js"] -->|Pre-flight command execution| Env["environment-detection / SKILL.md"]
34
+ Env -->|Guards runner execution commands in| TDD["tdd / SKILL.md"]
35
+ Env -->|Guards script installations in| InstallOS["install-cognitive-os / SKILL.md"]
36
+ Env -->|Guards PR quality checks in| VerLoop["verification-loop / SKILL.md"]
37
+ ```
38
+
39
+ ---
40
+
41
+ ## 3. Real-World Use Case Flowchart
42
+
43
+ Here we model concrete real-world scenarios and use cases of the `environment-detection` skill, illustrating standard success paths, error handling, or recovery loops.
44
+
45
+ ```mermaid
46
+ graph TD
47
+ Start["Agent wants to run: 'rm -rf build && mkdir build' on Windows Powershell"] --> Trigger["Environment detection pre-flight check"]
48
+ Trigger --> Detect["Identifies OS: Windows, Shell: PowerShell"]
49
+ Detect --> AnalyzeSyntax["Identifies that 'rm -rf' will fail or behave unexpectedly in PowerShell"]
50
+ AnalyzeSyntax --> Rewrite["Rewrites command to PowerShell equivalent or executes using native node commands"]
51
+ Rewrite --> Run["Executes safely with exit code 0"]
52
+ Run --> Done([Syntax error and execution crash avoided])
53
+ ```
54
+
55
+ ---
56
+
57
+ ## 4. Verification Check
58
+
59
+ To ensure that the `environment-detection` skill is operating in strict compliance with Harness OS design laws, verify the following:
60
+
61
+ - [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
62
+ - [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
63
+ - [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
@@ -1,57 +1,57 @@
1
- # Workflow: Eval Harness
2
-
3
- > Evaluates AI developer agent performance based on accuracy, resource efficiency, and anti-loop metrics.
4
-
5
- ---
6
-
7
- ## 1. Skill Behavior Workflow
8
-
9
- This section visualizes how the `eval-harness` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
10
-
11
- ```mermaid
12
- graph TD
13
- Start([Agent Execution Finished]) --> CollectExecutionMetrics["Gather total elapsed time, token count, and API calls"]
14
- CollectExecutionMetrics --> EvaluateAccuracy["Compare completed task output against baseline correctness requirements"]
15
- EvaluateAccuracy --> AnalyzeLoops["Check for repetitive tool invocations or redundant edits"]
16
- AnalyzeLoops --> CalculateScores["Calculate performance and efficiency scores"]
17
- CalculateScores --> GenerateEvalReport["Compile formal evaluation report and dashboard metrics"]
18
- GenerateEvalReport --> End([Performance metrics indexed and logged])
19
- ```
20
-
21
- ---
22
-
23
- ## 2. Triggering and Routing Path
24
-
25
- This diagram illustrates how the `eval-harness` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
26
-
27
- ```mermaid
28
- graph LR
29
- Router["harness-everything / tier-router.js"] -->|Analyzes performance metrics| EH["eval-harness / SKILL.md"]
30
- EH -->|Synthesizes lessons learned for| Evolve["self-evolve / SKILL.md"]
31
- EH -->|Detects error loops triggering| ZoomOut["zoom-out / SKILL.md"]
32
- ```
33
-
34
- ---
35
-
36
- ## 3. Real-World Use Case Flowchart
37
-
38
- Here we model concrete real-world scenarios and use cases of the `eval-harness` skill, illustrating standard success paths, error handling, or recovery loops.
39
-
40
- ```mermaid
41
- graph TD
42
- Start["Agent session finishes implementing a complete backend server"] --> Trigger["eval-harness skill executed"]
43
- Trigger --> Gather["Collects: 15 minutes elapsed, 32 tool calls, 45,000 tokens consumed"]
44
- Gather --> Score["Scores: Correctness 10/10, Resource Efficiency 9/10, Anti-loop 10/10"]
45
- Score --> Output["Generates benchmark report summarizing optimal execution speed and zero looping errors"]
46
- Output --> Done([Benchmark logged for project history])
47
- ```
48
-
49
- ---
50
-
51
- ## 4. Verification Check
52
-
53
- To ensure that the `eval-harness` skill is operating in strict compliance with Harness OS design laws, verify the following:
54
-
55
- - [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
56
- - [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
57
- - [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
1
+ # Workflow: Eval Harness
2
+
3
+ > Evaluates AI developer agent performance based on accuracy, resource efficiency, and anti-loop metrics.
4
+
5
+ ---
6
+
7
+ ## 1. Skill Behavior Workflow
8
+
9
+ This section visualizes how the `eval-harness` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
10
+
11
+ ```mermaid
12
+ graph TD
13
+ Start([Agent Execution Finished]) --> CollectExecutionMetrics["Gather total elapsed time, token count, and API calls"]
14
+ CollectExecutionMetrics --> EvaluateAccuracy["Compare completed task output against baseline correctness requirements"]
15
+ EvaluateAccuracy --> AnalyzeLoops["Check for repetitive tool invocations or redundant edits"]
16
+ AnalyzeLoops --> CalculateScores["Calculate performance and efficiency scores"]
17
+ CalculateScores --> GenerateEvalReport["Compile formal evaluation report and dashboard metrics"]
18
+ GenerateEvalReport --> End([Performance metrics indexed and logged])
19
+ ```
20
+
21
+ ---
22
+
23
+ ## 2. Triggering and Routing Path
24
+
25
+ This diagram illustrates how the `eval-harness` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
26
+
27
+ ```mermaid
28
+ graph LR
29
+ Router["harness-everything / tier-router.js"] -->|Analyzes performance metrics| EH["eval-harness / SKILL.md"]
30
+ EH -->|Synthesizes lessons learned for| Evolve["self-evolve / SKILL.md"]
31
+ EH -->|Detects error loops triggering| ZoomOut["zoom-out / SKILL.md"]
32
+ ```
33
+
34
+ ---
35
+
36
+ ## 3. Real-World Use Case Flowchart
37
+
38
+ Here we model concrete real-world scenarios and use cases of the `eval-harness` skill, illustrating standard success paths, error handling, or recovery loops.
39
+
40
+ ```mermaid
41
+ graph TD
42
+ Start["Agent session finishes implementing a complete backend server"] --> Trigger["eval-harness skill executed"]
43
+ Trigger --> Gather["Collects: 15 minutes elapsed, 32 tool calls, 45,000 tokens consumed"]
44
+ Gather --> Score["Scores: Correctness 10/10, Resource Efficiency 9/10, Anti-loop 10/10"]
45
+ Score --> Output["Generates benchmark report summarizing optimal execution speed and zero looping errors"]
46
+ Output --> Done([Benchmark logged for project history])
47
+ ```
48
+
49
+ ---
50
+
51
+ ## 4. Verification Check
52
+
53
+ To ensure that the `eval-harness` skill is operating in strict compliance with Harness OS design laws, verify the following:
54
+
55
+ - [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
56
+ - [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
57
+ - [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
@@ -1,59 +1,59 @@
1
- # Workflow: Fable Discipline
2
-
3
- > Shadow guard for fable-mode preventing context bloat, enforcing physical boundaries, and tracking token burn metrics.
4
-
5
- ---
6
-
7
- ## 1. Skill Behavior Workflow
8
-
9
- This section visualizes how the `fable-discipline` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
10
-
11
- ```mermaid
12
- graph TD
13
- Start([Fable Task Initiated]) --> AuditContext["Audit total file lengths in current context"]
14
- AuditContext --> CheckTokenLimit{Tokens exceeding budget?}
15
- CheckTokenLimit -->|Yes| TrimContext["Evict raw logs, completed tasks, and non-essential file contents"]
16
- CheckTokenLimit -->|No| KeepState["Continue monitoring context state"]
17
- TrimContext --> EnforceLimit["Enforce physical boundary guidelines"]
18
- KeepState --> EnforceLimit
19
- EnforceLimit --> LogMetrics["Track token utilization and distillation loops"]
20
- LogMetrics --> End([Context maintained under safe, high-attention limits])
21
- ```
22
-
23
- ---
24
-
25
- ## 2. Triggering and Routing Path
26
-
27
- This diagram illustrates how the `fable-discipline` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
28
-
29
- ```mermaid
30
- graph LR
31
- Fable["fable-mode / SKILL.md"] -->|Monitors context on every turn| FD["fable-discipline / SKILL.md"]
32
- FD -->|Trims and prunes files from| ActiveContext["Active AI Session Context"]
33
- FD -->|Triggers high-level reflection when overloaded| ZoomOut["zoom-out / SKILL.md"]
34
- ```
35
-
36
- ---
37
-
38
- ## 3. Real-World Use Case Flowchart
39
-
40
- Here we model concrete real-world scenarios and use cases of the `fable-discipline` skill, illustrating standard success paths, error handling, or recovery loops.
41
-
42
- ```mermaid
43
- graph TD
44
- Start["Fable-mode is editing a large monorepo (context approaching 120k tokens)"] --> Monitor["Fable-discipline analyzes context size"]
45
- Monitor --> TriggerPruning["Identifies 80k tokens of raw test execution logs & completed sub-task details"]
46
- TriggerPruning --> Clean["Evicts completed step details and logs from immediate active context"]
47
- Clean --> Compress["Summarizes historical state into a 50-line relational state.json"]
48
- Compress --> Done([Active context drops back to 40k tokens, preserving model's reasoning precision])
49
- ```
50
-
51
- ---
52
-
53
- ## 4. Verification Check
54
-
55
- To ensure that the `fable-discipline` skill is operating in strict compliance with Harness OS design laws, verify the following:
56
-
57
- - [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
58
- - [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
59
- - [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
1
+ # Workflow: Fable Discipline
2
+
3
+ > Shadow guard for fable-mode preventing context bloat, enforcing physical boundaries, and tracking token burn metrics.
4
+
5
+ ---
6
+
7
+ ## 1. Skill Behavior Workflow
8
+
9
+ This section visualizes how the `fable-discipline` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
10
+
11
+ ```mermaid
12
+ graph TD
13
+ Start([Fable Task Initiated]) --> AuditContext["Audit total file lengths in current context"]
14
+ AuditContext --> CheckTokenLimit{Tokens exceeding budget?}
15
+ CheckTokenLimit -->|Yes| TrimContext["Evict raw logs, completed tasks, and non-essential file contents"]
16
+ CheckTokenLimit -->|No| KeepState["Continue monitoring context state"]
17
+ TrimContext --> EnforceLimit["Enforce physical boundary guidelines"]
18
+ KeepState --> EnforceLimit
19
+ EnforceLimit --> LogMetrics["Track token utilization and distillation loops"]
20
+ LogMetrics --> End([Context maintained under safe, high-attention limits])
21
+ ```
22
+
23
+ ---
24
+
25
+ ## 2. Triggering and Routing Path
26
+
27
+ This diagram illustrates how the `fable-discipline` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
28
+
29
+ ```mermaid
30
+ graph LR
31
+ Fable["fable-mode / SKILL.md"] -->|Monitors context on every turn| FD["fable-discipline / SKILL.md"]
32
+ FD -->|Trims and prunes files from| ActiveContext["Active AI Session Context"]
33
+ FD -->|Triggers high-level reflection when overloaded| ZoomOut["zoom-out / SKILL.md"]
34
+ ```
35
+
36
+ ---
37
+
38
+ ## 3. Real-World Use Case Flowchart
39
+
40
+ Here we model concrete real-world scenarios and use cases of the `fable-discipline` skill, illustrating standard success paths, error handling, or recovery loops.
41
+
42
+ ```mermaid
43
+ graph TD
44
+ Start["Fable-mode is editing a large monorepo (context approaching 120k tokens)"] --> Monitor["Fable-discipline analyzes context size"]
45
+ Monitor --> TriggerPruning["Identifies 80k tokens of raw test execution logs & completed sub-task details"]
46
+ TriggerPruning --> Clean["Evicts completed step details and logs from immediate active context"]
47
+ Clean --> Compress["Summarizes historical state into a 50-line relational state.json"]
48
+ Compress --> Done([Active context drops back to 40k tokens, preserving model's reasoning precision])
49
+ ```
50
+
51
+ ---
52
+
53
+ ## 4. Verification Check
54
+
55
+ To ensure that the `fable-discipline` skill is operating in strict compliance with Harness OS design laws, verify the following:
56
+
57
+ - [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
58
+ - [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
59
+ - [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
@@ -1,32 +1,32 @@
1
- # Workflow: Fable Mode
2
-
3
- > Macro-task planning and execution engine. Like all Harness workflows, this is not a straight line to success. It requires continuous verification and course correction.
4
-
5
- ---
6
-
7
- ## 1. Skill Behavior Workflow
8
-
9
- This section visualizes how `fable-mode` handles macro tasks. Subagent failure or integration crashes are expected realities, not edge cases.
10
-
11
- ```mermaid
12
- graph TD
13
- Start([Tier 3 Macro Task Triggered]) --> InitFable["Initialize Fable Execution Context"]
14
- InitFable --> AnalyzeScope["Map system dependencies & files"]
15
- AnalyzeScope --> GenerateContract["Generate Contract & Todo List"]
16
-
17
- GenerateContract --> RunStep["Try: Execute Step / Sub-agent"]
18
- RunStep --> VerifyStep["Try: Run verify-gate.js for Integration"]
19
-
20
- VerifyStep --> Check{Gate: Exit Code?}
21
- Check -->|Exit 1: Sub-agent Failed| Diagnose["Reflect: Why did sub-agent fail?"]
22
- Diagnose --> InsertBlocker["Insert Blocker Todo: Fix Integration"]
23
- InsertBlocker --> RunStep
24
-
25
- Check -->|Exit 0: Success| CheckAllSteps{All steps done?}
26
- CheckAllSteps -->|No| RunStep
27
- CheckAllSteps -->|Yes| FinalAudit["Perform system-wide verification loop"]
28
-
29
- FinalAudit --> FinalCheck{Gate: Exit Code?}
30
- FinalCheck -->|Exit 1| Diagnose
31
- FinalCheck -->|Exit 0| End([Macro rewrite successfully deployed])
32
- ```
1
+ # Workflow: Fable Mode
2
+
3
+ > Macro-task planning and execution engine. Like all Harness workflows, this is not a straight line to success. It requires continuous verification and course correction.
4
+
5
+ ---
6
+
7
+ ## 1. Skill Behavior Workflow
8
+
9
+ This section visualizes how `fable-mode` handles macro tasks. Subagent failure or integration crashes are expected realities, not edge cases.
10
+
11
+ ```mermaid
12
+ graph TD
13
+ Start([Tier 3 Macro Task Triggered]) --> InitFable["Initialize Fable Execution Context"]
14
+ InitFable --> AnalyzeScope["Map system dependencies & files"]
15
+ AnalyzeScope --> GenerateContract["Generate Contract & Todo List"]
16
+
17
+ GenerateContract --> RunStep["Try: Execute Step / Sub-agent"]
18
+ RunStep --> VerifyStep["Try: Run verify-gate.js for Integration"]
19
+
20
+ VerifyStep --> Check{Gate: Exit Code?}
21
+ Check -->|Exit 1: Sub-agent Failed| Diagnose["Reflect: Why did sub-agent fail?"]
22
+ Diagnose --> InsertBlocker["Insert Blocker Todo: Fix Integration"]
23
+ InsertBlocker --> RunStep
24
+
25
+ Check -->|Exit 0: Success| CheckAllSteps{All steps done?}
26
+ CheckAllSteps -->|No| RunStep
27
+ CheckAllSteps -->|Yes| FinalAudit["Perform system-wide verification loop"]
28
+
29
+ FinalAudit --> FinalCheck{Gate: Exit Code?}
30
+ FinalCheck -->|Exit 1| Diagnose
31
+ FinalCheck -->|Exit 0| End([Macro rewrite successfully deployed])
32
+ ```
@@ -1,62 +1,62 @@
1
- # Workflow: Git Commit
2
-
3
- > Generates semantic, Angular-style conventional commits after verifying the workspace, staged files, and active language contexts.
4
-
5
- ---
6
-
7
- ## 1. Skill Behavior Workflow
8
-
9
- This section visualizes how the `git-commit` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
10
-
11
- ```mermaid
12
- graph TD
13
- Start([Trigger Commit Hook / Command]) --> DetectRepo["Detect main repo vs submodule"]
14
- DetectRepo --> PreCheck["Verify unstaged changes & staged files"]
15
- PreCheck --> StageCheck{Staged files present?}
16
- StageCheck -->|No| Warning["Warn developer & exit"]
17
- StageCheck -->|Yes| DetectLang["Analyze file extensions for active languages"]
18
- DetectLang --> GenMessage["Analyze changes and generate Angular-style commit message"]
19
- GenMessage --> FormatCheck["Format check: type, scope, subject, body, footer"]
20
- FormatCheck --> WriteCommit["Commit staged files with formatted message"]
21
- WriteCommit --> End([Staging clean and committed])
22
- ```
23
-
24
- ---
25
-
26
- ## 2. Triggering and Routing Path
27
-
28
- This diagram illustrates how the `git-commit` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
29
-
30
- ```mermaid
31
- graph LR
32
- Router["harness-everything / tier-router.js"] -->|Keyword: commit / git / save| GitCommit["git-commit / SKILL.md"]
33
- GitCommit -->|Formats according to| Guide["git-commit / guides / ANGULAR_STYLE.md"]
34
- GitCommit -->|Integrates with pre-commit gates| VerLoop["verification-loop / SKILL.md"]
35
- GitCommit -->|Composed after history squashes| Rewrite["rewrite-commits / SKILL.md"]
36
- ```
37
-
38
- ---
39
-
40
- ## 3. Real-World Use Case Flowchart
41
-
42
- Here we model concrete real-world scenarios and use cases of the `git-commit` skill, illustrating standard success paths, error handling, or recovery loops.
43
-
44
- ```mermaid
45
- graph TD
46
- Start["Developer completes feature & runs 'git add .'"] --> Trigger["Invoke git-commit skill"]
47
- Trigger --> Analyze["Skill parses staged diff: 'src/auth.js (+15,-2)'"]
48
- Analyze --> DetectScope["Deduce scope: 'auth' and type: 'feat'"]
49
- DetectScope --> BuildMessage["Build message: 'feat(auth): add JWT token expiration check'"]
50
- BuildMessage --> Commit["Execute git commit -m 'feat(auth): add JWT token expiration check'"]
51
- Commit --> Done(["Repository index updated cleanly"])
52
- ```
53
-
54
- ---
55
-
56
- ## 4. Verification Check
57
-
58
- To ensure that the `git-commit` skill is operating in strict compliance with Harness OS design laws, verify the following:
59
-
60
- - [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
61
- - [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
62
- - [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
1
+ # Workflow: Git Commit
2
+
3
+ > Generates semantic, Angular-style conventional commits after verifying the workspace, staged files, and active language contexts.
4
+
5
+ ---
6
+
7
+ ## 1. Skill Behavior Workflow
8
+
9
+ This section visualizes how the `git-commit` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
10
+
11
+ ```mermaid
12
+ graph TD
13
+ Start([Trigger Commit Hook / Command]) --> DetectRepo["Detect main repo vs submodule"]
14
+ DetectRepo --> PreCheck["Verify unstaged changes & staged files"]
15
+ PreCheck --> StageCheck{Staged files present?}
16
+ StageCheck -->|No| Warning["Warn developer & exit"]
17
+ StageCheck -->|Yes| DetectLang["Analyze file extensions for active languages"]
18
+ DetectLang --> GenMessage["Analyze changes and generate Angular-style commit message"]
19
+ GenMessage --> FormatCheck["Format check: type, scope, subject, body, footer"]
20
+ FormatCheck --> WriteCommit["Commit staged files with formatted message"]
21
+ WriteCommit --> End([Staging clean and committed])
22
+ ```
23
+
24
+ ---
25
+
26
+ ## 2. Triggering and Routing Path
27
+
28
+ This diagram illustrates how the `git-commit` skill is triggered through user requests or developer actions, and how it integrates or chains together with other companion skills in the Harness OS ecosystem to form unified workflows.
29
+
30
+ ```mermaid
31
+ graph LR
32
+ Router["harness-everything / tier-router.js"] -->|Keyword: commit / git / save| GitCommit["git-commit / SKILL.md"]
33
+ GitCommit -->|Formats according to| Guide["git-commit / guides / ANGULAR_STYLE.md"]
34
+ GitCommit -->|Integrates with pre-commit gates| VerLoop["verification-loop / SKILL.md"]
35
+ GitCommit -->|Composed after history squashes| Rewrite["rewrite-commits / SKILL.md"]
36
+ ```
37
+
38
+ ---
39
+
40
+ ## 3. Real-World Use Case Flowchart
41
+
42
+ Here we model concrete real-world scenarios and use cases of the `git-commit` skill, illustrating standard success paths, error handling, or recovery loops.
43
+
44
+ ```mermaid
45
+ graph TD
46
+ Start["Developer completes feature & runs 'git add .'"] --> Trigger["Invoke git-commit skill"]
47
+ Trigger --> Analyze["Skill parses staged diff: 'src/auth.js (+15,-2)'"]
48
+ Analyze --> DetectScope["Deduce scope: 'auth' and type: 'feat'"]
49
+ DetectScope --> BuildMessage["Build message: 'feat(auth): add JWT token expiration check'"]
50
+ BuildMessage --> Commit["Execute git commit -m 'feat(auth): add JWT token expiration check'"]
51
+ Commit --> Done(["Repository index updated cleanly"])
52
+ ```
53
+
54
+ ---
55
+
56
+ ## 4. Verification Check
57
+
58
+ To ensure that the `git-commit` skill is operating in strict compliance with Harness OS design laws, verify the following:
59
+
60
+ - [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
61
+ - [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
62
+ - [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.