/ldaume-engineering:completion-gatefrom ldaume-engineering
Pre-finish review gate that checks correctness, patterns, security, tests, and deployment target before claiming work complete. Use when finishing tasks, creating commits, opening PRs, or gating merges.
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.
A diff that compiles is not done. Treat staged, unstaged, and committed changes as one system change. Loop until technically sound.
Before running this gate:
AGENTS.md, CLAUDE.md,
.cursor/rules/, contributing docs, CI config, package scripts, Makefile, or
equivalents.pnpm verify, npm test, or make test when the project documents another
path.LEARNINGS.md or agent-sync is not part of this repo, use the
repo's existing learning log or explicitly say no durable sync target exists.references/vocabulary.md lists the field's terms for authors and check
scripts; a review does not load it.
AGENTS.md, GLOSSARY.md, relevant ADRs)any escapes)Read verify commands from AGENTS.md or the repo's package scripts (package.json, Makefile, etc.). Typical examples:
# adapt to this repo - do not guess if AGENTS.md lists commands
<lint>
<typecheck>
<unit tests for changed areas>
<build>
<e2e if UI or critical flows changed>
If verification fails: fix and re-run this gate.
A check that said nothing did not necessarily pass. A command whose output you discarded reports success by being silent - and reports exactly the same thing when it never started, because a dependency was missing, the working directory was wrong, or the path had a typo. Silence is not a result. Read the output, or assert on something the run must have changed, and never let a neighbouring command's green stand in for the one you did not watch. If you cannot say what the check printed, you did not run it.
A check nobody has watched fail is not evidence. A check answers about a
subject, by a route, at a time, and when any of the three is wrong it still
returns something that reads exactly like a pass: the suite that reused whatever
server already answered on its port and tested a stale build; the merge gate
handed a filesystem path where it wanted OWNER/NAME, which read every failed
API call as "no job has reported yet" and waited out its timeout in silence; the
grep for passed|failed that matched the word "failed" inside the failure line
and pushed on red. So before a new gate, test or probe is trusted, break its
subject on purpose once, watch it go red, put it back, and say in the change
that you did.
A gate that is intermittent does not gate, it randomizes. A browser flow that raced its own navigation failed the release run of the default branch on a commit that had passed on its own branch minutes earlier, and a sibling test doing the same thing passed in the same run. Whichever side of that race won decided whether a deploy happened, and neither outcome was about the change under review. Fix the race where it is. Do not restore a red gate to green by running it again.
Once merged, check continuous integration on the branch you merged into. A pull request runs against its own head; the target branch runs against the merge, so pull requests that were each green can merge in sequence and leave it red. A healthy deployment answers neither question - a failing test does not stop a deploy.
Merging is not deploying, and deploying is not working. Where the change reaches a deployed environment, it is done when that environment has been checked - by you, in the same session, not by whoever notices later:
The build passing is not this check. A bundle that compiles can still fail on first execution, and that failure only appears when the deployed code runs.
Scope, so this does not become ceremony: a change that touches nothing deployed gets no deployment check. Say which it was.
If the check fails: revert or roll forward immediately, then investigate - the value here is the short broken window, not the noticing.
Everything the change created needs a way out, or it accumulates until a disk, registry, or checkout fills up: images built, pulled, or pre-pulled; containers, volumes, build cache; worktrees, branches, temp files, caches, backup copies, and test infrastructure.
"Someone should clean this up later" is not a cleanup path.
A merge waits for evidence, not for the absence of bad news:
Pass the required names as one explicit list. Read
MERGE-GATE.md for the reasons, the background-waiter rules,
and the bundled dependency-free script
scripts/merge-if-green.py.
When several sessions wait on merges in parallel, stop only your own waiter by
its PID or a pattern that names your pull request; a broad pkill silently ends
other sessions' waiters.
Before finishing non-trivial work, tell the user:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
16 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./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./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