-
Notifications
You must be signed in to change notification settings - Fork 7
agent: Add create-package skill #747
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
base: main
Are you sure you want to change the base?
Conversation
grypez
left a comment
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.
Claude used this skill without prompting to create a package for a refactor PR, but did not update the coverage thresholds or remind the user to do so.
|
|
||
| 1. Ask the user for the package name and description if not provided | ||
| 2. Run `yarn create-package --name <package-name> --description "<description>"` | ||
| 3. After successful creation, remind the user to: |
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.
| 3. After successful creation, remind the user to: | |
| 3. After successful creation: |
| 1. **Add coverage thresholds** to root `vitest.config.ts`: | ||
|
|
||
| - The CLI cannot modify .ts config files automatically | ||
| - Add appropriate coverage thresholds for the new package |
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.
| - Add appropriate coverage thresholds for the new package | |
| - Add appropriate coverage thresholds for the new package | |
| - Every threshold for the new package can be set to 0 initially; these will be updated by monorepo level `yarn test` commands |
|
|
||
| ## Post-Creation Steps | ||
|
|
||
| Always remind the user of these manual steps after package creation: |
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.
| Always remind the user of these manual steps after package creation: | |
| Always perform these manual steps after package creation: |
b9ace55 to
25aa787
Compare
|
@grypez this ought to drop the unrelated commits. |
b817127 to
d269097
Compare
Shows claude how to create a new package in the monorepo.
Note
Introduces a new agent skill for creating monorepo packages and enables it in permissions.
create-packageskill docs at.claude/skills/create-package/SKILL.mddetailingyarn create-packageusage, required args (--name,--description), example, and post-creation steps (coverage thresholds, dependencies, TS references).claude/settings.jsonto includeSkill(create-package)in thepermissions.allowlistWritten by Cursor Bugbot for commit d269097. This will update automatically on new commits. Configure here.