jezweb avatar

Fork Discipline

If you've ever seen an `if (client === 'acme')` check creep into what should be shared platform code, you need this. It audits multi-client codebases for boundary violations: hardcoded client names in core, config files that replace instead of merge, client-specific code scattered in src/, and missing extension points that force developers to patch shared code for every new deployment. You get a boundary map showing what's actually core versus client-specific, a violation report with severity levels, and a refactoring plan. Most useful right before adding a second or third client to a project, or when onboarding someone who needs to understand why the codebase is structured the way it is.

skills.sh installs
905
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

$ npx -y skills add jezweb/claude-skills --skill fork-discipline --agent claude-code

Installs into .claude/skills of the current project.

Files

Fork Discipline

Audit the core/client boundary in multi-client codebases. Every multi-client project should have a clean separation between shared platform code (core) and per-deployment code (client). This skill finds where that boundary is blurred and shows you how to fix it.

The Principle

project/
  src/            ← CORE: shared platform code. Never modified per client.
  config/         ← DEFAULTS: base config, feature flags, sensible defaults.
  clients/
    client-name/  ← CLIENT: everything that varies per deployment.
      config      ← overrides merged over defaults
      content     ← seed data, KB articles, templates
      schema      ← domain tables, migrations (numbered 0100+)
      custom/     ← bespoke features (routes, pages, tools)

The fork test: Before modifying any file, ask "is this core or client?" If you can't tell, the boundary isn't clean enough.

When to Use

Sponsors

Details

Repository
github.com/jezweb/claude-skills
Categories
Testing & QA, Git & Pull Requests, Documentation, Code Review & Quality, Productivity & Planning
First seen
Jun 3, 2026

More from jezweb/claude-skills

All 166
1forcedotcom avatarinvestigating-agentforce-architectureforcedotcom/sf-skillsDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable arch903skills.sh installs
2alirezarezvani avatarapp-store-optimizationalirezarezvani/claude-skillsApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on A894skills.sh installs
3marcolang avatarinstagram-carouselmarcolang/marketing-skillsCreates high-quality Instagram carousels as swipeable HTML previews with export-ready slides (1080×1350px PNG). Handles the full workflow: brand setup, slide co889skills.sh installs
4github avatarreact-audit-grep-patternsgithub/awesome-copilotProvides the complete, verified grep scan command library for auditing React codebases before a React 18.3.1 or React 19 upgrade. Use this skill whenever runnin884skills.sh installs
5vercel-labs avatard3kvercel-labs/dev3000Use when the user asks to use d3k, run/dev/test/debug a web project with d3k, or reproduce a browser issue. Own the runtime: reuse or background-start d3k non-i877skills.sh installs
6moizibnyousaf avatarbackend-developmentmoizibnyousaf/ai-agent-skillsBackend API design, database architecture, microservices patterns, and test-driven development. Use for designing APIs, database schemas, or backend system arch874skills.sh installs