/claude-harness:integration-checkfrom claude-harness
Runs the smoke test of a frontend against its real backend, by hand or through the repo's Integration command, and writes docs/audits/lot-0-integration.md, which every frontend PR requires. Use before the first frontend PR, when the API contract changed, or when the user mentions integration, the real backend, end-to-end or the contract.
Ships in claude-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A green frontend unit suite proves the components talk correctly to mocks,
not that the application works against the real API: field names, status codes
and payload shapes only meet the backend here. This skill is a smoke test with a
written deliverable, run by hand or, when the repo declares an Integration command, by the autopilot from the command's log.
docs/audits/lot-0-integration.md must exist before any frontend PR.
lot-deliverables.yml fails the build of a repo whose Stack is frontend
without it.
Re-run this skill, and update the deliverable, whenever:
| Parameter | Used for |
|---|---|
Frontend backend pair | Which repository to start as the backend |
Integration command | The command the autopilot runs; its log feeds the Autopilot section |
Health path | The backend readiness probe to poll |
Dist forbidden pattern | The string that must not survive into a production build |
Task Progress:
- [ ] Step 1 — Start the real backend
- [ ] Step 2 — Point the front at it
- [ ] Step 3 — Run the scenario
- [ ] Step 4 — Compare the contracts
- [ ] Step 5 — Write the deliverable
From the Frontend backend pair repository, on its current develop:
docker compose up -d # database and any dependency
<its Validation command> # confirm the backend itself is green first
<its run command> # the app, as documented in its README
curl -f http://localhost:<port><Health path>
Record the backend's commit SHA: the deliverable is only meaningful against a known backend version.
Use the project's documented development configuration. Do not invent a new one and do not commit a temporary URL.
Check while you are here that the production configuration does not carry the
development URL: frontend-dist.yml fails the CI on a production bundle
containing Dist forbidden pattern.
Minimum scenario, adapted to the project's domain:
Keep the browser console and the backend logs open. A silently swallowed 500 is the exact class of defect this skill exists to catch.
For every call in the scenario, note the real request and response against what the front expects:
| Endpoint | Method | Front expects | Backend returns | Verdict |
|---|
Look specifically for:
totalPrice vs totalPriceHt);Write docs/audits/lot-0-integration.md in the frontend repository:
# Integration check — <frontend> against <backend>
**Date:** YYYY-MM-DD
**Frontend SHA:** <branch> @ <short SHA>
**Backend SHA:** <repo> @ <short SHA>, started with <command>
**Verdict:** Pass / Pass with findings / Fail
## Scenario
| # | Step | Result |
|---|------|--------|
| 1 | Authenticate | … |
| 2 | List | … |
| 3 | Create | … |
| 4 | Update | … |
| 5 | Delete | … |
| 6 | Error path | … |
## Contract comparison
| Endpoint | Method | Front expects | Backend returns | Verdict |
|---|---|---|---|---|
## Findings
| Severity | Side | Finding | Action |
|---|---|---|---|
## Production build check
- `Dist forbidden pattern` absent from the production bundle: yes / no
## Next run required when
- …
A Fail verdict blocks the frontend PR just as a Critical audit finding does. Findings belonging to the backend become a lot in the backend's own lots file — propose it, and wait for approval before editing that file.
lot-deliverables.yml and every frontend PR require this report in the history
(GATE-8).
Run the frontend's <Validation command> — green, or the commit does not
happen.
If docs/audits/lot-0-integration.md is new, or its role changed, add it to
the ## Project documents census of CLAUDE.md, and copy CLAUDE.md to
AGENTS.md byte for byte (DOC-1).
Commit it alone:
docs: add the integration check report
Do not push: the push belongs to lot-ship.
Applies only when printenv HARNESS_AUTOPILOT prints 1: the autopilot script
sets it, and a model's account of the session is never the signal. The autopilot
has already run the repo's Integration command and passes the path of its log
in the prompt. No owner is present, so Steps 1 to 3 are never replayed:
Fail is forbidden when the command exited 0, and Pass is
forbidden on a partially exercised scenario. A step the log does not cover is
not exercised by the command, and the verdict falls to Pass with findings
at best.Validation command green, the report committed alone
with docs: add the integration check report. A contract mismatch or a failed
scenario is a finding in the report, never a reason to re-run the command.ship stops a lot
whose report is not in its diff.harness-sync reports it.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub selimlbouraya/claude-harness --plugin claude-harness12 skills in this plugin
/bootstrap-projectGenerates a harnessed repository from templates/project: documents, gate parameters, plugin declaration, CI caller and dependabot, then verifies the result against harness-invariants. Use when starting a new project, or when bringing an existing repository under the harness for the first time./dep-updateChecks and updates a project's dependencies, applying patch and minor bumps and proposing majors, then validating the build before commit. Use when the user asks for a dependency update, wants to know what is outdated, or before writing a lot PR./harness-syncDetects and fixes drift between a repository's harness documentation and the reality of its code, settings and lots. Use after editing CLAUDE.md or a skill, when the stack, conventions or lot scope evolved, after a lot, or when the user asks to refresh, check or improve the harness./i-have-adhdShape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible. Invoke with /i-have-adhd; stays on until "stop adhd mode"./lot-auditAudits a lot branch for security, performance and architecture before the PR is opened, fixes its findings, and writes the consolidated report docs/audits/lot-N.md. Use after lot-review, at the end of a lot, or when the user asks for an audit, a security review or an architecture review of lot work./lot-reviewReviews the code of the current lot, applies the retained fixes and asks the owner about the findings that need a decision, then writes docs/audits/lot-N-review.md. Runs only under the claude profile, in a new session. Use after lot-test and before lot-audit, or when the user asks for a code review of the lot.