Code Review & Quality
simplify-and-refactor
Verdict: Measured: a benefit was seen but not confirmed.
Makes agent cleanups behaviour-preserving: tests first, one named change per commit, and a script that catches API drift.
- What it does: The skill gives an agent a seven-step refactoring discipline: define scope, record a baseline, write characterisation tests that pin down what the code does today…
- Use it when: You say clean up this code, simplify, refactor, tidy, split this big function or reduce duplication, and the behaviour must stay the same.
- Written and reviewed by Skill Almanac
- Licence: Apache-2.0
- Updated 2026-11-22
- Install check passed: Claude Code 2.1.330, 2026-11-23
Platform Score
Scored · Method v0.2 · How we scoreMeasured: a benefit was seen but not confirmed. Efficacy earned 10.1 of 35 points. How we tested it · Download the run records (JSON)
Published: the task count, pass rates with and without the skill and the interval (see evidence details), and the per-task, per-run records with the blind grader’s reasons (JSON download), and a recorded demo. Not published: the executor outputs and grading folders, so a third party cannot yet re-run the comparison from this page.
Our assessment, method v0.2, scored 2026-11-22. See the breakdown
User Score
No reviews yet
A future average requires 5 installation-verified reviews; verification is not available yet. Read reviews
What it does
The skill gives an agent a seven-step refactoring discipline: define scope, record a baseline, write characterisation tests that pin down what the code does today (quirks included), apply one transformation from a named catalogue per commit, and compare the result with the starting version. A script, refactor_diff.py, parses the before and after versions of a Python file with ast and reports changed public signatures, removed names, added and removed imports, whether the top-level definitions are preserved, and which bodies changed. A list of what never belongs in a refactor (bug fixes, public renames, formatting churn, dependency bumps) keeps the cleanup small, and the agent reports those items as found, not fixed.
When to use it
You say clean up this code, simplify, refactor, tidy, split this big function or reduce duplication, and the behaviour must stay the same. Also when an agent's earlier cleanup renamed things, changed a signature or reformatted half the file.
When not to use it
Bug fixes, new features, performance tuning, framework or dependency migrations, and rewrites in another language. The skill reports bugs it finds but does not fix them inside a refactor. Difference from the nearby catalogue entries: it does not review pull requests in general (see reviewing-code-changes) and it does not write tests as a goal in itself; the tests exist to protect the refactor.
Summary reviewed 2026-11-22 by Kobi Eliraz (founder, Skill Almanac).
Demo video
simplify-and-refactor: how to use this skill. Recorded on Claude Code, 2026-11-23.
AI-narrated demonstration based on recorded agent outputs. The task and transcript explain what is shown; evaluation evidence and limitations are on the skill page.
Transcript
- 0:00 The finished result Duplicated branches in your code? Watch them collapse, tests still green.
- The result of the demonstration run
- 0:05 The prompt You ask your agent.
- The prompt: Can you clean up this code in pricing.py? The tests are in test_pricing.py.
- 0:08 What it is and how to run it It reads the skill, pins behaviour with tests, removes duplication.
- Reading the skill instructions.
- Reading the input code, its tests, and the transformation catalogue.
- Saving the starting version and running the existing tests on it as a baseline.
- Baseline is green (3 passed). Writing characterisation tests that pin the current behaviour, including the edge cases the existing tests miss.
- 0:14 Before and after Before, and after.
- From the agent's own report
- 0:20 install To use it, clone the public repo and copy the skill folder.
- git clone --depth 1 https://github.com/kobilyricsweb/skillalmanac-skills.git
- cd skillalmanac-skills
- mkdir -p ~/.claude/skills
- cp -r skills/simplify-and-refactor ~/.claude/skills/
- # Claude Code (Codex CLI, Cursor and Gemini CLI directories are listed in the repo README)
- github.com/kobilyricsweb/skillalmanac-skills/tree/main/skills/simplify-and-refactor
- 0:27 The skill page Find it at skillalmanac dot com.
- Simplify And Refactor
- https://skillalmanac.com/skills/skill-almanac/simplify-and-refactor
Install
To use these commands, you need Git and a computer running Claude Code. They copy the skill into your Claude Code skills folder (use .claude/skills inside a project for project-only installation). Check the package requirements for any extra runtime, such as Python or Node.js, before running its scripts.
Skill Almanac is free to browse. Your AI tool or model provider may charge for a subscription or usage; see Claude Code costs.
Source version: 5f9a43d4303d8cd4f566e322b16a52b579699293 (pinned commit).
macOS and Linux (Terminal)
git clone --depth 1 --filter=blob:none --sparse --no-checkout https://github.com/kobilyricsweb/skillalmanac-skills.git &&
cd skillalmanac-skills &&
git fetch --depth 1 origin 5f9a43d4303d8cd4f566e322b16a52b579699293 &&
git checkout --detach FETCH_HEAD &&
git sparse-checkout set -- skills/simplify-and-refactor &&
test -f skills/simplify-and-refactor/SKILL.md &&
mkdir -p ~/.claude/skills &&
if [ -e ~/.claude/skills/simplify-and-refactor ]; then printf '%s\n' 'Already installed: review the existing folder before updating.' >&2; false; else cp -r ./skills/simplify-and-refactor ~/.claude/skills/; fiWindows (PowerShell)
git clone --depth 1 --filter=blob:none --sparse --no-checkout https://github.com/kobilyricsweb/skillalmanac-skills.git
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
Set-Location -LiteralPath 'skillalmanac-skills' -ErrorAction Stop
git fetch --depth 1 origin 5f9a43d4303d8cd4f566e322b16a52b579699293
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
git checkout --detach FETCH_HEAD
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
git sparse-checkout set -- skills/simplify-and-refactor
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
if (-not (Test-Path -LiteralPath 'skills/simplify-and-refactor/SKILL.md' -PathType Leaf)) { throw 'The selected version does not contain this skill.' }
$skillDestination = Join-Path $HOME '.claude/skills/simplify-and-refactor'
if (Test-Path -LiteralPath $skillDestination) { throw 'Already installed: review the existing folder before updating.' }
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $skillDestination) -ErrorAction Stop | Out-Null
Copy-Item -LiteralPath 'skills/simplify-and-refactor' -Destination $skillDestination -Recurse -ErrorAction StopThese commands avoid replacing an existing skill. Required tools and scripts may differ by operating system; check this skill’s dependencies before running it. For platform steps and the scope of our tests, see the installation guide. For another agent, use the Codex skills guide, Cursor skills guide, or Gemini CLI tool page, together with the package README. Read the source before you install.
Source: kobilyricsweb/skillalmanac-skills on GitHub
How we tested the install
Claude Code
The check we ran, on Claude Code 2.1.330 on 2026-11-23, pinned to commit 5f9a43d. This is our test harness, not the install command.
claude -p "The user says clean up this code, simplify, refactor, tidy, reduce duplication, split this big function. Use the simplify-and-refactor skill for this; say which skill you used and stop." --model claude-haiku-5-5 --output-format stream-json --verbose --max-turns 6 (cwd with .claude/skills/simplify-and-refactor/)Not tested on: Codex, Gemini CLI, Cursor, GitHub Copilot.
Platform Score
61 out of 100
Merit 60.6 × safety factor 1.00 = 61. Grade C.
- Scored
- 2026-11-22
- Method
- Version 0.2. How this is calculated
- Evaluated by
- Skill Almanac static rules v0 plus a measured with/without run (claude-haiku-5-5 executing, claude-sonnet-5-5 grading blind) and a model judge for Q2, Q3, Q6 and T3 (claude-sonnet-5-5) and an external static security scan (Semgrep, Gitleaks, an instruction-indirection detector), every finding triaged. No human review. Everything else that cannot be checked earns nothing and is listed under Not tested.
Score breakdown: seven dimensions, safety factor and rubric items
Merit: seven dimensions
Safety factor: file review
Security 25 of 25 points gives a safety factor of 1.00. Security does not add points; it multiplies merit, so a risky skill loses up to half its score.
| Item | Points | What we found |
|---|---|---|
| S2 Remote code execution surface | 6 / 6 | Nothing that downloads, installs or runs remote code applies; no findings. (measured, scan of 2026-11-22.) |
| S3 Instruction indirection | 5 / 5 | No instruction that fetches or follows content from outside the reviewed files applies; no findings. (measured, scan of 2026-11-22.) |
| S4 Secrets and credentials | 4 / 4 | No credential use or committed secret applies; no findings. (measured, scan of 2026-11-22.) |
| S5 Data egress and telemetry | 4 / 4 | No data egress applies; no findings. (measured, scan of 2026-11-22.) |
| S6 Agent-behaviour integrity | 3 / 3 | No steering, hidden or auto-approve wording applies; no findings. (measured, scan of 2026-11-22.) |
| S7 Bundled executable hygiene | 3 / 3 | Bundled scripts are readable source and nothing in them applies; no findings. (measured, scan of 2026-11-22.) |
Not tested
- Efficacy: measured on 12 tasks (12 paired runs) by one model family (claude-haiku-5-5 executing, claude-sonnet-5-5 grading); no human grader and no third-party reproduction (Ec).
- Trigger precision: description rubric plus a model judge for T3 (claude-sonnet-5-5, 2026-11-22). No trigger test was run.
- Instruction quality: Q2, Q3 and Q6 scored by a model judge (claude-sonnet-5-5, 2026-11-22), not by a human; Q4 and Q7 get half credit.
- Security: measured by a static external scan. Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1. Scanned 2026-11-22: 0 findings (0 false positive, 0 real and fixed, 0 accepted risk, 0 open). Every finding was triaged by the scanning session, not by a human. No runtime behaviour check was run: nothing was installed or executed.
- Portability: P4 (multi-agent support) was not tested on any other tool.
- Maintenance: new package with no commit history or public repository.
What would raise this score
- A third-party reproduction of the measured run (Ec) would add independent evidence. (up to +24.9 points)
- A human review of the judged items (Q2, Q3, Q6) would firm up the instruction-quality score. (up to +4.4 points)
- A runtime behaviour check (running the scripts in a sandbox) and a human review of the triage would be the next security evidence. (up to +0 points)
This score is our assessment under a published method. It is not a guarantee of safety or fitness. To dispute this score, use the corrections page; we reply within 10 business days.
Evidence and rubric details (for reviewers)
Evidence and provenance
House skill from the Claude pipeline (batch_05_sonnet). Drafted by claude-sonnet-5-5. Human review: not done yet. Source package: 01_skill_production/batch_05_sonnet/simplify-and-refactor (not public).
Declared compatibility (the author's statement, not an install test): The optional script needs Python 3.9 or newer, standard library only, and no network. Without Python, follow the manual fallback in step 6.
Efficacy: LIFT_UNCONFIRMED (measured)
. 12 tasks, 12 paired runs with and without the skill. Pass-rate difference +2.8 points (standard error 1.9, 95% CI -1.3 to +6.9, clustered by task). Blind preference: with skill 1, other outcome (baseline or tie) 11. Assertions passed: 53 of 73 with the skill, 51 of 73 without.
Read with care: Measured on 2026-11-22: claude-haiku-5-5 executed every run, claude-sonnet-5-5 graded blind. Both are AI models from one family; there is no human grader and no third-party reproduction. Procedure v2: held-out tasks, each pair graded in both A/B orders. With 12 tasks the smallest difference reliably detected is about 18 points. The interval is the honest range; it does not support a claim of improvement on every model or task.
Record: efficacy_runs/results_measured/simplify-and-refactor.json (claude pipeline)
Static lint and own-rules scan · PASS
. Agent Skills spec lint passed (0 failures, 0 warnings). Own-rules security scan: 0 findings.
Read with care: Spec lint and own-rules text rules only; the security result is the separate external scan record below. Nothing was installed or run.
Details
- Ea Ships evals for the skill itself: 5/5. An evals/ folder is bundled.
- Eb Deterministic helper or verify step: 5/5. Bundled scripts validate or do the work.
- Es Measured with/without comparison: 10.1/35. LIFT_UNCONFIRMED on 2026-11-22: 12 tasks, 12 paired runs, claude-haiku-5-5 executing, claude-sonnet-5-5 grading blind. Pass rate 73% with the skill, 70% without; difference +2.8 points (95% CI -1.3 to +6.9, clustered by task); the grader preferred the skill in 1 of 12 paired runs. The interval reaches zero, so credit is capped at 60% of the dimension.
- T1 Says what the skill does: 1/1. Description of at least 30 characters.
- T2 Says when to use it: 2/2. A "use when" statement is present.
- T3 Specific trigger terms: 1.5/2. Judge (claude-sonnet-5-5, 2026-11-22): The description lists clean up this code, simplify, refactor, tidy, reduce duplication, split this big function and an agent's cleanup that changed behaviour, and states what not to use it for; it omits common phrasings such as remove dead code or unused imports, flatten nesting, extract a function, DRY, make this more readable and rename.
- T4 Within spec length: 1/1. 583 characters.
- T5 Distinct, not over-broad: 1/1. Checked for over-broad wording by pattern.
- T6 No coercive wording: 1/1. Checked for coercive wording by pattern.
- Q1 Valid per the Agent Skills spec: 2/2. No hard lint rule failed.
- Q2 Actionable workflow: 3.5/4. Judge (claude-sonnet-5-5, 2026-11-22): Seven-step checklist in a fixed order (scope, baseline, characterisation tests, one transformation, apply and commit, compare with the script, final report), a commit message format, a rule to stop and ask when a precondition fails and a six-line report shape; step 1 leaves 'clean up' requests to the agent's judgement ('the smallest set of changes') and the one-commit-per-transformation rule assumes git is in use.
- Q3 Specific non-obvious knowledge: 3.5/4. Judge (claude-sonnet-5-5, 2026-11-22): Concrete rules: never edit a test to make a refactor pass, preserve quirks such as truncation and swallowed errors, no bug fixes or renames in the same change, commit message 'refactor: <transformation> <target>', exit codes 0/1/2, a documented JSON field list and a definition of 'public' (literal __all__, else no leading underscore); there are no numeric thresholds and much of the detail sits in the references folder, not in SKILL.md.
- Q4 Concrete examples: 1/2. Code blocks or an example heading exist (half credit: quality not judged).
- Q5 Progressive disclosure: 2/2. Body is 76 lines.
- Q6 Verification and failure handling: 2.5/3. Judge (claude-sonnet-5-5, 2026-11-22): Covers code without tests, tests that already fail, dependencies replaced by fakes in tests, no Python available (manual git diff fallback), callers in other files and dynamic access the script cannot see, and untestable code reported under 'Not checked'; it says nothing about a project with no version control and gives non-Python code only a one-line note.
- Q7 Prerequisites declared: 1/2. A compatibility field exists (half credit: contents not judged).
- Q8 Version or changelog: 1/1. metadata.version 0.1.0.
- P1 Frontmatter: 2/2. Open-spec fields only.
- P2 Agent-specific tools in the body: 3/3. None named.
- P3 Runtime dependencies: 2/2. None, or standard library only.
- P4 Multi-agent support: 0/1. Not measured: no cross-tool run exists.
- M1 Recent change: 3/3. Last commit touching the skill directory 2026-11-22.
- M3 Repository and publisher: 1/2. kobilyricsweb/skillalmanac-skills is not archived and was pushed 2026-11-23. The established-publisher half earns nothing: the publisher is not verified.
- L1 Licence: 3/3. Apache-2.0 with LICENSE file.
- L2 Provenance: 1/2. Original house package; publisher not verified by the claim flow.
- K1 Always-loaded metadata: 1/1. 583 description characters.
- K2 Activation cost: 3/3. About 1709 body tokens (characters / 4).
- K3 On-demand structure: 1/1. References are split out, or the skill is small.
Record: 01_skill_production/batch_05_sonnet/simplify-and-refactor/SKILL.md
External security scan · PASS
. Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1. Scanned 2026-11-22: 0 findings (0 false positive, 0 real and fixed, 0 accepted risk, 0 open). 7 files scanned; No dependency manifest is bundled, so there was nothing to audit.
Read with care: Static scan only: nothing was installed or executed. Each finding was triaged by the scanning session (an AI), not by a human reviewer. evals/ test fixtures (deliberate fake keys and injection strings) are excluded by design. Not a security certification.
Details
- Tool: Semgrep 1.186.0 (registry p/default (fetched 2026-11-22) + custom agent-skill rules (rules/agent-skill-risks.yml, 13 rules, tested))
- Tool: Gitleaks 8.30.1 (built-in default ruleset, --redact)
- Tool: Skill Almanac own-rules 0.1.0 (StaticRuleScanner text rules)
- Tool: S3 instruction-indirection detector 1.0.0 (tools/s3_indirection_scan.py (15 positive and negative self-tests))
- Tool: npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1 (manifests found inside packages only)
Record: 01_skill_production/security_scan/results/simplify-and-refactor.json
Authoring record
. Drafted by claude-sonnet-5-5; the editorial summary (what it does, when to use, when not to use, limits) was reviewed and signed off by Kobi Eliraz on 2026-11-22. The package itself and its tests were not re-run by a human.
Read with care: Self-reported by the authoring pipeline. Not independently audited.
Record: 01_skill_production/batch_05_sonnet/simplify-and-refactor/VERIFICATION.md
Public repository
. Published in kobilyricsweb/skillalmanac-skills: 1 commit on this skill, first 2026-11-22, last 2026-11-22; 0 open issues in the repository.
Read with care: Read from the GitHub API on the date shown, at catalogue build time. The repository is new and unverified: its history earns only the points the published method assigns to it.
Record: https://github.com/kobilyricsweb/skillalmanac-skills/tree/main/skills/simplify-and-refactor
Full evaluation
Written from the measured runs (claude-haiku-5-5 executing, claude-sonnet-5-5 grading) and checked against the result file. An AI evaluation, not a human review. Record: efficacy_runs/results_measured/simplify-and-refactor.review.md
What was tested
Twelve tasks, each run once with the skill and once without it (baseline), under procedure measured-v2. The task is the unit. The stage-1 gate returned "continue" (delta +0.028, interval crossing zero), so stage 2 (six more tasks) was run and the 12-task result is reported. The executor was claude-haiku-5-5; the grader was claude-sonnet-5-5, saw anonymous X/Y labels and judged each pair in both orders. An Opus (claude-opus-5-5) second grader re-graded four tasks (v2-t2, v2-t6, v2-t8, v2-t12). Grader agreement was kappa 0.57 over stage 1 and 0.71 over both stages.
The skill is a procedure for behaviour-preserving refactors: characterisation tests first, one named transformation per commit, a Python script that compares the before and after files, and a fixed final report. The tasks covered: removing duplicated pricing functions (t1), splitting a 35-line function (t2), flattening nested ifs (t3), deleting dead imports and helpers (t4), a near-miss feature request (t5, a tip feature), a vague "make it better" parser request (t6), replacing if/elif chains with a table (t7), moving two copy-pasted helpers into a shared module (t8), repairing a broken AI refactor (t9), replacing hand-rolled loops with idioms (t10), a near-miss performance request (t11) and a vague config simplification (t12). Eight tasks were ordinary, two near-miss (t5, t11) and two ambiguous (t6, t12).
Caveats from the run notes:
- TASK.md was withheld from graders because the with-skill copy mentions the skill.
- The original fixture files were not inside the graded folders, so assertions comparing a result with the original (byte-identical test files, same output as the original) were often marked unknown. Graders compared the two sides with each other and ran what they could.
- In many pairs both arms produced behaviourally identical refactors, often byte-identical, so only a few single assertions or the preference separate the arms.
- v2-t7 was graded from a shorter folder (Windows path limit); contents unchanged.
- The helper refactor_diff.py reported a changed public surface when private helpers were added; graders treated this as a false positive where public names were verified unchanged.
- Some executors added unrequested files such as characterisation tests; graders treated this as a minor scope point.
How it performed
With the skill 53 of 73 assertions passed (72.2%); without it 51 of 73 (69.4%). The pass-rate delta was +0.028 with a 95% CI of -0.013 to +0.069, which includes zero. The win score from both-order preference was 0.458 (CI 0.295 to 0.622). The minimum detectable effect at 80% power is 0.176, several times the observed delta. The two arms' per-task scores correlate at 0.95. Tasks where every assertion passed (none failed or unknown): 25% with the skill, 17% without. Four of 12 pairs had inconsistent order preferences (t4, t6, t9, t10). No task was marked harmed. t5 and t6 were saturated.
Per-task scores (with skill / baseline) and the final preference:
- t1 dup-pricing 8 / 6, with skill.
- t2 split-orders 8 / 8, tie.
- t3 flatten-ship 8 / 8, tie.
- t4 dead-inventory 9 / 7, tie (with skill in one order, tie in the other).
- t5 tip-feature 8 / 8, tie.
- t6 better-parser 8 / 7, tie (order-inconsistent).
- t7 status-chain 7 / 8, baseline.
- t8 shared-helper 8 / 8, tie.
- t9 refactor-broke 8 / 6, tie (order-inconsistent).
- t10 loops-stats 8 / 8, tie.
- t11 slow-lookup 9 / 9, tie.
- t12 simplify-config 8 / 8, baseline.
Counting final preferences, the skill won 1 pair, the baseline won 2 and 9 were ties. Counting score differences, the skill was ahead in 4 (t1, t4, t6, t9), behind in 1 (t7) and level in 7.
Strengths
- t1: both folded the four functions into one helper, but the baseline always multiplied by 1.0 so integer inputs silently became floats, breaking "no behaviour change at all". The with-skill run kept types identical, skipped None steps and explained the trap in its reply. Preferred with the skill in both orders.
- t4: the with-skill run removed the unused private _tmp_cache variable and the baseline left it in with a debatable rationale; one grader counted the removal as in scope, the other as outside the stated imports and helpers, so the preference was a tie in one order. Both kept _handle_json and _handle_csv and explained why.
- t9: the with-skill run made exactly the two targeted fixes and kept the loop-free summarize; the baseline also fixed both regressions but reintroduced an explicit loop and failed the structure check. The final preference was still a tie because the orders disagreed: in the other order the grader preferred the baseline for matching the original float summation exactly with an explicit loop, and a grader critique notes that the structure check is debatable.
- In t12 a grader found that the with-skill run's 22 characterisation tests passed against the baseline's config.py, a useful cross-check of equivalence.
Weaknesses and failure cases
- t7 status-chain went to the baseline in both orders (7 against 8): the baseline's dict version was the most compact and readable, with a small TypeError guard and no extra files; the with-skill tuple scan kept exact == semantics but was longer and added an unrequested test file.
- t12 simplify-config went to the baseline on preference (scores 8 and 8): the baseline's config was visibly shorter and flatter, while the with-skill run was more conservative, left the loop in load_config and shipped a 22-test characterisation file nobody asked for. The Opus grader also preferred the baseline's flatter config.
- The unrequested extra file recurs: with-skill runs added characterisation test files in t6, t7 and t12. This follows from the skill's step 3 but graders counted it as a minor scope point where the task named the files to save.
- In t10 the with-skill run kept an `oldest` loop and preserved edge-case behaviour (iterators, odd records) more strictly, while the baseline was cleaner at the cost of a disclosed, minor narrowing of avg_age. Scores were level; the preference was a tie in one order and with the skill in the other.
- Most pairs show little or no difference: t3, t5, t8 and t11 produced essentially the same code in both arms (t8 code files identical), and t2 produced behaviourally identical splits with different helper names.
- Several assertions were marked unknown because the fixture was absent (for example 4 of 6 in t1 for both arms), so the pass counts compare arms on a partial basis. The graders' own critiques call many assertions trivial or too weak to separate the arms.
When to use it and when not to
Use it for behaviour-preserving cleanups where a silent change would matter: removing duplication in typed arithmetic, deleting dead code exactly as asked, and repairing an AI refactor that broke tests. The data show it avoided a type-changing defect (t1) and a missed deletion (t4). Where the request is vague or the cleanest solution is a bolder simplification (t7, t12), expect more cautious code, extra test files and sometimes a less compact result. It added nothing visible on simple splits, flattening, helper extraction or performance fixes. Its description excludes bug fixes, new features, performance tuning, migrations and rewrites in another language.
Judge findings
A judge scored the SKILL.md. Procedure (Q2) 3.5 of 4: seven ordered steps, commit format, stop-and-ask rule, fixed report. Domain specificity (Q3) 3.5 of 4: rules on quirks and tests, exit codes and JSON fields, but no numeric thresholds. Edge cases (Q6) 2.5 of 3: no tests, failing tests, no Python, cross-file callers and dynamic access covered; no-git projects not. Trigger wording (T3) 1.5 of 2: lists clean up, simplify, refactor, tidy, duplication and split, but omits dead code, flatten, extract and readability phrasings.
Verdict
The record verdict is LIFT_UNCONFIRMED. The pooled delta is small and positive (+0.028, CI -0.013 to +0.069) while the win score is 0.458, below one half, so the data neither show a gain nor show harm. Nine of 12 pairs ended as ties on preference, in many because both arms produced equivalent refactors. The clearest with-skill advantages (t1, t4, t9) are single cases, and two of the three ended as ties on preference. Two pairs (t7, t12) went to the baseline. The Opus second grader tied t6 and t8, preferred the baseline on t2 (its helper names matched what each did, where the primary graders tied) and preferred the baseline on t12 (agreeing with the primary graders); t7 was not among the four Opus tasks. Limits: one run per arm per task, a single cheap executor model, one model family executing and grading, many unknown assertions due to missing fixtures, and no human grading.
User Score
No reviews yet. A User Score is planned to use only reviews from people with a verified install. Installation verification is not available yet. An average requires 5 verified reviews.
Examples
No before-and-after examples yet. They are added from our evaluation runs.
Limits and known failures
- The script sees one file; it cannot find callers elsewhere, dynamic access or monkeypatching.
- surface_preserved: true does not prove behaviour is preserved; only the tests do, and they cover the inputs chosen.
- The script handles Python only.
- The catalogue is not exhaustive and does not decide whether a refactor is worth doing.
- Code with randomness, clocks, concurrency or external services needs fakes and may stay partly untested.
Security
| Scanner | Version | Date | Result |
|---|---|---|---|
| External scan (Semgrep, Gitleaks, instruction-indirection detector, own rules) | Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1 | 2026-11-22 | No issues found |
A scan is not a guarantee. Read what a skill does before you install it.
Reviews
No reviews yet.
Write a review
Questions and answers
No questions yet.
Ask a question
Discussion
Recommended by 0 people. A recommendation is not a rating and is not part of either score.
Comments (0)
No comments yet.
Add a comment
Versions
| Commit | Date | Change | Platform Score |
|---|---|---|---|
5f9a43d | 2026-11-22 | First and only published version: the package as committed to kobilyricsweb/skillalmanac-skills. No later change has been made, so there is no change log yet. Scored and scanned as source package 29744af82835; the published folder omits internal metadata and VERIFICATION.md. | 61 (current) |
Licence
Apache-2.0
Apache-2.0, declared in the skill frontmatter and shipped as a LICENSE file in the package.
Publisher
- Name
- Skill Almanac
- Verification
- Not verified. Nobody has claimed this listing yet.
- Profile
- No public profile yet
Other skills from this publisher
- cited-deep-research 62/100 · grade CScored · Method v0.2 · How we score
- coding-agent-guardrails 60/100 · grade CScored · Method v0.2 · How we score
- notes-vault-organizer 67/100 · grade CScored · Method v0.2 · How we score
- session-handoff-notes 63/100 · grade CScored · Method v0.2 · How we score
- word-document-builder 62/100 · grade CScored · Method v0.2 · How we score
- agency-client-onboarding-checklist 50/100 · grade DScored · Method v0.2 · How we score
- bank-statement-reconcile 54/100 · grade DScored · Method v0.2 · How we score
- candidate-scorecard-builder 63/100 · grade CScored · Method v0.2 · How we score
Similar skills
- improve-codebase-architecture by Matt Pocock 25/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- test-first-development by Skill Almanac 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- test-driven-development by Addy Osmani 40/100 · grade DScored · Method v0.2 · How we score
- tdd by Matt Pocock 30/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
Category: Code Review & Quality (assignment not yet confirmed by an editor)
Learn: How to install a Claude Code skill: personal, project and plugin routes
Common questions
What is the Platform Score of simplify-and-refactor?
61 out of 100 under method v0.2, scored on 2026-11-22.
Has simplify-and-refactor been tested for effectiveness?
Yes. Efficacy was measured by running tasks with and without the skill.
Which tools has the install been checked on?
Install check passed on: Claude Code 2.1.330, 2026-11-23. It says the files install, not that the skill works.
What licence does it use?
Apache-2.0, declared in the skill frontmatter and shipped as a LICENSE file in the package.
When was this page last updated?
2026-11-22.
Cite this entry
Skill Almanac. simplify-and-refactor. Updated 2026-11-22. Platform Score 61/100 (rated, method v0.2), scored 2026-11-22. https://skillalmanac.com/skills/skill-almanac/simplify-and-refactor
This citation identifies our entry and assessment. The original skill belongs to its publisher.
SKILL.md
The skill text is not mirrored here. Read it in the source repository.
Report or claim this listing
Report a problem with this listing (malicious content, wrong licence, impersonation, copyright). Publishers can add their own skills through Submit a skill; claiming an existing listing is not available yet.
Index status: eligible for search engines. Markdown version of this page
What to do next
- Install it with the pinned command above, then try it on one real task.
- Compare other Code Review & Quality skills, ranked by Platform Score.
- Read How to install a Claude Code skill: personal, project and plugin routes.
- Compare it with another skill.
- Unsure what a score means? How we score.