Repository navigation
feat(skills): add the retrospective skill as a firstmate-loaded captain skill - #14
Merged
Merged
Conversation
added 5 commits
September 6, 2026 00:19
…tain skill Moves the captain's personal ~/.claude/skills/retrospective/ into .agents/skills/retrospective/ so it loads with the rest of the fleet and is reachable from every firstmate home, not just this workstation. Private session material (dated reports, pre-compact captures) stays out of the public repo; only the report/pre-compact directories and their .gitkeep markers ship, gitignored for future writes.
…nged-test selector
…n audience inventory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Move the captain's personal ~/.claude/skills/retrospective/ skill into the firstmate repo at .agents/skills/retrospective/ so it is firstmate-loaded and captain-invocable as /retrospective (captain instruction 2026-09-06: "move the retrospective skill in firstmate home and push it to my github"). Firstmate will delete the user-level copy after this PR lands, so the repo copy is now the sole source.
Scope, decided with the captain's crewmate brief:
No project AGENTS.md changes were needed beyond what's above - this is the firstmate repo's own shared tracked material change, reviewed under firstmate-coding-guidelines. Commit message intentionally has no agent co-author per repo convention.
What Changed
.agents/skills/retrospective/withSKILL.md(frontmatteruser-invocable: true,metadata.internal: true, matchingbearingsandstow) andreference.md; Step 6's non-repo report fallback now redirects to the firstmate home's own.agents/skills/retrospective/reports/when running inside a firstmate home, mirroring the existing harness-auto-memory override.reports/.gitkeepand gitignore.agents/skills/retrospective/reports/*(except the.gitkeep) so dated retrospective reports are never committed; document the directory in the AGENTS.md layout inventory./retrospectivein the README "Built-in skills" table, classify both skill files asagent-runtimeindocs/documentation-audiences.json, and teachbin/fm-test-run.shto map.agents/skills/*/reference.mdto the pure-contract-unit suite and.agents/skills/*/reports/.gitkeepto no suite.Risk Assessment
✅ Low: The change is a verbatim skill move plus two frontmatter lines, a scoped Step 6 path override, a gitignore rule verified to ignore reports while keeping .gitkeep, and a README row; the fix round removed only the unused pre-compact scaffolding as the captain instructed, with no logic or shared-code impact.
Testing
Verified the retrospective skill lands in the repo as the sole source: a diff against the captain's personal copy shows a verbatim copy with only the intended frontmatter and Step 6 firstmate-home override added, git tracks only SKILL.md, reference.md, and reports/.gitkeep, git check-ignore proves future reports and a KILL-CRITERION ledger under reports/ stay uncommitted while .gitkeep stays visible, the skill resolves through the .claude/skills symlink, frontmatter parses identically to bearings and stow, and README lists /retrospective. The documentation-audience test and check, the gitignore test, the changed-test selector listing, the coverage guard, and the runner self-test all pass; no findings. The three pre-existing failures noted in round 2 were not re-run since they were already shown to fail identically at the base commit.
Evidence: Diff of repo skill vs captain's personal copy (only frontmatter + Step 6 override differ)
Source: Diff of repo skill vs captain's personal copy (only frontmatter + Step 6 override differ)
Evidence: Tracked files, gitignore semantics, symlink resolution, YAML frontmatter parity, README table
Source: Tracked files, gitignore semantics, symlink resolution, YAML frontmatter parity, README table
$ git ls-files .agents/skills/retrospective .agents/skills/retrospective/SKILL.md .agents/skills/retrospective/reference.md .agents/skills/retrospective/reports/.gitkeep $ git check-ignore -v .agents/skills/retrospective/reports/KILL-CRITERION.md .gitignore:14:.agents/skills/retrospective/reports/* .agents/skills/retrospective/reports/KILL-CRITERION.md $ git check-ignore -v .agents/skills/retrospective/reports/.gitkeep exit=1 $ git status --porcelain .agents/skills/retrospective (expect empty) $ readlink .claude/skills ../.agents/skills resolved: .claude/skills/retrospective/SKILL.md retrospective name="retrospective" user-invocable=true metadata={"internal"=>true} bearings name="bearings" user-invocable=true metadata={"internal"=>true} stow name="stow" user-invocable=true metadata={"internal"=>true} assert ok: retrospective frontmatter matches bearings/stow shapeEvidence: Documentation audience test and check
Source: Documentation audience test and check
ok - documentation inventory classifies every maintained prose surface exactly once ok - classification, setup routing, and maintained-prose scope fail safely ok - required documentation owner pointers cannot silently disappear ok - local links resolve while dates, versions, commands, and incident prose remain semantically reviewed $ bin/fm-doc-audience-check.sh fm-doc-audience-check: ok surfaces=79 local_links=272Evidence: Changed-test selector, coverage guard, runner self-test
Source: Changed-test selector, coverage guard, runner self-test
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 3 issues found → auto-fixed ✅
.agents/skills/retrospective/pre-compact/.gitkeep:1- The intent describes reports/ and pre-compact/ as "the directories the skill writes into", but nothing in this repo writes to or reads from .agents/skills/retrospective/pre-compact/. The moved SKILL.md and reference.md never mention pre-compact captures (grep for "compact" only hits memory_recall format). The only producer is the captain's user-level PreCompact hook ~/.claude/hooks/retro-precompact-snapshot.sh, which hardcodes OUT_DIR="$HOME/.claude/skills/retrospective/pre-compact". Once firstmate deletes the user-level copy after this PR lands, that hook keeps writing to the deleted personal path (recreating it), and the repo's pre-compact/ directory plus its .gitignore rule stay permanently empty scaffolding. This is conformant with the intent as written (it explicitly asks for pre-compact/.gitkeep), so it is flagged for the author's decision rather than fixed: either drop the pre-compact/ directory and its two .gitignore lines, or (out of scope for this change) point the hook / a repo-owned hook at the firstmate-home path so the directory is actually used..agents/skills/retrospective/SKILL.md:264- Step 264 tells the skill to append every run to reports/KILL-CRITERION.md as a never-rewritten ledger. With reports/* gitignored and the existing ledger deliberately not copied, that ledger now restarts empty per firstmate home and is never versioned. That matches the intent's privacy decision, but the text still reads as if a continuous history exists; a one-line note that the ledger is local-only and starts fresh in each home would keep the claim honest..agents/skills/retrospective/SKILL.md:266- The rationale paragraph cites ~/firstmate/data/retro-critique-notebooklm/report.md, a captain-private path that does not exist in this repo or on any other installer's machine. Harmless for behavior, but it is a dangling reference in a public skill file; consider citing the date only or a repo-tracked location.🔧 Fix: drop unused pre-compact dir and gitignore rules
✅ Re-checked - no issues remain.
🔧 **Test** - 1 issue found → auto-fixed (2) ✅
bin/fm-test-run.sh:1029- bin/fm-test-run.sh --changed --base e8613e9 failed with exit 2 ('no changed-test mapping for source path: .agents/skills/retrospective/reference.md') because the changed-file map only knew .agents/skills//SKILL.md, so contributors following CONTRIBUTING.md could not select tests on this branch. Fixed by mapping .agents/skills//reference.md to pure-contract-unit and .agents/skills/*/reports/.gitkeep to no suite (same as .gitignore). The runner's own test suite and --check-coverage pass after the change.ruby -ryamlparse of SKILL.md frontmatter for retrospective, bearings, stow: all yield name, user-invocable: true, metadata.internal: truetest -f .claude/skills/retrospective/SKILL.mdand reference.md through the .claude/skills -> .agents/skills symlinkdiffof body vs ~/.claude/skills/retrospective/SKILL.md (only Step 6 override differs) anddiff -qof reference.md (identical)Simulated Step 6 non-repo fallback inside the firstmate home: wrote a dated report and KILL-CRITERION.md to .agents/skills/retrospective/reports/,git check-ignore -vmatched .gitignore:14,git status --porcelainempty,git ls-filesshows .gitkeep trackedgit ls-tree -r HEAD .agents/skills/retrospective/shows only SKILL.md, reference.md, reports/.gitkeep; no pre-compact/ directoryREADME/retrospectiverow present and its link target existsbin/fm-test-run.sh --list --changed --base e8613e9(failed exit 2 before fix, 32 scripts after fix)bin/fm-test-run.sh tests/fm-test-run.test.sh(FM_TEST_SUMMARY total=1 failed=0)bin/fm-test-run.sh --check-coverage(FM_TEST_COVERAGE ok total=157)🔧 Fix: map skill reference.md and reports/.gitkeep in changed-test selector
2 issues (1 error, 1 info) still open:
docs/documentation-audiences.json:187- tests/fm-documentation-audiences.test.sh failed at target d91df1d because bin/fm-doc-audience-check.sh reportedunclassified: .agents/skills/retrospective/SKILL.md, .agents/skills/retrospective/reference.md; the inventory must classify every tracked prose surface, and the intent's claim that this check passed no longer held once reference.md and SKILL.md were added. The same check passes at base commit e8613e9 in a real git checkout, so the branch introduced it. Fixed by inserting twoagent-runtimeentries (matching bearings/stow) in alphabetical position; the check now reports ok surfaces=79 and the test passes.bin/fm-test-run.sh:1029- Three scripts selected by--changed --base e8613e9fail on this machine (fm-bearings-board:fm-captain-hold: compatible tasks-axi is required; fm-calm-pi-extension: Node ExperimentalWarning about type stripping leaks to output; fm-composer-lib: half-block rule row edge). All three fail identically at the base commit, so they are environment/pre-existing and not caused by this change.claude -p --model haiku --setting-sources project --tools Skillin the worktree: listsretrospectiveamong loaded skills; same command at base commit e8613e9 answersNo.git check-ignore -von a file written into .agents/skills/retrospective/reports/ (ignored via .gitignore:14) and on reports/.gitkeep (not ignored);git status --porcelainempty afterwardsbin/fm-test-run.sh --changed --base e8613e9(32 pure-contract-unit scripts selected, 4 failed)bash tests/fm-bearings-board.test.sh,tests/fm-calm-pi-extension.test.sh,tests/fm-composer-lib.test.sh,tests/fm-documentation-audiences.test.shre-run at base commit e8613e9 to classify failuresbin/fm-doc-audience-check.shat base (ok surfaces=77) and at target (unclassified retrospective files) then after the inventory fix (ok surfaces=79)bash tests/fm-documentation-audiences.test.shafter fix: 4/4 ok🔧 Fix: classify retrospective skill files in documentation audience inventory
✅ Re-checked - no issues remain.
diff -u ~/.claude/skills/retrospective/SKILL.md .agents/skills/retrospective/SKILL.mdand same for reference.md (only frontmatter + Step 6 override differ; reference.md identical)git ls-files .agents/skills/retrospective(only SKILL.md, reference.md, reports/.gitkeep tracked; no private session material)git check-ignore -von created reports/2026-09-06-*.md, reports/2026-09-06/nested.md, reports/KILL-CRITERION.md (ignored) vs reports/.gitkeep and SKILL.md (not ignored);git status --porcelain .agents/skills/retrospectiveempty with those files presentreadlink .claude/skills+test -f .claude/skills/retrospective/SKILL.md(skill resolves via the project symlink)ruby YAML parse of retrospective/bearings/stow SKILL.md frontmatter asserting name, user-invocable: true, metadata.internal: truegrep -n '^| \/' README.md` (Built-in skills table includes /retrospective)bash tests/fm-documentation-audiences.test.shbin/fm-doc-audience-check.shbash tests/fm-gitignore-config.test.shbin/fm-test-run.sh --changed --base e8613e9 --list(selector no longer fails closed on this branch)bin/fm-test-run.sh --check-coveragebin/fm-test-run.sh tests/fm-test-run.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.