The meta-skill that builds and improves all your skills, including itself. Watches your work sessions (autonomous or human-led), captures patterns, corrections and judgement calls, and turns them into skill improvements and new skill candidates for your review. Practical application of the Augmented Expertise methodology. Open source: CC BY 4.0.
Python agent-skillsai-skillsaugmented-expertiseawesome-skillsclaudeclaude-codeclaude-code-skillclaude-code-skillsclaude-coworkclaude-skillsmeta-skillrebelyticsskill-automationskill-builderskill-creationskill-improvementskill-managementskills
Log writes: frontmatter by printf, body by a quoted heredoc
Eoghan Hennc5059a79bcab
diff --git a/SKILL.md b/SKILL.mdindex e69e6e9..2270737 100644--- a/SKILL.md+++ b/SKILL.md@@ -292,13 +292,11 @@ bounded point") and log the evidenced problem report, not a fifth probe.**Do NOT log:** one-off corrections that don't generalise; preferencesalready captured in a skill; tool bugs unrelated to methodology;observations needing proprietary client information to be useful in an-open-source skill (unless an internal skill is the right home). The-generalisability test, when unsure: would this still make sense in another-project, and for another task using the same skill? Does it name a missing-rule, step or principle rather than fix this task? Is it likely to recur?-Mostly no → task context, not an observation. Before minting a-`proposes_skill` name, reuse a fitting existing candidate — independently-logged proposals for one skill rarely share a name.+open-source skill (unless an internal skill is the right home). When+unsure, run `references/signals.md` ("The generalisability test"): mostly+no → task context, not an observation. Before minting a `proposes_skill`+name, reuse a fitting existing candidate — independently logged proposals+for one skill rarely share a name.**Check for a restatement before writing.** Before creating the file,list the open observations that name the same target skill (the scan at@@ -445,8 +443,10 @@ The guard line distinguishes "the log says zero" from "I could not readthe log", the sweep's count does the same for the archival loop, the prefixguard refuses a number already in use under any slug, and the `noclobber`create refuses an existing path — write the body only after that create-succeeds. Load `references/observation-log.md` ("The guard line, the sweep's-count and the noclobber create") when any of them fires.+succeeds, with the editing tool or a QUOTED heredoc, never an unquoted+one: `references/observation-log.md` ("Editing an existing observation").+Load `references/observation-log.md` ("The guard line, the sweep's count+and the noclobber create") when any of them fires.**Run the snippet immediately before EVERY write, including the first andonly one of a session** — an earlier read of the log is not a substitute,diff --git a/references/observation-log.md b/references/observation-log.mdindex 78f05f6..64a0ea7 100644--- a/references/observation-log.md+++ b/references/observation-log.md@@ -965,11 +965,29 @@ it: the file is created, it looks superficially right, and parts of itscontent have been replaced by the output of commands. Quote the delimiter(`<<'OBS'`) whenever a shell write is genuinely the only path — a`set -C` noclobber create has no editing-tool equivalent — and prefer the-editing tool everywhere else.+editing tool everywhere else. Where the shell is that only path, write the+frontmatter with `printf` and the body with a QUOTED heredoc: quoting the+delimiter disables every substitution, so the body cannot carry+variables, and the id and the dates go in the `printf` above it —-If a shell write happened anyway, **verify the file is still text before-doing anything else**: `file "$f"` or a `grep -c ''` that does not answer-"Binary file matches".+```bash+printf -- '---\nid: %s\ntitle: "%s"\nstatus: open\ndate: %s\n' "$next_id" "$title" "$(date +%F)" > "$f" # …the remaining fields, then the closing ---+cat >> "$f" <<'OBS'+**Issue:** … `find -exec` … $(date) … written literally, none of it run+OBS+```++The same rule covers `echo -e` and any `"$(cat <<…)"` form. Exit code 0+is not evidence: the unquoted form creates the file, produces valid+Markdown with a parsing header, and the scan reports it healthy, so the+damage is in the body that nothing reads until a review opens it.++If a shell write happened anyway, **verify the file in the same turn,+before doing anything else**: `file "$f"` or a `grep -c ''` that does not+answer "Binary file matches", and a re-read of the body — one that came+out shorter than you wrote, or that contains a command's output where+the explanation was, is the heredoc failure. Checking later means+checking never.**A declined entry records a verdict; without its premise the verdictcannot be revisited.** `declined` means someone judged an alternative