diff --git a/.claude/skills/git-pr/SKILL.md b/.claude/skills/git-pr/SKILL.md new file mode 100644 index 0000000..b0c3833 --- /dev/null +++ b/.claude/skills/git-pr/SKILL.md @@ -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 / +git add +git commit -m ": " +git push -u origin / +gh pr create --head / --base main --title ": " --body "" +``` + +## Notes + +- Always branch off from `main`, not from current branch +- Follow PR template in `.github/PULL_REQUEST_TEMPLATE.md` +- ``: e.g., `xzhseh` +- ``: `feat` | `fix` | `refactor` | `test` | `docs` diff --git a/.claude/skills/test-validate/SKILL.md b/.claude/skills/test-validate/SKILL.md new file mode 100644 index 0000000..22a90d0 --- /dev/null +++ b/.claude/skills/test-validate/SKILL.md @@ -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_.py -v + +# Run with coverage +.venv/bin/pytest --cov=src + +# Run server (dev mode) +.venv/bin/python src/server/main.py --dev +```