Claude Cursor GitHub Copilot Skill

skraft-quality-bar

Use before running, verifying, or reporting any quality gate. States the one permanent threshold for mutation score (global, developer-owned) and line coverage, and the enforcement level of every gate. Load when about to invoke a mutation run, when deciding whether a gate blocks

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download sebastiendegodez-skraft-plugin-plugins_skraft-framework_skills_skraft-quality-bar-c6117c6.zip · 1 KB

Install

skills CLI npx skills add https://github.com/SebastienDegodez/skraft-plugin/tree/main/plugins/skraft-framework/skills/skraft-quality-bar
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install sebastiendegodez-skraft-plugin@llmmart
Git git clone https://github.com/SebastienDegodez/skraft-plugin.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole sebastiendegodez/skraft-plugin collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

SKRAFT Quality Bar

The single place a threshold is authored. Every other mention in this framework is a reference to this file, never a second definition.

There is no strictness dial. The bar below applies to every repository, every work item, and every phase. A previous version of this framework carried a depthTier setting that could lower it; that dial is gone, and with it the advisory and warning levels and the rationale that used to buy an exemption.

The bar

Gate Value Scope
Mutation score 80% each scope: core and boundary (Clean Architecture), or global (single project)
Line coverage 100% Domain, Application

Core is Domain and Application; boundary is API, Infrastructure and UI. For line coverage, Domain and Application are any folder (or .NET project) whose name ends with domain or application.

Line coverage and mutation are executed by the project's CI, never by the pipeline: coverage with this minimal bar and no exclusion, mutation as its own CI step. No evidence log records them.

TDD variant is Outside-In double-loop, always. outside-in-tdd owns the sequence.

Enforcement

Every gate blocks. There is no advisory level, no warning level, no override, and no rationale that grants an exemption.

Gate Level
Clean Architecture boundaries blocking
TDD cycle respected blocking
Test integrity blocking
Line coverage executed by the project's CI, never by the pipeline
Mutation executed by the project's CI, never by the pipeline
Mutation, in a /skraft-mutation run every scope meets the bar
Gherkin gate (user-approved scenarios) blocking
ADR for non-trivial decisions blocking
Object Calisthenics (Domain) blocking

A gate that cannot run is not a passed gate. Report it as a failure and stop. Coverage and mutation are not pipeline gates: never report them as passed by a delivery.

Mutation is the developer's responsibility

Mutation testing must be done on every story, and running it is the developer's responsibility, not SKRAFT's. SKRAFT ships no mutation tool, no mutation config and no scaffold, and the pipeline never runs mutation: the project's CI does. The developer:

  1. picks the tool (Stryker.NET, StrykerJS, cosmic-ray, mutmut, PIT…) and its configuration;
  2. runs /skraft-mutation, which asks for the command of each component (proposing one found in CONTRIBUTING.md) and warns when the command is a full run rather than an incremental one;
  3. makes that command compute the scores and write them as JSON to the file named by SKRAFT_MUTATION_RESULT: core and boundary for a Clean Architecture component, global for a single project; each scope may list its surviving mutants, one file:line detail line each, which the team can leave out;
  4. may set the tool's own break threshold; SKRAFT judges 80% on every scope regardless.

/skraft-mutation's mutation-gate runs each command, reads each result and returns the verdict as its exit code: 0 pass, 1 fail, 2 blocked. You never judge a score by reading a number. No caller argument sets the bar: the gate refuses one. You never run mutation, write the command, the tool config or the result yourself.

Files (skraft-plugin)
  • SKILL.md 4.1 KB
    ---
    name: skraft-quality-bar
    description: Use before running, verifying, or reporting any quality gate. States the one permanent threshold for mutation score (global, developer-owned) and line coverage, and the enforcement level of every gate. Load when about to invoke a mutation run, when deciding whether a gate blocks or merely warns, when writing or reviewing an evidence record, when a skill or descriptor appears to state a threshold of its own, and whenever a number would otherwise be copied from memory or from an older document. There are no tiers, no advisory level, and no override. Does not choose the toolchain command (resolving-stack-commands), classify survivors (mutation-testing), define the evidence schema (quality-gates-evidence-contract), or set the reviewer lens count (each review-criteria skill owns its own).
    ---
    <!-- markdownlint-disable-file -->
    
    # SKRAFT Quality Bar
    
    The single place a threshold is authored. Every other mention in this framework is a
    reference to this file, never a second definition.
    
    There is no strictness dial. The bar below applies to every repository, every work
    item, and every phase. A previous version of this framework carried a `depthTier`
    setting that could lower it; that dial is gone, and with it the `advisory` and
    `warning` levels and the rationale that used to buy an exemption.
    
    ## The bar
    
    | Gate | Value | Scope |
    | --- | --- | --- |
    | Mutation score | 80% | each scope: core and boundary (Clean Architecture), or global (single project) |
    | Line coverage | 100% | Domain, Application |
    
    Core is Domain and Application; boundary is API, Infrastructure and UI. For line coverage,
    Domain and Application are any folder (or .NET project) whose name ends with `domain` or
    `application`.
    
    Line coverage and mutation are executed by the project's CI, never by the pipeline: coverage
    with this minimal bar and no exclusion, mutation as its own CI step. No evidence log records
    them.
    
    TDD variant is Outside-In double-loop, always. `outside-in-tdd` owns the sequence.
    
    ## Enforcement
    
    Every gate blocks. There is no advisory level, no warning level, no override, and no
    rationale that grants an exemption.
    
    | Gate | Level |
    | --- | --- |
    | Clean Architecture boundaries | blocking |
    | TDD cycle respected | blocking |
    | Test integrity | blocking |
    | Line coverage | executed by the project's CI, never by the pipeline |
    | Mutation | executed by the project's CI, never by the pipeline |
    | Mutation, in a `/skraft-mutation` run | every scope meets the bar |
    | Gherkin gate (user-approved scenarios) | blocking |
    | ADR for non-trivial decisions | blocking |
    | Object Calisthenics (Domain) | blocking |
    
    A gate that cannot run is not a passed gate. Report it as a failure and stop. Coverage and
    mutation are not pipeline gates: never report them as passed by a delivery.
    
    ## Mutation is the developer's responsibility
    
    Mutation testing must be done on every story, and running it is the developer's
    responsibility, not SKRAFT's. SKRAFT ships no mutation tool, no mutation config and no
    scaffold, and the pipeline never runs mutation: the project's CI does. The developer:
    
    1. picks the tool (Stryker.NET, StrykerJS, cosmic-ray, mutmut, PIT…) and its configuration;
    2. runs `/skraft-mutation`, which asks for the command of each component (proposing one found in
       `CONTRIBUTING.md`) and warns when the command is a full run rather than an incremental one;
    3. makes that command compute the scores and write them as JSON to the file named by
       `SKRAFT_MUTATION_RESULT`: `core` and `boundary` for a Clean Architecture component, `global`
       for a single project; each scope may list its surviving mutants, one `file:line detail` line
       each, which the team can leave out;
    4. may set the tool's own break threshold; SKRAFT judges 80% on every scope regardless.
    
    `/skraft-mutation`'s `mutation-gate` runs each command, reads each result and returns the
    verdict as its exit code: 0 pass, 1 fail, 2 blocked. You never judge a score by reading a
    number. No caller argument sets the bar: the gate refuses one. You never run mutation, write the
    command, the tool config or the result yourself.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.