Skip to content

refactor(autopilot): move phase prompts out of .claude/skills into tools/autopilot/prompts#848

Merged
takaokouji merged 1 commit into
developfrom
refactor/autopilot-prompts-out-of-skills
Jul 1, 2026
Merged

refactor(autopilot): move phase prompts out of .claude/skills into tools/autopilot/prompts#848
takaokouji merged 1 commit into
developfrom
refactor/autopilot-prompts-out-of-skills

Conversation

@smalruby3-editor-bot

Copy link
Copy Markdown

Summary

autopilot のフェーズプロンプトは .claude/skills/autopilot-*Claude Code Skill だったため、開発者が誤って /autopilot-implement 等でスラッシュ起動でき、期待どおり動かない恐れがあった。これらは手動起動を想定していない。

tools/autopilot/prompts/<phase>.md(ただの Markdown プロンプト。Skill ではない)へ移動し、autopilot がそれを参照する形にする。.claude/skills/ から外れるので Skill として登録されず、スラッシュ誤起動が不可能になる。

Changes

  • 7 つの SKILL.mdtools/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 で生成。
  • docs(autonomous-contract / README)と MIT LICENSE のスコープを更新、用語「スキル」→「プロンプト」。「これは Skill ではない」旨を明記。

Test

  • tools/autopilot の node:test 140 件 green(phasePromptCommand のテスト追加)。
  • モジュール読み込み・残存 .claude/skills/autopilot 参照ゼロを確認。

注意

マージ後、daemon を develop から再起動すると新しいプロンプト参照方式が有効化されます(Runner の起動メッセージ変更のため)。

🤖 Generated with Claude Code

…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 takaokouji merged commit 94e678f into develop Jul 1, 2026
2 checks passed
@takaokouji takaokouji deleted the refactor/autopilot-prompts-out-of-skills branch July 1, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant