Skip to content

Commit 58dc77e

Browse files
kylesayrsdsikka
andauthored
[Agents] Add claude skills for style and test (#2445)
## Purpose ## * Ensure that commits created by agents follow proper style guides * Ensure that tests run by agents use proper cuda safeguards ## Changes ## * Added `style.md` and `test.md` skills under `.claude` folder ## Related PRs ## * vllm-project/compressed-tensors#616 --------- Signed-off-by: Kyle Sayers <kylesayrs@gmail.com> Co-authored-by: Dipika Sikka <dipikasikka1@gmail.com>
1 parent a2433a9 commit 58dc77e

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.claude/skills/style.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Code Quality Check
2+
3+
After completing a batch of code changes:
4+
5+
1. Run `make style` to auto-format the code
6+
2. Run `make quality` to validate code quality
7+
3. Fix any issues reported by `make quality`
8+
9+
When writing code, keep lines under 88 characters and avoid unnecessary indentation.

.claude/skills/test.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Running Tests
2+
3+
Nearly all tests in this project require a GPU.
4+
5+
When running tests:
6+
7+
1. First check if `canhazgpu` is available: `which canhazgpu`
8+
2. If available, MUST run tests using `canhazgpu` with appropriate GPU allocation
9+
3. Use the format: `canhazgpu --gpus 1 -- python3 -m pytest tests/...`
10+
11+
Example:
12+
```bash
13+
# Check if canhazgpu is available
14+
which canhazgpu
15+
16+
# Run tests with canhazgpu (required if available)
17+
canhazgpu --gpus 1 -- python3 -m pytest tests/test_example.py
18+
```
19+
20+
Note: Adjust the `--gpus` count based on test requirements (typically 1 GPU is sufficient for most tests).

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,5 +811,3 @@ env_log.json
811811
# uv artifacts
812812
uv.lock
813813
.venv/
814-
815-
.claude/

0 commit comments

Comments
 (0)