Lint and test
Run the lint-then-test pipeline (ruff + pytest for Python, npm lint + npm test for Node) on the user's CURRENT repository and return a structured pass/fail report. Default behaviour reads `$PWD` (the repo the user has checked out and is working on); no clone, no network. Use this when the user asks to "lint and test", "run CI checks", "run pytest", "type-check with mypy", "run prettier and the unit tests", "make sure ruff is clean and tests pass", "ESLint + jest", or any combined static-check-plus-test request on the working repo. To inspect a remote GitHub URL without cloning manually, the user can include the URL in their request and the skill will shallow-clone into a sandbox. For dependency CVE checks, use dependency-audit instead. For SAST or hard-coded-secret scans, use security-scan. For building or publishing artifacts, use build-and-release. Read-only.From its SKILL.md
npx -y skills add Kevinweisl/claude-skills-cicd --skill lint-and-testAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.7 KB, as published. Nobody here has run it
lint-and-test
Run the canonical lint + test pipeline on a repo checkout. Read-only: never modifies the repo, never pushes to a registry.
When to use
Trigger when the user asks for lint + test work. Two shapes:
- "lint and test", "run CI checks", "make sure ruff is clean and pytest passes" → run on the user's current repo (the directory they're working in)
- "lint and test https://github.com/psf/black at v24.10.0" → run against a remote GitHub URL
If the user wants only one of lint OR test, this skill is still appropriate; it reports both independently and the caller can ignore one.
Don't use for: dependency CVE audits → use dependency-audit. SAST / secret scans → use security-scan. Build / publish → use build-and-release.
How to invoke
Default: current repository (no clone)
python skills/lint-and-test/scripts/run.py
The script reads $PWD, validates that .git/ exists, and runs against the working tree. No network, no sandbox, no cleanup needed.
Optional flags:
--language python|node|auto(defaultauto; detects viapyproject.toml/package.json)--commit-sha SHA(cache key only, no behavior change)
Remote: shallow-clone a GitHub URL
When the user explicitly names a remote repo:
python skills/lint-and-test/scripts/run.py \
--repo-url https://github.com/psf/black --ref v24.10.0
The script shallow-clones into /tmp/skill_sandbox_*, runs the pipeline against the clone, and removes the sandbox in a finally block. URL guard: only https://github.com/ accepted.
Interpret the JSON output
{
"ok": true,
"language": "python",
"lint": {"tool": "ruff", "passed": true, "exit_code": 0, "issues": [], "duration_ms": 412},
"test": {"tool": "pytest", "passed": true, "exit_code": 0, "summary": "623 passed", "duration_ms": 18430},
"cache_key": "9a1f...c08"
}
ok = lint.passed AND test.passed. If ok=false:
- Lint failures: see
lint.issues(first 50 ruff lines) - Test failures: see
test.summary(last 200 chars, or the matchedN passed/failed/errorline) test.timed_out=true: pytest exceeded 300 secondslanguage=="unknown": the repo has neitherpyproject.tomlnorpackage.json; lint-and-test does not apply
Boundaries
- Read-only. Never writes to the repo, never pushes to a registry.
- No CVE checks. For known vulnerabilities in dependencies, use
dependency-audit. - No SAST. For SQL injection / hardcoded-secret detection, use
security-scan. - No exceptions on tool failure. Script always exits 0 (only raises on missing
--repo-pathnot being a git repo); branch onresult.ok. - Pytest timeout 300s. Beyond that,
test.passed=falsewithtimed_out=true. - URL guard. Only
https://github.com/accepted in--repo-url.