Index of every page on this site: llms.txt
All skills
everyinc avatar

/ce-skill-work

@58d1a83
Run it yourself

Applies this repository's skill-authoring standard as a procedure. Use for any change to, or judgment about, a file under skills/** — a SKILL.md, a reference, a persona prompt, a bundled script's instructions: creating a skill, editing one, reviewing a skill change, or acting on review feedback (human or bot) about one. Not for src/, tests/, or scripts/ code.

Use this Skill: https://skilld.dev/gh/everyinc/compound-engineering-plugin/ce-skill-work

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesedit-skill.md

≈3.9k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Changing an existing skill

Skills predate the current standard and evolve toward it. The standard is the guide, not the text around your edit.

Before editing

  1. State the runtime you are authoring from and what it may mask. Run the guide's decentering step ("Your model is not a neutral author"): name the model tier and harness, then check each reaction against its bias — "this rule is redundant" (would a more literal model still hold the contract?), "this needs more steps" (protocol, or compensation for this runtime?), "it worked in my test" (which harness capability supplied that?), "this is missing X" (what observable failure does X address?). Do this before deciding anything is sediment.
  2. Read the block's goal, not just the lines you were pointed at. What result does this block produce, for whom, and what is its done condition? If the block cannot answer that, the edit starts by restating the block; if it can, your change must keep that answer true.
  3. Search provenance for what you intend to remove or rewrite — a test that asserts it (rg under tests/), a docs/solutions/ learning that records it, a commit that added it to fix a named bug (git log -S). Then apply SKILL.md's sediment rule as written — this step does not restate it. A duplication mandate that is itself the recorded fix for a bug that regressed twice is a scar, not ceremony — keep it and cite the bug. Say which of your removals rest on absence of evidence.
  4. Audit the block with these questions before deciding the smallest change. Ordered by expected behavior change per finding:
Class Diagnostic question
Protocol or judgment If this instruction disappeared, could the workflow produce a wrong path, state, count, gate, field, boundary, coverage floor, or handoff? Yes → protocol, keep it explicit and falsifiable. No → judgment; try deleting it. A menu whose omitted item silently drops required coverage is protocol, not judgment. Decompose a mixed block before classifying it.
Phantom handoff Does the party this sentence hands off to exist in this run?
Step machinery Would a different order, or skipping the ceremony, produce a different artifact?
Capability restatement Would the model do this if the line were deleted?
Filler rationale Does the rule survive intact if the sentence after it is removed?
Enumerated cases Is this list of cases a proxy for one condition it could state instead?
Lean-prompt regression Does the block repeat an instruction, completion check, autonomy gate, or command skeleton that one earlier rule already decides?
Command freedom Do two recipes share the same command skeleton? If yes, the command belongs once with parameters or deltas unless each full command protects a distinct fragile gate. Conversely, would a capable model with live --help still ship the wrong command? If yes, pin the known-good command once.
Per-step completion Is a local done check protecting mutation, auth, scope expansion, irreversible external effects, a fragile transition, or a silent handoff failure? If not, the skill-level done bar decides.
Blanket brevity Does a cross-model skill say "be concise", "keep it short", or paste a Fable brevity block instead of naming what the report must preserve?
Vendor priority Is a Fable-only lean-prompt preference being used to delete a Sol-critical command, report field, or no-blanket-brevity rule?
Prescribed mechanism Does this skill own the command/state it spells out, or does it delegate that work?
Vestigial mode Is there a caller anywhere in the corpus that sets this mode, flag, or branch?
Cross-unit duplication Is this near-identical elsewhere, and is factoring it out actually permitted (parity tests)?
Shouting Is this ALWAYS / NEVER / MUST carrying a rule the surrounding condition does not already state? Capitals are a smell that the rule is not stated as a condition.

