agentleFS
jovesun-labjovesun-lab/arcgram/skills/reconcile/SKILL.md

reconcile

Skill13 starsChanged 4 months agoApache-2.0View on GitHub

Check that an Arcgram diagram's @spec values still match the code that implements it. Reads each node's desc "@spec key=value" line, finds the same-named code constant (hold_ms matches HOLD_MS or holdMs), diffs the literals. Typed findings: drift, missing constant, non-literal, ambiguous. Reads only the @spec line + named constants, never geometry; marks, never blocks. Run after editing a diagram or its code. Agent-neutral. Sibling to Checkpoint (Checkpoint = structure; Reconcile = values).

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close, brief and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HermeticOrmusSkill

    close

    End-of-session ritual. Captures session state, updates auto-memory, writes a session summary, then exits the session cleanly.

    Also in 3 projects that use this

  • AnthropicSkill

    brief

    Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.

    Also in 3 projects that use this

  • renatorozasSkill

    grill

    Adversarial code review. Don't let me ship until the changes pass your scrutiny.

    Also in 3 projects that use this

  • AnthropicSkill

    start

    Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.

    Also in 3 projects that use this

  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • +1 more from anthropics

The file

Files
SKILL.md

Reconcile - code<->diagram @spec bijection validator

Two inputs: a diagram + the code it describes. One question: do the diagram's @spec values still equal the same-named code constants? Returns typed findings; marks, never blocks.

Sibling to Checkpoint: Checkpoint checks structure from the diagram alone; Reconcile checks values across diagram + code. Run both -> the diagram is a faithful, current spec.

Input: the @spec line

A node pins values on one line at the top of desc:

@spec hold_ms=800 fade_ms=200      <- Reconcile reads ONLY this line
  • Prefix @spec (ASCII). key=value, key = the code constant name.
  • Match is case/separator-insensitive: hold_ms = HOLD_MS = holdMs = hold-ms.
  • Value: a number (800, 0x320) or a quoted string ("left").
  • Free prose and a ~ tune: <range> line are for humans - never read.

Reconcile reads only the @spec line + named code constants. No geometry, no prose, no program behavior.

Findings

findingseveritymeans
spec-driftdefect@spec value != the code constant
spec-no-constantdefectno same-named constant in the code
malformed-specdefect@spec line is not key=value
value-uncovereduncoveredconstant is computed, not a literal - no verdict
ambiguous-constantuncoveredtwo constants normalize to one name
no-spec-linesuncoverednothing pinned - never a false "clean"

Anchored on the @spec line (not the code): drift is caught both ways, but a code constant on no @spec line is normal, not a finding. The extractor is a tolerant, dependency-free scan of const/let/var =, NAME =, NAME:, #define, :=, [modifiers] const|readonly TYPE NAME =, and C#/Unity bare field initializers [attr] public|private|static TYPE NAME = value (ScriptableObject tuning fields, no const/readonly) (JS/TS/Python/C/Go/C#/Java); numbers normalize (800 == 800.0 == 0x320, and a C#/Java numeric suffix is dropped so 0.2f == 0.2, 800L == 800). A Unity bare field is matched only with a field-only marker (an access modifier, [Attribute], or static), so a method-body local (int x = 5;) is never captured.

Output (same contract as Checkpoint)

{ findings:[{id,type,severity,note}], summary, attestation, clean }
self-check ran HH:MM:SS | N findings | M unchecked

clean only when N=0 AND M=0 - "checked & clean" never looks like "never checked". Human reads the marker; agent reads the type.

Use

node reconcile.mjs diagram.html code.js [more.js ...] [--json]
import { reconcile } from './reconcile.mjs';
reconcile({ nodes }, codeText);

Exit 1 on any defect (advisory - never blocks). Verify: node reconcile-selftest.mjs (48 checks). Example: ../../examples/example-workflow.html vs example-workflow.config.cs (clean, reconciles 0 findings).

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.