Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Same behaviour, shorter and clearer code v1.0.0

Use this resource to reduce code without changing its behaviour, by addressing modelling defects

New

  • 425 downloads
  • 173 likes
  • 126 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install code-simplification-less-code

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent reviews and simplifies code by looking for what automated tools miss: reinvention, wrong frames, stored derived state, procedural rebuilds and needless generality. Each change keeps the same observable behaviour. You get shorter code without losing features.

Mostly picked by

Updated November 2, 2026

Card for the “Same behaviour, shorter and clearer code” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on derived state and computed values
  • references/: cards on defensive excess and validation at the boundary

Good fit for

  • A module stores computed fields and updates them by hand
  • The code re-checks conditions that are already guaranteed

Not for

    Tags

    • refactoring
    • simplification
    • code review
    • modelling
    • readability

    About

    You say

    “Simplify this service: it stores computed values and checks cases that cannot happen at each step.”

    Card for the “Same behaviour, shorter and clearer code” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to reduce code without changing its behaviour, by addressing modelling defects
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md11.4 KB
    • assets/templates/_template.md2.7 KB
    • LICENSE1.1 KB
    • metadata.json1.6 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md6.7 KB
    • references/_sections.md3 KB
    • references/defense-guard-against-impossible.md4 KB
    • references/defense-let-it-throw.md4.5 KB
    • references/defense-null-pollution-from-bad-modelling.md4 KB
    • references/defense-validate-once-at-boundary.md4 KB
    • references/derive-boolean-from-data.md3.5 KB
    • references/derive-cache-as-getter-not-field.md3.6 KB
    • references/derive-dont-store-computed.md4 KB
    • references/derive-single-source-of-truth.md3.5 KB
    • references/derive-url-as-state.md3.4 KB
    • references/dup-config-not-copies.md3.4 KB
    • references/dup-cross-layer-shape.md3.5 KB
    • references/dup-mirrored-branches.md3.4 KB
    • references/dup-near-twin-functions.md3.4 KB
    • references/dup-parallel-types-same-shape.md3.3 KB
    • references/frame-composition-over-inheritance-for-shared-fields.md3.3 KB
    • references/frame-data-over-procedure.md3.9 KB
    • references/frame-function-not-class.md2.9 KB
    • references/frame-manager-noun-is-a-verb.md3.6 KB
    • references/frame-monolith-by-cohesive-axis.md4.4 KB
    • references/proc-build-vs-declarative-template.md3.6 KB
    • references/proc-if-chain-as-lookup.md3 KB
    • references/proc-manual-recursion-of-walk.md3.5 KB
    • references/proc-mutation-builder-over-pipeline.md5.1 KB
    • references/proc-sequential-awaits-could-be-parallel.md3.9 KB
    • references/reinvent-builtin-data-structures.md2.7 KB
    • references/reinvent-date-and-time.md2.3 KB
    • references/reinvent-deep-equality.md2.4 KB
    • references/reinvent-explicit-state-machine.md2.9 KB
    • references/reinvent-stdlib-collection-ops.md2.4 KB
    • references/spec-flag-driven-paths.md3.9 KB
    • references/spec-generic-over-one-type.md3.5 KB
    • references/spec-interface-of-one.md3.9 KB
    • references/spec-no-extension-point-without-extender.md3.5 KB
    • references/spec-options-bag-of-one.md3.5 KB
    • references/types-branding-over-runtime-checks.md4.3 KB
    • references/types-discriminated-union-over-flags.md3.8 KB
    • references/types-exhaustive-switch-not-default.md4 KB
    • references/types-literal-union-over-string.md3.4 KB
    • references/types-no-any-to-silence.md4 KB
    • references/types-readonly-and-immutable-by-default.md3.9 KB
    • SKILL.md12.1 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/same-results-less-code
    Licence
    MIT

    Notice

    « same-results-less-code » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.