Hooks at named sections inside a command, not only before and after it

オープン
#5,340 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
markdown, python
領域
tooling

調査の方向性

Start by reading the core command templates and the existing hook implementation; the issue does not name specific files or tests. Trace how hooks run before and after whole steps, then check how section markers could identify hook points within a command. Done means hooks can run before or after named sections while existing commands and hooks without section names continue to work.

索引モデルが issue の本文から書いたものです。

説明

triage-nice-to-have

Hooks today run before or after a whole step (before_plan, after_tasks). There is no way to run something in the middle of a step, such as after the plan's design and before its constitution check, without forking the command file.

Proposal

  • Mark named sections in the core command templates, for example <!-- section: design -->.
  • Let a hook name a section: before: plan.design or after: tasks.generate.
  • Commands with no marked sections, and hooks with no section, work exactly as they do now.

Why
A team that wants one extra check at one point has to copy the whole command today, and the copy misses every upstream change. We run this model in the SpecKit Companion extension (named nodes plus hooks before or after any of them), and it has removed most of our reasons to fork a command.

Related: #2047.

AI disclosure: drafted with Claude Code (Claude Opus 5.5, default settings); I checked it before posting.

主要言語
Python
スター
149k
フォーク
13.4k
平均マージ
1日 5時間
マージ済み PR(30日)
223

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/spec-kit のほかの issue

github/spec-kit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。