[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77K7RCHJ8E76SB5C2XEV0DX":3,"skill-same:01M77K7RCHJ8E76SB5C2XEV0DX":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M77K7RCHJ8E76SB5C2XEV0DX","principles",null,"Metric literacy for what this plugin reports: what each measure means, where each reference value comes from, and what none of them can tell a reader. Use when: 'what does cyclomatic complexity mean', 'is CRAP a real metric', 'why is the cyclomatic reference 20', 'what is a good coverage number', 'which metric should I look at', 'code metrics principles'. The numbers themselves: the \u002Fcode-metrics:audit-* skills.","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-metrics\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Metric literacy for what this plugin reports: what each measure means, where each reference value comes from, and what none of them can tell a reader. Use when: 'what does cyclomatic complexity mean', 'is CRAP a real metric', 'why is the cyclomatic reference 20', 'what is a good coverage number', 'which metric should I look at', 'code metrics principles'. The numbers themselves: the \u002Fcode-metrics:audit-* skills.\"\nargument-hint: \"[question or concept]\"\nuser-invocable: true\ndisable-model-invocation: false\nmetadata:\n  workflow-stage: anytime\n  summary: What each code measure can and cannot tell you\n---\n\n# Code metrics knowledge base\n\nThe `audit` skill and its `audit-*` siblings in this plugin print numbers with their provenance and\nstop. This skill says what each number means, where its reference value came from, and where reading\nit as a verdict goes wrong. It renders no verdict of its own, and neither does the plugin: a\nreference is a value to count against, never a bar, and no skill here turns a measured number into a\nfinding, a severity, or an exit-code gate, because a finding needs a measured corpus sweep behind it\nand none has been run. The one findings file the plugin writes, from\n`audit-suppressions --findings`, holds suppressions missing a reason or a rule id, not measured\nnumbers. Reference files in `reference\u002F` are source-attributed; the sections below answer the\ncommon questions without a load.\n\n## Routing table\n\n| Query about... | Load |\n|---|---|\n| What a measure is, its formula, per-lane collector behavior, coverage artifact formats | [measures.md](reference\u002Fmeasures.md) |\n| Where a reference value came from, which popular numbers have no source, how to set your own | [thresholds.md](reference\u002Fthresholds.md) |\n| The CRAP formula, its two authorial names, the coverage join, what it does not predict | [crap.md](reference\u002Fcrap.md) |\n| Who published what, what a paper claims and does not claim, confidence per source | [literature.md](reference\u002Fliterature.md) |\n| The report vocabulary (`cov_source`, `not-applicable`, `partial`) and the JSON document shape | `${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Freport-schema.md` |\n\nLoad the one file the question lands in. Load a second only when the first leaves the question open.\n\n## Quick decision guide (no file load needed)\n\n- **\"Which measure should I look at?\"**. Start from the question, not from the report. How much\n  testing a function needs is cyclomatic complexity: McCabe 1976 defines it as the size of a basis\n  set of paths, and NIST SP 500-235 makes that the number of tests a module needs. How hard a\n  function is to read is cognitive complexity: Campbell's measure penalizes nesting and charges a\n  `switch` and all its cases once. Whether a diff is too large or copied is lines per file and\n  duplication over the changed files, the two measures ISO\u002FIEC 5055 files as weaknesses (CWE-1080\n  and CWE-1041). Whether the suite would catch a fault is not a coverage question: coverage records\n  which lines executed, the primary literature disagrees on how well that predicts fault detection,\n  and the owner of that question is behind the mutation-testing gate below. No measure here ranks\n  changes by risk.\n- **\"Is 22 the cyclomatic threshold?\"**. No source this plugin cites attributes 22 to anyone. The\n  bundled reference is 20, from ISO\u002FIEC 5055:2021 §8.2.117, with 10 (McCabe 1976) and 15 (NIST SP\n  500-235) as the cited alternatives you can select.\n- **\"What is a good coverage number?\"**. No standard sets one, so this plugin ships no coverage\n  reference. A percentage counts executed lines; it says nothing about whether anything was checked.\n- **\"Is 8% duplication bad?\"**. No duplication reference ships, so the report counts nothing as\n  over. The percentage moves with `duplication.min_tokens`, so two runs compare only at the same\n  floor, and replication the repository declares in a registry is excluded rather than suppressed.\n- **\"Is CRAP a real metric?\"**. It is real and authored (Savoia and Evans, 2007), and it is not a\n  validated change-risk predictor. See [crap.md](reference\u002Fcrap.md) before quoting a CRAP number.\n- **\"Is this file too long at 1200 lines?\"**. The report tells you it is at or above the reference\n  of 1000, which is this plugin's own number. ISO\u002FIEC 5055's normative clause for the same weakness\n  is a percentage on a function, not a line count on a file.\n- **\"Cyclomatic or cognitive?\"**. Cyclomatic counts independent paths through a function, which is\n  what makes it a testing measure. Cognitive weights nesting and forgives a flat `switch`, which is\n  what makes it a readability measure. They disagree on the same function by design.\n- **\"Halstead difficulty rose when I split the file. Why?\"**. Difficulty is `(n1\u002F2) * (N2\u002Fn2)`,\n  operator variety times operand reuse, with no explicit length term, so it does not track size. A\n  split changes each half's operator count and reuse ratio, so per-file difficulty legitimately\n  moves on a split, in either direction. Check which collector produced the row: `multimetric`\n  reports Halstead per file and `radon` per function.\n- **\"Type coverage is 96%. Is that good?\"**. No standard and no CWE anchors the measure, so there is\n  no external answer. The percentage also counts `unknown` as typed, so an `any`-to-`unknown` sweep\n  raises it without adding type information.\n\n## Cross-metric caveats\n\nThe whole plugin carries these once, here; the `audit-*` skills point at this section rather than\nrepeating it. Every one of them is a way a true number supports a false conclusion.\n\n- **Coverage responds to tests that assert nothing.** A line is counted as covered when it executed,\n  and a test that calls a function without an assertion executes it. Raising a coverage percentage is\n  therefore always possible without improving the suite, which is why no coverage reference ships and\n  why the number is reported beside the code rather than as a score.\n- **A complexity refactor usually moves complexity rather than removing it.** Splitting a function of\n  cyclomatic 30 into six functions leaves roughly the same number of paths in the file and turns one\n  measured row into six smaller ones. Per-function complexity falls, the file's total does not, and\n  the reader who compares only the maximum sees an improvement that the sum of the rows denies.\n- **Duplication drops the moment you extract a helper, whether or not that helped.** The measure\n  counts repeated token runs and has no view of whether the two copies change for the same reason,\n  and the extraction leaves both call sites depending on the new helper. Some replication is\n  deliberate, which is why a declared registry excludes a cluster rather than suppressing it, and\n  whether the coupling that replaces it is an improvement is a question this plugin cannot measure.\n- **Type coverage counts identifiers whose type is not `any`.** `unknown`, a widened supertype, and a\n  falsely narrow annotation all count as typed. The TypeScript percentage and the Python\n  Any-expression figures are different measures over different populations and never compare.\n- **The measures interact, and none of them composes.** Coverage and complexity combine in CRAP, and\n  that is the only combination this plugin computes. A function at 100% coverage and complexity 40\n  still has CRAP 40; a small function with three untested branches can outrank a large tested one.\n  There is no supported way to add or average these numbers into a quality score, and doing it is\n  the mistake this section exists to prevent.\n\n## Owners of the other measures\n\nThis plugin does not measure these. Each one has an owner, and each pointer is gated: when the\nnamed plugin is not installed, the concern is out of this plugin's scope and nothing here\nsubstitutes for it, unless the bullet names its own fallback.\n\n- **Surviving mutants and mutation score.** Invoke `\u002Fmutation-testing:principles` for what a\n  surviving mutant means, and `\u002Fmutation-testing:audit` to run one, when the `mutation-testing`\n  plugin is installed. Coverage cannot answer it: a covered line can still be unchecked.\n- **Tautological and assertion-free tests.** Invoke `\u002Ftesting:audit` when the `testing` plugin is\n  installed.\n- **Dead code.** Invoke `\u002Fcode-tidying:audit-dead-code` when the `code-tidying` plugin is\n  installed. ISO\u002FIEC 5055 files dead code as its own weakness (7.1.5, CWE-561), separate from\n  every measure here.\n- **Coupling and fan-in.** Invoke `\u002Fcoupling:reduce` when the `coupling` plugin is installed.\n- **Lint rules and style violations.** Invoke `\u002Ftoolchain:lint` when the `toolchain` plugin is\n  installed. A lint rule fires a finding; the measures here do not.\n- **Comparing two reports.** Feed an audit skill's `--json` document to `\u002Fverification:measure metrics` when the `verification` plugin is installed,\n  treating a report whose `status` is `empty` on either side as INCONCLUSIVE; otherwise keep the\n  JSON beside your notes and compare by hand.\n\n## Sources\n\n- **McCabe**: T. J. McCabe, \"A Complexity Measure\", IEEE Transactions on Software Engineering\n  SE-2(4), December 1976, pp. 308-320.\n- **Watson and McCabe**: NIST Special Publication 500-235, *Structured Testing*, September 1996.\n- **Halstead**: Maurice H. Halstead, *Elements of Software Science*, Elsevier North-Holland, 1977.\n- **Campbell**: G. Ann Campbell, SonarSource, *Cognitive Complexity: a new way of measuring\n  understandability*, white paper version 1.7, 29 August 2023.\n- **Savoia and Evans**: Alberto Savoia with Bob Evans, Agitar Labs, the CRAP score, July 2007, and\n  the Crap4j project FAQ.\n- **Lewis et al.**: \"Does Bug Prediction Support Human Developers? Findings from a Google Case\n  Study\", ICSE 2013.\n- **Coverage and test effectiveness**: Inozemtseva and Holmes, ICSE 2014; Gopinath, Jensen and\n  Groce, ICSE 2014; Kochhar, Thung and Lo, SANER 2015; Jia and Harman, IEEE TSE 2011; Petrovic and\n  Ivankovic, ICSE-SEIP 2018; Petrovic, Ivankovic, Fraser and Just, IEEE TSE 2022.\n- **ISO\u002FIEC 5055:2021** (the ISO publication of OMG ASCQM v1.0) and **ISO\u002FIEC 25023:2016**, cited\n  by clause and version, never by page number. Pointer: when a later OMG ASCQM release matters,\n  fetch [ASCQM: Formal Versions](https:\u002F\u002Fwww.omg.org\u002Fspec\u002FASCQM\u002F#spec-versions-formal) live.\n\nPer-source annotation, including what each does not claim and the confidence behind it, is in\n[literature.md](reference\u002Fliterature.md).\n\n## Scope boundary\n\nThis skill is **knowledge**, not **workflow**. It measures nothing, runs no collector, and reads no\nrepository. The `audit-*` skills in this plugin produce the numbers; this one explains them, and\ndeciding what to do about a number is the reader's call.\n\n## Spoke paths\n\nThe `reference\u002F` files write the plugin's root directory as `\u003Cplugin-root>`, which is\n`${CLAUDE_PLUGIN_ROOT}`. Put that path in place of the placeholder before running a command or\nwriting it into a brief: a `${…}` token in a supporting file is not one this plugin can rely on\nbeing expanded, either in the file or in the Bash tool. Where each plugin variable resolves, and\nwhere it is exported: the plugins reference,\n\u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmanifest-reference#where-each-variable-resolves>.\n\n## Next\n\n- The number in question still has to be measured: `\u002Fcode-metrics:audit complexity`, or the\n  `audit` action or `audit-*` skill for that measure.\n- The bundled reference values are not the ones your codebase can defend: `\u002Fcode-metrics:setup`.\n\n## Gotchas\n\n- Provenance strength varies inside one report. The cyclomatic reference is normative in a\n  standard; the file-line reference is this plugin's own number; cognitive, Halstead, CRAP, coverage,\n  and type debt ship `null` because nothing authoritative sets a value. Treating the four as one\n  tier is the error [thresholds.md](reference\u002Fthresholds.md) exists to prevent.\n- A citation for a threshold's existence is not evidence that the threshold predicts defects. The\n  empirical literature does not support a fixed default that transfers across projects, and\n  [literature.md](reference\u002Fliterature.md) records which studies say so.\n- Two collectors for one measure can disagree on the same function; they implement the same\n  definition with different parsers and different variants. The report names the collector per row\n  so the number is traceable, and comparing rows from different collectors is not supported.\n- CRAP has two authorial expansions and one of them still appears on the authors' own homepage.\n  Quoting one as canonical overstates the record; [crap.md](reference\u002Fcrap.md) carries both.\n","# Code metrics knowledge base\n\nThe `audit` skill and its `audit-*` siblings in this plugin print numbers with their provenance and\nstop. This skill says what each number means, where its reference value came from, and where reading\nit as a verdict goes wrong. It renders no verdict of its own, and neither does the plugin: a\nreference is a value to count against, never a bar, and no skill here turns a measured number into a\nfinding, a severity, or an exit-code gate, because a finding needs a measured corpus sweep behind it\nand none has been run. The one findings file the plugin writes, from\n`audit-suppressions --findings`, holds suppressions missing a reason or a rule id, not measured\nnumbers. Reference files in `reference\u002F` are source-attributed; the sections below answer the\ncommon questions without a load.\n\n## Routing table\n\n| Query about... | Load |\n|---|---|\n| What a measure is, its formula, per-lane collector behavior, coverage artifact formats | [measures.md](reference\u002Fmeasures.md) |\n| Where a reference value came from, which popular numbers have no source, how to set your own | [thresholds.md](reference\u002Fthresholds.md) |\n| The CRAP formula, its two authorial names, the coverage join, what it does not predict | [crap.md](reference\u002Fcrap.md) |\n| Who published what, what a paper claims and does not claim, confidence per source | [literature.md](reference\u002Fliterature.md) |\n| The report vocabulary (`cov_source`, `not-applicable`, `partial`) and the JSON document shape | `${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Freport-schema.md` |\n\nLoad the one file the question lands in. Load a second only when the first leaves the question open.\n\n## Quick decision guide (no file load needed)\n\n- **\"Which measure should I look at?\"**. Start from the question, not from the report. How much\n  testing a function needs is cyclomatic complexity: McCabe 1976 defines it as the size of a basis\n  set of paths, and NIST SP 500-235 makes that the number of tests a module needs. How hard a\n  function is to read is cognitive complexity: Campbell's measure penalizes nesting and charges a\n  `switch` and all its cases once. Whether a diff is too large or copied is lines per file and\n  duplication over the changed files, the two measures ISO\u002FIEC 5055 files as weaknesses (CWE-1080\n  and CWE-1041). Whether the suite would catch a fault is not a coverage question: coverage records\n  which lines executed, the primary literature disagrees on how well that predicts fault detection,\n  and the owner of that question is behind the mutation-testing gate below. No measure here ranks\n  changes by risk.\n- **\"Is 22 the cyclomatic threshold?\"**. No source this plugin cites attributes 22 to anyone. The\n  bundled reference is 20, from ISO\u002FIEC 5055:2021 §8.2.117, with 10 (McCabe 1976) and 15 (NIST SP\n  500-235) as the cited alternatives you can select.\n- **\"What is a good coverage number?\"**. No standard sets one, so this plugin ships no coverage\n  reference. A percentage counts executed lines; it says nothing about whether anything was checked.\n- **\"Is 8% duplication bad?\"**. No duplication reference ships, so the report counts nothing as\n  over. The percentage moves with `duplication.min_tokens`, so two runs compare only at the same\n  floor, and replication the repository declares in a registry is excluded rather than suppressed.\n- **\"Is CRAP a real metric?\"**. It is real and authored (Savoia and Evans, 2007), and it is not a\n  validated change-risk predictor. See [crap.md](reference\u002Fcrap.md) before quoting a CRAP number.\n- **\"Is this file too long at 1200 lines?\"**. The report tells you it is at or above the reference\n  of 1000, which is this plugin's own number. ISO\u002FIEC 5055's normative clause for the same weakness\n  is a percentage on a function, not a line count on a file.\n- **\"Cyclomatic or cognitive?\"**. Cyclomatic counts independent paths through a function, which is\n  what makes it a testing measure. Cognitive weights nesting and forgives a flat `switch`, which is\n  what makes it a readability measure. They disagree on the same function by design.\n- **\"Halstead difficulty rose when I split the file. Why?\"**. Difficulty is `(n1\u002F2) * (N2\u002Fn2)`,\n  operator variety times operand reuse, with no explicit length term, so it does not track size. A\n  split changes each half's operator count and reuse ratio, so per-file difficulty legitimately\n  moves on a split, in either direction. Check which collector produced the row: `multimetric`\n  reports Halstead per file and `radon` per function.\n- **\"Type coverage is 96%. Is that good?\"**. No standard and no CWE anchors the measure, so there is\n  no external answer. The percentage also counts `unknown` as typed, so an `any`-to-`unknown` sweep\n  raises it without adding type information.\n\n## Cross-metric caveats\n\nThe whole plugin carries these once, here; the `audit-*` skills point at this section rather than\nrepeating it. Every one of them is a way a true number supports a false conclusion.\n\n- **Coverage responds to tests that assert nothing.** A line is counted as covered when it executed,\n  and a test that calls a function without an assertion executes it. Raising a coverage percentage is\n  therefore always possible without improving the suite, which is why no coverage reference ships and\n  why the number is reported beside the code rather than as a score.\n- **A complexity refactor usually moves complexity rather than removing it.** Splitting a function of\n  cyclomatic 30 into six functions leaves roughly the same number of paths in the file and turns one\n  measured row into six smaller ones. Per-function complexity falls, the file's total does not, and\n  the reader who compares only the maximum sees an improvement that the sum of the rows denies.\n- **Duplication drops the moment you extract a helper, whether or not that helped.** The measure\n  counts repeated token runs and has no view of whether the two copies change for the same reason,\n  and the extraction leaves both call sites depending on the new helper. Some replication is\n  deliberate, which is why a declared registry excludes a cluster rather than suppressing it, and\n  whether the coupling that replaces it is an improvement is a question this plugin cannot measure.\n- **Type coverage counts identifiers whose type is not `any`.** `unknown`, a widened supertype, and a\n  falsely narrow annotation all count as typed. The TypeScript percentage and the Python\n  Any-expression figures are different measures over different populations and never compare.\n- **The measures interact, and none of them composes.** Coverage and complexity combine in CRAP, and\n  that is the only combination this plugin computes. A function at 100% coverage and complexity 40\n  still has CRAP 40; a small function with three untested branches can outrank a large tested one.\n  There is no supported way to add or average these numbers into a quality score, and doing it is\n  the mistake this section exists to prevent.\n\n## Owners of the other measures\n\nThis plugin does not measure these. Each one has an owner, and each pointer is gated: when the\nnamed plugin is not installed, the concern is out of this plugin's scope and nothing here\nsubstitutes for it, unless the bullet names its own fallback.\n\n- **Surviving mutants and mutation score.** Invoke `\u002Fmutation-testing:principles` for what a\n  surviving mutant means, and `\u002Fmutation-testing:audit` to run one, when the `mutation-testing`\n  plugin is installed. Coverage cannot answer it: a covered line can still be unchecked.\n- **Tautological and assertion-free tests.** Invoke `\u002Ftesting:audit` when the `testing` plugin is\n  installed.\n- **Dead code.** Invoke `\u002Fcode-tidying:audit-dead-code` when the `code-tidying` plugin is\n  installed. ISO\u002FIEC 5055 files dead code as its own weakness (7.1.5, CWE-561), separate from\n  every measure here.\n- **Coupling and fan-in.** Invoke `\u002Fcoupling:reduce` when the `coupling` plugin is installed.\n- **Lint rules and style violations.** Invoke `\u002Ftoolchain:lint` when the `toolchain` plugin is\n  installed. A lint rule fires a finding; the measures here do not.\n- **Comparing two reports.** Feed an audit skill's `--json` document to `\u002Fverification:measure metrics` when the `verification` plugin is installed,\n  treating a report whose `status` is `empty` on either side as INCONCLUSIVE; otherwise keep the\n  JSON beside your notes and compare by hand.\n\n## Sources\n\n- **McCabe**: T. J. McCabe, \"A Complexity Measure\", IEEE Transactions on Software Engineering\n  SE-2(4), December 1976, pp. 308-320.\n- **Watson and McCabe**: NIST Special Publication 500-235, *Structured Testing*, September 1996.\n- **Halstead**: Maurice H. Halstead, *Elements of Software Science*, Elsevier North-Holland, 1977.\n- **Campbell**: G. Ann Campbell, SonarSource, *Cognitive Complexity: a new way of measuring\n  understandability*, white paper version 1.7, 29 August 2023.\n- **Savoia and Evans**: Alberto Savoia with Bob Evans, Agitar Labs, the CRAP score, July 2007, and\n  the Crap4j project FAQ.\n- **Lewis et al.**: \"Does Bug Prediction Support Human Developers? Findings from a Google Case\n  Study\", ICSE 2013.\n- **Coverage and test effectiveness**: Inozemtseva and Holmes, ICSE 2014; Gopinath, Jensen and\n  Groce, ICSE 2014; Kochhar, Thung and Lo, SANER 2015; Jia and Harman, IEEE TSE 2011; Petrovic and\n  Ivankovic, ICSE-SEIP 2018; Petrovic, Ivankovic, Fraser and Just, IEEE TSE 2022.\n- **ISO\u002FIEC 5055:2021** (the ISO publication of OMG ASCQM v1.0) and **ISO\u002FIEC 25023:2016**, cited\n  by clause and version, never by page number. Pointer: when a later OMG ASCQM release matters,\n  fetch [ASCQM: Formal Versions](https:\u002F\u002Fwww.omg.org\u002Fspec\u002FASCQM\u002F#spec-versions-formal) live.\n\nPer-source annotation, including what each does not claim and the confidence behind it, is in\n[literature.md](reference\u002Fliterature.md).\n\n## Scope boundary\n\nThis skill is **knowledge**, not **workflow**. It measures nothing, runs no collector, and reads no\nrepository. The `audit-*` skills in this plugin produce the numbers; this one explains them, and\ndeciding what to do about a number is the reader's call.\n\n## Spoke paths\n\nThe `reference\u002F` files write the plugin's root directory as `\u003Cplugin-root>`, which is\n`${CLAUDE_PLUGIN_ROOT}`. Put that path in place of the placeholder before running a command or\nwriting it into a brief: a `${…}` token in a supporting file is not one this plugin can rely on\nbeing expanded, either in the file or in the Bash tool. Where each plugin variable resolves, and\nwhere it is exported: the plugins reference,\n\u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmanifest-reference#where-each-variable-resolves>.\n\n## Next\n\n- The number in question still has to be measured: `\u002Fcode-metrics:audit complexity`, or the\n  `audit` action or `audit-*` skill for that measure.\n- The bundled reference values are not the ones your codebase can defend: `\u002Fcode-metrics:setup`.\n\n## Gotchas\n\n- Provenance strength varies inside one report. The cyclomatic reference is normative in a\n  standard; the file-line reference is this plugin's own number; cognitive, Halstead, CRAP, coverage,\n  and type debt ship `null` because nothing authoritative sets a value. Treating the four as one\n  tier is the error [thresholds.md](reference\u002Fthresholds.md) exists to prevent.\n- A citation for a threshold's existence is not evidence that the threshold predicts defects. The\n  empirical literature does not support a fixed default that transfers across projects, and\n  [literature.md](reference\u002Fliterature.md) records which studies say so.\n- Two collectors for one measure can disagree on the same function; they implement the same\n  definition with different parsers and different variants. The report names the collector per row\n  so the number is traceable, and comparing rows from different collectors is not supported.\n- CRAP has two authorial expansions and one of them still appears on the authors' own homepage.\n  Quoting one as canonical overstates the record; [crap.md](reference\u002Fcrap.md) carries both.\n",{"metadata":24,"description":7,"argument-hint":27,"user-invocable":28,"disable-model-invocation":20},{"summary":25,"workflow-stage":26},"What each code measure can and cannot tell you","anytime","[question or concept]",true,"main","d0e68c3f36b92a1d6381f0ba0060d7a0b8b886c5","plugins\u002Fcode-metrics\u002Fskills\u002Fprinciples",7,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins","https:\u002F\u002Fgithub.com\u002Fmelodic-software","https:\u002F\u002Fmelodicsoftware.com","Independent software studio building developer tools, automation, and application services, with roots in music.","2026-11-15 05:15:06",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":28},[40,43,46],{"tool":41,"command":42},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill principles",{"tool":44,"command":45},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill principles",{"tool":47,"command":48},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill principles","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-metrics\u002Fskills\u002Fprinciples\u002FSKILL.md",[51,57,61,65,69],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"evals\u002Fevals.json","REFERENCE","参考文档",3961,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-metrics\u002Fskills\u002Fprinciples\u002Fevals\u002Fevals.json",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"reference\u002Fcrap.md",8521,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-metrics\u002Fskills\u002Fprinciples\u002Freference\u002Fcrap.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"reference\u002Fliterature.md",14067,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-metrics\u002Fskills\u002Fprinciples\u002Freference\u002Fliterature.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"reference\u002Fmeasures.md",11479,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-metrics\u002Fskills\u002Fprinciples\u002Freference\u002Fmeasures.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"reference\u002Fthresholds.md",9033,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-metrics\u002Fskills\u002Fprinciples\u002Freference\u002Fthresholds.md",[74,81,88,95,100,106],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7DYYDG31B9YX7N9MB9QW2GW","track","Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-flow\u002Fevals\u002Frecall-still-reports-reopened-bug\u002Fwork-items-stub\u002Fskills\u002Ftrack\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7DYXVBAVG3NV30PA7GKW9Q6","reviewer-media","Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from \u002Freview:explain-change's digest, has \u002Fexplainer-video:produce render it and hands the manifest to \u002Fsource-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freviewer-media\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7DYRZ5YD44AMYH26YR25GZ8","route","Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-pin-without-override\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":96,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7DYRTVT4FWTGDJY0HCCFJMZ","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-override-from-route\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":101,"name":5,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7DYNZC8PNW3T27V2ADKECKJ","Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is \u002Farchitecture:improve.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7DYNMCZNEWBFHV9KTSS6H60","write","Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fevals\u002Fdeepening-defect-goes-to-bugs-write\u002Fbugs-stub\u002Fskills\u002Fwrite\u002FSKILL.md",[],[]]