refactor(autopilot): move phase prompts out of .claude/skills into tools/autopilot/prompts#848
Merged
Conversation
…ols/autopilot/prompts The phase prompts were Claude Code skills under .claude/skills/autopilot-*, so a developer could accidentally invoke them (e.g. /autopilot-implement) and get unexpected behavior. They are not meant for manual invocation. Move them to tools/autopilot/prompts/<phase>.md (plain Markdown prompts, not skills) and have the Runner reference them: - git mv the 7 SKILL.md files to tools/autopilot/prompts/, strip the skill frontmatter, drop the $ARGUMENTS (slash-arg) references in favor of the AUTOPILOT_ISSUE env var. - add phasePromptCommand(skill, issue) in phases.js: the Runner now sends a "Read tools/autopilot/prompts/<skill>.md and follow it (AUTOPILOT_ISSUE=N)" message instead of a /autopilot-* slash command. - update runner.js to build the launch message via phasePromptCommand. - repoint docs (autonomous-contract / README) and the MIT LICENSE scope; rename the "skill" wording to "prompt". Add a note that these are prompts, not skills. Since they no longer live under .claude/skills/, they are not registered as Claude Code skills and cannot be slash-invoked by mistake.
takaokouji
approved these changes
Jul 1, 2026
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
autopilot のフェーズプロンプトは
.claude/skills/autopilot-*の Claude Code Skill だったため、開発者が誤って/autopilot-implement等でスラッシュ起動でき、期待どおり動かない恐れがあった。これらは手動起動を想定していない。→
tools/autopilot/prompts/<phase>.md(ただの Markdown プロンプト。Skill ではない)へ移動し、autopilot がそれを参照する形にする。.claude/skills/から外れるので Skill として登録されず、スラッシュ誤起動が不可能になる。Changes
SKILL.mdをtools/autopilot/prompts/へgit mv。skill frontmatter を除去し、$ARGUMENTS(スラッシュ引数)参照をAUTOPILOT_ISSUE環境変数に統一。phases.js:phasePromptCommand(skill, issue)を追加。Runner は/autopilot-*スラッシュではなく 「tools/autopilot/prompts/<skill>.mdを Read して従え(AUTOPILOT_ISSUE=N)」 というメッセージを送る。runner.js: 起動メッセージをphasePromptCommandで生成。Test
tools/autopilotの node:test 140 件 green(phasePromptCommandのテスト追加)。.claude/skills/autopilot参照ゼロを確認。注意
マージ後、daemon を develop から再起動すると新しいプロンプト参照方式が有効化されます(Runner の起動メッセージ変更のため)。
🤖 Generated with Claude Code