remy-inspect
Discover and run tests after code modification. Supports multi-angle defect prediction and coverage analysis. Recommended after large-scale edits or…
от MyPeacefulValentine★ 28 звёзд на GitHub
Установить remy-inspect в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Post-Verify Protocol
Post-implementation verification skill. Discovers existing tests, creates temporary tests when none exist, runs them, evaluates coverage and assertion quality, and drives a fix loop until all tests pass.
Supports three effort levels for multi-angle analysis:
- low: Skip prediction/semantic audit; direct test discovery and execution (fastest).
- medium (default): 2 prediction angles + 1 semantic audit angle (3 parallel agents).
- high: 3 prediction angles + 3 semantic audit angles (6 parallel agents).
Relationship to TDD: TDD operates before implementation (RED→GREEN→REFACTOR). This skill operates after implementation to verify completed changes. They are complementary, not overlapping.
External Files
Path Convention: All paths below are relative to
~/.claude/. UseRead("~/.claude/skills/remy-inspect/...")to access them — they are NOT in the project working directory.
| File | Purpose |
|---|---|
skills/remy-inspect/frameworks.json |
Test framework detection rules (Phase 2). User-extensible. |
skills/remy-inspect/anti_patterns.json |
Assertion anti-pattern detection rules (Phase 7.1). User-extensible. |
skills/remy-inspect/schemas/prediction_scenario.json |
Output schema for defect prediction agents (Phase 3). |
skills/remy-inspect/schemas/audit_finding.json |
Output schema for semantic audit agents (Phase 7.2). |
skills/remy-inspect/prompts/predict_input_boundary.md |
Prediction Angle A prompt template. |
skills/remy-inspect/prompts/predict_error_path.md |
Prediction Angle B prompt template. |
skills/remy-inspect/prompts/predict_state_interaction.md |
Prediction Angle C prompt template (high only). |
skills/remy-inspect/prompts/audit_coverage_gap.md |
Audit Angle A prompt template. |
skills/remy-inspect/prompts/audit_assertion_strength.md |
Audit Angle B prompt template (high only). |
skills/remy-inspect/prompts/audit_test_isolation.md |
Audit Angle C prompt template (high only). |
skills/remy-inspect/templates/test_python.py.j2 |
Jinja2 template for temporary Python tests (Phase 4). |
skills/remy-inspect/templates/test_javascript.js.j2 |
Jinja2 template for temporary JavaScript tests (Phase 4). |
skills/remy-inspect/templates/test_go.go.j2 |
Jinja2 template for temporary Go tests (Phase 4). |
skills/remy-inspect/templates/test_c.c.j2 |
Jinja2 template for temporary C tests (multi-framework: kunit/cmocka/Unity/criterion/plain). |
skills/remy-inspect/templates/report.md.j2 |
Jinja2 template for the final report (Phase 9). |
skills/remy-inspect/render.py |
Template rendering helper. Uses Jinja2 when available, falls back to str.format(). |
Optional Dependency: Jinja2
render.py attempts import jinja2. If unavailable, all templates are rendered via built-in string formatting (functionally equivalent, but templates are not externally editable in fallback mode). Jinja2 is optional; install it with pip install jinja2.
0. Configuration
| Environment Variable | Default | Description |
|---|---|---|
POST_VERIFY_MAX_RETRIES |
-1 (unlimited) |
Maximum test-fix iterations. -1 = no limit. Positive integer = hard cap. |
POST_VERIFY_EFFORT |
medium |
Fallback effort level when not specified as argument. |
TEST_COVERAGE_THRESHOLD |
80 |
Branch coverage percentage target. Shared with /remy-testgen. |
Argument Parsing
/remy-inspect [effort] [target_files_or_functions...]
- If the first argument matches
low,medium, orhigh(case-insensitive): use it as effort level, remaining args are targets. - Otherwise: use
POST_VERIFY_EFFORTenv var (defaultmedium), all args are targets.
Effort Level Matrix
| Effort | Prediction Angles | Semantic Audit Angles | Total Agents |
|---|---|---|---|
| low | 0 (skip Phase 3) | 0 (regex only in Phase 7) | 0 |
| medium | 2 (A: Input Boundary, B: Error Path) | 1 (A: Coverage Gap) | 3 |
| high | 3 (A + B + C: State/Interaction) | 3 (A + B: Assertion Strength + C: Test Isolation) | 6 |
Report Persistence
Final reports are saved to .claude/temp_inspect/report_{timestamp}.md in the project directory via render.save_report(). This directory is created automatically if absent.
Phase 1: Scope Identification
Goal: Determine what changed and what needs testing.
- If arguments provided: Use them as the target scope (file paths or function names).
- If no arguments: Run
git diff --name-only HEAD(orgit diff --cached --name-onlyif staged). If not a git repo, ask the user to specify targets viaAskUserQuestion. - Extract change units: For each changed file, identify modified/added functions, classes, and methods by diffing against the previous version.
- Record: Build an internal
change_setlist:[{file, symbol, type}].
Output: Print the change set as a summary table to the user.
Phase 2: Test Discovery
Goal: Find
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Edit - 03
Write - 04
Grep - 05
Glob - 06
Bash - 07
AskUserQuestion - 08
Agent
Вложенные файлы
- README.md
- README_zh.md
- anti_patterns.json
- frameworks.json
- prompts/audit_assertion_strength.md
- prompts/audit_coverage_gap.md
- prompts/audit_test_isolation.md
- prompts/predict_error_path.md
- prompts/predict_input_boundary.md
- prompts/predict_state_interaction.md
- render.py
- schemas/audit_finding.json
- schemas/prediction_scenario.json
- templates/report.md.j2
- templates/test_c.c.j2
- templates/test_go.go.j2
- templates/test_javascript.js.j2
- templates/test_python.py.j2
FAQ
Что делает скилл remy-inspect?
Discover and run tests after code modification. Supports multi-angle defect prediction and coverage analysis. Recommended after large-scale edits or accumulated working tree changes.
Как установить скилл remy-inspect?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл remy-inspect запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…