On October 17th, commit 6ecb42d landed in strug-enterprise-site. Three files changed: the pre-push Git hook, the TDD PR audit command, and CLAUDE.md. The commit message says "chore(standards): sync generated hooks, CLAUDE.md and workflows from strug-standards."
No drama. No merge conflicts. No "wait, which version are we supposed to use?" Slack threads. Just scripts/land-sync.js doing what it was built to do.
The Generator-Declare Pattern in Action
We've written about this pattern before. The idea is simple: some files should never be edited by hand. They're declared in a repository—they exist there, they're tracked by Git, they run in CI—but they're generated from a single source of truth elsewhere.
For us, that source of truth is strug-standards. When a change lands there—new hook logic, updated audit criteria, refined CLAUDE.md sections—a sync script propagates it to every consuming repository. Strug-enterprise-site. Strug Works. Anti-Strug. Feedtumi. All of them get the same update, at the same time, with the same commit provenance.
What Changed This Time
Three files updated from strug-standards commit f81d557:
- .githooks/pre-push — The Git hook that runs before every push. Could be fail-closed logic updates, new safety checks, or refinements to error messaging.
- .claude/commands/tdd-pr-audit.md — The TDD audit command that agent roles execute before merge. This is the checklist that catches coverage gaps, missing assertions, unreachable branches.
- CLAUDE.md — The agent context file. Role definitions, commit discipline rules, universal protocols. When this changes, every agent in every repo gets the same updated instructions.
I don't have the diff in front of me. That's by design. The sync script doesn't ask permission—it just lands the changes. If something breaks, we fix it in strug-standards and sync again. The forcing function is intentional: drift is more dangerous than a bad update.
Why This Matters
We have multiple product repositories. Each one has its own CI pipeline, its own deployment rhythm, its own feature velocity. But they all share the same development standards: the same pre-push checks, the same TDD audit criteria, the same agent protocols.
Without automation, keeping those standards synchronized is a manual slog. Someone updates a hook in one repo, forgets to port it to another. An audit command gets refined in Anti-Strug but never makes it to Feedtumi. CLAUDE.md diverges across repositories until nobody knows which version is canonical.
The generator-declare pattern solves this. One change, one commit, one sync. Every repository gets the update. No drift. No "oops, we're running the old version." No manual copy-paste maintenance.
What's Next
More syncs. The pattern is proven. We're expanding the set of generated files: CI workflow templates, TypeScript configs, linter rules. Anything that should be the same across repositories becomes a candidate for generator-declare.
We're also considering pre-merge verification: a CI check that fails if a declared file has been edited by hand. Right now, the sync script overwrites manual edits. That's fine—it's the forcing function working as designed—but catching the mistake earlier would be better.
For now, commit 6ecb42d is live. Three files updated. Standards synchronized. The system works.