-
Notifications
You must be signed in to change notification settings - Fork 77
chore: automate CLAUDE.md generation from RFC discussions #2199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
4a9b7e9 to
0e47e98
Compare
0e47e98 to
5cba863
Compare
| } | ||
|
|
||
| function writeAiInstruction(filepath: string, aiInstructions: string): void { | ||
| writeFileSync(filepath, aiInstructions, "utf-8"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: we could also generate here cursor/copilot rules
Signed-off-by: Serhii Stotskyi <[email protected]>
Implements GitHub Actions automation to generate CLAUDE.md from RFC discussions labeled
RFC:Landed, providing AI coding assistants with project-specific contribution guidelines.Changes
Script:
script/generate-claude-md.ts--experimental-strip-typesfor direct executiongh cliGraphQL API## AI Instructionssections from RFC:Landed discussions.claude/instructions/with lowercase-dashed namingCLAUDE.mdwith@.contribution-guidelines/[filename].mdlinksWorkflow:
.github/workflows/generate-claude-md.ymllabeled,unlabeled,editedeventsgithub.event.discussion.category.namefrom event contextgit commit,git push) for commits instead of GitHub APIautomated/claude-md-updatebranch (no direct commits)Documentation
.contribution-guidelines/README.md: System overview and usageCONTRIBUTING.md: Added AI Coding Guidelines sectionExample Output
When an RFC titled "Testing Strategy" gets the
RFC:Landedlabel:Generated
.contribution-guidelines/testing-strategy.md:Generated
CLAUDE.md:Usage
## AI Instructionssection with guidance for AI toolsRFC:LandedlabelOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.