agentleFS
randommoniclerandommonicle/claude-skills/live-state-first/SKILL.md

live-state-first

Skill27 starsChanged 18 days agoApache-2.0View on GitHub

Playbook for the always-on norm "probe live state before building from any described state". Load when about to write code, SQL, config, or a fixture from a handover, memory note, README, audit tracker, or code comment, or when two documents disagree. Does not fire on repo/PR/branch state (parallel-work-recon owns repo probes) or on state you observed yourself this session.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every document claim — including the repo's own comments, skills, and FORWARD notes — is a claim, not a fact.

    line 16

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Live state first

The single most-repeated lesson on this machine: twelve-plus recurrences of building against a world that no longer exists — invented columns from a stale handover, a "still open" item carried across four handovers a month after it was done, an audit finding two migrations stale, a reviewer's citation superseded by a later migration. Layer: norm + playbook — the one-line norm in the global CLAUDE.md is the everyday trigger; this file is the depth.

The rule

Every document claim — including the repo's own comments, skills, and FORWARD notes — is a claim, not a fact. Before it becomes an input to code, SQL, config, or a fixture, verify it with one cheap probe of the live source. The latest migration, policy, or config is the truth; when two documents disagree, the catalog settles it.

How to apply

  • One cheap probe before building: a catalog query for schema claims (information_schema, pg_policy, pg_get_functiondef), the deployed surface for behaviour claims, the actual config for settings claims.
  • The file is not the live object, in either direction. The live database routinely runs ahead of main (raw-applied unmerged migrations) and behind the repo (comments and fixes never applied). A migration file's text is evidence of intent, not of state.
  • Query the live distribution, not just the schema, before building on a data assumption — 254 residue rows once would have shipped a correct feature looking broken.
  • Structured data needs a parser, not a grep with context lines. Grep-with-context misled on JSON twice; scope schema greps to the block they describe.
  • Staleness ranks: "still open" items in handovers, path hints in a repo's own docs, and audit trackers are the most likely claims to be stale — they record status at a moment, not state.

What this skill does not do

It does not probe repo state — fetch, PR lists, and identifier ceilings are parallel-work-recon's territory. It does not define migration verification (that is db-migration-verification's post-apply half; this skill is the pre-compose half).

Why

Documents decay the moment parallel work exists, and composing from a stale description produces confident, wrong artifacts that pass review because the reviewer reads the same stale document. Evidence: PropOS LESSONS_LEARNED Sessions 9, 11, 12, 22, 41, 52, 54, 2026-07-06, 2026-07-08, 2026-07-09, 2026-07-19, 2026-07-20; ASH LESSONS_LEARNED 2026-05-25, 2026-07-10.

Additions from the misses-log sweep (2026-10-22)

  • A time, date or count written into a record is read from a command, never composed. Run the clock (date -u) or the count in its own call, then write what it printed in the next; a reading in the same command as the write was typed before it existed. A value no command can give is written as unknown. (ICC L-093, seven instances.)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.