AgentStack
SKILL verified MIT Self-run

Harness Sync

skill-bcgen-skills-harness-sync · by BCGen

Sets up and re-syncs a project's entry-file harness block — the wiring that brings retro in — plus cross-agent interop glue, with idempotent, diff-first, marker-managed writes; retro owns the learning loop. Use when setting up AI collaboration for a new or existing project, or when re-syncing the managed block after the skills were updated. Optional — projects bootstrap without it.

No reviews yet
0 installs
3 views
0.0% view→install

Install

$ agentstack add skill-bcgen-skills-harness-sync

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Harness Sync? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Harness Sync

Set up — and keep synced — the files agents read ("instruction surface") plus the harness loop. Tables and templates live in [references/playbook.md](references/playbook.md) — read it first. Never touch execution settings (settings.json, hooks, MCP, CI).

Step 1 — Detect

Check for agent artifacts (.claude/, CLAUDE.md, .cursor/, AGENTS.md) and coexisting frameworks (.specify/, .agent-os/, .kiro/steering/) per the playbook. Zero or multiple agents → ask one question with a recommended answer (AGENTS.md is the portable default). Never guess.

Step 2 — Inventory

List what already exists: entry file, harness block, interop glue. The plan covers the missing pieces AND the harness block if it drifted from the current template — re-running on an up-to-date project must be a no-op. The .ai/ loop directories are retro's to create; harness-sync neither creates nor reconciles them.

Step 3 — Discover (new entry file only)

If an entry file must be created, gather verified facts from the repo: build/test/lint commands read from manifests (package.json, Makefile, CI config), plus layout facts worth stating. Never write a command you did not verify in a file. Where the agent has a native bootstrap (e.g. /init), prefer it for discovery, then trim to the content policy: no generic rules, no personas, no best-practice boilerplate — verified facts and the harness block only.

Step 4 — Present the plan, then get approval

Print the full plan in the conversation — the complete content of every file to be created and a diff for every file to be modified — then ask for approval with the platform's option-prompt tool when it has one (Claude Code: AskUserQuestion) — choices like approve-as-planned / adjust-first; plain question only when no such tool exists. Never ask the user to approve content they have not seen. The plan covers:

  • Entry file (create, append the managed harness block to an existing

one, or update a drifted block in place — never edit outside your harness:begin/end markers).

  • Interop glue when applicable (e.g. CLAUDE.md starting with @AGENTS.md).
  • No rules directory — git cannot track an empty directory; rule-writing

creates it with the first rule.

  • No .ai/ loop directories — retro creates and maintains

.ai/learnings/ and .ai/backlog/ on its first write; harness-sync only names them in the harness block.

  • Coexisting framework detected → one reference line instead of duplicate

content, per the playbook.

Step 5 — Write and verify

Apply the approved plan, then self-check:

  1. Re-run the inventory — everything present, nothing else changed.
  2. User-authored content outside markers is byte-identical.
  3. A hypothetical second run would change nothing (report this).

Step 6 — Report and hand off

Short summary: what was created/modified, the detected target, and the budget status (entry file lines / 60). Then point at the next move, in order:

  1. Commit the new files — the harness is team-shared through git.
  2. Existing project → run the codify skill next, so the agent's first

real task already follows the project's conventions.

  1. Then just work; retro picks up each task's lessons when it ends,

creating .ai/learnings/ and .ai/backlog/ on its first write.

Mistakes to refuse

| Request | Response | | --- | --- | | "Also set up permissions/hooks/MCP" | Out of scope — instruction surface only | | "Generate a full set of best-practice rules" | Near-empty baseline by design; rules come from evidence via rule-writing | | "Rewrite my existing CLAUDE.md" | Only the managed block is yours to write |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

  • Author: BCGen
  • Source: BCGen/skills
  • License: MIT
  • Homepage: https://skills.sh/BCGen/skills

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.