Agent skill · laurigates
code-scaffold-backport
Back-port an instance fix into the generator that produced it — cookiecutter, scaffold, `new-*` recipe. Use when fixing, reviewing, or auditing a generated file.
What it needs
About 2k tokens when loaded.
What this skill does
Back-Port Instance Fixes Into Their Scaffold/Generator When to Use This Skill Situation Skill ----------- ------- Fixing, reviewing, or auditing a file a generator emitted — cookiecutter/copier template, justfile new- recipe, a -scaffold skill, a "copy the example app" doc This skill — patch the generator in the same sweep Repeated code inside one codebase, with no generator behind it code-quality-plugin:dry-consolidation Auditing a whole fleet of generated instances against their template The inverse direction — .claude/rules/generated-fleet-drift.md; an instance may legitimately be ahead of the template, so never auto-apply template → instance When fixing something that was generated — a site scaffolded by a justfile recipe, a repo from a cookiecutter template, a config from a new- skill — check whether the bug came from the generator, and if so, fix the generator in the same sweep. A fix applied only to the deployed instance leaves every future generation broken in the same way, and the gap is invisible until the next person scaffolds. The failure mode Canonical case (FVH sites monorepo, 2026-06): two PRs fixed the deployed example-static site — service.targetPort: 8080 for the non-root nginx image, numeric runAsUser for Kyverno — but the just new-site template that had produced those broken values was never touched. Every subsequently scaffolded site would have shipped with chart-default port-80 probes against an 8080 listener: pod never Ready, stuck Progressing, no error anywhere. Found and back-ported only weeks later during a readiness audit (sites#11). The shape is always the same: 1. An instance misbehaves; someone fixes the instance. PR merges, done. 2. The generator still emits the pre-fix content. 3. The next generation reproduces the bug — often for someone without the context of fix #1. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills laurigates/code-scaffold-backport