agentleFS
Hook12aaaHook12aaa/skill-cheat/skills/skill-author/SKILL.md

skill-author

Skill0 starsChanged 41 days agoMITView on GitHub

Stage 3 of skill-cheat's five-stage pipeline. Trigger /skill-author whenever the user says "author my SKILL.md", "fill in my SKILL.md body", "write my checklist and step details", or "finish my draft after design locked". Fills SKILL.md body under the locked Integrity Block once DESIGN_LOCKED is in hand. Emits AUTHOR_DONE, AUTHOR_INCOMPLETE, or BLOCKED_TAMPER.

24 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 6 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do NOT proceed without a verified design.md.sha256 sidecar in this session.

    line 10
  2. Distinctive:

    Never edit content inside the integrity-block markers.

    line 14
  3. Very specific:

    Never name libraries or frameworks in SKILL.md body sections.

    line 18
  4. Distinctive:

    Read design.md and verify the SHA-256 sidecar matches.

    line 61
  5. Distinctive:

    Run bash -n on the Bottom Line fence.

    line 68
  6. Very specific:

    Run integrity-hash.sh on design.md.

    line 74
  7. Very specific:

    Write the description field so it covers the trigger surface.

    line 78
  8. Very specific:

    Write the executable bash fence.

    line 98
  9. Distinctive:

    BEFORE re-reading design.md: "Did I verify its SHA-256 sidecar in this session?"

    line 106
  10. Distinctive:

    BEFORE writing the Anti-Pattern: "Did I quote the exact rationalization that would cause skipping the stage?"

    line 107
  11. Distinctive:

    BEFORE writing Rationalization Table rows: "Is every Reality stricter than its You-think?"

    line 108
  12. Very specific:

    BEFORE emitting AUTHOR_DONE: "Does the frontmatter description name trigger phrasings AND at least one verdict token?"

    line 109
  13. Very specific:

    BEFORE emitting AUTHOR_DONE: "Did bash -n pass on the Bottom Line fence?"

    line 110
  14. Very specific:

    bash -n before AUTHOR_DONE: Every Bottom Line must pass syntax check.

    line 131

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “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
<!-- design-region-clean-of-hard-gates -->

skill-author

<HARD-GATE> Do NOT proceed without a verified design.md.sha256 sidecar in this session. STOP and run integrity-hash.sh. </HARD-GATE><HARD-GATE> Never edit content inside the integrity-block markers. STOP if drift is suspected. </HARD-GATE><HARD-GATE> Never name libraries or frameworks in SKILL.md body sections. STOP and rewrite the offending line. </HARD-GATE>

Anti-Pattern

"The Integrity Block is close enough" — close enough is drift. Every field in the Integrity Block is immutable once the SHA-256 sidecar lands. Any edit to the block, however small, invalidates the sidecar and must trigger BLOCKED_TAMPER.

Core Principle

Fill the body without changing the locked contract.

Process Flow

digraph skill_author {
    rankdir=TB;
    "Read design.md" [shape=box];
    "Verify sidecar hash" [shape=diamond];
    "BLOCKED_TAMPER" [shape=doublecircle];
    "Draft pushy description" [shape=box];
    "Draft Anti-Pattern" [shape=box];
    "Draft Step Details" [shape=box];
    "Draft Rationalization Table" [shape=box];
    "Draft Red Flags" [shape=box];
    "Draft Bottom Line" [shape=box];
    "Run bash -n" [shape=diamond];
    "AUTHOR_DONE" [shape=doublecircle];
    "Read design.md" -> "Verify sidecar hash";
    "Verify sidecar hash" -> "BLOCKED_TAMPER" [label="drift"];
    "Verify sidecar hash" -> "Draft pushy description" [label="clean"];
    "Draft pushy description" -> "Draft Anti-Pattern";
    "Draft Anti-Pattern" -> "Draft Step Details";
    "Draft Step Details" -> "Draft Rationalization Table";
    "Draft Rationalization Table" -> "Draft Red Flags";
    "Draft Red Flags" -> "Draft Bottom Line";
    "Draft Bottom Line" -> "Run bash -n";
    "Run bash -n" -> "AUTHOR_DONE" [label="pass"];
    "Run bash -n" -> "Draft Bottom Line" [label="fail"];
}

