-
Notifications
You must be signed in to change notification settings - Fork 7
refactor(claude): Convert commands to atomic skills #783
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
…taMask actions Only allow updates from 'actions/*' (official GitHub Actions) and 'MetaMask/*' (MetaMask organization actions). Other actions must be pinned to commit hashes and reviewed before updating. Co-Authored-By: Claude <noreply@anthropic.com>
Move commit, commit-push, and commit-push-pr from commands to skills for better reusability. Update settings.json to include skill permissions. Co-Authored-By: Claude <noreply@anthropic.com>
…ills - Remove commit-push and commit-push-pr composite skills - Add atomic push skill for pushing to remote - Convert pr command to pr skill with unsandboxed flag - Update pr skill to use narrative description format - Update settings.json with new skill permissions Co-Authored-By: Claude <noreply@anthropic.com>
- Rename check to lint-build-test for clarity - Remove last command, now all are skills - Update commit skill to remove /check reference - Update settings.json with new skill name Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Coverage Report
File CoverageNo changed files found. |
Skip unnecessary checks based on changed files: - No changes: skip entirely - Only meta files (.md, .yml, .json, etc.): run lint:misc only - Source files: run full lint, build, test Co-Authored-By: Claude <noreply@anthropic.com>
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.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
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.
seems unrelated
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.
Ah, accidentally carried over from a local branch. It already got merged to main. Disappeared by updating the branch.
This PR refactors the Claude Code configuration from commands to skills, making them more modular and reusable. ## Summary - Convert commit, commit-push, commit-push-pr commands to atomic skills - Replace composite skills (commit-push, commit-push-pr) with individual push and pr skills - Convert check command to lint-build-test skill for clarity - Convert pr command to pr skill - Remove the commands directory entirely - everything is now a skill ## Changes - **commit**: Now a standalone skill for committing code - **push**: New atomic skill for pushing to remote - **pr**: Converted from command to skill, with updated PR body format (narrative description, no checkbox test plan) - **lint-build-test**: Renamed from "check" for clarity about what it does The skills are now atomic building blocks that Claude can compose based on user intent, rather than rigid composite commands. ## Testing Changes were tested by invoking the skills directly during development. The skills correctly handle git operations, pushing, and would create PRs with the expected format. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Refactors Claude Code config from monolithic commands to atomic skills. > > - Removes command files in `.claude/commands` and replaces them with skills in `.claude/skills` > - Adds/updates skills: `commit` (reworked steps/args), `push` (new), `pr` (converted, `unsandboxed`, defines PR body format), `lint-build-test` (new/renamed from `check` with detailed run matrix) > - Updates `.claude/settings.json` to allow new skills: `lint-build-test`, `code-review`, `commit`, `glossary`, `pr`, `push` > - Eliminates composite flows (`commit-push`, `commit-push-pr`) in favor of composing atomic skills > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit e8369db. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Add instructions to check if PR builds on another feature branch with an open PR. If so, create the PR as a draft. Co-Authored-By: Claude <noreply@anthropic.com>
This PR refactors the Claude Code configuration from commands to skills, making them more modular and reusable.
Summary
Changes
The skills are now atomic building blocks that Claude can compose based on user intent, rather than rigid composite commands.
Testing
Changes were tested by invoking the skills directly during development. The skills correctly handle git operations, pushing, and would create PRs with the expected format.
Note
Replaces legacy command-based setup with modular, atomic skills and updates permissions accordingly.
.claude/commands/*(check,commit-push,commit-push-pr,pr)commit,push,pr,lint-build-test; updates.claude/settings.jsonto allow thesecommit: introducescheck/forceargs, standardized commit steps/message (incl. Co-Authored-By), safety checkslint-build-test: determines scope from changed files and runs targeted lint/build/test (workspace or monorepo, quiet tests)pr: scripted flow with status validation, stacked PR detection, and narrative PR body requirementspush: basic push flow with upstream handlingWritten by Cursor Bugbot for commit fff6c78. This will update automatically on new commits. Configure here.