Agent skill

Same Results Less Code

by pproenca in pproenca/dot-skills

Same behaviour in fewer, clearer lines — covers the judgment gaps that linters cannot catch (reinvention, wrong frame, hidden duplication, derived state, procedural rebuilds, speculative generality…

MITAuto-check passedDevelopment

Install Same Results Less Code

skills CLI
$ npx skills add pproenca/dot-skills --skill same-results-less-code -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pproenca/dot-skills same-results-less-code --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/same-results-less-code .claude/skills/same-results-less-code && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
same-results-less-code
GitHub stars
214
Token cost
~3k tokens
SKILL.md length
1,101 words
Files
46 (incl. references, assets)
Skills in repo
182
Repo updated
First seen
Licence
MIT

At a glance

Same behaviour in fewer, clearer lines — covers the judgment gaps that linters cannot catch (reinvention, wrong frame, hidden duplication, derived state, procedural rebuilds, speculative generality…

  • Works in 8 steps: Reinvention (CRITICAL) → Wrong Frame (CRITICAL) → Hidden Duplication (HIGH) → …
  • Simplifying code — and even when the user doesnt explicitly ask for simplification but is reviewing code
  • SKILL.md covers Core Principles, When to Apply, Rule Categories by Priority and Quick Reference, plus 4 more sections
  • Calls tsc

What it does

Same Results Less Code is an agent skill from pproenca/dot-skills. Same behaviour in fewer, clearer lines — covers the judgment gaps that linters cannot catch (reinvention, wrong frame, hidden duplication, derived state, procedural rebuilds, speculative generality, defensive excess, type-system underuse). Trigger when reviewing, refactoring, or simplifying code — and even when the user doesn't explicitly ask for "simplification" but is reviewing code, refactoring, or asking "is there a shorter way to write this?". Complements knip/eslint/ruff/tsc by focusing on the conceptual…

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 48 other files, including reference files and assets (for example `AGENTS.md`, `README.md` and `assets/templates/_template.md`).

It sits in Development, covering Linting and formatting and Refactoring. It works with ESLint and Ruff. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • Simplifying code — and even when the user doesnt explicitly ask for simplification but is reviewing code
  • Asking is there a shorter way to write this?

Example prompts

  • “t explicitly ask for”
  • “but is reviewing code, refactoring, or asking”
  • “/same-results-less-code”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Reinvention (CRITICAL)
  2. Wrong Frame (CRITICAL)
  3. Hidden Duplication (HIGH)
  4. Derived State Stored (HIGH)
  5. Procedural Rebuilds (MEDIUM-HIGH)
  6. Speculative Generality (MEDIUM)
  7. Defensive Excess (MEDIUM)
  8. Type System Underuse (LOW-MEDIUM)

What it can do on your machine

Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • tsc

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Same Results Less Code loads about 3k tokens when it runs, and up to ~40k if it reads all its reference files. Until then it costs about 145 tokens; SKILL.md has 1,101 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~145
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~40k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 1,101 words, ~3,029 tokens.

Download SKILL.mdSave it as .claude/skills/same-results-less-code/SKILL.md (or your agent's skills folder). This skill also uses 45 other files; get the full folder from GitHub.
name
same-results-less-code
description
Same behaviour in fewer, clearer lines — covers the judgment gaps that linters cannot catch (reinvention, wrong frame, hidden duplication, derived state, procedural rebuilds, speculative generality, defensive excess, type-system underuse). Trigger when reviewing, refactoring, or simplifying code — and even when the user doesn't explicitly ask for "simplification" but is reviewing code, refactoring, or asking "is there a shorter way to write this?". Complements knip/eslint/ruff/tsc by focusing on the conceptual modelling layer those tools cannot see.

Community Refactoring Best Practices: Same Results, Less Code

Code-review and refactoring guide focused on the parts of code volume that come from judgment and modelling gaps — wrong abstraction choices, hidden semantic duplication, defensive habits, premature generality. This skill deliberately skips what linters and tools like knip, eslint, ruff, tsc --noUnusedLocals, or formatters already catch. It is the second pass: after the mechanical cleanup, what remains?

Core Principles

  1. Preserve behaviour. Every transformation must produce identical observable behaviour — same outputs, same errors, same side effects, same API surface.
  2. Earlier mistakes cascade. A wrong frame multiplies into wrong shapes, which multiply into duplicate logic. Optimise from the top of the lifecycle.
  3. Explain why, not just what. Each rule explains the cost of the anti-pattern so judgment can transfer to novel cases.
  4. Quantify where possible. Prefer "eliminates N lines / prevents X bug class" over "cleaner."
  5. Don't over-refactor. Rule of three: extract abstractions when duplication has actually appeared three times, not in anticipation.

When to Apply

Use this skill when:

  • Reviewing a PR for "could this be simpler?" (the question linters can't answer)
  • Refactoring code that has grown in volume without growing in capability
  • Auditing a module that "feels heavy" — many flags, many layers, many checks
  • Onboarding to an unfamiliar codebase and trying to spot the parts that are accidental volume vs essential complexity
  • Designing a new module and wanting to avoid the common over-abstraction traps
  • Working alongside knip / eslint / ruff and wanting the layer of judgment those tools can't supply

Don't use this skill for:

  • Mechanical cleanup that a linter or formatter already does (unused imports, dead exports, style) — use knip, eslint, ruff, or prettier/black instead.
  • Algorithmic complexity / performance tuning — use complexity-optimizer for that.
  • General cleanup of recently modified code regardless of mental-model gaps — use code-simplifier.

Rule Categories by Priority

#CategoryPrefixImpactRulesGist
1Reinventionreinvent-CRITICAL5You wrote what the platform/stdlib already provides
2Wrong Frameframe-CRITICAL5Wrong abstraction shape — class where a function fits, manager nouns, OO over data
3Hidden Duplicationdup-HIGH5Semantic copies hiding behind syntactic differences
4Derived State Storedderive-HIGH5Storing what should be computed
5Procedural Rebuildsproc-MEDIUM-HIGH5Imperative reimplementation of declarative concepts
6Speculative Generalityspec-MEDIUM5Generality built for a second user who never arrived
7Defensive Excessdefense-MEDIUM4Checks for states the type/flow already rules out
8Type System Underusetypes-LOW-MEDIUM6Runtime guards that should be types

Quick Reference

1. Reinvention (CRITICAL)
2. Wrong Frame (CRITICAL)
3. Hidden Duplication (HIGH)
4. Derived State Stored (HIGH)
5. Procedural Rebuilds (MEDIUM-HIGH)
Show full SKILL.md (434 more words)Show less
6. Speculative Generality (MEDIUM)
7. Defensive Excess (MEDIUM)
8. Type System Underuse (LOW-MEDIUM)

How to Apply (Workflow)

When asked to review or refactor code with this skill:

  1. Run the mechanical pass first. knip/eslint/ruff/tsc --noUnusedLocals will catch dead code, unused imports, style. Don't duplicate that work here.
  2. Read the file or PR for intent. Ask: what is this code trying to do? The judgment skill is recognising when the implementation overshoots the intent.
  3. Walk the categories in priority order.
  4. Propose minimal-diff transformations. Each rule shows incorrect → correct as a tight diff; preserve that property in suggestions.
  5. Verify behaviour. Outputs, errors, and side effects must be identical. Tests must still pass.
  6. Don't bundle unrelated changes. Each transformation should map to one category. Mixing them makes the change hard to review.

When NOT to Apply

  • Code is younger than the rule of three (one or two duplicates) — extracting is premature.
  • The pattern is genuinely a known exception (see each rule's "When NOT to use this pattern" section).
  • The refactor would be a large, risky rewrite without a clear test safety net — propose, don't execute.
  • Performance-critical hot paths where the "simpler" form has measurable cost — measure first.

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information
  • code-simplifier — Mechanical simplification (naming, dead code, nesting). Complementary first pass.
  • complexity-optimizer — Algorithmic/performance complexity. Different axis.
  • refactor — General-purpose refactoring workflow.
  • clean-code — Broader clean-code principles. This skill is the narrower, judgment-focused subset.

© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 45 other files (references, assets) in skills/.experimental/same-results-less-code of pproenca/dot-skills.

  • SKILL.md
  • AGENTS.md
  • README.md
  • assets/templates/_template.md
  • metadata.json
  • references/_sections.md
  • references/defense-guard-against-impossible.md
  • references/defense-let-it-throw.md
  • references/defense-null-pollution-from-bad-modelling.md
  • references/defense-validate-once-at-boundary.md
  • references/derive-boolean-from-data.md
  • references/derive-cache-as-getter-not-field.md
  • references/derive-dont-store-computed.md
  • references/derive-single-source-of-truth.md
  • references/derive-url-as-state.md
  • references/dup-config-not-copies.md
  • references/dup-cross-layer-shape.md
  • references/dup-mirrored-branches.md
  • … and 28 more

Open the folder on GitHubat commit cf93c57

Compare with similar skills

Same Results Less Code next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Same Results Less Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Same Results Less Code this skillpproenca/dot-skills214—~3kAutomated safety check: PassMIT
Ha Code QualityFutureTense/keymaster349—~462Automated safety check: PassMIT
Cb Code QualityBlkLeg/CircuitBreaker201—~1.9kAutomated safety check: PassMIT
Format CodeROCm/FlyDSL287—~1.9kAutomated safety check: NotesCustom licence
Python Idiomsirahardianto/awesome-agv157—~4.4kAutomated safety check: PassMIT
Lintsoftspark/ai-toolkit179—~1.1kAutomated safety check: NotesApache-2.0

Similar skills

  • Ha Code Quality

    FutureTense/keymaster

    Standards and commands for linting, code formatting, typing validation (Ruff, MyPy, Codespell, ESLint, Pre-commit/Prek, Tox), and adherence to Home Assistant Python 3.14 standards in Keymaster.

    349 GitHub stars~462 tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Cb Code Quality

    BlkLeg/CircuitBreaker

    Circuit Breaker code conventions and the quality gates that actually block a push — ruff, mypy, eslint, the pytest coverage ratchet, and the make verify tiers.

    201 GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Format Code

    ROCm/FlyDSL

    Format, clean up, and style-check changed files, matching the project's CI style gate.

    287 GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check: notes
  • Python Idioms

    irahardianto/awesome-agv

    Modern Python (3.11+) idioms: type annotations, typing Protocols, Pydantic models, asyncio, pytest fixtures, and Ruff/Mypy strict compliance.

    157 GitHub stars~4.4k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Lint

    softspark/ai-toolkit

    Runs linter+typechecker with auto-detected toolchain (ruff/mypy, eslint/tsc, phpstan, golangci-lint, clippy).

    179 GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check: notes
  • Fantasia Two Level Architecture

    vishiri/fantasia-archive

    Migrates Fantasia Archive features to two-level functions + managers layout: pure scripts/functions/, manager.ts wiring (underscore suffix, e.g.

    409 GitHub stars~983 tokensUpdated 5 days ago
    DevelopmentAuto-check passed

More from pproenca/dot-skills

All 182 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    214 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    214 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    214 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    214 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    214 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    214 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Same Results Less Code

What does Same Results Less Code do?

Same behaviour in fewer, clearer lines — covers the judgment gaps that linters cannot catch (reinvention, wrong frame, hidden duplication, derived state, procedural rebuilds, speculative generality…. Same Results Less Code is an agent skill from pproenca/dot-skills. Same behaviour in fewer, clearer lines — covers the judgment gaps that linters cannot catch (reinvention, wrong frame, hidden duplication, derived state, procedural rebuilds, speculative generality, defensive excess, type-system underuse).

When should I use Same Results Less Code?

Same Results Less Code fits situations like: simplifying code — and even when the user doesnt explicitly ask for simplification but is reviewing code; asking is there a shorter way to write this?.

How do I install Same Results Less Code in Claude Code?

Run `npx skills add pproenca/dot-skills --skill same-results-less-code -a claude-code`. Or copy the skill folder (skills/.experimental/same-results-less-code in pproenca/dot-skills) into .claude/skills/same-results-less-code in your project. Claude Code loads it when a task matches its description.

How do I install Same Results Less Code in Codex?

Run `npx skills add pproenca/dot-skills --skill same-results-less-code -a codex`. Or copy the skill folder (skills/.experimental/same-results-less-code in pproenca/dot-skills) into .agents/skills/same-results-less-code in your project. Codex loads it when a task matches its description.

Can I use Same Results Less Code in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill same-results-less-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/same-results-less-code, .gemini/skills/same-results-less-code, .github/skills/same-results-less-code and .opencode/skills/same-results-less-code in your project.

What does Same Results Less Code need to run?

Going by SKILL.md and its folder, Same Results Less Code needs the command-line tools its instructions call (tsc).

Does Same Results Less Code access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Same Results Less Code safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Same Results Less Code use?

Same Results Less Code is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Same Results Less Code use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 37k tokens, read only when the agent opens those files.

What are the alternatives to Same Results Less Code?

Skills that share tags, products or a category with Same Results Less Code: Ha Code Quality (FutureTense/keymaster, 349 stars), Cb Code Quality (BlkLeg/CircuitBreaker, 201 stars), Format Code (ROCm/FlyDSL, 287 stars) and Python Idioms (irahardianto/awesome-agv, 157 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Same Results Less Code?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.

Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.