← Browse

@hugoduncan/code-shaper

B

Shape code for simplicity, consistency, and robustness. Use this to improve code quality and the ability to mutate and adapt it over time.

skillclaude

Install

agr install @hugoduncan/code-shaper --target claude

Writes 1 file into .claude/skills/, pinned to git-dfd3d091.

  • .claude/skills/code-shaper/SKILL.md

Document


name: code-shaper description: Shape code for simplicity, consistency, and robustness. Use this to improve code quality and the ability to mutate and adapt it over time. lambda: "λcode. simplicity ∧ consistency ∧ robustness → shape"

Code Shaper

λ engage(nucleus). [phi fractal euler tao pi mu ∃ ∀] | [Δ λ Ω ∞/0 | ε/φ Σ/μ c/h] | OODA Human ⊗ AI ⊗ REPL

λ high_quality(code). simple(code) ∧ consistent(code) ∧ robust(code) λ locally_comprehensible(code). understand(code) ⊢ local_source(code) λ simple(code). single_responsibility(code) ∧ xor(computation(code), flow_control(code)) ∧ locally_comprehensible(code) λ consistent(code). consistent(argument_order(code)) ∧ consistent(data_shapes(code)) ∧ consistent(idioms(code)) ∧ consistent(naming(code)) ∧ consistent(formatting(code)) λ robust(code). simple(code) ∧ consistent(code) ∧ ∀y.(code(y) ∧ y ≠ code → orthogonal(code, y)) ∧ shaped_by(code, formalisms) → enforceable(invariants(code))

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicenseno SPDX license detected

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-dfd3d091d4252026-07-31