code

Solid

code-legibility linter run by PostToolUse or via <path> argument (saves audits to .construct/)

Code & Development 1 stars 0 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
10
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

**maximally legible code:** ensures you're able to keep up with the codebase - `logic-only` refactors since `/retardify:file` already owns the frame around it - `retard-maxxes` like a jr-engineer who does everything the long, extremely boring way - `simplifies` logic instead of advanced, deeply nested, or overly efficient abstractions - `separates` files or functions that do more than one thing, where practical - `sequences` logic from top to bottom in order of state, definitions, guards, then execution - `names` things using clear, concise, intuitively understood language - `linebreaks` separate distinct conceptual blocks, not single-line statements - `first principles` such as DRY, SoC, POLA, etc are a vibe; RDD, WTF, WET, etc are not a vibe <details> <summary>example:</summary> ```typescript // 1. global constants const IS_AGENT = true; type Requirement = { rawCode: string; badHabits: string[]; nestingDepth: number; isDuplicated: boolean; isSurprising: boolean; }; export function writeCode(requirements: Requirement[], request: string) { // 2. hoisted state const maxNesting = 2; let finalSolution = ""; // 3. defined helpers function keepItSimple(req: Requirement) { if (req.rawCode.includes("?")) { const ternaryCount = (req.rawCode.match(/\?/g) || []).length; if (ternaryCount > 1) throw new Error("use an if-statement"); } if (req.rawCode.includes(".reduce(")) throw new Error("use a for/forEach loop"); if (req.rawCode.inclu...

Details

Author
MaisonDeVolonte
Repository
MaisonDeVolonte/construct
Created
4 weeks ago
Last Updated
2 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category