In short.
Fork Discipline is a Claude Code skill for teams maintaining one platform across multiple client deployments, but its architectural heuristics and generated refactoring steps require human validation. It provides audit, documentation and refactor modes covering client checks in shared code, configuration overrides, scattered custom features, extension points and migration numbering. Its concrete search examples and output templates make it useful as a review checklist. The supplied material contains no executed audits, accuracy measurements or validated refactoring results, and operating cost is unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied folder scope, plugins/dev-tools/skills/fork-discipline, whose manifest contains SKILL.md, together with the repository-level LICENSE notice at commit 1260fa7439b36b18dbf16648ccc7fb44783f6c23. The surrounding dev-tools plugin, other skills and repository installation documentation are outside this scope. Intended behavior and source examples were assessed from text only; installation, audit accuracy, generated files, refactoring safety and runtime compatibility were not tested.
The overview
Identity
Fork Discipline is an instruction-based skill in the jezweb/claude-skills repository at plugins/dev-tools/skills/fork-discipline. Its front matter names it fork-discipline and declares compatibility with Claude Code only. The original folder address is [https://github.com/jezweb/claude-skills/tree/main/plugins/dev-tools/skills/fork-discipline].
The skill focuses on separating shared platform code from code that varies by client deployment. The supplied folder contains SKILL.md, accompanied by the repository-level MIT licence notice.
Assessment
This is a useful architecture-review checklist for teams whose client customisations have spread into shared application code. Its boundary map, file-and-line findings and suggested fixes give developers concrete material to discuss before restructuring a project.
Its value depends on correctly interpreting the application's deployment model. The source provides instructions and examples, but no evidence establishing audit completeness, accuracy, time savings or successful refactoring. Nothing was executed for this analysis.
Users
The intended users are developers maintaining shared platforms with client-specific deployments, teams preparing to add another client, and engineers learning an existing project's architecture. It also addresses projects where client names have begun appearing in shared conditionals or configuration files.
Beginners can use the core-versus-client distinction to understand the architecture, but evaluating proposed changes requires familiarity with imports, configuration, routes and database migrations. The skill says a project that will remain genuinely single-client does not need this audit.
Capabilities
Audit mode describes a boundary map and violation report at .jez/artifacts/fork-discipline-audit.md. It covers hardcoded client identifiers, configuration replacement, scattered client code, missing extension points, migration numbering and identity-based feature switches. The report template includes severity groups, extension-point coverage, a health score and three recommendations.
Document mode generates FORK.md with the project's architecture and client onboarding conventions. Refactor mode describes moving custom code, replacing client checks with feature flags, merging configuration defaults and adding custom-route discovery. It also calls for a project-specific script at .jez/scripts/fork-refactor.sh; that script is an intended generated output.
Using it
Requirements
The front matter lists Read, Write, Edit, Glob, Grep and Bash as allowed tools. The procedure assumes access to project source, configuration and migration files. Documentation and refactor modes involve writing files, and refactor examples include git mv and import changes.
The examples use shell utilities and TypeScript or TSX searches. No minimum Claude Code version, operating-system support matrix or comprehensive language-support statement is supplied. Compatibility with other assistants is not established.
Mechanism
The assistant first infers the project pattern from directories, named configuration files, package structure and environment variables. It then classifies paths as shared, client-specific or blurred, and inspects searches and source code for the listed anti-patterns.
The underlying convention places shared code in src/, defaults in config/ and deployment-specific material under clients/. It favours configuration flags and extension points so a client variation can be introduced without editing shared behavior. Severity labels and the health score are qualitative; the file supplies no scoring formula.
Setup
SKILL.md does not provide installation commands, plugin registration steps or a required skill-loading directory. Those details need to be established for the intended Claude Code installation.
Once the skill is available, its documented audit prompts include fork discipline and check the boundary. Write FORK.md selects documentation, while clean up the fork selects refactoring. Audit is the documented default. Client identifiers and directory conventions should be adapted to the actual project before interpreting searches.
Example
The source illustrates an Acme deployment whose custom route lives inside shared source and whose email-outbox feature is enabled by checking the client name. It proposes moving bespoke routes under clients/acme/custom/ and replacing the identity check with config.features.emailOutbox, enabled through Acme's configuration.
This example shows the intended architectural change: shared code responds to a capability setting, while client configuration supplies the variation. It is an illustration from the instructions; no completed audit or successful migration is demonstrated.
Assessment & evidence
Limitations
The search examples contain placeholder client names and restrict several searches to TypeScript and TSX. Other languages, indirect configuration and dynamically constructed identifiers need additional inspection. A client-identifier match requires architectural interpretation before it can establish a boundary violation.
The configuration example merges the top level plus features and theme; it does not implement a general recursive merge. The custom-route import example catches every import failure and returns null, which could conceal a broken extension as well as accommodate an absent one.
Migration ranges are proposed conventions that need reconciliation with the project's migration system. The source supplies no demonstrated rollback process, completed refactoring script or project test results.
Design rationale
The skill's central rationale is that repeated edits to shared code for individual clients make the platform harder to maintain. Keeping client differences together, merging overrides over defaults and using feature flags should make the intended ownership of a change easier to identify. These are architectural arguments in the source, not measured outcomes.
It recommends documenting the boundary with one client, auditing and fixing high-severity issues with two, and fuller restructuring with three or more. The advice to delay abstraction until the third client is the author's heuristic; the supplied material does not validate that threshold.
Alternatives
The skill offers lighter approaches within its own workflow: document the boundary in FORK.md, or use audit mode before requesting refactoring. These options suit teams that first need to understand where customisation lives.
A team could also apply the same boundary questions during manual architecture review; this is an inferred alternative. The supplied sources contain no comparison with another skill, architecture tool or review method, so relative effectiveness is unknown.
Evidence
The primary source is the complete instruction file pinned to commit 1260fa7439b36b18dbf16648ccc7fb44783f6c23: [https://raw.githubusercontent.com/jezweb/claude-skills/1260fa7439b36b18dbf16648ccc7fb44783f6c23/plugins/dev-tools/skills/fork-discipline/SKILL.md]. It establishes the declared compatibility, modes, examples and intended outputs.
The accompanying rights source is [https://raw.githubusercontent.com/jezweb/claude-skills/1260fa7439b36b18dbf16648ccc7fb44783f6c23/LICENSE]. Neither file supplies completed project audits, benchmarks or evidence of successful execution.
Access & freshness
Costs
The MIT licence grants permission to use the software without a licence fee. The supplied sources give no Claude Code access price, model-usage charges, token-consumption estimate or engineering-time estimate. Total operating cost is unknown.
Rights
The repository-level MIT notice names Jeremy Dawes (Jezweb), copyright 2025. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions.
The licence supplies the software without warranty and disclaims liability. It supports redistribution of the captured skill with the required notice; it does not establish rights in a user's application code or other third-party material.
Freshness
The source snapshot was captured on 17 November 2026 at 00:00:35.518 UTC and identifies commit 1260fa7439b36b18dbf16648ccc7fb44783f6c23. The file gives no release version, modification date or Claude Code compatibility range. Changes after that commit and compatibility with current installations are unknown.
Suggested next steps
Start with audit mode and compare each reported path and line with the application's actual deployment model. Identify which differences belong in configuration, content or custom features before adopting the proposed directory structure.
Before applying generated changes, review nested configuration semantics, import updates, route-loading errors and migration numbering. Validate the resulting behavior with the project's own checks and tests. The source examples alone do not establish that those changes will preserve application behavior.
