ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Analyzes diffs for regression risk and blast radius, generates risk-scored impact report. Triggers: PR review, code change risk, breaking change, blast radius, regression check.
$ npx -y skills add softspark/ai-toolkit --skill predict --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/predictContext preview
The summary Claude sees to decide when to auto-load this skill.
Analyzes diffs for regression risk and blast radius, generates risk-scored impact report. Triggers: PR review, code change risk, breaking change, blast radius, regression check.
name: predict description: "Analyzes diffs for regression risk and blast radius, generates risk-scored impact report. Triggers: PR review, code change risk, breaking change, blast radius, regression check." effort: medium disable-model-invocation: true argument-hint: "[change description]" agent: predictive-analyst context: fork allowed-tools: Read, Grep, Glob
$ARGUMENTS
Triggers the Predictive Analyst to assess the impact and regression risk of proposed changes.
/predict [path_or_diff] # /predict src/auth : analyze all files under src/auth # /predict --diff : analyze uncommitted changes (git diff) # /predict src/api/routes.ts : analyze a single file
For each target file, find dependents:
# Find files that import/require the target grep -rl "import.*from.*[target]" --include="*.ts" --include="*.py" --include="*.js" . grep -rl "require.*[target]" --include="*.js" --include="*.ts" .
Build a graph: `changed file, direct dependents, transitive dependents (1 level)`
Score each changed file on a 1 to 5 scale:
| Factor | Weight | Scoring | |--------|--------|---------| | Dependent count | 30% | 0 deps = 1, 1 to 3 = 2, 4 to 10 = 3, 11 to 20 = 4, 21+ = 5 | | Test coverage | 30% | Has dedicated test = 1, partial = 3, none = 5 | | Change surface | 20% | < 10 lines = 1, 10 to 50 = 2, 50 to 200 = 3, 200+ = 5 | | Shared/core file | 20% | Leaf = 1, mid-layer = 3, core/shared = 5 |
**Overall risk** = weighted average rounded to nearest integer.
Output a markdown report:
## Impact Prediction: [scope] | File | Risk | Dependents | Test Coverage | Notes | |------|------|------------|---------------|-------| | src/auth/login.ts | 4/5 | 12 files | partial | Core auth flow | ### High-Risk Changes (score >= 4) - [file]: [why it's high risk and what to watch] ### Recommended Actions - [ ] Add tests for [untested file] - [ ] Review [high-dependent file] with extra scrutiny - [ ] Run integration tests covering [affected area]
AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.
Repo: softspark/ai-toolkit
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Searches past coding sessions for observations, decisions, context. Triggers: mem-search,…
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG,…
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent,…
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report,…
API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe…