Skip to content

Stop gstack-doctor flagging gstack's own CLAUDE.md as a pasted skill list - #4324

Closed
alexanderhaire wants to merge 2 commits into
garrytan:mainfrom
alexanderhaire:doctor-ignores-gstacks-own-claude-md
Closed

alexanderhaire wants to merge 2 commits into
garrytan:mainfrom
alexanderhaire:doctor-ignores-gstacks-own-claude-md

Conversation

@alexanderhaire

@alexanderhaire alexanderhaire commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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-doctor from 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 /skill it 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. A cd <install root> && ./setup fix 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.md or in another project's CLAUDE.md still warns.

Live evidence

Before, main at 0ead11c (check_claude_md is unchanged at 4414f4c), run from the checkout root. Doctor output here shows only the CLAUDE.md row and the summary line, with paths shortened.

$ ./bin/gstack-doctor
warn            CLAUDE.md       the gstack section in <checkout>/CLAUDE.md lists 25 skills; Claude Code lists installed skills itself, and a pasted list goes stale with each release
                                fix: replace that section with this short block (https://github.com/garrytan/gstack/blob/main/docs/troubleshooting.md#claude-md-skill-list):
                                  ## gstack
                                  Use /browse from gstack for all web browsing. Never use mcp__claude-in-chrome__* tools.
8 ok, 4 warn, 3 not configured, 0 fail

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:

warn            CLAUDE.md       the gstack section in ~/.claude/skills/gstack/CLAUDE.md lists 25 skills; ...
ok              CLAUDE.md       no gstack section lists skills (~/.claude/CLAUDE.md)

After, this branch, same checkout:

$ ./bin/gstack-doctor
ok              CLAUDE.md       no gstack section lists skills (~/.claude/CLAUDE.md, skipped gstack's own <checkout>/CLAUDE.md)
9 ok, 3 warn, 3 not configured, 0 fail

The new test, first with main's bin/gstack-doctor (4414f4c), then with this branch's:

$ bun test test/gstack-doctor-launch.test.ts -t "gstack.s own guide at the root" --timeout=30000 --max-concurrency=1
# main
warn            CLAUDE.md       the gstack section in <fixture>/gstack/CLAUDE.md lists 9 skills; ...
Expected: "ok"
Received: "warn"
(fail) CLAUDE.md: gstack's own guide at the root of a gstack checkout is skipped and named in the row; the same text in another project and a list in ~/.claude/CLAUDE.md still warn
# this branch
 1 pass
 0 fail

$ bun test test/gstack-doctor-launch.test.ts --timeout=30000 --max-concurrency=1
 15 pass
 5 skip
 0 fail
Ran 20 tests across 1 file.

Scope

  • Changed: check_claude_md in bin/gstack-doctor skips a CLAUDE.md at the root of a gstack tree and names it in the row. One test in test/gstack-doctor-launch.test.ts, one sentence under docs/troubleshooting.md#claude-md-skill-list, and a changelog fragment.
  • Verified live by: the doctor runs and tests above, on Windows 11 with Git Bash and Bun 1.4.4.
  • Did NOT test: macOS or Linux, the full free suite, or typecheck locally. CI's free-tests runs them.

Liveness proof (required for external contributors)

GSTACK PR typed live into a PowerShell prompt

Checklist

  • Liveness screenshot attached (GSTACK PR typed live into a real surface) or PR author is @garrytan (owner exemption)
  • This is not a generated-file-only diff (I edited the source/template and regenerated)
  • No ETHOS.md edits, and no changes to voice / founder perspective / YC references
  • New public command / external service / host adapter has an accepted issue linked (or N/A)
  • Linked issue or reproduction: reproduction under Live evidence above

…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.
@trunk-io

trunk-io Bot commented Nov 12, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

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

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-12T19:29:05.637289Z
We couldn’t complete this review. Comment @codex review to try again.
4470d11 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@alexanderhaire alexanderhaire changed the title Doctor ignores gstacks own claude md Stop gstack-doctor flagging gstack's own CLAUDE.md as a pasted skill list Nov 12, 2026
@alexanderhaire

Copy link
Copy Markdown
Contributor Author
image

@trunk-io

trunk-io Bot commented Nov 12, 2026

Copy link
Copy Markdown

An error occurred while submitting your PR to the queue: Only users that are a part of this repo's Trunk organization or have write permissions to the repo can submit a PR to the queue

@capy-ai

capy-ai Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Thank you, @alexanderhaire. I checked this against main at 1d3c63c: check_claude_md still reads gstack's own development guide as one big gstack section, and its fix line would tell you to replace the whole guide. Your repro and test make the problem clear. We're picking this up: a maintainer will land the change on current main, crediting you.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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.

@capy-ai capy-ai Bot closed this Nov 22, 2026
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