Making the change

  • Bring the touched block up to the standard as part of the change. A block written as a procedure, a menu, or an enumeration is restated as its conditions while you are in it; matching the old shape because it is there is how procedures propagate.
  • Scope to your change plus what it makes wrong. Reconcile blocks your change contradicts or duplicates. Leave untouched blocks alone even when short of the standard, and name them in the PR as follow-up. A repo-wide modernization is its own change, requested explicitly.
  • Repeated case-specific repair is the defect signal. If this block has been patched before for "the case we just found" — in an earlier round of the same PR, or in git history — do not add another case. Delete the additions and restate the goal, then re-verify the restatement against every path the additions served; a restatement that no longer names a path is a new defect, not a simplification.
  • For every mandate you remove, name what now decides, and check that decider may decide it. A required gate stays.
  • Prefer one governing sentence over behavior enumeration. If one sentence decides the listed behaviors, keep the sentence and delete the list; if a listed item is a separate invariant, state that invariant locally.
  • Do not overcorrect away deterministic guidance. A concrete form — a known-good fragile command, or the failing shape a rule names — may be what the most literal host actually matches on, so removing it is a behavior change whatever the block reads like afterward. Removing duplicate easy commands is right. Keep the concrete form when that host fails without it: for a command, when a capable model with live --help would still get the command wrong; for a rule, when that host stops instantiating the condition. Decide that by running the host, not by reading the block. When it needs the shape, keep one subordinated under the condition rather than choosing between them (docs/solutions/skill-design/subordinate-the-failing-shape-to-the-condition.md).
  • Resolve model conflicts by product target. For this org's multi-model skills, keep the Sol form when Fable-optimal brevity or anti-prescription would make Sol undershoot. Sol-critical determinism beats Fable-only hygiene.
  • Control length by preserved content. For portable skills, replace blanket brevity slogans with the fields the short output must retain and the details it may omit.
  • Keep scope beside the action it governs, and let nothing compete with an exclusion. A quantifier, threshold, or exclusion ("for each candidate separately", "do not change files outside …") sits next to the step it bounds, not in a distant reminder — literal models lose the distant one. They also act on whatever follows an exclusion when it offers them a competing decision, so what comes after one must decide nothing: an illustration subordinated to the exclusion is fine because it rules on nothing, while a qualification goes before it and an alternative destination is delegated to the section that owns it rather than listed inline as somewhere else to land.
  • Runtime placement: an instruction that must fire at a point stays inline at that point; do not push it into a reference the agent may not load. Where the same rule must live in two always-loaded places, protect it with a parity test.
  • Scripted replacements across many files: assert each anchor matches exactly once before writing anything, and fail closed per file.
  • Cross-file invariants: when a skill's contract is consumed by another skill (an envelope field, a mode token, a status enum), change both ends in the same commit and check the contract test.

Restructuring for a size or platform constraint

