inspecting-changes

from viktar-silakou/inspecting-changes-skill

Pre-execution static analysis skill for AI-generated code changes

0 stars0 forksUpdated Jan 26, 2026
npx skills add https://github.com/viktar-silakou/inspecting-changes-skill --skill inspecting-changes

SKILL.md

Inspecting Changes

Static analysis of code changes BEFORE execution.

Workflow Checklist

Copy and track progress:

Analysis Progress:
- [ ] Step 1: Parse mode (quick/medium/deep) from arguments
- [ ] Step 2: Detect changes (git diff or explicit path)
- [ ] Step 3: Execute phases for selected mode
- [ ] Step 4: Generate report with findings

Step 1: Parse mode

  • If mode in arguments → use it
  • If no mode → use AskUserQuestion with options: Quick, Medium, Deep

Step 2: Detect changes

  • Default: git diff --name-status (uncommitted)
  • With path: git diff --name-status -- <path>
  • With ref: git diff --name-status <ref1>..<ref2>

Step 3: Execute phases by mode

ModePhasesUse Case
quick1, 2, 8Pre-commit, small changes
medium1, 2, 2b, 3, 5.1, 8Standard review
deep1, 2, 2b, 3, 4, 5, 6, 7, 8Major features, pre-deploy

Step 4: Generate report

Tool Rules

Read-only analysis. Never modify files. Never execute code.

Allowed:

  • git diff, git log, git show (read-only)
  • Read, Grep, Glob tools

Every finding MUST include file:line reference.

Phase Reference

PhaseFocusModule
1Scope assessmentmodules/phase-1-assessment.md
2Execution flowmodules/phase-2-flow.md
2bContract alignmentmodules/phase-2b-contracts.md
3Architecture, smells, legacymodules/phase-3-architecture.md
4Securitymodules/phase-4-security.md
5Performance (with scale)modules/phase-5-performance.md
6Error handlingmodules/phase-6-errors.md
7Testabilitymodules/phase-7-testing.md
8Reportmodules/phase-8-report.md

Severity guide: reference/severity-guide.md

Quick Reference

Invoke: /inspecting-changes [mode] [target]

Examples:

  • /inspecting-changes deep - full analysis
  • /inspecting-changes quick src/auth/ - quick check on path
  • /inspecting-changes medium HEAD~3..HEAD - medium on commits

Repository Stats

Stars0
Forks0