Agent skill
desloppify
Install this agent skill to your Project
npx add-skill https://github.com/verseles/codewalk/tree/main/.claude/skills/desloppify
SKILL.md
name: desloppify description: > Codebase health scanner and technical debt tracker. Use when the user asks about code quality, technical debt, dead code, large files, god classes, duplicate functions, code smells, naming issues, import cycles, or coupling problems. Also use when asked for a health score, what to fix next, or to create a cleanup plan. Supports 28 languages. allowed-tools: Bash(desloppify *)
Desloppify
1. Your Job
Improve code quality by fixing findings and maximizing strict score honestly. Never hide debt with suppression patterns just to improve lenient score. After every scan, show the user ALL scores:
| What | How |
|---|---|
| Overall health | lenient + strict |
| 5 mechanical dimensions | File health, Code quality, Duplication, Test health, Security |
| 7 subjective dimensions | Naming Quality, Error Consistency, Abstraction Fit, Logic Clarity, AI Generated Debt, Type Safety, Contract Coherence |
Never skip scores. The user tracks progress through them.
2. Core Loop
scan → follow the tool's strategy → fix or wontfix → rescan
desloppify scan --path .— the scan output ends with INSTRUCTIONS FOR AGENTS. Follow them. Don't substitute your own analysis.- Fix the issue the tool recommends.
desloppify resolve fixed "<id>"— or if it's intentional/acceptable:desloppify resolve wontfix "<id>" --note "reason why"- Rescan to verify.
Wontfix is not free. It lowers the strict score. The gap between lenient and strict IS wontfix debt. Call it out when:
- Wontfix count is growing — challenge whether past decisions still hold
- A dimension is stuck 3+ scans — suggest a different approach
- Auto-fixers exist for open findings — ask why they haven't been run
3. Commands
desloppify scan --path src/ # full scan
desloppify scan --path src/ --reset-subjective # reset subjective baseline to 0, then scan
desloppify next --count 5 # top priorities
desloppify show <pattern> # filter by file/detector/ID
desloppify plan # prioritized plan
desloppify fix <fixer> --dry-run # auto-fix (dry-run first!)
desloppify move <src> <dst> --dry-run # move + update imports
desloppify resolve open|fixed|wontfix|false_positive "<pat>" # classify/reopen findings
desloppify review --run-batches --runner codex --parallel --scan-after-import # preferred blind review path
desloppify review --run-batches --runner codex --parallel --scan-after-import --retrospective # include historical issue context for root-cause loop
desloppify review --prepare # generate subjective review data (cloud/manual path)
desloppify review --external-start --external-runner claude # recommended cloud durable path
desloppify review --external-submit --session-id <id> --import review_result.json # submit cloud session output with canonical provenance
desloppify review --import file.json # import review results
desloppify review --validate-import file.json # validate payload/mode without mutating state
4. Subjective Reviews (biggest score lever)
Score = 40% mechanical + 60% subjective. Subjective starts at 0% until reviewed.
-
Preferred local path:
desloppify review --run-batches --runner codex --parallel --scan-after-import. This prepares blind packets, runs isolated subagent batches, merges, imports, and rescans in one flow. -
Review each dimension independently. For best results, review dimensions in isolation so scores don't bleed across concerns. If your agent supports parallel execution, use it — your agent-specific overlay (appended below, if installed) has the optimal approach. Each reviewer needs:
- The codebase path and the dimensions to score
- What each dimension means (from
query.json'sdimension_prompts) - The output format (below)
- Nothing else — let them decide what to read and how
-
Cloud/manual path: run
desloppify review --prepare, perform isolated reviews, merge assessments (average scores if multiple reviewers cover the same dimension) and findings, then import:bashdesloppify review --import findings.jsonImport is fail-closed by default: if any finding is invalid/skipped, import aborts. Use
--allow-partialonly for explicit exceptions. External imports ingest findings by default. For durable cloud-subagent scores, prefer the session flow:desloppify review --external-start --external-runner claudethen use the generatedclaude_launch_prompt.md+review_result.template.json, and run the printeddesloppify review --external-submit --session-id <id> --import <file>command. Legacy durable import remains available via--attested-external --attest "I validated this review was completed without awareness of overall score and is unbiased."(with valid blind packet provenance in the payload). Usedesloppify review --validate-import findings.json ...to preflight schema and import mode before mutating state. Manual override cannot be combined with--allow-partial, and those manual assessment scores are provisional: they expire on the nextscanunless replaced by trusted internal or attested-external imports.Required output format per reviewer:
json{ "session": { "id": "<session_id_from_template>", "token": "<session_token_from_template>" }, "assessments": { "naming_quality": 75.0, "logic_clarity": 82.0 }, "findings": [{ "dimension": "naming_quality", "identifier": "short_id", "summary": "one line", "related_files": ["path/to/file.py"], "evidence": ["specific observation"], "suggestion": "concrete action", "confidence": "high|medium|low" }] }For non-session legacy imports (
review --import ... --attested-external),sessionmay be omitted. -
Fix findings via the core loop. After importing, findings become tracked state entries. Fix each one in code, then resolve:
bashdesloppify issues # see the work queue # ... fix the code ... desloppify resolve fixed "<id>" # mark as fixed desloppify scan --path . # verify
Do NOT fix findings before importing. Import creates tracked state entries that let desloppify correlate fixes to findings, track resolution history, and verify fixes on rescan. If you fix code first and then import, the findings arrive as orphan issues with no connection to the work already done.
Need a clean subjective rerun from zero? Run desloppify scan --path src/ --reset-subjective before preparing/importing fresh review data.
Even moderate scores (60-80) dramatically improve overall health.
Integrity safeguard:
- If one subjective dimension lands exactly on the strict target, the scanner warns and asks for re-review.
- If two or more subjective dimensions land on the strict target in the same scan, those dimensions are auto-reset to 0 for that scan and must be re-reviewed/imported.
- Reviewers should score from evidence only (not from target-seeking).
5. Quick Reference
- Tiers: T1 auto-fix, T2 quick manual, T3 judgment call, T4 major refactor
- Zones: production/script (scored), test/config/generated/vendor (not scored). Fix with
zone set. - Auto-fixers (TS only):
unused-imports,unused-vars,debug-logs,dead-exports, etc. - query.json: After any command, has
narrative.actionswith prioritized next steps. --skip-slowskips duplicate detection for faster iteration.--lang python,--lang typescript, or--lang csharpto force language.- C# defaults to
--profile objective; use--profile fullto include subjective review. - Score can temporarily drop after fixes (cascade effects are normal).
6. Escalate Tool Issues Upstream
When desloppify itself appears wrong or inconsistent:
- Capture a minimal repro (
command,path,expected,actual). - Open a GitHub issue in
peteromallet/desloppify. - If you can fix it safely, open a PR linked to that issue.
- If unsure whether it is tool bug vs user workflow, issue first, PR second.
Prerequisite
command -v desloppify >/dev/null 2>&1 && echo "desloppify: installed" || echo "NOT INSTALLED — run: pip install --upgrade git+https://github.com/peteromallet/desloppify.git"
Claude Code Overlay
Use Claude subagents for subjective scoring work that should be context-isolated.
Parallel review (required)
Always run reviews in parallel — one message with multiple Task calls. Split dimensions across agents however makes sense. Give each agent the codebase path, the dimensions to score, what those dimensions mean, and the output format. Let agents decide what to read. Do NOT prescribe file lists or tell agents whether to zoom in or out.
Workflow:
- Read
dimension_promptsfromquery.jsonfor dimension definitions. - Split dimensions across N agents, send all Task calls in one message.
- Each agent writes its output to a separate file.
- Merge assessments (average where dimensions overlap) and findings.
- Import findings — do NOT fix code before this step. Import creates tracked state entries that let desloppify correlate fixes to findings.
- Fix imported findings via the core loop:
desloppify issues→ fix code →desloppify resolve fixed "<id>"→ rescan. - Preferred local path (Codex runner):
desloppify review --run-batches --runner codex --parallel --scan-after-import. - Claude/cloud path:
- robust session flow (recommended):
desloppify review --external-start --external-runner claude; use the generatedclaude_launch_prompt.mdandreview_result.template.json, then run the printeddesloppify review --external-submit --session-id <id> --import <file>command - preflight validation (optional legacy):
desloppify review --validate-import findings.json --attested-external --attest "I validated this review was completed without awareness of overall score and is unbiased." - durable scored import (legacy):
desloppify review --import findings.json --attested-external --attest "I validated this review was completed without awareness of overall score and is unbiased." - findings-only fallback:
desloppify review --import findings.json
- robust session flow (recommended):
General subagent rules
- Prefer delegating subjective review tasks to a project subagent in
.claude/agents/. - If a skill-based reviewer is used, set
context: forkso prior chat context does not leak into scoring. - For blind reviews, consume
.desloppify/review_packet_blind.jsoninstead of fullquery.json. - Score from evidence only; do not anchor scores to target thresholds like 95.
- When evidence is mixed, score lower and explain uncertainty rather than rounding up.
- Return machine-readable JSON only for review imports. For
--external-submit, includesessionfrom the generated template:
{
"session": {
"id": "<session_id_from_template>",
"token": "<session_token_from_template>"
},
"assessments": {
"naming_quality": 0,
"error_consistency": 0,
"abstraction_fit": 0,
"logic_clarity": 0,
"ai_generated_debt": 0
},
"findings": [
{
"dimension": "naming_quality",
"identifier": "short_id",
"summary": "one-line defect summary",
"related_files": ["relative/path/to/file.py"],
"evidence": ["specific code observation"],
"suggestion": "concrete fix recommendation",
"confidence": "high|medium|low"
}
]
}
findingsMUST matchquery.system_promptexactly. Use"findings": []only when no defects are found.- Import is fail-closed by default: if any finding is invalid/skipped,
desloppify review --importaborts unless--allow-partialis explicitly passed. - Assessment scores are auto-applied from trusted internal run-batches imports, or from Claude cloud session imports via
--external-start+--external-submit(recommended). Legacy attested external import via--attested-externalremains supported. - Manual override remains emergency-only: it cannot be combined with
--allow-partial, and provisional manual scores expire on the nextscanunless replaced by trusted internal or attested-external imports.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
verl-rl-training
Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.
openrlhf-training
High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.
gguf-quantization
GGUF format and llama.cpp quantization for efficient CPU/GPU inference. Use when deploying models on consumer hardware, Apple Silicon, or when needing flexible quantization from 2-8 bit without GPU requirements.
Claude Code Guide
Master guide for using Claude Code effectively. Includes configuration templates, prompting strategies "Thinking" keywords, debugging techniques, and best practices for interacting with the agent.
qdrant-vector-search
High-performance vector similarity search engine for RAG and semantic search. Use when building production RAG systems requiring fast nearest neighbor search, hybrid search with filtering, or scalable vector storage with Rust-powered performance.
behavioral-modes
AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.
Didn't find tool you were looking for?