Repository navigation
Load the Factory skills from the worktree as thirdshift-<skill>, replacing the Claude plugin - #400
Merged
Merged
Conversation
The Factory skills stop being a Claude plugin. Each is renamed thirdshift-<skill> in skills/, and names the others in plain prose. thirdshift writes them out once per Command and links each into the worktree's .claude/skills/, kept out of git by a /.claude/skills/thirdshift-* entry in .git/info/exclude, added once. No session gets --plugin-dir, and each prompt's first line is /thirdshift-<skill>. Restores resolving-merge-conflicts, dropped from skills/ by a skills update though the conflict Repair prompts still invoke it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ory skills (#391) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 5, 2026
Closed
Merged
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.
Summary
The Factory skills stop being a Claude plugin. Each is renamed
thirdshift-<skill>inskills/and names the others in plain prose. thirdshift writes them out once per Command and links each one into the Run's worktree, where Claude Code finds project skills. See ADR 0012.prompts/and the Prompts and skills page are regenerated. The home page links point to the new skill anchors. ADR 0001's plugin consequence is marked as replaced by ADR 0012.resolving-merge-conflictshad been dropped fromskills/by a skills sync (a2afa36), but the conflict Repair prompts still invoke it. It is restored here asthirdshift-resolving-merge-conflicts. That also fixesfresh_run's skills test, which was already failing on the base branch.Evidence
cargo test --test fresh_run→loads_every_factory_skill_as_the_thirdshift_pluginFAILED (skill resolving-merge-conflicts missing from the plugin). Sessions got--plugin-dir.After:
cargo testpasses in full.cargo clippy --all-targetsis clean. The new and changed tests:The fake
claudenow snapshots the skills from its worktree's.claude/skills/, following the links, instead of from a plugin directory.Merge Danger
Door: two-way
Revert to bring the plugin back. The
.git/info/excludeentry it adds to each target repository stays behind, but it's harmless.Blast Radius: every-session
Every session of every Command now finds its skills in the worktree rather than through
--plugin-dir. If Claude Code didn't pick up project skills from a worktree's.claude/skills/symlinks, every Run would lose its skills. A target repository that already has its own.claude/skills/thirdshift-*file or link gets it replaced in the worktree. A real directory under that name fails the Run.Unaddressed findings
Standards
static WRITTEN: Mutex<Option<TempDir>>instead of an owned value passed down (temporal coupling). Skipped. "Once per Command" spans an Architect run's review and the Run it dispatches, and passing a value down would mean threading it throughrun::run_to_end,AsksandDelivery. The global follows the existinglogsmodule pattern,remove_writtenis called once inStarted::finish, and the tests' empty-$TMPDIRchecks would catch a leak. Choose the Harness, Model and Effort on the command line and in the User config, with Claude #392 threads the Harness through the same path and can carry this along if wanted.thirdshift-prefix is a bare string in several places (EXCLUDE,skill_used_byarms, testFACTORY_SKILLS, fake's filter). Skipped. The occurrences sit across the crate/test boundary, andskill_used_bypanics on any skill it doesn't know, so drift is caught.Spec
/thirdshift-<skill>. Skipped. They never invoked a skill, and no Factory skill fits them. Every prompt that invokes a skill starts with it.Sessions::within, which links the skills, and the tests already cover a Resume, a Repair and every session kind in a dispatched Spec run.thirdshift-resolving-merge-conflictsgoes beyond the rename. Kept on purpose. The conflict Repair prompts invoke it, so without it their first line would name a missing skill.Started::finishwould leak the temp dir. A kept Failed-run worktree keeps dangling links. Skipped. No path that runs a session skipsfinish. The dangling links are excluded from git and replaced when the Run continues..claude/skills/thirdshift-*directory in a target repository fails the link. Skipped as an unlikely edge case outside the spec. The failure names the path.Closes #391
🤖 Generated with Claude Code