/ldaume-engineering:agent-syncfrom ldaume-engineering
Proactively evolves repository harness artifacts (HARNESS.md, Skills, Rules, Hooks, MCP) from durable evidence across sessions. Use at session start/end, when friction reveals stale context, or when learnings should outlive the current task.
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.
None: SKILL.md is the whole skill.
Learning lives in Git-tracked owning artifacts, not chat history, because the next session starts from the repository and never sees this conversation.
First, take the current harness contract and pinned Skills. Do not skip this because the task looks small: a stale contract is wrong on exactly the rule that changed last.
git fetch origin and read HARNESS.md from
the origin default tip (git show origin/<default>:HARNESS.md) or the
remote canonical file. Do not treat ./HARNESS.md in a task worktree as
current. Ff-only a clean primary when behind origin; if blocked, leave it.SKILL.md from that current copy.write-a-skill owner before Skill creation or revisionDo not treat "read only what the task needs" as permission to skip harness currency or git-loop close-out. Do not re-derive conventions already owned by an artifact.
Harness stewardship is part of every significant task. Notice repeated friction, missing or stale context, weak feedback, unclear ownership, unnecessary ceremony, and recurring workflows.
Keep canonical artifacts agent-first and host-neutral. Human README and reference material are legible projections, while thin host adapters reference the owning instructions, context, and contracts. Communicate in the human's preferred language; keep persistent repository artifacts in US English unless a named artifact is explicitly requested otherwise.
Follow the repository's owned voice or style guide. Without one, keep prose direct and concrete: lead with the problem or working model, name trade-offs and system effects, and remove generic hype, defensive setup, and text that changes no decision or action. Reserve first person for artifacts that explicitly speak for the repository owner; keep agent instructions neutral and imperative.
Diagnose before changing. Update the smallest owning artifact when evidence justifies a reversible in-scope improvement. Leave the harness unchanged when no durable signal exists, because every added rule costs every later session.
Route a repeated missing-stack failure through update-harness, and use
write-a-skill for the smallest project-local profile only when repeated work
supplies real examples and checks. One-off stack work stays direct work.
Do not return an authorized routine decision to the human as a confirmation question. Close it through the repository policy and available evidence, or escalate a named conflict, authority gap, or material risk.
Before claiming done, ask and answer in the same loop:
HARNESS.md, AGENTS.md, checks, Hook, Skill,
LEARNINGS.md)? Anchor a lesson at the strongest control that can
hold it: type or compiler, test, lint/schema/policy, sandbox or permission,
deterministic hook, Skill, rule or ADR. Memory is never the authority.https://github.com/ldaume/agentic-engineering-harness
README.md still teach a new reader the current
operating level and what would justify the next one?| Signal | Owning mechanism |
|---|---|
| New or changed commands, scope, permissions | Agent instructions |
| Domain term or invariant | Domain context |
| Harness oversight or evolution rule | Harness contract |
| Git working-tree start/finish hygiene | Harness contract (Git Working Tree Hygiene); ADR when accepted |
| Dependency-bot PR merge or defer | Harness contract (Dependency bot PRs) + PR comment |
| Accepted consequential trade-off | ADR |
| Repeated probabilistic workflow | Skill |
| Portable Skill authoring behavior | Managed write-a-skill; a native host creator stays an adapter |
| Scoped behavioral guidance | Rule or agent instruction |
| Deterministic event or enforcement | Hook, CI, test, platform control |
| Durable evidence-backed observation | LEARNINGS.md |
| Human understanding of purpose or where to work | Human README.md |
| Rule or lesson for every member of a multi-repository workspace | Coordinator HARNESS.md or LEARNINGS.md per its SYNC.md Write-back; refresh every member when the member snippet changes |
| Member relationship, contract, owner, or membership | Coordinator CONTEXT-MAP.md |
Route a lesson once, to the owner of the behavior, and reference that owner from consumers instead of copying it. Prefer a hard adaptation of the owning artifact when the lesson is a rule. Use a learning entry when evidence should survive sessions but is not yet stable enough to hard-code.
The sync is complete when durable evidence is routed, relevant checks pass, uncertainty is explicit, and no further harness change is justified by the current work.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/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./coding-disciplineEnforces clarity, surgical diffs, simplicity, and goal-driven TDD for any codebase. Use when implementing features, fixing bugs, refactoring, or making any code change./completion-gatePre-finish review gate for code changes - correctness, patterns, security, tests, verification, and checking the deployment a change targets before claiming work complete. Use when finishing a task, creating commits, opening PRs, gating a merge on required checks, or preparing to claim work complete./deliver-dependency-upgradesAssess and deliver dependency version changes from a bot signal through source-backed impact analysis, adaptation, protected integration, rollout, observation, rollback, and linked feature-opportunity capture. Use when a dependency bump must pass through its bounded production lifecycle. Do not use for updater configuration, managed Skill pins, isolated CI repair, or release-note summaries./documentation-and-adrsWrites and updates durable project documentation, decision records, runbooks, and architecture notes for a clear reader or operational purpose. Use when making architecture decisions, changing public APIs, adding operational procedures, documenting trade-offs, or deciding whether a change needs an ADR. The prose of a PR, commit, or Confluence page belongs to writing-engineering. Diagrams belong to design-slides./grill-harness-with-docsGrounds agent work in authoritative evidence, establishes shared understanding, critiques resolved material decisions and changes with a fresh agent, and resolves genuinely open decisions with a human. Use for resolved material work needing independent critique or for any product, domain, engineering, architecture, operations, security, compliance, or harness topic with unresolved intent, semantics, authority, consequential trade-offs, or material risk.npx claudepluginhub ldaume/agentic-engineering-harness --plugin ldaume-engineering