/grounding-rules:grounding-rulesfrom grounding-rules
Distill a system or subsystem into its GROUNDING RULES: the load-bearing few (纲举目张), 5 to 12 rules from which the rest of the system can be derived and against which a design question is settled in one line, so a reader gains CONFIDENCE in minutes instead of reading a spec for hours. Use whenever the user wants the "essence" / "constitution" of a module, the load-bearing rules / single-source-of-truth / key invariants of a system, a first-principles explanation of how a subsystem really works (not API-reference docs), or types /grounding-rules. Four actions: a fresh grounding pass; `update <new facts or corrections>` (re-ground an existing doc when the system changes); `ask <question>` (answer from the real code in the grounding voice); `tl;dr [path]` (distill an existing doc into its foundation bullets, plain Markdown). Writes to a vault path → invokes obsidian-markdown (except tl;dr). NOT for exhaustive API reference, tutorials, change logs, or edge-case fencing.
Trending skills
7-day visitors to each skill page
Ships in grounding-rules. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
纲举目张: lift the headrope and the whole net opens. A few statements carry everything. A grounding-rules document is a system's load-bearing few, written for a reader: the smallest set of statements such that, knowing them, you know the system, and almost everything else true about it can be derived with ordinary reasoning.
It has two jobs, and every rule serves both:
This is not documentation and not a spec. Docs describe every surface and rot as the API changes. A spec fences every case for a machine. Grounding rules describe only the load-bearing skeleton, for a human, and barely move, because they capture decisions, not surfaces.
This is the skill's own contract. Everything below it is derivable.
You do not invent rules; you find them. Sweep the system through each lens:
Write to the path the user gives (often a Markdown note):
# <System> — Grounding Rules
> One sentence: what this system is, in plain language. The mental model in a breath.
## tl;dr
<The foundation rules as plain bullets, the handful a reader must hold to derive the
rest. Max two levels, no why, no anchors. If the rest of the doc vanished, these alone
would still teach the system's shape. If you cannot get the system down to 5 to 10
bullets, you have not found which rules are foundational.>
## The model
<The one diagram: entities and how they nest or relate. Name the nouns here (and the
ownership boundary when two parts are isolated); do not restate the rules. Every noun
used anywhere in the doc is on this map.>
## <Group A, e.g. The nouns and their single source of truth>
**R1. <One-line declarative claim.>**
*Why:* <one or two lines: the reasoning that makes it load-bearing and lets it drive a
decision its author never foresaw.>
<optional anchor, e.g. `models.py:Job.runner_id`>
## <Group B: lifecycle / boundaries / …>
...
## Using these rules
<2 or 3 real design questions, each answered in one line by citing a rule. The proof the
rules are operative, not decorative.>
Writing into an Obsidian vault? Invoke the obsidian-markdown skill and follow it:
frontmatter tags, a > [!info] callout for the one-line mental model, > [!tldr] for the
tl;dr, > [!example] for "Using these rules", [[wikilinks]] only for notes that exist.
The rules stay terse; Obsidian syntax carries only the framing. Soft dependency: if it
isn't installed, write plain Markdown.
file:symbol pointer per rule locates the code; never paste code
blocks or signatures. Anchors locate, they don't define.What to cut: anything inferable (a theorem, not an axiom); anything whose violation changes no decision (trivia); signatures, column lists, payload shapes, how-tos (reference docs, they rot and bury the rules); clauses that fence a contrived misreading (spec creep); secondary mechanisms such as caches or denormalized columns, unless the reader would get the model wrong without them.
Fresh pass (default): the process above, written to the path the user gives.
update <new facts or corrections> re-grounds an existing doc. Update is not append.
Read the doc as the current rule set; fold in the facts (a correction means re-checking the
code first, since a wrong rule usually rested on a wrong assumption); prefer a missing rule
over a new clause (often the dual of a boundary the doc already states); re-run the few
over the merged set, since a new fact may subsume, contradict, or duplicate an old rule;
preserve voice and structure; re-read cold for orphans that only made sense next to a rule
you just deleted.
ask <question> answers from the real code, in the grounding voice: brief, correct,
load-bearing, with a tiny example when it helps. Ground it in code first and cite
file:symbol; the value of ask is that the answer is true now, and if a part can't be
verified, say so. Lead with the one-line invariant, then the one or two places that decide
the behavior; skip the call-graph walk. Reconcile with the doc: a contradiction is an
offer to update, a confirmation cites the rule ("this is R3"), a new load-bearing fact is
flagged as a candidate rule. A good ask often surfaces the next update.
tl;dr [path] distills an existing grounded doc (or a fresh pass) into a standalone,
scannable list: the operative checklist kept next to the work, not the teaching doc. It
reformats what the doc established; it does not re-derive or re-verify (run update first
if the doc is stale).
**<lead>** — <gist> (Rn). No why, no anchors, no prose.R5.
Job.runner_idis the sole link between a job and the worker running it. Set → claimed (and by which worker);NULL→ unclaimed. Never both. Why: one nullable FK on a unified jobs table means exactly one place to ask "is this job claimed, and by whom?", so the scheduler resolves the worker from the row it owns, and no client can claim someone else's job. (Pattern: discriminator column on a unified table.)
One-line claim; a why that explains the design rather than restating the claim; a named pattern; immediately usable: "can a job have two runners?" is answered by R5 alone (no, that is a re-queue into a new job). And a developer's first instinct after reading it ("resolve the worker from the job row") is the right one.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub initialneil/grounding-rules --plugin grounding-rules