/ldaume-engineering:scaffold-harnessfrom ldaume-engineering
Audits and scaffolds agent-ready harnesses for repositories, configuring instructions, rules, skills, and quality gates for any coding agent and host.
Ships in ldaume-engineering. 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.
Read when SKILL.md points to them; scripts run unread.
Build the smallest harness that makes delegated work reliable. Ideal means fit for the repository and its current maturity, not the largest artifact set.
When any coding agent on any host must work in the repository, for people
without the author's tools and without joining a coordinator, run this instead
of steps 1-5, with or without a harness: run
python3 <this Skill's directory>/scripts/verify-agent-ready.py <repository>,
fix each finding, then work through Agent-Ready Audit in
REFERENCE.md, which also moves a glossary still named
CONTEXT.md to GLOSSARY.md. Done when the script exits 0 and a fresh session
given only the clone finds the rules, Skills, and glossary.
Inspect before proposing files:
AGENTS.md, CLAUDE.md, GEMINI.md,
.cursor/rules/, or local equivalentsREADME.md, GLOSSARY.md (older:
CONTEXT.md), ADRs, specs, architecture docs, code, and testsResolve discoverable facts from repository evidence, because a harness built on assumed commands or semantics fails on the first real task. Preserve user-written content and local naming.
Complete grounding when existing sources, commands, boundaries, and gaps are identified without relying on invented product semantics.
Read REFERENCE.md. Read MATURITY.md when assessing or switching a level or changing human oversight. Evaluate each maturity dimension independently, because one strong dimension does not compensate for a weak one:
Default to a reliable repository-level harness. Add grounded tools only when evidence supports the wider delegated unit; each addition is context and maintenance every later session pays for.
When one repository is not enough. Work that regularly spans several repositories - a contract between a service and its consumers, shared rules, several agent sessions in one workspace - needs a workspace root, a coordinator, and one context map. Build that per Multi-Repository Workspace below, after or alongside each member's own harness. Do not add it for one repository; it is sync work every session pays for.
Choose the operating level with the owner: recommend the highest level whose
prerequisites the repository already has, or less when the goal needs less,
ask once, and record the choice per
Choosing and Switching the Operating Level in MATURITY.md.
Rerunning this Skill with a different target level switches up or down through
the same procedure; it is a no-op when the recorded level already matches.
A granted level also needs the matching declaration in the host's permission
context (template HARNESS.md bullet Autonomy is declared where it is enforced).
Ask once whether review surfaces stay free of agent attribution. The default
and the recommendation are yes: keep template HARNESS.md item
Review-surface attribution with its enforcement. A no removes that item and
its enforcement as a unit; record the choice in the target's HARNESS.md
either way, so a later run does not ask again or add it back.
Complete assessment when the current level, target level, and evidence for each proposed addition are explicit.
Establish shared understanding for significant work. Use grill-harness-with-docs for unresolved intent, semantics, ownership, architecture, governance, consequential trade-offs, risk, or oversight transitions in any topic. Route resolved material decisions and changes through fresh-context agent critique.
Research facts first. Put genuine decisions to the human one at a time with options, trade-offs, reversibility, evidence, and a recommendation. Wait before implementing the dependent branch.
Complete decision work when every branch is resolved or explicitly blocked.
Match the requested mode: audit reports the current state, propose presents the smallest viable options, and apply makes only authorized reversible changes.
Map existing files to the ownership model in REFERENCE.md. Prefer updating
an existing source over creating a parallel preferred name.
For every proposed artifact state:
Use templates only for missing artifacts. Create optional artifacts lazily.
Merge .serena/ into the target .gitignore; never commit Serena's local
project state and never overwrite existing ignore rules.
Read CONTEXT-ARCHITECTURE.md when deciding which artifact owns a kind of context, when instruction growth or token pressure affects the design, or when large tool output floods sessions. When auditing token bloat, follow Startup Context Budget there.
Read CAPABILITY-GATES.md on every significant harness stewardship pass: decide whether Graphify-class discovery, Headroom/Context Mode economy tools, or memory systems should enter, stay parked, or be removed. Do not add them without an observed failure mode.
Agents in CI, on a schedule, or as a durable service are L5 work and outside this Skill's scope. Use build-autonomous-agents when one bounded product agent or finite workflow is ready for implementation.
Use run-product-engineering when the work spans product signals, delivery, production feedback, incidents, or outcomes. Use product-craft when the target needs value-defined issues or an honest Now/Next/Later/Never investment view. Use integrate-product-compliance only for confirmed security, contractual, certification, TISAX, PCI, or other control scope. Use manage-infrastructure-as-code when agents create, change, provision, or reconcile infrastructure desired state.
REFERENCE.md Language and Punctuation.README.md accurate when purpose, operating level, or working
rules change, because a new reader learns the system from it, not from the
agent control plane.write-a-skill in every host scope where agents may create or change
Skills. Treat a platform-bundled creator as a thin adapter for native
metadata, scaffolding, or validation; it does not own portable Skill
behavior. Do not infer cross-host discovery from a successful session on one
host, because hosts load Skills from different roots.ponytail only as an optional, piloted implementation-style
guardrail when repeated overengineering justifies it; do not weaken
validation, security, accessibility, data integrity, recovery, or necessary
error handling.AGENTS.md is enough. Where a host selects a Skill as a tool from
its name and description - Claude Code does - a rule competes with
everything else in the instruction chain and routinely loses: an observed
session there loaded no Skill across roughly forty tool calls while writing a
Skill and making five commits, with the routing rule in context the whole
time. On such a host, put the routing in a Hook at the moment of the
decision, keep it silent unless something is off, and commit it to the
repository so contributors get it with the clone.AGENTS.md as the portable owner
and install the thin baseline bridges for Claude Code (CLAUDE.md import),
Gemini CLI (GEMINI.md import), and Google Antigravity
(.agents/rules/harness.md). Codex, Cursor, and Pi consume AGENTS.md
directly. Add other bridges only for hosts the repository actually uses, and
reference canonical owners instead of copying policy, so one rule never
drifts into several versions.Use when the owner wants several repositories to work as one system. The
shape: a workspace directory holds the repositories side by side; its root
AGENTS.md names the coordinator; the coordinator is an ordinary repository
whose Markdown files every session synchronizes through; each member carries a
thin pointer to it.
workspace/
AGENTS.md root instructions every session reads
coordinator/ AGENTS.md, HARNESS.md, CONTEXT-MAP.md, SYNC.md, STATUS.md
service-a/ its own harness + the member snippet in AGENTS.md
web-app/ its own harness + the member snippet in AGENTS.md
AGENTS.md, checks, and any existing coordinator or map.
Ask the owner which repositories belong and which one coordinates; an
existing repository that already holds shared rules is the better
coordinator than a new one.AGENTS.md. Merge into existing files; never replace a member's
local truth with a template.HARNESS.md, SYNC.md, and CONTEXT-MAP.md; every map path
exists; every remote is a full URL; every member carries the same snippet.
Commit each repository separately.Keep Repository and Team Topology and the Leases item of the template
HARNESS.md in the coordinator's contract. Keep the coordinator to
relationships, shared rules, and status. When a manual sync check repeats -
snippet drift, unmapped repositories, stale leases - turn it into the
coordinator's Fast Check; this Skill does not ship one, because each workspace
has its own hosts and layout.
write-a-skill is the resolved portable owner and any
native creator remains an adapter.
The public catalog currently install-tests Codex, Cursor, Claude Code, and
Gemini CLI. Treat Pi, CI, and later runtimes as candidate hosts until the
target has a native adapter and a representative bootstrap check.Level: line matches the chosen level and its pending gates,
and state the remaining gaps and next evidence trigger.The scaffold is complete only when:
AGENTS.md,write-a-skill wherever agents may maintain Skills,| Artifact | Template |
|---|---|
| Root instructions | templates/AGENTS.md |
| Claude Code bridge | templates/CLAUDE.md |
| Review-surface attribution check | scripts/verify-agent-attribution.py, tested by tests/test_verify_agent_attribution.py |
| Agent-ready check | scripts/verify-agent-ready.py, tested by tests/test_verify_agent_ready.py |
| Gemini CLI bridge | templates/GEMINI.md |
| Google Antigravity bridge | templates/.agents/rules/harness.md |
| Harness contract | templates/HARNESS.md |
| Domain language | templates/GLOSSARY.md |
| Durable learnings | templates/LEARNINGS.md |
| Tool entrypoints | templates/TOOLS.md |
| Local tool state ignore | templates/.gitignore |
| Workspace root instructions | templates/workspace/AGENTS.md |
| Coordinator context map | templates/workspace/coordinator/CONTEXT-MAP.md |
| Coordinator sync rules | templates/workspace/coordinator/SYNC.md |
| Coordinator status and leases | templates/workspace/coordinator/STATUS.md |
| Member snippet | templates/workspace/coordinator/MEMBER-SNIPPET.md |
| Workspace template checks | tests/test_workspace_templates.py |
CAPABILITY-GATES.md (opens in a new tab)CONTEXT-ARCHITECTURE.md (opens in a new tab)MATURITY.md (opens in a new tab)REFERENCE.md (opens in a new tab)scripts/verify-agent-attribution.py (opens in a new tab)scripts/verify-agent-ready.py (opens in a new tab)templates/AGENTS.md (opens in a new tab)templates/CLAUDE.md (opens in a new tab)templates/GEMINI.md (opens in a new tab)templates/GLOSSARY.md (opens in a new tab)templates/HARNESS.md (opens in a new tab)templates/LEARNINGS.md (opens in a new tab)templates/TOOLS.md (opens in a new tab)templates/workspace/AGENTS.md (opens in a new tab)templates/workspace/coordinator/CONTEXT-MAP.md (opens in a new tab)templates/workspace/coordinator/MEMBER-SNIPPET.md (opens in a new tab)templates/workspace/coordinator/STATUS.md (opens in a new tab)templates/workspace/coordinator/SYNC.md (opens in a new tab)tests/test_verify_agent_attribution.py (opens in a new tab)tests/test_verify_agent_ready.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-harness, repository-setup, agent-ready, workspace-audit
npx claudepluginhub ldaume/agentic-engineering-harness --plugin ldaume-engineering16 skills in this plugin
/agent-syncProactively evolves a repository's harness artifacts from durable evidence across sessions and tools. Use when starting or completing a session, when repeated friction reveals missing context or checks, when a lesson should outlive the current task, or when instructions, Skills, Rules, Hooks, MCP, or learnings may be stale./build-autonomous-agentsDesigns and implements a bounded agent for a product feature, or one finite agent workflow, with a runtime-neutral contract. Use when building an agent, finite workflow, subagent, tool, or channel integration into an application, adding Flue to an application, migrating an older Flue integration, or designing review loops and when an agent should ask a person./