Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:49:08 +08:00
commit 3e5634bde6
6 changed files with 160 additions and 0 deletions

26
commands/quick-test.md Normal file
View File

@@ -0,0 +1,26 @@
---
description: Run tests for the current project quickly
allowed-tools: Bash(npm:*), Bash(pytest:*), Bash(go:*), Bash(cargo:*)
---
# Quick Test Command
Run the appropriate test suite based on the project type.
## Context
- Current directory: !`pwd`
- Package manager files: !`ls -la | grep -E "(package\.json|requirements\.txt|go\.mod|Cargo\.toml)"`
## Your Task
1. Detect the project type based on files present
2. Run the appropriate test command:
- Node.js: `npm test` or `npm run test`
- Python: `pytest` or `python -m pytest`
- Go: `go test ./...`
- Rust: `cargo test`
3. Display the test results clearly
4. If tests fail, provide a brief summary of failures
IMPORTANT: Only use the tools specified in allowed-tools. Do not use any other tools.