Code shaper

From hugoduncan/psi · View interactive version

Code shaper is an AI agent skill from the GitHub repository hugoduncan/psi. Shape code for simplicity, consistency, and robustness. Use this to improve code quality and the ability to mutate and adapt it over time.

How to use this skill

Skill file

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))

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.