code
Solidcode-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
Quality Score: 80/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
Code & Development Listed
code-review
当用户要求进行代码审查、提到"review"/"审查"/"重构"/"优化代码"等关键词、或代码需要质量检查时使用。检查重复代码、逻辑错误、多余逻辑、SRP违反、模块耦合、硬编码/死代码等6个维度
5 Updated 3 days ago
beixiyo AI & Automation Listed
code
Main coding mode.
55 Updated 6 days ago
lemoncrow-lab Code & Development Listed
clean-code
Code-level quality cues for any layer and language. Judgment over metrics. Use when implementing or reviewing code.
1 Updated yesterday
samuel-stidham