Repository navigation
Generate prompts/README.md as the directory's entry point - #196
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…EADME once 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
prompts/gets a generated entry point, so one page shows every Session prompt and theclaudecommand lines they are sent with.The page's
command_lineand the README share the newcommand(), so both render fromclaude_args. Because the README is one morePromptFile, the existing missing, changed and stale-file checks andUPDATE_PROMPTS=1 cargo test prompts_pagecover it too. In the top-levelREADME.md, step 4 now linksskills/andprompts/together.Evidence
prompt_files()and before regenerating,cargo test prompts_pagefailed:cargo testsuite passes. A new unit test checks the note, the Session prompt intro, both command lines, the../skills/pointer, and that the table's links are exactly the prompt files' names.Merge Danger
Door: two-way
This adds only a generated doc and test-only code (
prompts_pageis#[cfg(test)]-only). The binary doesn't change.Blast Radius: docs
From now on, a change to the
claudearguments or to a prompt's title or when sentence also needsprompts/README.mdregenerated.Unaddressed findings
Standards
markdown()andreadme(): the two notes name different sources, so sharing a helper would only save the "don't edit. Regenerate with…" tail.Spec
claude_args: it copies the Prompts and skills page's wording, which has the same exposure. The command lines themselves are generated and golden-checked.src/prompt.rs: the README takes nothing fromsrc/prompt.rs. Its titles, when sentences and file names come fromsrc/prompts_page.rs, and its command lines fromsrc/session.rs.Closes #178
🤖 Generated with Claude Code