Repository navigation
Show a skill's SKILL.md as soon as the skill opens - #688
Merged
Merged
Conversation
On the Prompts and skills page, opening a skill now shows its SKILL.md straight away; it still folds by its heading, and the supporting files stay folded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open the SKILL.md at the skill's root rather than any file of that name, and have the browser tests read the rendered path rather than guess from the id. The no-JS test again checks that only SKILL.md folds start open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Opening a skill on the Prompts and skills page now shows its SKILL.md straight away, so it takes one click instead of two. SKILL.md still folds by its own heading, and the supporting files stay folded.
<article id="skill-thirdshift-code-review"> <details class="fold"> # the skill: starts closed <summary><h3>thirdshift-code-review</h3> - <details class="fold"> # SKILL.md: a second click + <details class="fold" open> # SKILL.md: shows with the skill <summary><h4>thirdshift-code-review/SKILL.md</h4> <details class="fold"> # supporting files: still foldedfile_blockinsrc/prompts_page.rstakes anopenflag. Only the SKILL.md at each skill's root gets it, andsite/prompts/index.htmlis regenerated from that. It's plain HTML, so it also works without JavaScript.Evidence
cargo testsuite and clippy also pass.The two older tests that assumed every fold starts closed now check that the SKILL.md folds are exactly the ones that start open, and that every section-level fold still starts closed. That holds with JavaScript on and off.
Merge Danger
Door: two-way
Blast Radius: cosmetic
This only changes how the static site's Prompts and skills page starts out. A fragment link to a skill's supporting file now also shows the open SKILL.md above it, but the page still scrolls to the linked file.
🤖 Generated with Claude Code