Captain: nothing checks that a crew's CREW.md and AGENTS.md still match the templates

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, typescript
領域
devtools

調査の方向性

Start by reading the existing gstack-doctor, gstack-ship-queue train doctor, and gstack-skill-contract checks, then inspect the templates under captain/templates/ and how they are versioned by SHA. Define how the proposed read-only check evaluates each of the five listed findings, including unavailable inputs. Done means it reports those findings without rewriting crew files.

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

説明

enhancement S3

What happened

Rules drifted in a crew's files over a few weeks: a Captain's rule files grew to several hundred KB of local rules before the crew reset them from the templates. After the reset, nothing in gstack checks that they stay aligned.

  • gstack-doctor checks the install, runtime and hooks.
  • gstack-ship-queue train doctor checks the merge setup.
  • gstack-skill-contract checks skill contracts against Claude Code transcripts.

None of them compares a crew's CREW.md and AGENTS.md with captain/templates/ at a known SHA.

Suggestion

A read-only check, for example gstack-crew-check --crew <drive dir> --base <policy>, that a Captain can run in the daily issue sweep and after each gstack upgrade:

  1. Rules 1–24 match the template at the checked SHA, and every Home path exists.
  2. Every parameter is filled and agrees with the base policy and the live branch rules (reusing train doctor).
  3. Every crew-specific rule carries an owner date and the owner's words; one without them is reported as the controller's call.
  4. No rule or open issue points at a path that is missing or archived.
  5. The files' sizes, with a warning when they grow past a threshold, since growth is how the drift showed up.

It would report findings only and never rewrite rules. A missing input would print as unavailable, never as a pass.

Environment

  • Host: Capy (claude-code threads), Captain workflow
  • gstack: 1.99.0.0 (main at 554390da387d97c8b93dc2337c2ab41d4271e9f4)
主要言語
TypeScript
スター
143k
フォーク
21k
平均マージ
5時間 25分
マージ済み PR(30日)
791

環境構築

はじめの一歩

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

garrytan/gstack のほかの issue

garrytan/gstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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