feat: add claude-compatible skills for git-pr and test-validate (#96)

This commit is contained in:
Zihao Xu
2026-01-24 17:21:42 -08:00
committed by GitHub
parent a2f2010ee5
commit e286d249c4
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
---
name: git-pr
description: Create a pull request with proper remote handling
---
## Pre-flight
```bash
git remote -v
# If origin URL is outdated, fix it:
# git remote set-url origin https://github.com/AI-Cultivation/cultivation-world-simulator.git
```
## Commands
```bash
git checkout main && git pull origin main
git checkout -b <github-username>/<branch-name>
git add <files>
git commit -m "<type>: <description>"
git push -u origin <github-username>/<branch-name>
gh pr create --head <github-username>/<branch-name> --base main --title "<type>: <description>" --body "<body>"
```
## Notes
- Always branch off from `main`, not from current branch
- Follow PR template in `.github/PULL_REQUEST_TEMPLATE.md`
- `<github-username>`: e.g., `xzhseh`
- `<type>`: `feat` | `fix` | `refactor` | `test` | `docs`

View File

@@ -0,0 +1,20 @@
---
name: test-validate
description: Run Python tests using the project venv
---
## Commands
```bash
# Run all tests
.venv/bin/pytest
# Run specific test file
.venv/bin/pytest tests/test_<name>.py -v
# Run with coverage
.venv/bin/pytest --cov=src
# Run server (dev mode)
.venv/bin/python src/server/main.py --dev
```