Enforce architecture
Skill agentic-workflow-kit/technical-design/skills/enforce-architecture
AI skills for right-sized technical design, review loops, and enforceable architecture boundaries.
npx -y skills add agentic-workflow-kit/technical-design --skill enforce-architectureAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when a user wants to enforce architecture boundaries, generate dependency-cruiser or ESLint boundary rules, run enforce-architecture, or convert a settled DDD technical design enforcement map into TS-first CI gates. Requires seeded violations for declared rules so enforcement cannot pass vacuously.
SKILL.md
2.2 KB, 405 tokens by cl100k_base, as published. Nobody here has run it
enforce-architecture
Turn a settled design's enforcement map into executable TS-first architecture checks.
References
- DDD enforcement map template:
../../methodologies/ddd/templates/enforcement-map.md - DDD enforcement rules:
../../methodologies/ddd/enforcement-rules.md - Generator script:
scripts/generate_depcruise.mjs
Preconditions
- The design is settled: no open blocking review suggestions.
- The design has an enforcement map, or explicitly says there are no enforceable boundaries.
- Every declared rule has a seeded violation path or equivalent fixture.
Anti-vacuous rule
Generate rules only for boundaries explicitly declared by the design. If the design has no enforceable boundaries, say so and produce a manual review checklist instead of pretending CI proves the design.
If the design declares a rule but has no seed, stop and ask for a seeded violation fixture. A rule is not production-ready until the gate can be shown to fail for that exact rule.
Output
- Extract the design's enforcement map into
layer-map.json. - Verify each
forbiddenrule hasfrom,to,reason, andseededViolation. - Run
node scripts/generate_depcruise.mjs layer-map.json --output .dependency-cruiser.js. - Run the generated config against the seed fixture and confirm the expected failure.
- Generate ESLint guidance only when the design's layer structure can support useful editor checks.
- Output
ci-gate.mdwith the command and expected failing seed evidence.
Examples
examples/typescript-service.md- DDD ports/adapters rule: domain must not import infrastructure.examples/layered-mvc.md- non-DDD folder taxonomy rule: model must not import controller.examples/crud-no-boundaries.md- strategic-only design with no enforceable import boundary; the skill declines a vacuous gate.
What ships with it: 7 files
9.5 KB alongside SKILL.md, 2 of them executable
examples/
- crud-no-boundaries.md1.1 KB
- layered-mvc.md1.1 KB
- typescript-service.md858 B
scripts/
- generate_depcruise.mjsruns4.1 KB
templates/
- ci-gate.md856 B
- dependency-cruiser.jsruns638 B
- eslint-boundaries.md903 B