A rewrite whose stated reason is a byte cap, a host's frontmatter rules, or a converter target is a different starting state from a behavior fix, and it fails in its own ways (docs/solutions/skill-design/size-driven-skill-restructure.md):

  • Prove the constraint applies before cutting. Name the doc or test that pins it and say which shipping path it governs; a cap that only binds a hypothetical future package is a ratchet goal, not an outage, and the PR says so. Both are legitimate; confusing them mis-sizes the eval. A ratchet goal is still worth the work: forced onto Codex's Agent Plugins path, a 28.5K body was truncated at 8,000 bytes and silently lost steps 1-10 (#1479), so "the cap does not bite today" bounds the urgency, not the size of the body.
  • The cap is a ceiling, not the target. A body is charged to context on every invocation on every host, so a skill that already fits gets the same pass: the smallest always-loaded body, the rest in references. When a skill genuinely resists extraction, keep the body and record in the PR what was tried and why each remaining block must fire without a read; never shrink by dropping an invariant.
  • Enumerate the pins before you rewrite. Run the skill's contract test file first and list every phrase it asserts verbatim; those survive the restructure word-for-word or the test changes deliberately with its reason. Discovering a pin after the rewrite is what turns a plain sentence into a squeezed one.
  • A pin is a decision, not an invariant. Enumerating the pins prevents accidental breakage; it does not make a pinned phrase permanent. Audit each by provenance: incident-backed and window-deciding stays (verbatim only where the wording itself is the contract), an invariant about the artifact rather than the body becomes a corpus grep or a semantic regex, and incidental wording with no provenance is restated as its condition or dropped, with the reason in the test comment. Authorship and age are not provenance either way: a pin a bot review or one of our own agents added days ago has provenance if its test comment or introducing commit records the failure it protects, and none if it does not. Read what a pin actually asserts before recording it as a floor — a test's 4,500-byte search ceiling was read as a section size (#1475).
  • A body that is still over after plain rewriting relocates another block; it does not compress prose. Fused clauses and telegraphic phrasing are how nine restructures in the 2026-08-18 sweep landed within 35 bytes of the cap, and one inverted the meaning of a safety guard; the sibling PR that only compressed a shared paragraph across fifteen skills was rejected outright (#1452). Land with room to spare (about 200 bytes) so a later review fix is not forced to squeeze.
  • Relocate before you delete. Move blocks verbatim into references first, then bring the touched block up to the standard. Every invariant in the old body must be findable in the corpus by the same words a contract test greps for; a restructure that "simplifies" a fragile command while moving it has made two changes and can defend neither.
  • The body keeps what must fire without a read: outcome/done, boundaries, the ordering invariant, stop classes, and a pointer to each reference at the point of use. A reference the tick cannot start without is named in the body as a required read before that step; the eval below checks whether models actually load it.
  • Then delete the reference's copy of what the body owns. Relocating verbatim leaves the same gate stated twice; that is the intended half-step, not the finished move. Before the eval, diff each reference against the body and delete from the reference every gate, condition, or confirmation the body still owns. The body's copy stays — it has to fire without a read — and the reference names what it supplies to the gate instead of restating it. A second copy asks the user twice, records a snapshot twice, and drifts on the next edit, when only one of the two gets fixed.
  • Place each relocated block at the step that executes it, not at the phase it came from. The obvious landing site is the reference covering the block's old neighborhood, which is often not the file the acting step reads — a Stage 6 gate in the step-1 reference, a rubric left with no loader. Nothing catches it: the corpus greps still match and the bytes are right. Ask of each relocated block which step acts on it, and when you find one placed wrong, audit them all (#1471).
  • A hoisted rule reads against its new neighbors. Pulling procedure out changes what sits beside what in the body, and a rule that was unambiguous mid-phase can read as license against a boundary it now borders. Re-read every rule the restructure moved next to a boundary, and state its precondition where it now sits.
  • A shortened rule comes out absolute. A byte budget pushes each restatement toward an absolute, and an absolute forbids paths the original allowed; the tell is a sentence qualified twice, once to close a finding and once when a finding lands on that addition. On the second round against one sentence, state the condition it was a proxy for rather than shortening it again, and pay for the bytes by deleting what the restatement makes redundant elsewhere (#1456: "never re-enter an earlier phase" forbade the marker-recovery scan that the real condition — never redo a completed checkpoint — allows).
  • Tests split by load-time. Rules that must control behavior from the window get body pins; relocated invariants get corpus greps (body + references). Do not silently convert every body pin to a corpus grep.
  • Get an adversarial cross-model read of the draft before splitting. A second model given the old file, the draft, and the incident that motivated the change finds dropped invariants a first author cannot see; treat its list as work items, and re-verify each of its premises against the repo (it will also be wrong).
  • Eval the extraction itself, on more than one harness. Besides the behavior scenarios, ask each run which files it read. A required-read miss fails the cell only when the always-loaded body makes the decision undefendable without that file; if the body still states the gate, omit the probe (skip allowed) and add a complementary cell on the path the reference owns. Grade surviving artifacts and the ACTIONS trailer, not whether the essay named a forbidden command. For a widely used skill, build the matrix from the skill's entry paths and modes rather than one happy path: each path pre and post on Claude, Codex, and Grok, three trials on the popular paths, and an independent grader for the most-used skills. "Unexercised" means tried and could not force, with the reason; a defect review finds on a path the matrix skipped joins the matrix before the next push. When the restructured skill's key behavior is delegation, that extraction eval also dispatches for real — a FILES_READ probe with dispatch forbidden cannot show that the relocated rules still govern a live delegate (references/evaluate.md).

Validate

Read references/evaluate.md. A behavior-bearing change gets a targeted eval on the paths the change touches, on Claude and Codex; a mechanical change gets bun run test. A change that removes or generalizes away text still needs the eval whenever that text could have been carrying a literal reader — which is not the same as its having recorded provenance, since a line added earlier in this same PR has none and can still be what the weakest host was matching on.

Done when

The touched block states its conditions; every removal has a provenance result; nothing your change contradicts remains; validation ran or its skip is recorded; follow-ups are named.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts20d3 checks · Risk SAFE
  • Gen Agent Trust Hub21d

    This skill provides comprehensive procedures for authoring, editing, and reviewing AI agent skills within a repository. It facilitates a development workflow that includes using standard tools like git, ripgrep, and bun for testing and evaluation. While it involves processing repository files that could potentially contain untrusted instructions, the skill includes explicit safety rules, such as forbidding the use of dynamic context injection in authored skills.

  • Socket20d

    No alerts

  • Snyk21d

    Risk: LOW · No issues

Signed by skilld at 58d1a83. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 months ago

README badge

README badge for everyinc/compound-engineering-plugin/ce-skill-work