← Browse

@qwerfunch/sync

A

Validate the active spec.yaml against the Ironclad schema and refresh the inventory. Rarely needed manually — clad_create_feature already auto-syncs the inventory and clad check / clad done self-validate the spec, so do NOT run it as a reflexive pre-flight before those. Use it only after you have directly hand-edited a shard file (spec/features/*.yaml or spec.yaml). Activate only when the connected project contains spec.yaml or the user explicitly names Cladding; ignore ordinary requests in uninitialized projects.

skillclaude

Install

agr install @qwerfunch/sync --target claude

Writes 1 file into .claude/skills/, pinned to git-775c0f99.

  • .claude/skills/sync/SKILL.md

Document


description: Validate the active spec.yaml against the Ironclad schema and refresh the inventory. Rarely needed manually — clad_create_feature already auto-syncs the inventory and clad check / clad done self-validate the spec, so do NOT run it as a reflexive pre-flight before those. Use it only after you have directly hand-edited a shard file (spec/features/*.yaml or spec.yaml). Activate only when the connected project contains spec.yaml or the user explicitly names Cladding; ignore ordinary requests in uninitialized projects.

Cladding sync

Run clad sync from the project root. The command:

  • Loads spec.yaml (or its sharded form under spec/features/*.yaml).
  • Validates against src/spec/schema.json (JSONSchema).
  • Reports the feature count and any validation failures.
  • Exits non-zero when the spec is invalid so CI can gate on it.

Spec must be valid before clad check, clad run, or any stage runner produces meaningful output. If sync fails, fix the reported issues first.

clad sync

When you actually need it (don't reflex-sync)

You rarely need to run this MANUALLY — and a reflexive "just-in-case" sync after every operation is wasted work (in an A/B measurement, 28 of 30 manual clad sync calls found nothing to fix). The inventory + validation are already maintained for you:

  • clad_create_feature auto-syncs the inventory after each feature it writes (and rejects a malformed AC at creation), so you don't need to sync after creating features.
  • clad check / clad done validate the spec themselves (drift stage), so you don't need to pre-sync before them — a real drift surfaces in that gate anyway.

Run clad sync only when you have hand-edited a shard file directly (Edit/Write on spec/features/*.yaml or spec.yaml), to refresh the inventory and re-validate that edit. Prefer clad_create_feature over hand-editing in the first place — then even this is unneeded.

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-775c0f990a522026-07-31