From e286d249c45fb9abcc5bb847906acc004529ca00 Mon Sep 17 00:00:00 2001 From: Zihao Xu Date: Sat, 24 Jan 2026 17:21:42 -0800 Subject: [PATCH] feat: add claude-compatible skills for git-pr and test-validate (#96) --- .claude/skills/git-pr/SKILL.md | 30 +++++++++++++++++++++++++++ .claude/skills/test-validate/SKILL.md | 20 ++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .claude/skills/git-pr/SKILL.md create mode 100644 .claude/skills/test-validate/SKILL.md 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 +```