Agent Skills
› FlorianBruniaux/claude-code-ultimate-guide
› ci-tests
ci-tests
GitHub自动检测 Python、Node 或 Rust 技术栈,并执行相应的测试套件命令,支持指定文件或目录,用于 CI/CD 流程中的代码质量验证。
Trigger Scenarios
用户需要运行当前仓库的测试用例
在 CI/CD 流水线中执行自动化测试
提交代码前快速验证功能正确性
Install
npx skills add FlorianBruniaux/claude-code-ultimate-guide --skill ci-tests -g -y
SKILL.md
Frontmatter
{
"name": "ci-tests",
"model": "haiku",
"effort": "low",
"description": "Run the test suite for the current repo, auto-detecting Python (pytest\/uv), Node (vitest\/pnpm), or Rust (cargo test)",
"allowed-tools": [
"Bash"
],
"argument-hint": "[file or folder target]",
"disable-model-invocation": true
}
/ci:tests: Run tests
Detects the stack and runs tests with the right command.
Stack detection
if [ -f "uv.lock" ]; then
STACK="python"
elif [ -f "pnpm-lock.yaml" ] || [ -f "package.json" ]; then
STACK="node"
elif [ -f "Cargo.toml" ]; then
STACK="rust"
else
STACK="unknown"
fi
Commands by stack
Python (uv + pytest)
# All tests
uv run pytest --tb=short -q $ARGUMENTS
# With coverage
uv run pytest --cov=src --cov-report=term-missing -q
# Specific file or folder
uv run pytest $ARGUMENTS -v
Node (pnpm + vitest)
# All tests
pnpm vitest run $ARGUMENTS
# With coverage
pnpm vitest run --coverage
# Watch mode (dev)
pnpm vitest
Node (npm + jest)
npm test -- --passWithNoTests $ARGUMENTS
Rust (cargo)
cargo test --quiet $ARGUMENTS 2>&1
Expected output
Tests: my-api (Python/pytest)
───────────────────────────────
uv run pytest --tb=short -q
[pytest output]
✅ 42 passed in 3.1s → Ready to push
On failure:
❌ 2 failed
FAILED tests/test_billing.py::TestInvoice::test_promo_expired
AssertionError: expected discount=0, got discount=10
→ Fix before pushing.
Usage
/ci:tests
/ci:tests tests/test_orders.py
/ci:tests src/components/Button.test.tsx
Target: $ARGUMENTS
Version History
- fa57065 Current 2026-07-25 10:17


