ratchet-ledger

Solid

Reports what the ratchet actually measured in this repository: the session ledger at .ratchet/ledger.jsonl, the accepted complexity mark, and every `ratchet:` shortcut comment left in the code with its ceiling and its upgrade trigger. Use when the user says "ratchet ledger", "/ratchet-ledger", "what did we defer", "show the complexity trend", "what shortcuts are in here", or asks whether the codebase is getting simpler or more complex over time. Reports real recorded numbers only, never estimates.

AI & Automation 439 stars 86 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 83/100

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

Skill Content

# Ratchet ledger Three sections. Real numbers only. ## 1. Trend Read `.ratchet/ledger.jsonl`, one JSON object per finished session. Report the last ten: date, mode, lines added, new dependencies, findings by tag, and the repository line count at the end of that session. Show the direction plainly. If the line count has risen for three sessions in a row, say so. If the file is missing, say the ratchet is not initialised for this repository and that `mkdir .ratchet` turns it on. Do not invent a trend. ## 2. Mark Read `.ratchet/mark.json`, the accepted high water mark. Compare it to the repository now. Below or equal to the mark: `At the mark.` Above it: report the gap and the reason recorded on the mark, then ask whether to bring it down or accept a new mark with a written reason. ## 3. Shortcuts ``` grep -rnE '(#|//|--) ?ratchet:' . --exclude-dir=node_modules --exclude-dir=.git ``` One row per hit, grouped by file: ``` <file>:<line> <what was simplified>. ceiling: <the limit>. upgrade: <the trigger>. ``` The convention is `ratchet: <ceiling>, <upgrade path>`, so both fields come straight out of the comment. Any marker with no upgrade trigger gets tagged `no-trigger`, those are the ones that rot silently. End with `<N> shortcuts, <M> with no trigger.` ## Honesty Every number here is read from a file or counted from the tree. Never report what a session "saved": the version that was not written was never written, so there is nothing to subtract from. The trend an...

Details

Author
0xwilliamortiz
Repository
0xwilliamortiz/ratchet
Created
1 months ago
Last Updated
1 months ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Featured

ratchet

Enforces a measured complexity budget on coding work. Reaches for the standard library, native platform features and code that already exists in the repository before writing anything new, and treats every added dependency, file and line as a cost that has to be justified. A hook measures the real diff and reports overruns back mid-task, so the budget is a number, not a mood. Use this on ANY coding task: writing, refactoring, fixing, reviewing, choosing libraries, or designing an interface. Use it whenever the user says "ratchet", "keep it minimal", "simplest thing that works", "yagni", "don't over-engineer", "smallest diff", or complains about bloat, boilerplate, scaffolding or dependency creep. Do not use it for non-coding requests.

439 Updated 1 months ago
0xwilliamortiz
Code & Development Solid

ratchet-review

Reviews a diff or a whole repository for over-engineering only, and returns a delete list rather than prose. Finds reinvented standard library calls, dependencies the platform already covers, abstractions with one implementation, wrappers that only forward, configuration nothing reads and dead flexibility. Use whenever the user says "review for over-engineering", "what can we delete", "is this over-engineered", "find the bloat", "audit this repo", or invokes /ratchet-review. Pair it with a normal correctness review, it deliberately does not look for bugs.

439 Updated 1 months ago
0xwilliamortiz
Code & Development Listed

ratchet-audit

Report which of a project's stated code rules are actually enforced, and which could be. Use when asked which conventions are enforced, whether a rule is respected, what the CLAUDE.md or AGENTS.md rules are worth, or to review the gap between what a project says and what it checks. Read-only, writes nothing.

0 Updated 1 weeks ago
quietmachineworks