Checklist

  1. Read design.md and verify the SHA-256 sidecar matches.
  2. Draft the pushy frontmatter description.
  3. Draft the Anti-Pattern section.
  4. Draft the Step Details for each checklist item.
  5. Draft the Rationalization Table rows.
  6. Draft the Red Flags list.
  7. Draft the Bottom Line script.
  8. Run bash -n on the Bottom Line fence.

Step Details

1. Read design.md and verify the SHA-256 sidecar matches

Run integrity-hash.sh on design.md. Confirm the emitted hash equals the contents of design.md.sha256. Block on mismatch.

2. Draft the pushy frontmatter description

Write the description field so it covers the trigger surface. Name the stage, list real user phrasings in quotes ("when the user says ..."), and include every VERDICT token emitted at stage exit. Read references/canonical-anatomy.md section "Frontmatter description" for the template and before/after example.

3. Draft the Anti-Pattern section

Quote the exact rationalization an author would use to skip or shortcut the stage. First sentence must contain a quoted phrase.

4. Draft the Step Details for each checklist item

One H3 per checklist item, numbered to match. Keep prose imperative. Read references/canonical-anatomy.md for section shapes.

5. Draft the Rationalization Table rows

Three or more rows. Every Reality must be stricter than its You-think. Read references/rationalization-table-patterns.md for canonical row forms.

6. Draft the Red Flags list

Bulleted quoted fragments only. No em-dash explanation tails. Read references/canonical-anatomy.md for the Red Flags rule.

7. Draft the Bottom Line script

Write the executable bash fence. Read references/bottom-line-script-examples.md for stage-exit protocol shapes. Emit VERDICT: AUTHOR_DONE on success or VERDICT: BLOCKED_TAMPER on drift.

8. Run bash -n on the Bottom Line fence

Extract the fenced block and run bash -n against it. Fix any syntax errors before emitting AUTHOR_DONE.

Gate Functions

  • BEFORE re-reading design.md: "Did I verify its SHA-256 sidecar in this session?"
  • BEFORE writing the Anti-Pattern: "Did I quote the exact rationalization that would cause skipping the stage?"
  • BEFORE writing Rationalization Table rows: "Is every Reality stricter than its You-think?"
  • BEFORE emitting AUTHOR_DONE: "Does the frontmatter description name trigger phrasings AND at least one verdict token?"
  • BEFORE emitting AUTHOR_DONE: "Did bash -n pass on the Bottom Line fence?"

Rationalization Table

You think...Reality
"The Integrity Block is close enough"Treat any drift as BLOCKED_TAMPER. Rehash or rewrite.
"I can add a library name in the Step Details"Library names in any body section fail LINT-005. Rewrite before committing.
"The Bottom Line does not need bash -n if it looks right"Syntax errors surface at pipeline time, not authoring time. Run bash -n now.

Red Flags

  • "The Integrity Block is close enough"
  • "I can fix the hash after committing"
  • "The library name is just a detail"
  • "bash -n is optional for simple scripts"

Key Principles

  • Integrity Block is immutable. Any edit invalidates the sidecar.
  • No library names in the body. Tool names belong in references only.
  • bash -n before AUTHOR_DONE. Every Bottom Line must pass syntax check.

The Bottom Line

#!/usr/bin/env bash
set -euo pipefail
design_path="${1:-docs/skill-cheat/skills-in-progress/<skill-name>/design.md}"
sidecar="${design_path}.sha256"
if [[ ! -f "$sidecar" ]]; then
  echo "VERDICT: BLOCKED_TAMPER"
  exit 1
fi
stored="$(cat "$sidecar")"
actual="$(shasum -a 256 "$design_path" | awk '{print $1}')"
if [[ "$stored" != "$actual" ]]; then
  echo "VERDICT: BLOCKED_TAMPER"
  exit 1
fi
echo "VERDICT: AUTHOR_DONE"

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.