Repository navigation
Stop gstack-doctor flagging gstack's own CLAUDE.md as a pasted skill list - #4324
alexanderhaire wants to merge 2 commits into
Conversation
…list Run from inside a gstack checkout, the doctor's CLAUDE.md row read gstack's development guide as the project's CLAUDE.md. The guide opens with "# gstack development", so the whole file counted as one gstack section, and its 25 /skill mentions tripped the "lists N skills" warning. The suggested fix would replace the whole guide with a two-line block. check_claude_md now skips a CLAUDE.md at the root of a gstack tree (setup, VERSION and bin/gstack-relink, the markers setup's _gstack_target_is_ours uses) and names the skipped file in the row. A real skill list in ~/.claude/CLAUDE.md or in another project's CLAUDE.md still warns.
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
An error occurred while submitting your PR to the queue: |
|
Thank you, @alexanderhaire. I checked this against main at 1d3c63c: |
|
Thank you for this. We're picking up the idea. A maintainer agent working through a batch of fixes (our tracking thread GSTA-801) will first reproduce the problem on current main. If it reproduces, the agent rebuilds the fix on main with you credited as co-author, because we don't merge outside branches directly, and we'll close this PR with a link when it lands. If it no longer reproduces, we'll close this and say what changed. |
|
Thank you. Your doctor change and test were rebuilt on current main and landed in #4682, with you credited as co-author, so gstack-doctor no longer flags gstack's own CLAUDE.md. Closing this in favour of that PR. |

Running gstack-doctor from inside a gstack checkout no longer warns about gstack's own CLAUDE.md, so the readiness report flags only skill lists someone actually pasted.
Why (in your own words)
I ran
gstack-doctorfrom inside my install (~/.claude/skills/gstack) and its CLAUDE.md row warned that the gstack section there lists 25 skills. That file is gstack's own development guide, not a skill list I pasted. It opens with# gstack development, so the check reads the whole file as one gstack section and counts every/skillit mentions. The fix line says to replace that section with a two-line block, which would replace the entire guide. Anyone who runs the doctor from their gstack folder sees this. Acd <install root> && ./setupfix line leaves you in that folder, and the bug template has users of other hosts run the doctor from there. This change skips a CLAUDE.md at the root of a gstack tree (setup, VERSION and bin/gstack-relink, the markers setup already uses to recognize one) and names the skipped file in the row. A real skill list in~/.claude/CLAUDE.mdor in another project's CLAUDE.md still warns.Live evidence
Before, main at 0ead11c (
check_claude_mdis unchanged at 4414f4c), run from the checkout root. Doctor output here shows only the CLAUDE.md row and the summary line, with paths shortened.My real install (1.99.0.0) shows the same row when the doctor runs from inside
~/.claude/skills/gstack, and an ok row when it runs from another folder:After, this branch, same checkout:
The new test, first with main's
bin/gstack-doctor(4414f4c), then with this branch's:Scope
check_claude_mdinbin/gstack-doctorskips a CLAUDE.md at the root of a gstack tree and names it in the row. One test intest/gstack-doctor-launch.test.ts, one sentence underdocs/troubleshooting.md#claude-md-skill-list, and a changelog fragment.typechecklocally. CI's free-tests runs them.Liveness proof (required for external contributors)
Checklist
GSTACK PRtyped live into a real surface) or PR author is@garrytan(owner exemption)