setup-crap-check-github-actions
Installation
SKILL.md
Setup CRAP Check -- GitHub Actions
One-time guided setup. Adds a CI workflow that calculates CRAP scores and enforces a threshold.
Workflow
Step 1 -- Detect project setup
- Identify primary language(s) from file extensions and config files
- Identify test framework (pytest, jest, vitest, go test, maven, gradle, etc.)
- Identify existing coverage config (
.coveragerc,jest.config,nycin package.json,jacocoin pom.xml, etc.) - Identify source directories (e.g.
src/,lib/,app/,.for Go) - Check if
.github/workflows/already exists
Present findings to user for confirmation before proceeding.
Step 2 -- Ask user preferences
Use AskUserQuestion for each: