harness-everything 0.2.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.md +2 -0
- package/BENCHMARK_SOP.md +62 -0
- package/CHANGELOG.md +107 -0
- package/Dockerfile +18 -0
- package/LICENSE +201 -0
- package/README.md +197 -0
- package/VERIFICATION.md +347 -0
- package/bin/cli.js +97 -0
- package/build-multi-agent-system/AGENTS.md +50 -0
- package/build-multi-agent-system/README.md +63 -0
- package/build-multi-agent-system/SKILL.md +68 -0
- package/create-agent-launcher/SKILL.md +48 -0
- package/create-agent-launcher/examples/csharp-monorepo.md +123 -0
- package/create-agent-launcher/examples/typescript-cli.md +126 -0
- package/create-agent-launcher/guidelines/platform-claude.md +77 -0
- package/create-agent-launcher/guidelines/platform-codex.md +146 -0
- package/create-agent-launcher/guidelines/platform-copilot.md +74 -0
- package/create-agent-launcher/guidelines/platform-gemini.md +101 -0
- package/create-agent-launcher/guidelines/role-capabilities.md +108 -0
- package/create-agent-launcher/templates/README.md +17 -0
- package/create-agent-launcher/templates/agent-launcher.md +68 -0
- package/create-agent-launcher/templates/backend-developer-csharp.md +56 -0
- package/create-agent-launcher/templates/backend-developer-polyglot.md +62 -0
- package/create-agent-launcher/templates/backend-developer-ts.md +57 -0
- package/create-agent-launcher/templates/memory-keeper.md +37 -0
- package/create-agent-launcher/templates/requirement-analyzer.md +66 -0
- package/create-agent-launcher/templates/specialist-agent.md +34 -0
- package/create-agent-launcher/templates/task-verifier.md +56 -0
- package/create-agent-launcher/templates/tool-maker.md +33 -0
- package/create-agent-launcher/workflows/01-init.md +22 -0
- package/create-agent-launcher/workflows/02-analysis.md +26 -0
- package/create-agent-launcher/workflows/03-generation.md +29 -0
- package/create-agent-launcher/workflows/04-launcher.md +20 -0
- package/docker-verify.sh +266 -0
- package/docs/architecture.md +95 -0
- package/docs/philosophy.md +45 -0
- package/docs/reflection.md +34 -0
- package/docs/routing.md +45 -0
- package/docs/workflows/build-multi-agent-system.md +62 -0
- package/docs/workflows/create-agent-launcher.md +62 -0
- package/docs/workflows/environment-detection.md +63 -0
- package/docs/workflows/eval-harness.md +57 -0
- package/docs/workflows/fable-discipline.md +59 -0
- package/docs/workflows/fable-mode.md +32 -0
- package/docs/workflows/git-commit.md +62 -0
- package/docs/workflows/grill-me.md +62 -0
- package/docs/workflows/grill-with-docs.md +62 -0
- package/docs/workflows/harness-everything.md +92 -0
- package/docs/workflows/improve-codebase-architecture.md +60 -0
- package/docs/workflows/install-cognitive-os.md +60 -0
- package/docs/workflows/repo-docs.md +59 -0
- package/docs/workflows/rewrite-commits.md +60 -0
- package/docs/workflows/security-review.md +58 -0
- package/docs/workflows/self-evolve.md +59 -0
- package/docs/workflows/skill-creator.md +75 -0
- package/docs/workflows/skill-style.md +64 -0
- package/docs/workflows/tdd.md +39 -0
- package/docs/workflows/todo-driven-workflow.md +36 -0
- package/docs/workflows/using-git-worktrees.md +63 -0
- package/docs/workflows/verification-loop.md +69 -0
- package/docs/workflows/verify-before-claim.md +60 -0
- package/docs/workflows/zoom-out.md +62 -0
- package/environment-detection/SKILL.md +77 -0
- package/environment-detection/scripts/preflight.js +93 -0
- package/eval-framework/behavioral-test.js +105 -0
- package/eval-framework/cases/case1.json +5 -0
- package/eval-framework/cases/case2.json +5 -0
- package/eval-framework/cases/case3.json +5 -0
- package/eval-framework/cases/case4-zh-tier2.json +5 -0
- package/eval-framework/cases/case5-zh-tier3.json +5 -0
- package/eval-framework/mechanism-test.js +251 -0
- package/eval-framework/runner.js +56 -0
- package/eval-harness/SKILL.md +59 -0
- package/eval-harness/scripts/evaluate.js +61 -0
- package/fable-discipline/SKILL.md +38 -0
- package/fable-mode/CONTRACT-FORMAT.md +51 -0
- package/fable-mode/SKILL.md +51 -0
- package/fable-mode/agents/fable-orchestrator.md +92 -0
- package/fable-mode/agents/fable-verifier.md +32 -0
- package/fable-mode/agents/fable-worker-haiku.md +48 -0
- package/fable-mode/agents/fable-worker-sonnet.md +49 -0
- package/fable-mode/execution-guardrails/SKILL.md +87 -0
- package/fable-mode/fable-haiku/SKILL.md +48 -0
- package/git-commit/SKILL.md +55 -0
- package/git-commit/guides/ANGULAR_STYLE.md +61 -0
- package/git-commit/guides/COMMIT_GENERATION.md +24 -0
- package/git-commit/guides/LANGUAGE_DETECTION.md +16 -0
- package/git-commit/guides/MAIN_REPO.md +15 -0
- package/git-commit/guides/SUBMODULES.md +27 -0
- package/grill-me/SKILL.md +36 -0
- package/grill-with-docs/ADR-FORMAT.md +47 -0
- package/grill-with-docs/CONTEXT-FORMAT.md +63 -0
- package/grill-with-docs/SKILL.md +99 -0
- package/harness-everything/SKILL.md +141 -0
- package/harness-everything/examples/README.md +9 -0
- package/harness-everything/examples/todo-workflow.md +22 -0
- package/harness-everything/scripts/bootstrap.js +140 -0
- package/harness-everything/scripts/self-heal.js +189 -0
- package/harness-everything/scripts/tier-router.js +219 -0
- package/harness-everything/scripts/todo-cli.js +157 -0
- package/harness-everything/scripts/verify-gate.js +31 -0
- package/hooks/hooks.json +155 -0
- package/hooks/scripts/atomic-commit-check.js +68 -0
- package/hooks/scripts/boundary-guard.js +55 -0
- package/hooks/scripts/context-compact.js +114 -0
- package/hooks/scripts/contract-test.js +79 -0
- package/hooks/scripts/depth-guard.js +65 -0
- package/hooks/scripts/lib/harness-state.js +202 -0
- package/hooks/scripts/lib/platforms/claude.js +42 -0
- package/hooks/scripts/lib/platforms/codex.js +46 -0
- package/hooks/scripts/lib/platforms/continue.js +41 -0
- package/hooks/scripts/lib/platforms/copilot.js +41 -0
- package/hooks/scripts/lib/platforms/cursor.js +41 -0
- package/hooks/scripts/lib/platforms/hermes.js +32 -0
- package/hooks/scripts/lib/platforms/index.js +17 -0
- package/hooks/scripts/lib/platforms/worktrees.js +20 -0
- package/hooks/scripts/reset-circuit-breaker.js +30 -0
- package/hooks/scripts/rule-of-3-tracker.js +91 -0
- package/hooks/scripts/rule-of-3.js +176 -0
- package/hooks/scripts/state-persist.js +99 -0
- package/hooks/scripts/stop-gate.js +80 -0
- package/hooks/scripts/subagent-scope-guard.js +88 -0
- package/improve-codebase-architecture/SKILL.md +44 -0
- package/improve-codebase-architecture/guides/DEEPENING.md +37 -0
- package/improve-codebase-architecture/guides/HTML-REPORT.md +123 -0
- package/improve-codebase-architecture/guides/INTERFACE-DESIGN.md +44 -0
- package/improve-codebase-architecture/guides/LANGUAGE.md +53 -0
- package/install-cognitive-os/SKILL.md +95 -0
- package/package.json +22 -0
- package/repo-docs/SKILL.md +45 -0
- package/repo-docs/templates/agents-template.md +264 -0
- package/repo-docs/templates/knowledge-agents-template.md +50 -0
- package/repo-docs/templates/knowledge-readme-template.md +83 -0
- package/repo-docs/templates/manual-recon.md +117 -0
- package/repo-docs/templates/multi-skills-readme-template.md +72 -0
- package/repo-docs/templates/product-agents-template.md +78 -0
- package/repo-docs/templates/product-readme-template.md +95 -0
- package/repo-docs/templates/readme-template.md +136 -0
- package/repo-docs/templates/single-skill-readme-template.md +70 -0
- package/repo-docs/templates/skills-agents-template.md +60 -0
- package/rewrite-commits/SKILL.md +32 -0
- package/scripts/installer.js +649 -0
- package/scripts/lib/advisory-text.js +163 -0
- package/scripts/lib/claude-hooks.js +71 -0
- package/scripts/lib/gitignore.js +58 -0
- package/scripts/lib/manifest.js +82 -0
- package/scripts/lib/prompts.js +241 -0
- package/scripts/lib/skills.js +172 -0
- package/scripts/lib/workspace.js +28 -0
- package/security-review/SKILL.md +511 -0
- package/self-evolve/SKILL.md +54 -0
- package/self-evolve/scripts/persist-memory.js +40 -0
- package/self-evolve/scripts/self-regression.js +113 -0
- package/skill-creator/SKILL.md +91 -0
- package/skill-creator/references/quality-principles.md +81 -0
- package/skill-creator/references/testing-workflow.md +32 -0
- package/skill-style/SKILL.md +48 -0
- package/skill-style/STYLE.md +37 -0
- package/tdd/SKILL.md +53 -0
- package/tdd/guides/deep-modules.md +33 -0
- package/tdd/guides/interface-design.md +31 -0
- package/tdd/guides/mocking.md +59 -0
- package/tdd/guides/refactoring.md +10 -0
- package/tdd/guides/tests.md +61 -0
- package/todo-driven-workflow/SKILL.md +54 -0
- package/using-git-worktrees/SKILL.md +161 -0
- package/verification-loop/SKILL.md +138 -0
- package/verify-before-claim/SKILL.md +86 -0
- package/zoom-out/SKILL.md +90 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Workflow: Harness Everything
|
|
2
|
+
|
|
3
|
+
> The single entry point and dynamic router of Harness OS, triaging tasks into appropriate tiers and auto-loading synergistic knowledge guides.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `harness-everything` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([User Prompt Received]) --> ExecuteRouter["Execute tier-router.js OR check UserPromptSubmit hook output"]
|
|
14
|
+
ExecuteRouter --> DetectNewFeature{Contains new logic/files?}
|
|
15
|
+
DetectNewFeature -->|Yes, enforce Tier 2+| PreventDegrade["Prevent Silent Degrade to Tier 1"]
|
|
16
|
+
PreventDegrade --> TriageTier
|
|
17
|
+
DetectNewFeature -->|No| TriageTier{Triage Tier}
|
|
18
|
+
|
|
19
|
+
TriageTier -->|Tier 1: Trivial| Tier1Route["Tier 1: Direct Edit No Checklist"]
|
|
20
|
+
TriageTier -->|Tier 2: Standard| Tier2Route["Tier 2: TDD & Todo-driven work"]
|
|
21
|
+
TriageTier -->|Tier 3: Macro| Tier3Route["Tier 3: Fable Planning & Agent Scaffolding"]
|
|
22
|
+
|
|
23
|
+
Tier1Route --> LoadGuides["Auto-load & output Synergistic Guides"]
|
|
24
|
+
Tier2Route --> LoadGuides
|
|
25
|
+
Tier3Route --> LoadGuides
|
|
26
|
+
|
|
27
|
+
LoadGuides --> FactCheck{External Claims / Estimates?}
|
|
28
|
+
FactCheck -->|Yes| FactReminder["Append Fact-Audit Reminder"]
|
|
29
|
+
FactCheck -->|No| FinalizeOutput["Finalize Routing Checkpoint Output"]
|
|
30
|
+
FactReminder --> FinalizeOutput
|
|
31
|
+
FinalizeOutput --> Normalization["Apply Always-On ADHD-Friendly Output Shaping (Global Normalization)"]
|
|
32
|
+
Normalization --> End([Developer receives highly focused, concise response])
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 2. Triggering and Routing Path
|
|
38
|
+
|
|
39
|
+
This diagram illustrates how the `harness-everything` 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.
|
|
40
|
+
|
|
41
|
+
```mermaid
|
|
42
|
+
graph LR
|
|
43
|
+
UserPrompt([User Input]) --> Router["harness-everything / tier-router.js"]
|
|
44
|
+
|
|
45
|
+
Router -->|Keyword Matches| Guides["Synergistic Workflow Guides"]
|
|
46
|
+
|
|
47
|
+
Guides -->|TDD/Test/Bug| Ch1["tdd + environment-detection + verify-before-claim + verification-loop"]
|
|
48
|
+
Guides -->|Git/Commit/PR| Ch2["git-commit + rewrite-commits + using-git-worktrees + verification-loop"]
|
|
49
|
+
Guides -->|Agent/Fable/Macro| Ch3["fable-mode + fable-discipline + build-multi-agent-system + create-agent-launcher"]
|
|
50
|
+
Guides -->|Refactor/Architecture| Ch4["improve-codebase-architecture + grill-with-docs + grill-me + fable-mode"]
|
|
51
|
+
|
|
52
|
+
Ch1 --> ADHD["Always-On ADHD-Friendly Output Shaping (Global Normalization)"]
|
|
53
|
+
Ch2 --> ADHD
|
|
54
|
+
Ch3 --> ADHD
|
|
55
|
+
Ch4 --> ADHD
|
|
56
|
+
|
|
57
|
+
style Router fill:#d35400,stroke:#e67e22,stroke-width:2px,color:#ffffff
|
|
58
|
+
style ADHD fill:#1abc9c,stroke:#16a085,stroke-width:2px,color:#ffffff
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 3. Real-World Use Case Flowchart
|
|
64
|
+
|
|
65
|
+
Here we model concrete real-world scenarios and use cases of the `harness-everything` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
66
|
+
|
|
67
|
+
```mermaid
|
|
68
|
+
graph TD
|
|
69
|
+
Input1["User: 'Add a new settings page'"] --> Router1["tier-router.js executes"]
|
|
70
|
+
Router1 --> TrapCheck["Trap Avoided: Feature request correctly blocked from Tier 1 degrade"]
|
|
71
|
+
TrapCheck --> Triage2["Triaged as Tier 2: Standard Task"]
|
|
72
|
+
Triage2 --> DomainSummon["Load 'tdd' & frontend Domain Experts"]
|
|
73
|
+
DomainSummon --> BaseLoop["Initialize 'todo-driven-workflow' checklist"]
|
|
74
|
+
BaseLoop --> VerifyGate["Complete feature & run 'verification-loop' pre-delivery gate"]
|
|
75
|
+
VerifyGate --> Done1([Feature delivered safely with proof])
|
|
76
|
+
|
|
77
|
+
Input2["User: 'Refactor DB architecture and grill my plan'"] --> Router2["tier-router.js executes"]
|
|
78
|
+
Router2 --> Triage3["Triaged as Tier 3: Macro Task"]
|
|
79
|
+
Triage3 --> RecGuides["Auto-load: improve-codebase-architecture, grill-with-docs, fable-mode"]
|
|
80
|
+
RecGuides --> Process["Developer completes Grilling session to finalize ADRs"]
|
|
81
|
+
Process --> Execute["fable-mode generates execution checklist & spawns sub-agents"]
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 4. Verification Check
|
|
87
|
+
|
|
88
|
+
To ensure that the `harness-everything` skill is operating in strict compliance with Harness OS design laws, verify the following:
|
|
89
|
+
|
|
90
|
+
- [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
|
|
91
|
+
- [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
|
|
92
|
+
- [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Workflow: Improve Codebase Architecture
|
|
2
|
+
|
|
3
|
+
> Finds deepening opportunities in the codebase, consolidating tightly-coupled modules and mapping dependencies visually using Mermaid diagram reports.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `improve-codebase-architecture` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([Audit Request / Refactoring]) --> ScanDirectories["Scan code directories for coupling"]
|
|
14
|
+
ScanDirectories --> IdentifyTightlyCoupled["Locate highly coupled modules / wide files"]
|
|
15
|
+
IdentifyTightlyCoupled --> DeepModuleTest["Analyze modules against Deep Module Design rules"]
|
|
16
|
+
DeepModuleTest --> DefineSeams["Identify clean seams & write interface abstractions"]
|
|
17
|
+
DefineSeams --> GenMermaidReport["Generate visual HTML / Mermaid codebase dependency map"]
|
|
18
|
+
GenMermaidReport --> ProposeDecomposition["Formulate restructuring and extraction proposal"]
|
|
19
|
+
ProposeDecomposition --> End([Actionable refactoring strategy compiled])
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 2. Triggering and Routing Path
|
|
25
|
+
|
|
26
|
+
This diagram illustrates how the `improve-codebase-architecture` 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.
|
|
27
|
+
|
|
28
|
+
```mermaid
|
|
29
|
+
graph LR
|
|
30
|
+
Router["harness-everything / tier-router.js"] -->|Keyword: refactor / architecture / couple| ICA["improve-codebase-architecture / SKILL.md"]
|
|
31
|
+
ICA -->|Deductions challenged by SRE via| GrillMe["grill-me / SKILL.md"]
|
|
32
|
+
ICA -->|Guides large-scale structural rewrites in| Fable["fable-mode / SKILL.md"]
|
|
33
|
+
ICA -->|Extracts interfaces to simplify unit tests in| TDD["tdd / 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 `improve-codebase-architecture` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
41
|
+
|
|
42
|
+
```mermaid
|
|
43
|
+
graph TD
|
|
44
|
+
Start["Monolithic file 'utils.js' handles email, token creation, DB pooling, and logging"] --> Trigger["improve-codebase-architecture skill analyzed"]
|
|
45
|
+
Trigger --> Audit["Analyzes dependency graphs and calculates coupling scores"]
|
|
46
|
+
Audit --> FindSeams["Identifies three distinct interfaces: IEmailService, ITokener, IDbPool"]
|
|
47
|
+
FindSeams --> GenMermaid["Output detailed Mermaid diagram visualizing the proposed separated structure"]
|
|
48
|
+
GenMermaid --> RefactorPlan["Drafts multi-stage module extraction plan"]
|
|
49
|
+
RefactorPlan --> Done([Clear, modular architectural blueprint established])
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 4. Verification Check
|
|
55
|
+
|
|
56
|
+
To ensure that the `improve-codebase-architecture` skill is operating in strict compliance with Harness OS design laws, verify the following:
|
|
57
|
+
|
|
58
|
+
- [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
|
|
59
|
+
- [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
|
|
60
|
+
- [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Workflow: Install Cognitive OS
|
|
2
|
+
|
|
3
|
+
> Automates the installation of the Agent Cognitive Loop (Think > Try > Summarize > Record) into the user's active workspace and environment configs.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `install-cognitive-os` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([Bootstrap Hook Triggered]) --> DetectTargetEnv["Scan for active IDE / Client config paths"]
|
|
14
|
+
DetectTargetEnv --> InjectAdvisoryRules["Append advisory rules to .cursorrules, .github/copilot-instructions.md, or AGENTS.md"]
|
|
15
|
+
InjectAdvisoryRules --> InstallHooks["Configure Claude Code settings.json hook pre-flights"]
|
|
16
|
+
InstallHooks --> DeployScripts["Deploy core bootstrap.js, self-heal.js, and tier-router.js scripts"]
|
|
17
|
+
DeployScripts --> RunVerification["Execute self-heal audit test to confirm platform integrations"]
|
|
18
|
+
RunVerification --> End([Harness cognitive guardrails fully established])
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 2. Triggering and Routing Path
|
|
24
|
+
|
|
25
|
+
This diagram illustrates how the `install-cognitive-os` 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
|
+
BootstrapCmd["Bootstrap CLI Command / npm install"] --> InstallSkill["install-cognitive-os / SKILL.md"]
|
|
30
|
+
InstallSkill -->|Deploys core router script| Router["harness-everything / scripts / tier-router.js"]
|
|
31
|
+
InstallSkill -->|Establishes memory loop configs for| Evolve["self-evolve / SKILL.md"]
|
|
32
|
+
InstallSkill -->|Guards all file edits using| Todo["todo-driven-workflow / SKILL.md"]
|
|
33
|
+
InstallSkill -->|Enforces Always-On Normalization for all responses| ADHD["Always-On ADHD-Friendly Output Shaping"]
|
|
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 `install-cognitive-os` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
41
|
+
|
|
42
|
+
```mermaid
|
|
43
|
+
graph TD
|
|
44
|
+
Start["Fresh repository checkout"] --> Trigger["Run 'node scripts/installer.js install --all --yes'"]
|
|
45
|
+
Trigger --> Scan["Detects Cursor editor rules and GitHub action configurations"]
|
|
46
|
+
Scan --> BuildAdvisory["Appends mandatory routing checkpoint and cognitive compliance blocks to .cursorrules"]
|
|
47
|
+
BuildAdvisory --> CopySkills["Copies all 23 core skills into .cursor/skills/ and .github/skills/"]
|
|
48
|
+
CopySkills --> CheckHeal["Runs preflight audit to confirm 100% path coverage"]
|
|
49
|
+
CheckHeal --> Done([Harness OS environment setup is complete and active])
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 4. Verification Check
|
|
55
|
+
|
|
56
|
+
To ensure that the `install-cognitive-os` skill is operating in strict compliance with Harness OS design laws, verify the following:
|
|
57
|
+
|
|
58
|
+
- [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
|
|
59
|
+
- [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
|
|
60
|
+
- [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Workflow: Repo Docs
|
|
2
|
+
|
|
3
|
+
> Generates high-quality, professional README.md and AGENTS.md files based on actual workspace structures and product-archetype templates.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `repo-docs` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([Generate Repository Docs]) --> AuditProjectStructure["Audit workspace directory tree"]
|
|
14
|
+
AuditProjectStructure --> ClassifyProductArchetype["Classify repository archetype: tool, library, platform"]
|
|
15
|
+
ClassifyProductArchetype --> LoadTemplates["Load standard README and AGENTS templates"]
|
|
16
|
+
LoadTemplates --> InjectCustomStructure["Populate files with actual paths, licenses, and badges"]
|
|
17
|
+
InjectCustomStructure --> FormatMarkdown["Format documents following clean layout rules"]
|
|
18
|
+
FormatMarkdown --> WriteFiles["Commit README.md and AGENTS.md to workspace root"]
|
|
19
|
+
WriteFiles --> End([Professional onboarding documentation created])
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 2. Triggering and Routing Path
|
|
25
|
+
|
|
26
|
+
This diagram illustrates how the `repo-docs` 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.
|
|
27
|
+
|
|
28
|
+
```mermaid
|
|
29
|
+
graph LR
|
|
30
|
+
Router["harness-everything / tier-router.js"] -->|Keyword: doc / readme / agents-template| RepoDocs["repo-docs / SKILL.md"]
|
|
31
|
+
RepoDocs -->|Integrates frontmatter constraints into| BMAS["build-multi-agent-system / SKILL.md"]
|
|
32
|
+
RepoDocs -->|Leverages ADR details generated in| GWD["grill-with-docs / SKILL.md"]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 3. Real-World Use Case Flowchart
|
|
38
|
+
|
|
39
|
+
Here we model concrete real-world scenarios and use cases of the `repo-docs` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
40
|
+
|
|
41
|
+
```mermaid
|
|
42
|
+
graph TD
|
|
43
|
+
Start["New library lacks onboarding docs and setup details"] --> Trigger["repo-docs skill invoked"]
|
|
44
|
+
Trigger --> Scan["Scans folders: discovers it's a TypeScript utility package"]
|
|
45
|
+
Scan --> MatchTemplate["Loads library archetype README template"]
|
|
46
|
+
MatchTemplate --> GenDocs["Outputs README.md with TypeScript usage examples, badges, and structure"]
|
|
47
|
+
GenDocs --> GenOnboarding["Outputs AGENTS.md defining the developer agent rules for the repo"]
|
|
48
|
+
GenOnboarding --> Done([Clean, standardized documentation committed])
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 4. Verification Check
|
|
54
|
+
|
|
55
|
+
To ensure that the `repo-docs` 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.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Workflow: Rewrite Commits
|
|
2
|
+
|
|
3
|
+
> Safely rewrites or squashes a specified range of commits into highly professional, Conventional Commits (Angular style) on a new branch.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `rewrite-commits` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([Define Commit Range]) --> BackupBranch["Create a backup branch of current state"]
|
|
14
|
+
BackupBranch --> ReadCommits["Read all commit messages in the range"]
|
|
15
|
+
ReadCommits --> AnalyzeDiffs["Read files & diffs associated with each commit"]
|
|
16
|
+
AnalyzeDiffs --> GenNewMessages["Generate high-quality Angular-style messages for each diff"]
|
|
17
|
+
GenNewMessages --> SoftReset["Execute git reset --soft to merge range changes"]
|
|
18
|
+
SoftReset --> ReapplyCommits["Re-apply changes with perfectly clean, segmented commit history"]
|
|
19
|
+
ReapplyCommits --> VerifyBranch["Run verification checks on the final rebuilt branch"]
|
|
20
|
+
VerifyBranch --> End([Perfectly clean Git history on new branch])
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 2. Triggering and Routing Path
|
|
26
|
+
|
|
27
|
+
This diagram illustrates how the `rewrite-commits` 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
|
+
Router["harness-everything / tier-router.js"] -->|Keyword: commit / rewrite / squash| Rewrite["rewrite-commits / SKILL.md"]
|
|
32
|
+
Rewrite -->|Supplements convention templates in| GitCommit["git-commit / SKILL.md"]
|
|
33
|
+
Rewrite -->|Pre-verify rewritten commits via| VerLoop["verification-loop / 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 `rewrite-commits` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
41
|
+
|
|
42
|
+
```mermaid
|
|
43
|
+
graph TD
|
|
44
|
+
Start["Branch has messy commits: 'fixed stuff', 'more fixes', 'bug'"] --> Trigger["Rewrite-commits skill run for HEAD~3"]
|
|
45
|
+
Trigger --> Backup["Backup branch 'backup-feature-x' created"]
|
|
46
|
+
Trigger --> GatherDiffs["Analyze total diff across the 3 messy commits"]
|
|
47
|
+
GatherDiffs --> Generate完美["Determine changes relate to user auth session handling"]
|
|
48
|
+
Generate完美 --> Rebuild["Reset and make 1 perfect commit: 'fix(auth): correct token refresh race condition'"]
|
|
49
|
+
Rebuild --> Done([Clean, reviewable PR history ready])
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 4. Verification Check
|
|
55
|
+
|
|
56
|
+
To ensure that the `rewrite-commits` skill is operating in strict compliance with Harness OS design laws, verify the following:
|
|
57
|
+
|
|
58
|
+
- [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
|
|
59
|
+
- [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
|
|
60
|
+
- [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Workflow: Security Review
|
|
2
|
+
|
|
3
|
+
> Automated security scanning, threat modeling, and input-validation reviews to identify potential security holes and enforce robust safety guardrails.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `security-review` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([Code Refactoring / Feature Done]) --> ScanInputs["Locate all user input and API boundary points"]
|
|
14
|
+
ScanInputs --> ThreatModeling["Perform threat modeling on data flow"]
|
|
15
|
+
ThreatModeling --> CheckCommonVulnerabilities["Check for SQL Injection, XSS, CSRF, and broken access controls"]
|
|
16
|
+
CheckCommonVulnerabilities --> AuditDependencies["Scan package dependencies for known CVE vulnerabilities"]
|
|
17
|
+
AuditDependencies --> FlagSinks["Flag insecure coding patterns, hardcoded secrets, or raw exec commands"]
|
|
18
|
+
FlagSinks --> CompileSecurityReport["Compile actionable security hardening proposal"]
|
|
19
|
+
CompileSecurityReport --> End([Codebase hardened and verified secure])
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 2. Triggering and Routing Path
|
|
25
|
+
|
|
26
|
+
This diagram illustrates how the `security-review` 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.
|
|
27
|
+
|
|
28
|
+
```mermaid
|
|
29
|
+
graph LR
|
|
30
|
+
Router["harness-everything / tier-router.js"] -->|Pre-flight / Quality PR reviews| SecReview["security-review / SKILL.md"]
|
|
31
|
+
SecReview -->|Informs security tests written in| TDD["tdd / SKILL.md"]
|
|
32
|
+
SecReview -->|Integrated as mandatory PR gate in| VerLoop["verification-loop / SKILL.md"]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 3. Real-World Use Case Flowchart
|
|
38
|
+
|
|
39
|
+
Here we model concrete real-world scenarios and use cases of the `security-review` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
40
|
+
|
|
41
|
+
```mermaid
|
|
42
|
+
graph TD
|
|
43
|
+
Start["New search feature: executes system shell query using raw user input string"] --> Trigger["security-review skill runs"]
|
|
44
|
+
Trigger --> Scan["Flags potential command injection vulnerability in search.js"]
|
|
45
|
+
Scan --> Propose["Propose input sanitization and switching to child_process.execFile with argument array"]
|
|
46
|
+
Propose --> Implement["Refactor code to use safe argument arrays instead of raw string shell execution"]
|
|
47
|
+
Implement --> Done([Critical remote code execution vulnerability resolved])
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 4. Verification Check
|
|
53
|
+
|
|
54
|
+
To ensure that the `security-review` skill is operating in strict compliance with Harness OS design laws, verify the following:
|
|
55
|
+
|
|
56
|
+
- [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
|
|
57
|
+
- [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
|
|
58
|
+
- [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Workflow: Self-Evolve
|
|
2
|
+
|
|
3
|
+
> Analyzes execution logs and session memories to extract underlying root causes, defining new error boundaries and compressing them into cognitive guardrails.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `self-evolve` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([Task Completed / Error Loop Triggered]) --> ReadSessionLogs["Read active debugging logs & session history"]
|
|
14
|
+
ReadSessionLogs --> IdentifyRootCauses["Isolate and extract system failures or bottlenecks"]
|
|
15
|
+
IdentifyRootCauses --> SynthesizeGuardrails["Formulate actionable high-level cognitive guardrails"]
|
|
16
|
+
SynthesizeGuardrails --> CompressMemories["Compress repetitive events into compact markdown files in /memories/"]
|
|
17
|
+
CompressMemories --> UpdateUserMemory["Commit lessons learned to user memory space"]
|
|
18
|
+
UpdateUserMemory --> End([Agent cognitive defense expanded for future sessions])
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 2. Triggering and Routing Path
|
|
24
|
+
|
|
25
|
+
This diagram illustrates how the `self-evolve` 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
|
+
SessionEnd["Task Completed / Session Closed"] --> Evolve["self-evolve / SKILL.md"]
|
|
30
|
+
Evolve -->|Reads from| HistoryLog["VS Code Debug logs & memory directories"]
|
|
31
|
+
Evolve -->|Writes permanent updates to| UserMemory["/memories/ / user-memory files"]
|
|
32
|
+
Evolve -->|Informs future task triage in| Router["harness-everything / tier-router.js"]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 3. Real-World Use Case Flowchart
|
|
38
|
+
|
|
39
|
+
Here we model concrete real-world scenarios and use cases of the `self-evolve` skill, illustrating standard success paths, error handling, or recovery loops.
|
|
40
|
+
|
|
41
|
+
```mermaid
|
|
42
|
+
graph TD
|
|
43
|
+
Start["Session ends after solving a recurring, messy Windows path-slashes bug"] --> Trigger["self-evolve skill runs automatically"]
|
|
44
|
+
Trigger --> Analyze["Reads last 5 execution logs"]
|
|
45
|
+
Analyze --> DetectPattern["Finds 3 consecutive terminal command failures caused by path backslashes in PowerShell"]
|
|
46
|
+
DetectPattern --> Formulate["Formulate new guardrail: 'When on Windows, convert backslashes to forward slashes for cross-shell command lines'"]
|
|
47
|
+
Formulate --> Write["Write bullet point to /memories/debugging.md"]
|
|
48
|
+
Write --> Done([Memory recorded: future sessions will automatically avoid Windows path errors])
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 4. Verification Check
|
|
54
|
+
|
|
55
|
+
To ensure that the `self-evolve` 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.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Workflow: Skill Creator
|
|
2
|
+
|
|
3
|
+
> Authors, audits, and evolves SKILL.md files against a single quality bar — the Skill Contract format plus predictability/pruning/progressive-disclosure principles from external skill-writing research — and is the required gate for skills `self-evolve` generates dynamically.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `skill-creator` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([New skill request / existing SKILL.md to audit / self-evolve dynamic-generation call]) --> Intent["Capture intent: what it does, the one canonical description sentence, which Tier, does an existing skill already own this ground"]
|
|
14
|
+
Intent --> Draft["Draft: Skill Contract table first, then body sized by information hierarchy (steps vs flat reference vs guides/references)"]
|
|
15
|
+
Draft --> Test["Test 2-3 realistic prompts via create-agent-launcher: with-skill subagent vs baseline subagent"]
|
|
16
|
+
Test --> Checklist{"Quality Checklist (§3): SSOT, no duplication >5 lines, every MUST has a real gate, no no-ops, info hierarchy, leading words reused, checkable completion criteria, human-facing description"}
|
|
17
|
+
Checklist -->|Fails| Prune["Prune and rewrite the failing item"]
|
|
18
|
+
Prune --> Checklist
|
|
19
|
+
Checklist -->|Passes| Route{Static or dynamic?}
|
|
20
|
+
Route -->|Static| Register["Register: harness-everything §5 row + tier-router.js keyword line"]
|
|
21
|
+
Route -->|Dynamic, from self-evolve| DynamicContract["§4 Dynamic Skill Generation Contract: write to .claude/harness-everything/skills/generated/<name>/, metadata.type=dynamic, status=draft"]
|
|
22
|
+
Register --> End([Skill live in the repo, single source of truth for its own description])
|
|
23
|
+
DynamicContract --> End
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 2. Triggering and Routing Path
|
|
29
|
+
|
|
30
|
+
This diagram illustrates how `skill-creator` 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.
|
|
31
|
+
|
|
32
|
+
```mermaid
|
|
33
|
+
graph LR
|
|
34
|
+
Router["harness-everything / tier-router.js"] -->|Keyword: skill / skill.md / new skill / write a skill| Creator["skill-creator / SKILL.md"]
|
|
35
|
+
Creator -->|Table shape spec| SkillStyle["skill-style / SKILL.md"]
|
|
36
|
+
Creator -->|With/without test subagents| Launcher["create-agent-launcher / SKILL.md"]
|
|
37
|
+
Creator -->|Registers new static skills into| Registry["harness-everything / SKILL.md §5"]
|
|
38
|
+
Evolve["self-evolve / SKILL.md §4"] -->|MUST load before packaging a session insight| Creator
|
|
39
|
+
Creator -->|Writes dynamic skills to| Generated[".claude/harness-everything/skills/generated/"]
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 3. Real-World Use Case Flowchart
|
|
45
|
+
|
|
46
|
+
Here we model concrete real-world scenarios and use cases of the `skill-creator` skill, illustrating standard success paths, error handling, or recovery loops — one for a human-directed static skill, one for `self-evolve`'s dynamic path.
|
|
47
|
+
|
|
48
|
+
```mermaid
|
|
49
|
+
graph TD
|
|
50
|
+
Start1["Developer: 'I want a skill for deploying to AWS'"] --> Intent1["skill-creator §2 Step 1: capture intent, one canonical description sentence"]
|
|
51
|
+
Intent1 --> Draft1["Draft Skill Contract table + steps, push detail to deploy-aws/guides/"]
|
|
52
|
+
Draft1 --> Test1["Spawn with/without subagents via create-agent-launcher on 2-3 realistic prompts"]
|
|
53
|
+
Test1 --> Check1{Quality Checklist passes?}
|
|
54
|
+
Check1 -->|No| Fix1["Fix flagged item, re-test"]
|
|
55
|
+
Fix1 --> Check1
|
|
56
|
+
Check1 -->|Yes| Reg1["Add row to harness-everything §5 + one line to tier-router.js"]
|
|
57
|
+
Reg1 --> Done1([deploy-aws/SKILL.md live as a static, reviewed skill])
|
|
58
|
+
|
|
59
|
+
Start2["zoom-out recovery ends: root cause found for a recurring connection-pool exhaustion bug"] --> Trigger2["self-evolve §3 Step 3: Dynamic Skill Generation"]
|
|
60
|
+
Trigger2 --> Load2["self-evolve MUST load skill-creator §4 before writing anything"]
|
|
61
|
+
Load2 --> Gate2{Quality Checklist §3 passes?}
|
|
62
|
+
Gate2 -->|No| Reject2["Do not persist — this checklist is the only review a dynamic skill gets"]
|
|
63
|
+
Gate2 -->|Yes| Write2["Write .claude/harness-everything/skills/generated/orm-transaction-batching/SKILL.md, metadata.type=dynamic, status=draft"]
|
|
64
|
+
Write2 --> Done2([Dynamic skill available next session, lifecycle tracked separately from static skills])
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 4. Verification Check
|
|
70
|
+
|
|
71
|
+
To ensure that the `skill-creator` skill is operating in strict compliance with Harness OS design laws, verify the following:
|
|
72
|
+
|
|
73
|
+
- [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
|
|
74
|
+
- [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
|
|
75
|
+
- [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Workflow: Skill Style
|
|
2
|
+
|
|
3
|
+
> Guidelines and style rules for authoring, refactoring, and maintaining SKILL.md files to enforce clean frontmatter and logical boundaries.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes how the `skill-style` skill executes internally, detailing the sequence of operations, state transitions, and evaluation steps.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([Authoring / Editing a SKILL.md]) --> ParseFrontmatter["Parse and validate YAML Frontmatter: name, description"]
|
|
14
|
+
ParseFrontmatter --> ValidateBoundary["Check for explicit physical boundaries & state checkpoints"]
|
|
15
|
+
ValidateBoundary --> VerifyCognitiveLoop["Verify integration with Cognitive Loop laws"]
|
|
16
|
+
VerifyCognitiveLoop --> CheckFormatting["Ensure clean markdown layout and bullet-style rules"]
|
|
17
|
+
CheckFormatting --> FormatApproved{Complies with STYLE.md?}
|
|
18
|
+
FormatApproved -->|No| FixSkillFile["Refactor and clean file formatting"]
|
|
19
|
+
FormatApproved -->|Yes| SaveSkillFile["Commit clean, validated SKILL.md"]
|
|
20
|
+
FixSkillFile --> SaveSkillFile
|
|
21
|
+
SaveSkillFile --> End([Skill document aligned with professional guidelines])
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. Triggering and Routing Path
|
|
27
|
+
|
|
28
|
+
This diagram illustrates how `skill-style` is reached — as of the `skill-creator` split, it is no longer the first stop. `tier-router.js`'s `/\bskill\b|skill\.md|new skill|write a skill/` match now recommends `skill-creator` first (the full authoring/audit/testing workflow) and `skill-style` second (the terse Skill Contract table shape it builds on) — see `harness-everything/scripts/tier-router.js`.
|
|
29
|
+
|
|
30
|
+
```mermaid
|
|
31
|
+
graph LR
|
|
32
|
+
Router["harness-everything / tier-router.js"] -->|Keyword: skill / skill.md / new skill| Creator["skill-creator / SKILL.md"]
|
|
33
|
+
Creator -->|Builds on the table shape defined in| SkillStyle["skill-style / SKILL.md"]
|
|
34
|
+
SkillStyle -->|Audits format correctness of| OtherSkills["Any SKILL.md in the workspace"]
|
|
35
|
+
SkillStyle -->|Pre-PR validation gate integration| VerLoop["verification-loop / SKILL.md"]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 3. Real-World Use Case Flowchart
|
|
41
|
+
|
|
42
|
+
§1 already walks the linear audit steps for a single file. This section instead shows the case that motivated splitting `skill-creator` out of this skill in the first place: a developer who needs the *fuller* workflow, not just the table shape.
|
|
43
|
+
|
|
44
|
+
```mermaid
|
|
45
|
+
graph TD
|
|
46
|
+
Start["Developer: 'help me write a new skill for deploying to AWS'"] --> Router["tier-router.js recommends skill-creator + skill-style"]
|
|
47
|
+
Router --> Creator["skill-creator: capture intent, draft, test against real prompts (§2)"]
|
|
48
|
+
Creator --> StyleCheck["skill-style: does the draft's Skill Contract table match the required shape?"]
|
|
49
|
+
StyleCheck -->|Missing/malformed table| Fix["Fix table shape per skill-style, re-run skill-creator's Quality Checklist"]
|
|
50
|
+
StyleCheck -->|Table shape OK| Checklist["skill-creator §3 Quality Checklist: no-op / duplication / negation / progressive-disclosure checks"]
|
|
51
|
+
Fix --> Checklist
|
|
52
|
+
Checklist --> Register["Register in harness-everything §5 + tier-router.js (skill-creator §2 Step 4)"]
|
|
53
|
+
Register --> Done([deploy-aws/SKILL.md committed, consistent with the rest of the repo])
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 4. Verification Check
|
|
59
|
+
|
|
60
|
+
To ensure that the `skill-style` skill is operating in strict compliance with Harness OS design laws, verify the following:
|
|
61
|
+
|
|
62
|
+
- [ ] **Physical Boundary Verification**: The skill boundaries are respected and do not leak context.
|
|
63
|
+
- [ ] **State Checkpoint Verification**: The active state is established, validated, and recorded at the beginning and end of each execution branch.
|
|
64
|
+
- [ ] **Cognitive Alignment**: The skill conforms to the **Think > Try > Summarize > Record** cognitive loop.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Workflow: Test-Driven Development (TDD)
|
|
2
|
+
|
|
3
|
+
> Enforces the classic Red-Green-Refactor development cycle. Crucially, this is NOT a linear process. It is a loop driven by terminal exit codes.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Skill Behavior Workflow
|
|
8
|
+
|
|
9
|
+
This section visualizes the script-gated reality of TDD. The AI cannot progress to the next phase until the terminal script explicitly confirms the state.
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
graph TD
|
|
13
|
+
Start([Identify Feature / Bug]) --> DesignInterface["Design interface & contract"]
|
|
14
|
+
DesignInterface --> WriteTest["Write unit/integration tests first"]
|
|
15
|
+
|
|
16
|
+
WriteTest --> RunRed["Try: Run tests (EXPECT FAILURE)"]
|
|
17
|
+
RunRed --> VerifyRed{Gate: Exit Code 1?}
|
|
18
|
+
VerifyRed -->|Exit 0: Fake Test| FixTest["Reflect: Test is broken/fake. Fix it."]
|
|
19
|
+
FixTest --> RunRed
|
|
20
|
+
|
|
21
|
+
VerifyRed -->|Exit 1: True Red| WriteCode["Write minimal code to pass test"]
|
|
22
|
+
|
|
23
|
+
WriteCode --> RunGreen["Try: Run tests (EXPECT SUCCESS)"]
|
|
24
|
+
RunGreen --> VerifyGreen{Gate: verify-gate.js}
|
|
25
|
+
|
|
26
|
+
VerifyGreen -->|Exit 1: Still Broken| DebugCode["Reflect: Read logs, fix code"]
|
|
27
|
+
DebugCode --> RunGreen
|
|
28
|
+
VerifyGreen -->|Exit 1: 3x Failures| CircuitBreaker["Trigger rule-of-3.js: ZOOM OUT"]
|
|
29
|
+
CircuitBreaker --> DebugCode
|
|
30
|
+
|
|
31
|
+
VerifyGreen -->|Exit 0: Green| Refactor["Refactor code for readability"]
|
|
32
|
+
|
|
33
|
+
Refactor --> RunVerify["Try: Run tests again"]
|
|
34
|
+
RunVerify --> VerifyRefactor{Gate: verify-gate.js}
|
|
35
|
+
VerifyRefactor -->|Exit 1| Revert["Revert refactor / Fix"]
|
|
36
|
+
Revert --> RunVerify
|
|
37
|
+
|
|
38
|
+
VerifyRefactor -->|Exit 0| End([Feature verified & completed])
|
|
39
|
+
```
|