{"slug":"craft-discipline","title":"craft-discipline","summary":"Use when a change looks finished and is about to be committed, or a phase has just turned green — the self-check the software-engineer runs before claiming the work is done. Not a review contract. The reviewer verifies artifacts independently.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:42:30.654961Z","repo":{"url":"https://github.com/SebastienDegodez/skraft-plugin","stars":17,"forks":3,"license":"GPL-3.0","updatedAt":"2026-11-29T00:18:21Z"},"bodyHtml":"<hr>\n<h2>name: craft-discipline\ndescription: Use when a change looks finished and is about to be committed, or a phase has just turned green — the self-check the software-engineer runs before claiming the work is done. Not a review contract. The reviewer verifies artifacts independently.</h2>\n<h1>Craft Discipline</h1>\n<h2>Overview</h2>\n<p>10 self-discipline checkpoints for the <code>software-engineer</code>.\nRun at every COMMIT &amp; VERIFY phase, before committing.</p>\n<p><strong>What this skill is NOT:</strong> a review contract. The reviewer does not read\nthis skill. It audits artifacts independently through its own gates.</p>\n<h2>Checkpoints</h2>\n<p>Execute in order. Each checkpoint must pass before proceeding.</p>\n<h3>C1 — Acceptance test passes</h3>\n<pre><code>dotnet test --filter \"Category=Acceptance\"\n</code></pre>\n<p>The acceptance test targeted by this iteration MUST pass. No <code>[Skip]</code>.</p>\n<h3>C2 — All unit tests pass</h3>\n<pre><code>dotnet test\n</code></pre>\n<p>Zero red tests, except the committed acceptance tests of the story's scenarios not delivered yet (<code>outside-in-tdd</code> → All Acceptance Tests First). Zero ignored tests.</p>\n<h3>C3 — Build passes</h3>\n<pre><code>dotnet build\n</code></pre>\n<p>All projects compile without warnings. Treat warnings as errors.</p>\n<h3>C4 — Static analysis passes</h3>\n<p>Verify that the linter/analyzer reports no new findings.</p>\n<h3>C5 — No skipped tests or placeholder assertions</h3>\n<p>No <code>[Skip]</code>, <code>[Ignore]</code>, <code>#if false</code>, disabling comments,\nor placeholder assertions in test bodies\n(<code>assert.fail()</code> / <code>Assert.Fail()</code> / <code>Assert.True(false, ...)</code> /\n<code>throw new NotImplementedException()</code> / <code>throw new Error('not implemented')</code>).\nSkipped tests and placeholder assertions are both theater —\nthey pass the compile gate but assert nothing.</p>\n<h3>C6 — No mocks in Domain/Application</h3>\n<p>Check UnitTest files:</p>\n<ul>\n<li>No <code>A.Fake&lt;&gt;()</code>, <code>Mock&lt;&gt;()</code>, <code>Substitute.For&lt;&gt;()</code>\non a Domain or Application type.</li>\n<li>Mocks allowed ONLY on output gateways (repositories, external services).</li>\n</ul>\n<h3>C7 — Business language verified</h3>\n<p>Test names, variables, and assertions use business vocabulary\n(see the project's FR→EN lexicon). No <code>test1</code>, <code>data</code>, <code>ProcessData</code>.</p>\n<h3>C8 — mutation stays out of the delivery</h3>\n<p>Run no mutation tool, mutation gate or <code>/skraft-mutation</code>: the project's CI runs mutation. The\ndeveloper runs <code>/skraft-mutation</code>; when they ask to kill its survivors, load <code>mutation-testing</code>.</p>\n<h3>C9 — Conventional commit format</h3>\n<p>Use <code>git commit -s</code> with <code>type(feature): subject</code>, e.g.\n<code>test(loyalty-discount): cover expired membership</code>. For a known issue, end the\nbody with <code>Refs: #N</code> for intermediate work or <code>Closes #N</code> (no colon) only when the whole\nissue is genuinely finished and all required gates pass. Omit the issue line\nwhen unknown.</p>\n<h3>C10 — Object Calisthenics on Domain</h3>\n<p>Verify the 9 rules (see <a href=\"references/object-calisthenics.md\">references/object-calisthenics.md</a>).\nApplicable to Domain code only.</p>\n<h3>C11 — Parametrize Variations</h3>\n<p>Multiple input variants for the same behavior MUST be a single parameterized test\n(<code>[Theory]/[InlineData]</code> in .NET, <code>@ParameterizedTest</code> in Java, <code>pytest.mark.parametrize</code> in Python,\n<code>it.each</code> / <code>test.each</code> in TypeScript and JavaScript),\nnot duplicated test methods. One test method per behavior, one row per case.</p>\n<h2>When to Execute</h2>\n<p>A pre-approved, staged documentation-only change with no applicable executable tests, build, or mutation targets is not a code COMMIT &amp; VERIFY cycle. Check the exact approved content and changed paths, run applicable whitespace checks, and apply C9; do not invent code-gate results or create code-evidence artifacts.</p>\n<table>\n<thead>\n<tr>\n<th>TDD Phase</th>\n<th>Applicable Checkpoints</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>PREPARE</td>\n<td>None</td>\n</tr>\n<tr>\n<td>RED</td>\n<td>None</td>\n</tr>\n<tr>\n<td>SYNTHESIZE-GREEN</td>\n<td>C3 only (build)</td>\n</tr>\n<tr>\n<td>COMMIT &amp; VERIFY</td>\n<td><strong>All (C1-C11)</strong></td>\n</tr>\n</tbody>\n</table>\n<h2>On Failure</h2>\n<ul>\n<li>Red checkpoint → fix BEFORE committing.</li>\n<li>No exceptions, no <code>--ignore</code>.</li>\n<li>After 3 attempts on the same checkpoint: revert to green + escalate.</li>\n</ul>\n<h2>References</h2>\n<ul>\n<li><a href=\"references/test-theater-patterns.md\">Test Theater Patterns</a></li>\n<li><a href=\"references/object-calisthenics.md\">Object Calisthenics</a></li>\n</ul>\n","files":[{"path":"references/object-calisthenics.md","sizeBytes":1196,"isText":true},{"path":"references/test-theater-patterns.md","sizeBytes":2151,"isText":true},{"path":"SKILL.md","sizeBytes":4022,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-29T00:43:54.77578Z","sha256":"07E6A3A3293161AB71A5E932F42D7F161B878D6DE9E59AF305EC4D947DD4A7AA","sizeBytes":4094},"review":null,"source":{"repositoryUrl":"https://github.com/SebastienDegodez/skraft-plugin","path":"plugins/skraft-framework/skills/craft-discipline","license":"GPL-3.0","commit":"c6117c6236a25490bf1916b131866069740c9b22","subtreeSha":"B1424769F4F4D3CA7F7B89C8714D4FD8B8D6352B651E3F3DE973D666A01FB26B","lastSyncedAt":"2026-11-29T00:42:27.348488Z"},"reviewedAt":"2026-11-29T00:47:15.904469Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/SebastienDegodez/skraft-plugin/tree/main/plugins/skraft-framework/skills/craft-discipline"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install sebastiendegodez-skraft-plugin@llmmart"},{"target":"git","command":"git clone https://github.com/SebastienDegodez/skraft-plugin.git"}]}