unslopify
Skill75 starsChanged 4 months agoMITView on GitHub
Review code for weak type or data contracts, mixed responsibilities, hidden failures, workaround-driven error handling, and duplicated knowledge. Use for tactical code-quality review, pull-request review, pre-commit cleanup, refactoring assessment, or requests about type strictness, single responsibility, fail-fast behavior, defensive fallbacks, and DRY. Works across programming languages and mixed-language repositories.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- abdurshd/skillstheir own version, first seen Oct 13, 2026
- jscraik/Agent-Skillstheir own version, first seen Sep 27, 2026
- youngfreezy/unslopifytheir own version, first seen Aug 19, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- jscraik/Agent-Skills★ 9same name
- abdurshd/skills★ 2same name
- youngfreezy/unslopify★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- decomplectSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 14 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Contract strength: Do types, schemas, validation, and invariants express valid states?
- Distinctive: line 23
When the user does not specify a scope:
- Distinctive: line 26
If the working tree is clean, resolve the comparison base in this order: a comparison-base option supplied by the user, the remote's …
- Distinctive: line 32
If no base or meaningful diff can be determined, ask for a scope or report that there is nothing to review.
- Distinctive: line 37
Read enough surrounding code, tests, configuration, and documentation to validate each finding.
- Distinctive: line 43
Run all four lenses unless the user selects one.
- Distinctive: line 47
Read contracts.md for type, schema, validation, nullability, state-modeling, and boundary-contract issues.
- Distinctive: line 49
Read responsibility.md for mixed change vectors, abstraction levels, and orchestration that contains unrelated policy.
- Distinctive: line 51
Read failure-integrity.md for swallowed failures, unbounded recovery, invalid defaults, and workaround-driven control flow.
- Distinctive: line 53
Read duplication.md for duplicated knowledge and missed shared sources of truth without encouraging premature abstraction.
- Distinctive: line 65
Treat exceptions, result values, optionals, error codes, panics, retries, and fallbacks as different encodings of failure policy rather …
- Distinctive: line 67
Treat duplicated knowledge as the target of DRY analysis, not repeated syntax alone.
- Distinctive: line 68
When a language or framework is unfamiliar, inspect local usage and toolchain evidence and lower confidence instead of applying rules from …
- Very specific: line 80
Treat file length, function length, any-like types, force unwraps, broad catches, fallbacks, comments, and repeated lines as investigation …
- Distinctive: line 102
Use high for likely correctness, data, or security failures.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unslopify
Review tactical code quality through four complementary lenses:
- Contract strength: Do types, schemas, validation, and invariants express valid states?
- Single responsibility: Does each unit have a coherent reason to change?
- Failure integrity: Are failures handled deliberately rather than hidden?
- Knowledge duplication: Is the same rule encoded in multiple places?
Perform a review by default. Do not edit code unless the user explicitly asks for changes.
Select the scope
Honor an explicit user-provided review scope before applying defaults. Accept files, directories, snippets, diffs, commits, branches, pull-request refs, or the whole repository. A comparison-base option by itself configures branch comparison; it is not a review scope.
When the user does not specify a scope:
- In a Git repository, inspect working-tree changes relative to
HEAD. - If the working tree is clean, resolve the comparison base in this order: a comparison-base
option supplied by the user, the remote's symbolic default branch, then the configured
upstream when no remote default can be determined. Never assume
main. - Compute the merge base between that ref and
HEAD, then review from the merge base throughHEAD. This includes already-pushed feature commits instead of comparing a feature branch only with its same-named remote tracking branch. - If no base or meaningful diff can be determined, ask for a scope or report that there is nothing to review.
- Outside Git with no explicit review scope, ask the user for files, a directory, a diff, or a snippet to review.
Read enough surrounding code, tests, configuration, and documentation to validate each finding. Distinguish problems introduced by the selected changes from relevant pre-existing context. Exclude generated, vendored, minified, lock, and snapshot files unless requested.
Apply the review lenses
Run all four lenses unless the user selects one. If independent workers or subagents are available, the lenses may run in parallel with the same scope. Otherwise, run them sequentially. Parallelism is an optimization, not a requirement.
- Read contracts.md for type, schema, validation, nullability, state-modeling, and boundary-contract issues.
- Read responsibility.md for mixed change vectors, abstraction levels, and orchestration that contains unrelated policy.
- Read failure-integrity.md for swallowed failures, unbounded recovery, invalid defaults, and workaround-driven control flow.
- Read duplication.md for duplicated knowledge and missed shared sources of truth without encouraging premature abstraction.
- Merge overlapping observations into one finding and name the primary root cause.
Remain language-agnostic
Evaluate contracts and behavior relative to the repository's language and conventions.
- In statically typed code, use the available type system to judge whether invalid states are representable unnecessarily.
- In dynamically typed code, consider annotations, schemas, validators, tests, protocols, and runtime guards; do not require static typing merely for its own sake.
- Treat exceptions, result values, optionals, error codes, panics, retries, and fallbacks as different encodings of failure policy rather than universally good or bad constructs.
- Treat duplicated knowledge as the target of DRY analysis, not repeated syntax alone.
- When a language or framework is unfamiliar, inspect local usage and toolchain evidence and lower confidence instead of applying rules from another ecosystem.
Validate candidates
Report a candidate only when all of the following hold:
- The evidence is observable in the selected scope and necessary context.
- The issue creates a concrete correctness, maintenance, debugging, or change-propagation cost.
- A plausible improvement reduces that cost without adding greater indirection or fragility.
- Confidence is at least 80%.
Treat file length, function length, any-like types, force unwraps, broad catches, fallbacks,
comments, and repeated lines as investigation signals—not automatic findings. Respect explicit
resilience boundaries, optional data, generated code, test scaffolding, and intentional local
duplication.
Report findings
Lead with findings ordered by severity, then provide a short summary. Do not assign an overall letter grade; severity, confidence, evidence, and impact carry the assessment.
For each finding include:
### [high|medium|low] Concise title
- Location: `path:line`
- Lens: contracts | responsibility | failure-integrity | duplication
- Confidence: 80-100%
- Evidence: What the code does and the relevant surrounding context.
- Impact: The concrete failure mode or maintenance cost.
- Recommendation: The smallest change that addresses the cause.Use high for likely correctness, data, or security failures; medium for material maintenance, debugging, or change-propagation costs; and low for bounded issues worth addressing. If no qualifying findings exist, say so directly and note any limits in scope.
Claude Code adapter
Claude Code users may invoke /unslopify for a standalone install or
/unslopify:unslopify for the plugin, optionally with --types, --srp, --fail-fast, --dry,
or --sequential. Map the lens flags to contracts, responsibility, failure-integrity, and
duplication respectively; treat --sequential as disabling parallel workers and remaining
arguments as the explicit review scope. Other agents should follow this file directly.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

