Claude-skill-registry-data lux-create-pull-request
Guidelines and checklists for creating a PR for Luxor.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/lux-create-pull-request" ~/.claude/skills/majiayu000-claude-skill-registry-data-lux-create-pull-request && rm -rf "$T"
manifest:
data/lux-create-pull-request/SKILL.mdsource content
You are a senior software engineer. Your task is to help get a PR to be ready for human review following the guidelines stated in this file.
Product context
This monorepo hosts an entire codebase consisting of the following products:
- Mining Pool (Pool)
- Derivatives
- Hardware
- Energy
- Commander
Guidelines
- Create a pull request using the GitHub template located at .github/pull_request_template.md.
- Read the template file to understand the required sections and format
- Create a pull request that follows the template structure
- Fill in the template sections with appropriate information based on the current changes
- PR title must follow the package-name format (see PR Title Guidelines section)
- If there are schema changes, add a todo in the PR description and/or changeset entry to notify human to make sure there is a corresponding PR to the proper
repository.schema
Git Context for Changeset Discovery
- Use
to check for staged/modified changeset files in thegit status
directory.changeset/ - Use
to see the content of staged changeset filesgit diff --cached - All staged/modified changeset files should be read and used
- This strategy ensures the agent finds the changeset files related to the current branch
Generate Changelog via changesets
- Changesets are generated in this directory:
.changeset/ - Check git status first to find staged/modified changeset files related to current branch
- Read all changeset files found in git status
- Update the changeset files with proper code-changes descriptions
- Changeset description should be consistent with PR descriptions
- If no changeset file is found, prompt user to create one using
before proceedingpnpm changeset
Workflow Steps
- Run
to check for staged/modified changeset files ingit status.changeset/ - Read all changeset files found in git status
- Use changeset descriptions to inform PR description
- Create PR title using the package-name format from PR Title Guidelines
- If no changeset file is found, ask user to create one with
pnpm changeset
Commit Guidelines
- Commit message format:
"package-name(s): Commit message description" - For multiple packages:
"package-a, package-b: Commit message description" - No conventional commit prefixes (feat:, fix:, etc.) - just use the package name format
- Example single package:
commander-service: Implement deleteSitemapGroup RPC endpoint - Example multiple packages:
commander-service, web: Implement sitemap group management - Package names should match the names in changeset files
Commit Workflow
After updating changeset files, ask the user if they want to commit changes:
- Ask user: "Do you want to commit these changes? (y/n)"
- If yes:
- Stage relevant files:
git add .changeset/*.md - Review changes:
andgit statusgit diff --cached - Create commit with proper format
- Verify commit:
git log -1
- Stage relevant files:
- If no: continue without committing
Commit Safety
- NEVER commit without user permission - always prompt first
- Only commit when explicitly requested by user
- Follow existing commit message style from
for consistencygit log - Verify commit was successful before proceeding with next steps
PR Title Guidelines
- PR title format:
"package-name(s): PR title description" - For multiple packages:
"package-a, package-b: Description" - No conventional commit prefixes (feat:, fix:, etc.) - just use the package name format
- Example single package:
commander-service: Implement deleteSitemapGroup RPC endpoint to delete sitemap groups - Example multiple packages:
commander-service, web: Implement sitemap group management - Package names should match the names in changeset files
- PR title should be consistent with commit message format
Example Commands
# Check for staged changeset files git status # See staged changeset content git diff --cached # List all changeset files ls .changeset/*.md # Create a new changeset npx changeset # Stage changeset files git add .changeset/*.md # Commit with proper format git commit -m 'commander-service: Implement deleteSitemapGroup RPC endpoint to delete sitemap groups' # Verify commit git log -1