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
Name the ./<path> form for a file of the repository a skill works on
Eoghan Henn734a2f60986d
diff --git a/references/skill-authoring.md b/references/skill-authoring.mdindex 9cf8a0e..bd008de 100644--- a/references/skill-authoring.md+++ b/references/skill-authoring.md@@ -846,15 +846,19 @@ re-check exists, do not record the value — record how to obtain it.has its file in the staged set — a path qualified with an owning skillname (`<skill-name>/references/<file>`) is a cross-reference, exempt byconstruction, and that is the convention for citing another skill's- file (weekly-review.md, Delivery). The validator extracts a path that+ file; a file in the repository the skill operates on is cited+ repository-relative (`./scripts/<file>`), exempt the same way in prose+ and in command position — the convention for that case, not the+ disguise the gate forbids (both: weekly-review.md, Delivery); the+ skill's own files keep the bare prefix, since either spelling would+ pass one that is missing. The validator extracts a path thatfills a whole backtick span, and also one in command position — afteran interpreter (`python3`, `py`, `bash`, `node`, `uv run` …) inside aninline span or a fenced block, with arguments behind it — while a barepath quoted as an example with no interpreter stays unchecked. For thePython and shell families the interpreter's own options are skipped- first (`py -3`, `python3 -X utf8`, `python -u`, `bash -eu`,- `bash -o pipefail`), and `-m` or `-c` means no script follows, so- `python3 -m pytest scripts/t.py` is not checked. It also warns+ first (`py -3`, `bash -eu`), and `-m` or `-c` means no script follows,+ so `python3 -m pytest scripts/t.py` is not checked. It also warnson every `$` followed by a digit, and on `$ARGUMENTS`, in SKILL.md: aloader that passes skill arguments rewrites them in the delivered body(the file on disk is unchanged), so an awk field reference there isdiff --git a/references/weekly-review.md b/references/weekly-review.mdindex 2411874..c964408 100644--- a/references/weekly-review.md+++ b/references/weekly-review.md@@ -1821,9 +1821,11 @@ Pre-delivery gate (run as the last stepbefore presenting; the authoring detail for items 1–5 is in`references/skill-authoring.md`, editing rule 5): (1) every UNQUALIFIED`references/`, `scripts/`, `assets/` path in the staged SKILL.md body has-its file in the staged set — re-wording a genuine cross-reference-until the backtick no longer starts with the prefix is disguising a-reference to satisfy a linter, not fixing a defect; (2) the artefact presented is the+its file in the staged set — another skill's file is cited as+`<skill-name>/<path>`, a file in the repository the skill operates on as+`./<path>`, both exempt and neither a disguise; re-wording a genuine+cross-reference until the backtick no longer starts with the prefix is+disguising a reference to satisfy a linter, not fixing a defect; (2) the artefact presented is thebundle — bare file links fail this gate — and every staged bundle ispresented (Step 8's staged/presented count); the number of cards is nevera reason to present fewer, since one call carries them all and each carddiff --git a/scripts/validate-skill-bundle.py b/scripts/validate-skill-bundle.pyindex 6fdc20d..783bd7e 100644--- a/scripts/validate-skill-bundle.py+++ b/scripts/validate-skill-bundle.py@@ -860,16 +860,24 @@ def check_dir(skill_dir, fails):# the reserved prefix IMMEDIATELY after the backtick, which means a path# qualified with its owning skill's name — `<skill-name>/references/x.md` —# does not match and is exempt by construction. That qualified form is how a- # skill cites a file belonging to a different skill; re-wording a legitimate- # cross-reference so the backtick no longer starts with the prefix is not.- # The failure message names the convention, because a false FAIL here is+ # skill cites a file belonging to a different skill. A skill that operates+ # on a repository names that repository's `scripts/` files too, in prose and+ # in run commands; the convention for those is the repository-relative+ # form, `./scripts/x.py`, exempt the same way (the `./` is not the prefix),+ # in prose and in command position alike. Both forms are conventions, not+ # disguises: re-wording a legitimate cross-reference so the backtick no+ # longer starts with the prefix is. Either form also passes a skill's OWN+ # missing file spelt that way — the same trade-off, accepted for both.+ # The failure message names both conventions, because a false FAIL here is# otherwise indistinguishable from a genuinely missing file.for rel in sorted(set(PATH_RE.findall(text)) | command_paths(text)):if not (skill_dir / rel).is_file():fails.append(f"cited path missing from staged set: {rel} "f"— if this file belongs to another skill, cite it as "- f"`<skill-name>/{rel}`, which this check exempts")+ f"`<skill-name>/{rel}`; if it is a file in the repository the "+ f"skill operates on, cite it as `./{rel}`; both forms are "+ f"exempt from this check")# exactly one frontmatter block: a second `---` block (or stray# name:/description: lines) directly after the first is a duplicated# header that every field check passes by construction@@ -1082,6 +1090,7 @@ COMMAND_PATH_FIXTURES = [("uv run", "`uv run scripts/a.py`\n", {"scripts/a.py"}),("quoted example with no interpreter is skipped", "e.g. `scripts/x/generate.py --logo l.png`\n", set()),("qualified path is skipped", "`python3 other-skill/scripts/a.py`\n", set()),+ ("repository-relative ./ path is skipped", "`python3 ./scripts/report.py --check`\n", set()),("path outside code is skipped", "python3 scripts/a.py in prose\n", set()),("py launcher", "`py scripts/a.py`\n", {"scripts/a.py"}),("py -3 version selector", "`py -3 scripts/a.py --x`\n", {"scripts/a.py"}),@@ -1100,6 +1109,25 @@ COMMAND_PATH_FIXTURES = []+# The cited-path check end to end, over a minimal staged skill with no+# scripts/: (name, SKILL.md body, substring every failure must carry, or None+# when the body must pass). The `./` and `<skill-name>/` spellings are the two+# exemptions the failure message names.+CITED_PATH_FIXTURES = [+ ("unqualified prose path fails, naming both conventions",+ "The `scripts/report.py` vs `pkg/` collision fails partial runs.\n",+ "cite it as `./scripts/report.py`; both forms are exempt"),+ ("unqualified command path fails the same way",+ "Run `python3 scripts/report.py --check` first.\n", "cite it as `./scripts/report.py`"),+ ("repository-relative prose path passes",+ "The `./scripts/report.py` vs `pkg/` collision fails partial runs.\n", None),+ ("repository-relative command path passes",+ "Run `python3 ./scripts/report.py --check` first.\n", None),+ ("another skill's qualified path passes",+ "See `other-skill/references/x.md`.\n", None),+]++ROUNDTRIP_FIXTURES = [("fresh pack round-trips", lambda src: None, False),("directory edited after packing fails",@@ -1373,6 +1401,22 @@ def selftest():ok = command_paths(text) == wantbad += not ok; total += 1print(f"{'ok ' if ok else 'FAIL'} command path: {name}")+ for name, body, want in CITED_PATH_FIXTURES:+ with tempfile.TemporaryDirectory() as td:+ sk = pathlib.Path(td) / "cp"+ sk.mkdir()+ (sk / "SKILL.md").write_text('---\nname: cp\ndescription: "D."\n---\n' + body,+ encoding="utf-8")+ import contextlib+ import io+ fails = []+ with contextlib.redirect_stdout(io.StringIO()):+ check_dir(sk, fails)+ cited = [f for f in fails if f.startswith("cited path missing")]+ ok = (not fails) if want is None else (len(cited) == 1 and want in cited[0])+ bad += not ok; total += 1+ print(f"{'ok ' if ok else 'FAIL'} cited path: {name}"+ + ("" if ok else f" (fails {fails})"))for name, after_pack, must_fail in ROUNDTRIP_FIXTURES:ok = roundtrip_case(after_pack) == must_failbad += not ok; total += 1