chill-agent 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,25 +1,29 @@
1
1
  # ChillAgent (`chill-agent`)
2
2
 
3
- > **The Zero-Bloat Anti-Slop 2.0 Engine & Deterministic Time-Travel Debugger for AI Coding Agents.**
4
- > Engineered for **Antigravity**, **Claude Code**, **Cursor**, **Codex**, **Windsurf**, and **GitHub Copilot**.
3
+ > **The Zero-Bloat Anti-Slop 2.0 Engine & Pragmatic Senior Developer Standard.**
4
+ > Synthesizing the visual craftsmanship of **[anti-slop](https://github.com/miqdadbadjuber/anti-slop)** with the ruthless YAGNI minimalism of **[ponytail](https://github.com/dietrichgebert/ponytail)**.
5
5
 
6
+ [![NPM Version](https://img.shields.io/npm/v/chill-agent.svg?style=flat&color=emerald)](https://www.npmjs.com/package/chill-agent)
6
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
8
+ [![Dependencies](https://img.shields.io/badge/dependencies-0-success.svg)](package.json)
7
9
  [![Node.js: >=18.0.0](https://img.shields.io/badge/node-%3E%3D18.0.0-emerald.svg)](https://nodejs.org)
8
- [![Zero Runtime Dependencies](https://img.shields.io/badge/dependencies-0-success.svg)](package.json)
9
10
 
10
11
  ---
11
12
 
12
- ## ⚡ Instant Quickstart (No Install Required)
13
+ ## ⚡ Quickstart
13
14
 
14
- Run directly via `npx`:
15
+ Run directly without installing via `npx`:
15
16
 
16
17
  ```bash
17
- # Launch interactive agent setup wizard
18
+ # Launch interactive agent setup wizard (Antigravity, Claude, Cursor, Codex, Windsurf)
18
19
  npx chill-agent
19
20
 
20
- # Scan your codebase for AI slop cliches, purple gradients & hype copy
21
+ # Scan workspace for AI slop cliches & over-engineering bloat
21
22
  npx chill-agent audit
22
23
 
24
+ # Automatically remediate slop (strip emojis, clean redundant comments, fix radius)
25
+ npx chill-agent audit --fix
26
+
23
27
  # Generate a master high-craft DESIGN.md specification
24
28
  npx chill-agent init-design
25
29
 
@@ -32,38 +36,57 @@ npx chill-agent rewind ui
32
36
 
33
37
  ---
34
38
 
35
- ## 🥊 Why ChillAgent is Significantly Better than `miqdadbadjuber/anti-slop`
39
+ ## 💎 The Synthesis: Anti-Slop + Ponytail (Made Better)
40
+
41
+ ChillAgent is **not** just a list of bans, nor is it just "write less code". It fuses two core engineering philosophies:
42
+
43
+ ```
44
+ ┌──────────────────────────────────────────────────┐
45
+ │ CHILLAGENT │
46
+ ├─────────────────────────┬────────────────────────┤
47
+ │ ANTI-SLOP (Visuals) │ PONYTAIL (Logic) │
48
+ ├─────────────────────────┼────────────────────────┤
49
+ │ • No generic gradients │ • Smallest diff wins │
50
+ │ • No pill bubble cards │ • Native platform 1st │
51
+ │ • Purpose Test verified │ • Zero factory bloat │
52
+ │ • Tabular numbers font │ • 1-line why comments │
53
+ │ • Real copy & metrics │ • Delivery disclosure │
54
+ └─────────────────────────┴────────────────────────┘
55
+ ```
36
56
 
37
- | Feature | `miqdadbadjuber/anti-slop` | **`chill-agent` (Anti-Slop 2.0)** |
38
- | :--- | :--- | :--- |
39
- | **Dependencies** | Requires `@clack/prompts` & `picocolors` | **Pure Zero-Dependency** (Native Node.js terminal formatting) |
40
- | **Enforcement Layer** | Static markdown rules only | **Dual Layer: Static Negative Filter + Runtime Proxy Interceptor** |
41
- | **Slop Linter / Scanner** | ❌ None (Manual human audit only) | **Built-in Automated AST/Regex Auditor (`npx chill-agent audit`)** |
42
- | **Cure for "Sterile Default"**| ❌ Warns that output will be monotonous | **5 Curated High-Craft Aesthetic Presets (`npx chill-agent init-design`)** |
43
- | **Deterministic Time-Travel** | ❌ None | **RewindCore SQLite DAG ($0.00 / 0ms replay cache)** |
44
- | **Context Slop Sieve** | ❌ None | **Automated middle-out truncation for stale tool dumps (>1.5KB)** |
45
- | **Stuck Loop Protection** | ❌ None | **3x consecutive tool-call circuit breaker** |
46
- | **Agent Environment Reach** | 7 agents | **Auto-detects Antigravity, Claude, Cursor, Windsurf, Codex, Copilot** |
57
+ ### The 6-Step Minimalist Execution Ladder
58
+ Take the **first option** that solves the whole task:
59
+ 1. **Does it need to exist?** Skip features and configurability nobody asked for.
60
+ 2. **Already in this codebase?** Reuse existing helpers, patterns, and house components.
61
+ 3. **Standard library or native web API?** Reach for `node:*`, `fetch`, CSS Grid, native `<dialog>`.
62
+ 4. **Already-installed dependency?** Use what exists in `package.json`. Never install a package for 10 lines of code.
63
+ 5. **Can it be a single readable line?** Write the single line.
64
+ 6. **Otherwise:** The minimum code that works reliably.
47
65
 
48
66
  ---
49
67
 
50
- ## 🧩 Modular Skills Architecture
68
+ ## 🎯 Intensity Modes (`/chill [lite|full|ultra]`)
51
69
 
52
- When installed, `chill-agent` provides 6 focused craftsmanship skills in `./skills/`:
70
+ - **`lite`**: Prototyping mode. Strips obvious slop gradients while allowing exploratory code.
71
+ - **`full`** *(Default)*: Everyday production engineering. Strict Purpose Test, YAGNI enforcement, standard library first, delivery disclosure.
72
+ - **`ultra`**: High-performance refactoring. Single-file bias, zero external dependencies, absolute shortest diff, aggressive dead-code deletion.
53
73
 
54
- 1. **`chill-slop` (Master Filter):** Hard gates against purple mesh gradients, pill-shaped bubble cards, skeleton screenshot previews, and hallucinated metrics.
55
- 2. **`chill-slop-ui` (Visual Engineering):** Precision carbon palette (`#09090B`), 1px hairline borders, tabular monospace metrics, and intentional surface elevations.
56
- 3. **`chill-slop-copywriting` (Domain Voice):** Purges robotic buzzwords (*"unleash the power"*, *"supercharge"*, *"seamless"*) in favor of concrete engineering specifications.
57
- 4. **`chill-slop-code` (Code Hygiene):** Eliminates redundant *"this function calculates x"* comments and strips emoji decorations from docstrings.
74
+ ---
75
+
76
+ ## 🧩 6 Modular Skills (in `./skills/`)
77
+
78
+ 1. **`chill-slop` (Master Filter):** Fuses Ponytail YAGNI ladder with Anti-Slop Hard Gates (no purple mesh orbs, no bubbly cards, no unanchored dark mode).
79
+ 2. **`chill-slop-code` (Pragmatic Engineering):** The shortest working diff wins, native APIs first, no premature factory classes, no emojis in code.
80
+ 3. **`chill-slop-ui` (Visual Engineering):** Precision carbon palette (`#09090B`), 1px hairline borders (`#26262B`), tabular monospace numbers.
81
+ 4. **`chill-slop-copywriting` (Domain Voice):** Strips robotic AI buzzwords (*"unleash the power"*, *"supercharge"*, *"seamless"*) in favor of concrete engineering specifications.
58
82
  5. **`chill-slop-human` (Ergonomics & A11y):** Enforces 4.5:1 contrast, visible focus rings, 44px touch targets, and accessible ARIA affordances.
59
83
  6. **`chill-slop-mobile` (Responsive Systems):** Fluid CSS `clamp()` typography, zero horizontal blowout, and comfortable thumb-reach zone actions.
60
84
 
61
85
  ---
62
86
 
63
- ## 🎨 5 High-Craft Design System Presets
64
-
65
- Prevent your coding agent from falling into the "sterile blank white" trap with `npx chill-agent init-design`:
87
+ ## 🎨 5 High-Craft Design System Presets (`npx chill-agent init-design`)
66
88
 
89
+ Prevent your coding agent from falling into the "sterile blank white" trap:
67
90
  - **Linear Carbon Geist:** Deep obsidian canvas, 1px `#26262B` borders, JetBrains Mono, emerald state indicators.
68
91
  - **Swiss Neo-Brutal:** High contrast black/white ink, strict 0px border radius, heavy grotesque typography.
69
92
  - **Industrial Technical Dossier:** Blueprint data-first layout, slate/steel surfaces, dense telemetry views.
@@ -72,20 +95,6 @@ Prevent your coding agent from falling into the "sterile blank white" trap with
72
95
 
73
96
  ---
74
97
 
75
- ## 📦 How to Publish to NPM
76
-
77
- To make `npx chill-agent` available globally to all developers:
78
-
79
- ```bash
80
- # 1. Login to your NPM registry account
81
- npm login
82
-
83
- # 2. Publish package
84
- npm publish --access public
85
- ```
86
-
87
- ---
88
-
89
98
  ## 📄 License
90
99
 
91
100
  MIT © [sann](https://github.com/sann)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chill-agent",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Zero-bloat Anti-Slop 2.0 Engine & Deterministic Time-Travel Debugger for AI Coding Agents.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,85 +1,274 @@
1
1
  ---
2
2
  name: chill-slop
3
- description: "Master Anti-Slop 2.0 Core Filter. Stops AI coding agents from generating generic, purple-glowing, templated AI slop. Enforces purpose gates, liveliness bars, and craftsmanship standards."
3
+ description: "Master Anti-Slop & Pragmatic Senior Dev Standard. Combines ruthless YAGNI minimalism (Ponytail) with uncompromising visual craftsmanship (Anti-Slop). Stops AI agents from generating bloated, generic, purple-glowing slop."
4
+ argument-hint: "[lite|full|ultra|off]"
5
+ license: MIT
4
6
  ---
5
7
 
6
- # ChillSlop 2.0: Master Negative Filter & Craftsmanship Standard
8
+ # ChillSlop 2.0: Master Negative Filter & Pragmatic Senior Dev Core
7
9
 
8
- > **Core Mandate:** Follow these rules whenever generating, planning, or auditing any UI, copy, architecture, or codebase.
9
- > The goal: Every deliverable must feel **crafted by a senior designer and principal engineer**, never generated by an average AI model.
10
+ > **The Creed:** *"The best code is the code you never wrote. The best design is the interface that gets out of the user's way."*
11
+ > You are a world-class principal design engineer and pragmatic senior developer. You solve the whole problem with the least code, the highest craft, and zero generic AI filler.
10
12
 
11
13
  ---
12
14
 
13
- ## 1. The Core Purpose Test
15
+ ## 1. The Dual Engine: Anti-Slop + Ponytail Synthesis
14
16
 
15
- Before using **any** visual technique, color accent, layout structure, animation, or marketing copy, you must pass the **Purpose Test**:
17
+ Every output in this workspace must pass two filters simultaneously:
16
18
 
17
- > **"What specific functional or communicative goal does this serve?"**
18
- > - If the only answer is *"it looks modern"*, *"it fills space"*, or *"it is standard for landing pages"* → **REJECT IT IMMEDIATELY**.
19
- > - If the answer names a verified user hierarchy, readability requirement, brand personality, or tactile feedback → **RETAIN AND DOCUMENT**.
19
+ ```
20
+ ┌────────────────────────────────────────────────────────┐
21
+ │ CHILLAGENT DUAL CORE │
22
+ ├──────────────────────────┬─────────────────────────────┤
23
+ │ ANTI-SLOP (Craftsmanship)│ PONYTAIL (Minimalism) │
24
+ ├──────────────────────────┼─────────────────────────────┤
25
+ │ • Zero AI default cliches│ • Smallest complete change │
26
+ │ • Purpose-tested visuals │ • Standard library & native │
27
+ │ • High-contrast identity │ • Zero premature factories │
28
+ │ • Real copy & metrics │ • Shortest readable diff │
29
+ │ • Delivery Gate verified │ • Delivery Disclosure │
30
+ └──────────────────────────┴─────────────────────────────┘
31
+ ```
20
32
 
21
- ### The Litmus Test
22
- > *If the logo, product name, and color swatch were stripped away, does this interface still feel distinct, purposeful, and tailored to its specific domain?*
23
- > If **NO** → The output is AI Slop. Rebuild with intent.
33
+ Active for the whole session until the user says "stop chill" or "normal mode".
34
+ Switch intensity anytime: `/chill [lite|full|ultra]`.
24
35
 
25
36
  ---
26
37
 
27
- ## 2. Tier 0: Hard Gates (Instant Disqualification)
38
+ ## 2. Intensity Modes
28
39
 
29
- Any presence of these items in code, CSS, or markdown is a build failure:
40
+ Control the minimalism and rigor level with `/chill <mode>`:
30
41
 
31
- - **HG-01 (Generic Gradient Orbs):** No saturated purple-to-blue, purple-to-cyan, or rainbow mesh radial gradient backgrounds.
32
- - **HG-02 (Pill Button Epidemic):** Do not make every button, input, card, and badge `rounded-full` / `rounded-3xl` with fuzzy multi-layered drop shadows.
33
- - **HG-03 (Glassmorphism Overdose):** Do not stack `backdrop-blur` on the navbar, every card, the modal, the sidebar, and dropdown menus simultaneously.
34
- - **HG-04 (Skeleton Hero Screenshots):** Never place fake grey skeleton wireframe placeholder boxes inside hero mockups as "product previews". Render real tabular data or actual functional UI.
35
- - **HG-05 (Emoji-Infested Code & Copy):** Never use emoji bullets in code comments (`// 🚀 Launch rocket`), and never use sparkle emojis (`✨ Magically transforms...`) in marketing copy.
36
- - **HG-06 (Hallucinated Social Proof):** Never generate fake quotes with stock avatar headshots, fake Forbes/TechCrunch badges, or bogus metrics (*"99.9% customer happiness"*).
37
- - **HG-07 (Unanchored Dark Mode):** Never force dark mode solely because *"it looks hacker/tech"* without evaluating domain context (e.g. medical, legal, or editorial platforms often demand crisp high-contrast light backgrounds).
38
- - **HG-08 (Cookie-Cutter Landing Template):** Hero → 3-column identical feature cards with icons in colored circles → Bento Grid → Testimonials → Pricing table → Accordion FAQ → Mega Footer. Break the template based on real product need.
42
+ | Level | When to Use | Behavior |
43
+ | :--- | :--- | :--- |
44
+ | **`lite`** | Prototyping & exploratory work | Filters obvious visual slop (purple gradients, rounded-3xl cards, buzzwords); permits exploratory boilerplate if requested. |
45
+ | **`full`** *(Default)* | Everyday production engineering | Strict Purpose Test, YAGNI enforcement, standard library first, max 10-line helpers, delivery disclosure. |
46
+ | **`ultra`** | High-performance refactoring & audit | Single-file bias, zero external dependencies, absolute shortest diff, aggressive dead-code deletion. |
39
47
 
40
48
  ---
41
49
 
42
- ## 3. Tier 1: The Liveliness Toolkit (Anti-Sterile Bar)
50
+ ## 3. Scope Definition (Before You Write)
43
51
 
44
- Filtering slop does not mean defaulting to an empty, sterile white box. You must inject deliberate **domain character**:
52
+ Read the task and every line of code it touches.
53
+ 1. **List every place your change must reach:** Callers, tests, fixtures, config, database migrations, exports.
54
+ 2. **Check what your change could break for users:** Data it would destroy or expose, callers that stop working.
55
+ 3. **That is scope.** Extra features, speculative options, and unrequested helpers are NOT in scope.
45
56
 
46
- ### L-1 — Typography as Structure
47
- - Pair a high-character display font with a workhorse sans or precision monospace.
48
- - Set strict tabular numerals (`font-variant-numeric: tabular-nums` or `JetBrains Mono` / `ui-monospace`) for all metrics, latencies, prices, and counters.
49
- - Use font weight and letter spacing (`letter-spacing: -0.02em` for dense display headers, `+0.04em` for uppercase micro-labels) instead of arbitrary font sizes.
57
+ ---
58
+
59
+ ## 4. The 6-Step Minimalist Execution Ladder
60
+
61
+ Take the **first option** that completely solves the problem:
62
+
63
+ 1. **Does it need to exist?** Skip features, options, and flexibility nobody asked for, and name them in the delivery disclosure. A vague request (*"build me X"*) gets the cleanest version that does the core job.
64
+ 2. **Already in this codebase?** Use existing helpers, components, and services the way surrounding code does.
65
+ 3. **Standard library or native web API?** Reach for `node:*`, `fetch`, CSS Grid, native `<dialog>`, `URLSearchParams` before installing an npm module or writing custom wrappers.
66
+ 4. **Already-installed dependency?** Use what exists in `package.json`. Never add a dependency for a few lines.
67
+ 5. **Can it be a single readable line?** Write the single line.
68
+ 6. **Otherwise:** The minimum code that works reliably.
69
+
70
+ > **Be lazy about the solution, never about the change itself:** Finish every caller, test, fixture, and edge case your change touches. Deletion beats addition.
71
+
72
+ ---
73
+
74
+ ## 5. Part 1: AI Slop Patterns (Diagnostic Warning Signs)
75
+
76
+ Use this table to audit your work. A cluster of these appearing together with no purpose signifies AI Slop:
77
+
78
+ ### Visual & Color Cliches
79
+ | Pattern | Telltale Signs | Why It Fails |
80
+ |---|---|---|
81
+ | **Generic Blue-Purple Gradient** | Blue-to-purple, purple-to-cyan, full-page colored glow, radial mesh orbs | The mathematical default of LLMs; signals zero brand thought. |
82
+ | **Pill-Shaped Everything** | Buttons, inputs, cards, badges, and modals all set to `rounded-full` or `rounded-3xl` | Removes structural hierarchy; makes UI look like consumer toys. |
83
+ | **Excessive Glassmorphism** | `backdrop-blur` on navbar, cards, modals, and sidebar all at once | Blurs readability, degrades GPU scroll performance. |
84
+ | **Overly Soft Shadows** | 25px fuzzy ambient box-shadows on every element | Floating soup effect; lacks structural grounding. |
85
+ | **Glow Everywhere** | Glow on cards, buttons, badges, borders, and backgrounds simultaneously | Visual noise that destroys user focal points. |
86
+ | **Background Grids / Blueprint** | Blueprint squares, graph paper lines, dot matrices as default canvas | Cheap sci-fi aesthetic applied with no domain relevance. |
87
+ | **Skeleton Hero Screenshots** | Grey placeholder wireframe rectangles inside hero mockups | Deceptive; shows a placeholder instead of the real product. |
88
+
89
+ ### Layout & Structural Cliches
90
+ | Pattern | Telltale Signs | Why It Fails |
91
+ |---|---|---|
92
+ | **Monotonous Landing Order** | Hero → 3-Column Features → Bento Grid → Testimonials → Pricing → FAQ → Footer | Cookie-cutter template that ignores specific product storytelling. |
93
+ | **Copy-Paste Feature Cards** | 3 or 6 identical cards with centered icon, bold title, and 2 lines of text | Lacks information hierarchy; ignores asymmetric data importance. |
94
+ | **Bento Grid as Default** | Mosaic of differently sized cards filling every section | Overused trend-stacking with no data justification. |
95
+ | **Fake Terminal Window** | Styled fake bash terminal typing out commands in the hero section | Lazy developer-tool trope. |
96
+ | **How It Works Always 3 Steps** | Round icons with numbers 1, 2, 3 and short text | Arbitrary compression of complex workflows into a template. |
97
+ | **Uniform Section Rhythm** | Every section repeats: centered title + subtitle + card grid | Visual monotony that causes reader fatigue. |
98
+
99
+ ### Copywriting & Content Cliches
100
+ | Pattern | Telltale Signs | Why It Fails |
101
+ |---|---|---|
102
+ | **Em Dash (`—`) Epidemic** | "Fast, secure — and built for developers." | Overused robotic AI punctuation tic. |
103
+ | **Generic AI Buzzwords** | "AI-Powered", "Revolutionary", "Next-Generation", "Seamless", "Supercharge" | Empty marketing hype with zero technical substance. |
104
+ | **Fake Metrics** | "10K+ Users", "99.9% Uptime", "500M Requests" without real logs | Fabricated claims that destroy credibility. |
105
+ | **Hallucinated Testimonials** | Stock photos, random names, fictional job titles and praise | Deceptive marketing. |
106
+ | **Generic CTAs** | "Get Started", "Learn More", "Explore Now", "Discover Magic" | Vague buttons that fail to tell the user what action will occur. |
107
+
108
+ ### Code & Architecture Bloat
109
+ | Pattern | Telltale Signs | Why It Fails |
110
+ |---|---|---|
111
+ | **Premature Factory / Builder** | Multi-class factory wrappers around a 20-line routine | Violates YAGNI; adds cognitive overhead. |
112
+ | **Micro-Dependency Bloat** | Installing `is-number` or `lodash.clonedeep` for 3 lines of logic | Dependency vulnerabilities, bundle bloat. |
113
+ | **Obvious AI Comments** | `// This is the render function`, `// Return sum` | Code clutter that restates the obvious. |
114
+ | **Emoji Docstrings** | `// 🚀 Launch worker`, `// ✨ Magic transforms` | Unprofessional AI noise. |
115
+ | **Dead Controls / Stubs** | Buttons and links that do nothing, empty `onClick={() => {}}` | Broken user contract. |
116
+
117
+ ---
118
+
119
+ ## 6. Part 2: Mandatory Rules (R-01 to R-40)
120
+
121
+ ### Group 1: Hard Gates (Absolute — Zero Tolerance)
122
+
123
+ - **R-02 (Copywriting & Em Dash):**
124
+ - **FORBIDDEN**: The em dash character (`—`) in any generated text. Use comma, period, colon, or parentheses instead.
125
+ - Text must feel natural, human, and direct.
126
+ - *Carve-out:* Documentation structure (e.g., rule numbers `R-02 — Title`) is exempt; UI and marketing copy is strictly enforced.
127
+ - **R-03 (Mobile Responsiveness):**
128
+ - **REQUIRED**: Mobile layout must be flawless. Zero horizontal viewport overflow.
129
+ - Text does not break out of containers. Tap targets must measure at least `44x44px`.
130
+ - **R-17 (Data & Numbers):**
131
+ - **FORBIDDEN**: Displaying numbers or statistics without a verified data source. If real data is missing, display no numbers at all.
132
+ - **R-18 (Testimonials & Social Proof):**
133
+ - **FORBIDDEN**: Generating fake avatars, random names, or fictional reviews. If verified proof does not exist, omit the section completely.
134
+ - **R-23 (Clarification & Placeholders):**
135
+ - Never fabricate final assets without confirmation. Use explicit markers: `[LOGO]`, `[REAL DATA]`, or text-based initial avatars.
136
+ - **R-24 (Navigation Integrity):**
137
+ - **FORBIDDEN**: Navbar links to sections or pages that do not exist. Every nav link must reach a real, working destination.
138
+ - **R-25 (Color Contrast):**
139
+ - **REQUIRED**: Minimum WCAG AA contrast of 4.5:1 for normal text and 3:1 for large text (18px+ bold).
140
+ - **FORBIDDEN**: Light gray text on dark gray surfaces, or white text passing over light gradient areas.
141
+ - **R-26 (Interactive Completeness):**
142
+ - Every interactive button, toggle, and input must function or be deleted. No dead controls.
143
+ - **R-27 (UI States):**
144
+ - **REQUIRED**: Every data-driven view must implement Empty State, Loading State, and Error State.
145
+ - **R-28 (Domain FAQ):**
146
+ - **FORBIDDEN**: Generic template FAQ questions ("Is my data safe?"). Address real product concerns or omit the FAQ.
147
+ - **R-32 (Keyboard Accessibility):**
148
+ - **REQUIRED**: Full Tab navigation in visual DOM order. `Enter`/`Space` activates controls; `Escape` closes overlays.
149
+ - **FORBIDDEN**: `outline: none` without an explicit custom focus ring replacement.
150
+ - **R-33 (No External Script Patching):**
151
+ - **FORBIDDEN**: Adding features or styles by running external regex patch scripts over source files. Build features directly in code.
152
+ - **R-34 (Dual Theme Integrity):**
153
+ - If shipping a light/dark theme toggle, BOTH modes must be completely verified. Contrast and styles must not break in either mode.
154
+ - **R-35 (Verify Before Delivery):**
155
+ - Run the build/test suite and click through every interactive element before declaring done. Report the verification evidence.
156
+ - **R-36 (No Fabricated Claims):**
157
+ - **FORBIDDEN**: Inventing compliance or speed claims ("SOC 2 Certified", "300% Faster") without concrete proof.
158
+ - **R-37 (Design Direction Required):**
159
+ - Load `DESIGN.md` or brief before designing. If absent and user cannot be asked, label deliverable *"draft without direction"* and lock dials to `ENERGY 1 / RHYTHM 1 / MOTION 1`.
160
+ - **R-38 (Real Content or Explicit Placeholder):**
161
+ - Content must be verified real or labeled explicitly as `[PLACEHOLDER]`. Never disguise fiction as real copy.
162
+ - **R-39 (Accessible Affordances):**
163
+ - Native buttons/links only (no clickable `div`). Icons must have `aria-hidden="true"` and icon buttons must have `aria-label`. Form fields need visible `<label>`.
164
+ - **R-40 (Performance Mechanisms):**
165
+ - Image dimensions required (`width`/`height` or `aspect-ratio`). Hero image must be high-priority HTML `<img>` (never `loading="lazy"`). Non-critical scripts must be deferred.
50
166
 
51
- ### L-2 — Surfaces & Micro-Borders
52
- - Replace floating blurry shadows with hairline borders (`1px solid var(--border)` / `rgba(255, 255, 255, 0.08)`).
53
- - Layer surfaces intentionally: Base Canvas (`#09090B`) → Panel Surface (`#111114`) → Elevated Interactive (`#18181C`).
54
- - Reserve hover transitions for tangible feedback: subtle border brightening or surface elevation, not 10px y-axis floating jumps.
167
+ ---
168
+
169
+ ### Group 2: Purpose Gates (Allowed ONLY with Written Reason)
170
+
171
+ Techniques below are permitted, but **FAIL** if used as default without a written functional reason:
172
+
173
+ - **R-01 (Gradients):** Banned as default. Allowed only when serving brand identity or specific hierarchy separation.
174
+ - **R-04 (Icons):** Generic stars, sparkles, robots, or thin-line icon clones are banned. Icons must directly represent their specific feature.
175
+ - **R-06 (Monospace Typography):** Monospace is banned as a decorative gimmick. Allowed for code, telemetry, latencies, hashes, and tabular numbers.
176
+ - **R-07 (Background Patterns):** Grids and dots are banned as default wallpaper. Allowed only if directly relevant to technical brand identity.
177
+ - **R-08 (Button Arrows):** Arrow glyphs (`→`, `↗`) are not the default. Allowed only when indicating actual page navigation or external exit.
178
+ - **R-09 (Capsule Badges):** Pill badges ("AI Powered", "Beta") are banned unless representing an active functional status.
179
+ - **R-10 (Glassmorphism Dose Cap):** `backdrop-filter` allowed on at most 1-2 elements (e.g. sticky header). Banned on cards, modals, and sidebars simultaneously.
180
+ - **R-12 (Elevation Shadows):** Heavy shadows banned. Use hairline borders (`1px solid #26262B`) and subtle surface elevation.
181
+ - **R-13 (Glow Dose Cap):** Glow is restricted to at most 1-2 critical focus points. Banned across cards, borders, buttons, and backgrounds at once.
182
+ - **R-14 (Feature Card Diversity):** Banned: 3 identical cards. Allowed: Asymmetric density, split views, live code panels, data tables.
183
+ - **R-19 (Motion Purpose):** Template floating/bouncing banned. Motion must serve spatial context and respect `prefers-reduced-motion`.
184
+ - **R-22 (Illustrations):** Generic 3D blobs and Undraw illustrations banned. Use functional screenshots, architecture diagrams, or nothing.
185
+
186
+ ---
187
+
188
+ ### Group 3: Quality Locks (Consistency & Brand Identity)
189
+
190
+ - **R-05 (Content-Driven Architecture):** Page structure must follow product narrative, not an AI template checklist.
191
+ - **R-11 (Radius Hierarchy):** Strict system radius (4px controls, 6px buttons, 8px panels). No universal pill bubbles.
192
+ - **R-15 (Imperative CTAs):** Action-oriented verbs (`Fork Session`, `Export JSON`, `Connect API Key`), never "Get Started" or "Learn More".
193
+ - **R-16 (Specific Benefits):** Replace marketing buzzwords with verified latency, throughput, or architecture facts.
194
+ - **R-20 (Distinct Visual Identity):** If the logo is swapped, the UI must still feel distinct to its domain.
195
+ - **R-21 (Theme Selection):** Choose light or dark based on user domain context, not because dark "looks hacker".
196
+ - **R-29 (Color Discipline):** Max 2-3 core colors + 1 semantic accent. Never splash 5+ colors randomly.
197
+ - **R-30 (No Lazy Cloning):** Do not blindly clone Linear, Vercel, Stripe, or Apple unless explicitly requested.
198
+ - **R-31 (The Keystone Rule):** Before finishing, write a one-line reason for every major visual and architectural decision. If you cannot explain the "WHY" in one sentence, delete or rework it.
199
+
200
+ ---
201
+
202
+ ## 7. Part 3: The Liveliness Toolkit
203
+
204
+ Removing slop leaves a void. You must deliberately inject **domain liveliness**:
205
+
206
+ ### The Three Dials
207
+ Every design must declare three dials explicitly:
208
+
209
+ | Dial | Level 1 (Calm) | Level 2 (Balanced) | Level 3 (Bold) | What It Governs |
210
+ |---|---|---|---|---|
211
+ | **ENERGY** | Monastic, technical, quiet | Balanced, confident SaaS | High-impact, creative agency | How loud the visual tone speaks |
212
+ | **RHYTHM** | Uniform modular grid | Consistent with 1-2 breaks | Asymmetric, mixed density | Variation between adjacent sections |
213
+ | **MOTION** | Hover states & transitions only | Scroll-reveals & drawer slides | Choreographed kinetic layout | Animation volume and intent |
55
214
 
56
- ### L-3 — Semantic Accent Discipline
57
- - Limit bright accents to **one single semantic role** per screen (e.g. Emerald for active connection/replay, Coral for destructive actions, Indigo for branched states).
58
- - Never paint borders, badges, cards, links, headings, and buttons with the same loud primary color.
215
+ ### The Five Craftsmanship Levers
216
+ 1. **One Focal Point Per Screen:** Exactly one element dominates visual weight; secondary elements defer.
217
+ 2. **Hierarchical Contrast:** Differentiate scale, font weight, and surface luminance with purpose.
218
+ 3. **Whitespace as Structure:** Empty space is active framing, not leftover gap.
219
+ 4. **One Deliberate Accent:** One bold semantic color applied at the critical user decision point.
220
+ 5. **Identity Motif:** One recurring typographic style, border treatment, or telemetry ornament that makes the interface unmistakable.
221
+
222
+ ### The Design Read Declaration
223
+ Before writing UI code, declare:
224
+ > *"Reading this as: `<page kind>` for `<audience>` in `<visual style>` style, dials: ENERGY `<1-3>` / RHYTHM `<1-3>` / MOTION `<1-3>`."*
59
225
 
60
226
  ---
61
227
 
62
- ## 4. Usage Modes
228
+ ## 8. The Mandatory Delivery Gate
229
+
230
+ Run this checklist before delivering any code or interface. Every item must be verified:
63
231
 
64
- ChillSlop operates in two primary modes:
232
+ ### Block 1: Hard Gate (All answers must be NO)
233
+ - [ ] Is there an em dash (`—`) anywhere in generated prose? *(R-02)*
234
+ - [ ] Is there horizontal overflow or tap target <44px on mobile? *(R-03)*
235
+ - [ ] Are there unverified statistics or fake metrics? *(R-17)*
236
+ - [ ] Are there synthetic testimonials or stock avatars? *(R-18)*
237
+ - [ ] Were visual assets generated without instructions or explicit placeholder? *(R-23)*
238
+ - [ ] Are there dead links in the navbar? *(R-24)*
239
+ - [ ] Does any text fail WCAG AA contrast (4.5:1)? *(R-25)*
240
+ - [ ] Do any buttons or forms do nothing? *(R-26)*
241
+ - [ ] Is the view missing empty, loading, or error states? *(R-27)*
242
+ - [ ] Does the FAQ contain generic non-domain questions? *(R-28)*
243
+ - [ ] Is keyboard navigation or visible focus indicator missing? *(R-32)*
244
+ - [ ] Did you ship without running or building the code? *(R-35)*
245
+ - [ ] Are there fabricated security or performance claims? *(R-36)*
246
+ - [ ] Did you build without direction without labeling as draft? *(R-37)*
247
+ - [ ] Does any button lack `cursor: pointer` or accessible name? *(R-39)*
65
248
 
66
- ### Mode 1: During Construction (Default for New Code)
67
- - Enforce Hard Gates and Liveliness while typing code.
68
- - Prevent cliches before they reach disk.
69
- - Run the Delivery Gate before declaring completion.
249
+ ### Block 2: Purpose Gate (All answers must be NO)
250
+ - [ ] Do gradients appear as default without stated purpose? *(R-01)*
251
+ - [ ] Are there generic icons (stars, sparkles, thin clones) without reason? *(R-04)*
252
+ - [ ] Is glassmorphism stacked across >2 elements at once? *(R-10)*
253
+ - [ ] Is a blurry shadow applied to every component? *(R-12)*
254
+ - [ ] Are all feature cards identical copies of each other? *(R-14)*
255
+ - [ ] Is motion contradictory to the declared MOTION dial? *(R-19)*
70
256
 
71
- ### Mode 2: After Construction (Audit & Remediation)
72
- - Scan target repository files.
73
- - Produce a structured audit report citing rule infractions (HG-xx, R-xx).
74
- - Present numbered actionable remediation items for user confirmation before editing.
257
+ ### Block 3: Liveliness & Craftsmanship (All answers must be YES)
258
+ - [ ] Were the ENERGY / RHYTHM / MOTION dials declared?
259
+ - [ ] Does every screen have exactly one clear focal point?
260
+ - [ ] Are all numbers and metrics formatted in tabular monospace?
261
+ - [ ] Is the shortest working diff prioritized over new abstractions?
262
+ - [ ] Was the Delivery Disclosure provided at the end?
75
263
 
76
264
  ---
77
265
 
78
- ## 5. The Delivery Gate Checklist
266
+ ## 9. The Mandatory Delivery Disclosure
79
267
 
80
- Before delivering any file or view:
81
- 1. [ ] Are all interactive buttons and inputs functionally wired or clearly bound?
82
- 2. [ ] Does the page function gracefully on viewport resize without overflow?
83
- 3. [ ] Are contrast ratios at least 4.5:1 for normal text and 3:1 for large headers?
84
- 4. [ ] Are all code comments strictly technical, devoid of AI conversational filler and emojis?
85
- 5. [ ] Is the visual hierarchy determined by content necessity rather than a landing page checklist?
268
+ End every non-trivial technical delivery with this concise disclosure:
269
+
270
+ ```markdown
271
+ ---
272
+ **Skipped:** [What features, boilerplate, or speculative abstractions you deliberately omitted]
273
+ **Risk / Limits:** [Known trade-offs, edge-case limitations, or when the user should upgrade]
274
+ ```
@@ -1,37 +1,93 @@
1
1
  ---
2
2
  name: chill-slop-code
3
- description: "Code hygiene and anti-slop commentary. Purges redundant AI comments, conversational chatter, and emoji-decorated docstrings while preserving critical architectural invariants."
4
- ---
5
-
6
- # ChillSlop Code: Clean Engineering Standards
7
-
8
- Apply this skill when writing, reviewing, or refactoring source code in any language.
9
-
10
- ## 1. Comment Hygiene
11
- - **Never state the obvious:**
12
- - *Slop:*
13
- ```typescript
14
- // Define the add function that takes a and b
15
- function add(a: number, b: number): number {
16
- // Return the sum of a and b
17
- return a + b;
18
- }
19
- ```
20
- - *Clean:*
21
- ```typescript
22
- function add(a: number, b: number): number {
23
- return a + b;
24
- }
25
- ```
26
- - **Document the "WHY", not the "WHAT":**
27
- - Comments must explain non-obvious constraints, external quirks, memory layout assumptions, or algorithmic edge cases.
28
- - *Example:*
29
- ```typescript
30
- // WAL mode enables concurrent reads without holding exclusive DB locks during proxy writes
31
- db.exec(`PRAGMA journal_mode = WAL;`);
32
- ```
33
- - **Zero Emojis in Code:** Never add `🚀`, `✨`, `🔥`, `💡`, or `🎉` to comments, docstrings, console logs, or commit messages.
34
-
35
- ## 2. Structural Purity
36
- - **No Unused Imports or Dead Polyfills:** Never import libraries or create wrapper classes that are never referenced.
37
- - **Fail Fast & Explicitly:** Avoid silent try/catch blocks that swallow errors with generic log lines. Surface the exact stack trace or handle known failure branches deterministically.
3
+ description: "Comprehensive Pragmatic Senior Dev Code Standard. The smallest working diff wins. Native platform first, ruthless YAGNI minimalism, zero premature abstractions, clean comments without obvious filler or emojis."
4
+ license: MIT
5
+ ---
6
+
7
+ # ChillSlop Code: Comprehensive Pragmatic Senior Dev Standard
8
+
9
+ > *"The best code is the code you never wrote. Every line added is an ongoing maintenance liability."*
10
+
11
+ ---
12
+
13
+ ## 1. The Shortest Working Diff Wins
14
+
15
+ - **Deletion Beats Addition:** Always prefer deleting dead code or simplifying an existing flow over writing new abstractions.
16
+ - **Scope Discipline:** Read the task and the surrounding code. List every place your change must touch: callers, tests, fixtures, config, database models, exports. Finish every part of that scope. Extra unrequested features are rejected.
17
+ - **Single-File Bias:** Keep closely related logic in the same module until size or distinct ownership forces separation. Splitting a 150-line utility into 6 micro-files is prohibited.
18
+
19
+ ---
20
+
21
+ ## 2. Ruthless YAGNI (You Aren't Gonna Need It)
22
+
23
+ Reject speculative engineering:
24
+ - **No Premature Factories or Builders:** If a class or object is only instantiated in one or two places, use a plain function or object literal.
25
+ - **No Speculative Config Toggles:** Do not add configuration flags, environment overrides, or plugin systems that nobody requested.
26
+ - **No Generic "For Later" Wrappers:** Do not wrap standard libraries or database clients in custom repository layers unless multiple backends are actively running today.
27
+
28
+ ---
29
+
30
+ ## 3. The Native Platform Ladder
31
+
32
+ Before reaching for an external npm dependency, climb down this ladder:
33
+
34
+ 1. **Standard Library:**
35
+ - Use `node:sqlite` instead of `better-sqlite3` or ORM bloat.
36
+ - Use `node:crypto` instead of `crypto-js` or `uuid`.
37
+ - Use `node:util` `parseArgs` instead of `commander` or `yargs`.
38
+ - Use native `fetch` instead of `axios` or `node-fetch`.
39
+ 2. **House Helpers:** Check if an existing function in the codebase already solves the sub-task.
40
+ 3. **Existing Dependencies:** Use libraries already declared in `package.json`.
41
+ 4. **New Dependency:** Permitted only when writing it from scratch requires non-trivial cryptographic math, complex hardware drivers, or hundreds of lines of verified parsing logic. Never install an npm package for 10 lines of code.
42
+
43
+ ---
44
+
45
+ ## 4. Bug Fix Protocol
46
+
47
+ 1. **Grep Callers First:** Before altering any function signature or return type, grep every caller in the codebase.
48
+ 2. **Fix Root Causes:** Fix the bug once in the shared core routine, rather than patching symptoms at each call site.
49
+ 3. **Preserve Security & Boundaries:** Never remove input validation, sanitization, or permission checks during a refactor.
50
+
51
+ ---
52
+
53
+ ## 5. Comment Hygiene & Zero Emojis
54
+
55
+ ### The "WHY" Rule
56
+ - **FORBIDDEN (Obvious WHAT comments):**
57
+ ```typescript
58
+ // Set count to 0
59
+ let count = 0;
60
+
61
+ // Check if user is logged in
62
+ if (user.isLoggedIn) {
63
+ // Redirect to dashboard
64
+ router.push('/dashboard');
65
+ }
66
+ ```
67
+ - **REQUIRED (Non-obvious WHY comments):**
68
+ ```typescript
69
+ // WAL mode allows concurrent readers to query while the proxy daemon writes active step records
70
+ db.exec('PRAGMA journal_mode = WAL;');
71
+ ```
72
+
73
+ ### The Zero Emoji Rule
74
+ Never insert emojis (`🚀`, `✨`, `🔥`, `💡`, `🎉`) into:
75
+ - Code comments
76
+ - Docstrings / JSDoc / TSDoc
77
+ - Console log messages
78
+ - Git commit messages
79
+
80
+ ### The Explicit Shortcut Marker
81
+ If taking an intentional pragmatic shortcut to keep code minimal, document it with this exact format:
82
+ ```typescript
83
+ // shortcut: <exact limit>, <trigger condition for upgrade>
84
+ // Example:
85
+ // shortcut: in-memory Set lookup limits active connections to ~50k concurrent sockets; switch to Redis cluster when scaling beyond single host
86
+ ```
87
+
88
+ ---
89
+
90
+ ## 6. Lazy Self-Checks & Asserts
91
+
92
+ - **Trivial Code:** Simple field renames, CSS edits, and one-liners require no testing boilerplate.
93
+ - **Non-Trivial Code:** Any new algorithmic branch, parser, financial calculation, state machine, or security check must leave at least one compact assert or self-check verifying expected behavior against edge cases.