gain

Solid

Report what measurably improved since a reference point — baseline shrinkage, lines deleted, rot removed, boundaries hardened. Use when the user says "procoder gain", "what did procoder fix", "how much did we clean up", "quality progress", "what improved this release", or invokes /procoder:gain. Every number comes from git or the baseline.

Code & Development 202 stars 15 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 84/100

Stars 20%
77
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# procoder:gain The ratchet only counts if someone reads it. This is the readout. ## Procedure 1. **Pick the reference point.** Previous tag: `git describe --tags --abbrev=0 HEAD^`. No tags: `git rev-list -1 --before="30 days ago" HEAD`. State which you used. 2. **Baseline shrinkage.** Count fingerprints then and now: `git show <ref>:.procoder-baseline.json` versus the working copy. Report both counts and the difference. If the file did not exist at `<ref>`, say so. 3. **Net lines.** `git diff --stat <ref>..HEAD` — added versus deleted. 4. **Rot removals.** `git log <ref>..HEAD --oneline` plus `git log <ref>..HEAD -p --diff-filter=D --name-only` for whole files removed. Count commits that deleted exports, settled feature flags, or deprecated <!-- procoder: literal alone/deprecated-no-trigger the doctrine names this pattern, it is not an instance of it --> paths — verify by reading the diff, not the commit message. 5. **Boundaries hardened.** `git diff <ref>..HEAD -U0 | grep '^+'` for added validation, authz checks, and parameterized queries at entry points. Count only ones you can point at a line for. ## Output Four numbers, each with the command that produced it: ``` reference v1.4.0 (git describe --tags --abbrev=0 HEAD^) baseline 312 → 287, 25 fewer accepted findings lines +1,840 / -3,102 (net 1,262 deleted) rot removed 7 commits deleted dead exports or settled flags boundaries 4 entry points gained validation `...

Details

Author
azrtydxb
Repository
azrtydxb/procoder
Created
3 weeks ago
Last Updated
today
Language
Go
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category