intense-visions/harness-engineering/harness-integration
Claude Code and agent skill by intense-visions/harness-engineering
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install intense-visions/harness-engineering/harness-integrationSKILL.md
The same SKILL.md was published earlier as intense-visions/harness-engineering/harness-integration.
Harness Integration
Verify system wiring, materialize knowledge artifacts, and update project metadata. Integration is a gate, not a discovery phase -- it confirms that planned integration tasks completed. <!-- not-a-pause: skill summary line, not a step -->
When to Use
- After execution completes and verification passes (between VERIFY and REVIEW in the workflow)
- When the autopilot state machine reaches the INTEGRATE state
- When validating that a feature is properly wired into the system (barrel exports, skill discovery, route mounts)
- When materializing architectural decisions as durable ADRs
- When invoked standalone to check integration completeness of a feature branch
- NOT as a replacement for verification (verification checks code correctness; integration checks system connectivity)
- NOT for discovering integration work (integration work is planned upfront in brainstorming and planning)
- NOT for implementing fixes (integration identifies gaps; the executor fixes them)
Process
Pause points
Every point below where this skill stops for the human carries a marker line, _Pause point (<class>): resolve per the Pause Protocol._ followed by a <!-- pause: <class> --> comment. Resolve each one with the Pause Protocol: agents/skills/templates/pause-protocol.md (also shipped in the harness CLI package at dist/agents/skills/templates/pause-protocol.md).
- Re-read autonomy at every pause point:
gather_context({ path, session, include: ["autonomy"] }). irreversibleandgatepauses stop at every autonomy level.- A
ceremonyorjudgmentpause auto-resolves only when autonomy istrusted, the pause states a recommendation, ajudgmentfork passed the self-audit, andrecord_auto_decisionreturnedrecorded: true. In every other case, pause exactly as written below. - If you cannot read the protocol or resolve autonomy, pause.
Iron Law
No integration claim may be made without checking every planned integration task against the codebase.
Integration checking is mechanical: did the planned task produce the expected artifact? "It should be there" is not evidence. Check the file, check the import, check the registration. Report what you observed.
The words "should", "probably", "seems to", and "I believe" are forbidden in integration reports. Replace with "verified: [evidence]" or "not verified: [what is missing]."
Argument Resolution
When invoked by autopilot (or with explicit arguments), resolve paths before starting:
- Session slug: If
session-slugargument provided, set{sessionDir} = .harness/sessions/<session-slug>/. Pass togather_context({ session: "<session-slug>" }). All report writes go to{sessionDir}/. - Apply autonomy flags first (D17). Before any subagent dispatch and before the first marked point below: if this skill was invoked with
--supervised, callmanage_state({ action: "set-autonomy", path, session, level: "supervised" }); if with--audit, call it withaudit: true. Flags only lower autonomy: on--trustedor--no-audit, change nothing and print the raise hint from the Pause Protocol. Then read autonomy withgather_context({ path, session, include: ["autonomy"] }). With no session slug nothing can auto-resolve, so there is nothing to lower. - Plan path: Discover from
{sessionDir}/handoff.json(read upstream execution/verification output). The plan contains integration tasks taggedcategory: "integration"and theintegrationTierfield. - Rigor level: If
fast/thoroughargument provided, use it. Otherwise default tostandard.
When no arguments are provided (standalone invocation), discover plan from docs/changes/<topic>/plans/ (preferred) or docs/plans/ (legacy fallback) or prompt. Global .harness/ paths used as fallback.
Tier Resolution
Before running sub-phases, resolve the effective integration tier:
- Read plan-time tier. Extract
integrationTierfrom the plan header (small, medium, or large). If absent, default tosmall.
- Derive execution-time tier. Read the execution start commit from the session handoff (
startCommitfield in{sessionDir}/handoff.json). If unavailable, use the autopilot'sstartingCommitfrom{sessionDir}/autopilot-state.json. DiffstartCommit..HEADto analyze the execution phase:
`` newPackages > 0 -> large newPublicExports > 5 -> large (minimum) filesChanged > 15 AND newExports -> medium (minimum) else -> keep plan estimate ``
To count these signals:
newPackages: count newpackage.jsonfiles in the diffnewPublicExports: count newexportstatements in barrel/index filesfilesChanged: count total files changed in the diffnewExports: boolean, true if any newexportstatements exist
- Apply max(planned, derived). The effective tier is the higher of the two.
- Notify on escalation. If derived tier exceeds planned tier, notify the human:
`` Tier escalated from small to medium: 8 new exports detected. ``
_Pause point (ceremony): resolve per the Pause Protocol._ <!-- pause: ceremony --> Inform the human and get acknowledgment in plain text in your reply (do NOT route this through emit_interaction or AskUserQuestion — they record the prompt but do not display it to the human, so they won't see it).
Rigor Level Interaction
| Rigor | INTEGRATE behavior | |
|---|---|---|
fast | WIRE only (default checks), no ADR drafting | |
standard | Full tier-appropriate checks (WIRE for all; MATERIALIZE + UPDATE for medium and large) | |
thorough | Full checks + human reviews every ADR draft + force knowledge graph verification |
Context Loading
Before running sub-phases, load session context:
Load the plan, identify integration tasks (tagged category: "integration"), and group them by sub-phase:
- WIRE tasks: Entry point registration, barrel exports, skill discovery, route mounts
- MATERIALIZE tasks: ADR writing, knowledge graph enrichment, documentation updates
- UPDATE tasks: Roadmap sync, changelog, spec cross-references
Sub-Phase 1: WIRE (all tiers)
Report progress: **[WIRE]** Checking system wiring
WIRE always runs, regardless of tier. It has two parts: default checks (always) and task-specific checks (when integration tasks exist).
Default Checks (always run)
These run even with zero explicit integration tasks (D8: barrel exports and validation are cheap and catch real problems).
- Barrel export check. Run
pnpm run generate-barrel-exports --check. If the--checkflag is not supported, fall back to:
- Run
pnpm run generate-barrel-exports - Run
git diff --name-only - If barrel files changed, the previous execution missed this step. Record as FAIL with the list of changed barrel files.
- If no changes, barrel exports are current. Record as PASS.
- Harness validate. Run
pnpm harness validate. Must pass. Record result.
Task-Specific Checks (when integration tasks exist)
For each integration task tagged category: "integration" that relates to wiring:
- Entry point reachability. Trace from known entry points to new code:
- CLI: search for the new command/function in the
createProgram()registration chain - MCP: search for the new tool in
getToolDefinitions()or tool registration files - Skill: verify
skill.yaml+SKILL.mdexist at the expected path and skill appears inharness skill listoutput or discovery glob results - If the task claims a new entry point, verify it is reachable from at least one system entry point. An unreachable entry point is dead code.
- Skill discovery verification. If a new skill was created:
- Verify
agents/skills/claude-code/<skill-name>/skill.yamlexists and has valid YAML - Verify
agents/skills/claude-code/<skill-name>/SKILL.mdexists and is non-empty - Verify the skill appears in
harness skill listoutput (or would appear based on glob pattern)
- Route mount verification. If a new API route was added:
- Verify the route handler file exists
- Verify the route is imported and mounted in the router/app configuration
- Verify a request to the route path would be handled (trace the mount chain)
- Produce wiring report. Write
{sessionDir}/integration-wiring.json:
``json { "subPhase": "wire", "tier": "<effective-tier>", "timestamp": "<ISO-8601>", "defaultChecks": { "barrelExports": { "status": "pass|fail", "detail": "<description>" }, "harnessValidate": { "status": "pass|fail", "detail": "<output summary>" } }, "taskChecks": [ { "taskRef": "Task N: <name>", "check": "<what was verified>", "status": "pass|fail", "evidence": "<file:line or command output>" } ], "verdict": "pass|fail" } ``
Sub-Phase 2: MATERIALIZE (medium + large tiers)
Report progress: **[MATERIALIZE]** Checking knowledge materialization
Skip this sub-phase for small tier or fast rigor. For medium and large tiers:
Decision Harvesting
- Read handoff decisions. Load
{sessionDir}/handoff.jsonfrom all phases in this session. Collect all entries from thedecisionsarray.
- Classify decisions. For each decision:
- Architectural (large tier): Decisions that affect system structure, introduce new patterns, or change integration boundaries. These warrant ADRs.
- Minor (medium + large tier): Decisions about implementation approach, naming, or local design. These enrich the knowledge graph directly without an ADR.
ADR Auto-Drafting (large tier only)
- Auto-draft ADRs from architectural decisions. For each architectural decision:
a. Assign ADR number. Scan docs/knowledge/decisions/ for existing ADR files matching NNNN-*.md. Take the highest number and increment by 1. If the directory does not exist, create it and start at 0001.
b. Generate slug. Convert the decision title to a URL-safe slug (lowercase, hyphens, no special characters).
c. Write ADR to docs/knowledge/decisions/NNNN-<slug>.md:
```markdown
number: NNNN title: <decision title> date: <ISO date> status: accepted tier: large source: <spec path or session slug> supersedes: <prior ADR number, if any>
## Context
<What situation prompted this decision? What constraints existed?>
## Decision
<What was decided and why?>
## Consequences
<What follows from this decision -- positive, negative, and neutral?> ```
_Pause point (ceremony): resolve per the Pause Protocol._ <!-- pause: ceremony --> d. Present for review. In thorough rigor, present each ADR draft in plain text in your reply and wait for human approval — do NOT route it through emit_interaction or AskUserQuestion, which record the prompt but do not display it to the human (the client collapses the call to "Called harness" and the text only returns to the model). In standard rigor, auto-approve but log the draft for review.
Knowledge Graph Enrichment (medium + large tiers)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/skills/claude-code/harness-integration/SKILL.md
Popularity
- Repository stars
- 14
- Repository forks
- 7
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/intense-visions/harness-engineering/harness-integration)