chill-agent 1.2.0 β†’ 1.4.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.
Files changed (87) hide show
  1. package/.agents/plugins/marketplace.json +39 -0
  2. package/.claude-plugin/plugin.json +35 -0
  3. package/.cline-plugin/plugin.json +35 -0
  4. package/.clinerules/chill-agent +274 -0
  5. package/.codex-plugin/plugin.json +35 -0
  6. package/.cursor/rules/chill-agent.mdc +278 -0
  7. package/.cursor-plugin/plugin.json +35 -0
  8. package/.devin-plugin/plugin.json +35 -0
  9. package/.grok-plugin/plugin.json +35 -0
  10. package/.kimi-plugin/plugin.json +35 -0
  11. package/.omp-plugin/plugin.json +35 -0
  12. package/.openclaw/skills/chill-audit/SKILL.md +103 -0
  13. package/.openclaw/skills/chill-debt/SKILL.md +44 -0
  14. package/.openclaw/skills/chill-gain/SKILL.md +52 -0
  15. package/.openclaw/skills/chill-help/SKILL.md +76 -0
  16. package/.openclaw/skills/chill-review/SKILL.md +101 -0
  17. package/.openclaw/skills/chill-slop/SKILL.md +274 -0
  18. package/.openclaw/skills/chill-slop-code/SKILL.md +93 -0
  19. package/.openclaw/skills/chill-slop-copywriting/SKILL.md +80 -0
  20. package/.openclaw/skills/chill-slop-human/SKILL.md +73 -0
  21. package/.openclaw/skills/chill-slop-mobile/SKILL.md +95 -0
  22. package/.openclaw/skills/chill-slop-ui/SKILL.md +114 -0
  23. package/.opencode/command/chill-audit.toml +2 -0
  24. package/.opencode/command/chill-debt.toml +2 -0
  25. package/.opencode/command/chill-gain.toml +2 -0
  26. package/.opencode/command/chill-help.toml +2 -0
  27. package/.opencode/command/chill-review.toml +2 -0
  28. package/.opencode/command/chill.toml +2 -0
  29. package/.qoder-plugin/plugin.json +35 -0
  30. package/.windsurf/rules/chill-agent.md +274 -0
  31. package/GUIDE.md +47 -0
  32. package/INSTALL.md +78 -0
  33. package/after-install.md +23 -0
  34. package/antislop.md +764 -0
  35. package/benchmarks/README.md +10 -0
  36. package/benchmarks/loc.js +21 -0
  37. package/benchmarks/results/token-efficiency.md +10 -0
  38. package/chillslop.md +764 -0
  39. package/commands/chill-audit.toml +2 -0
  40. package/commands/chill-debt.toml +2 -0
  41. package/commands/chill-gain.toml +2 -0
  42. package/commands/chill-help.toml +2 -0
  43. package/commands/chill-review.toml +2 -0
  44. package/commands/chill.toml +2 -0
  45. package/docs/agent-portability.md +62 -0
  46. package/docs/cursor-hooks.md +200 -0
  47. package/examples/README.md +8 -0
  48. package/examples/anti-slop-copy.md +7 -0
  49. package/examples/anti-slop-ui.md +14 -0
  50. package/examples/csv-sum.md +27 -0
  51. package/examples/debounce.md +22 -0
  52. package/examples/deep-clone.md +14 -0
  53. package/examples/modal-dialog.md +19 -0
  54. package/gemini-extension.json +6 -0
  55. package/hooks/chill-activate.js +19 -0
  56. package/hooks/chill-mode-tracker.js +23 -0
  57. package/hooks/chill-statusline.ps1 +10 -0
  58. package/hooks/chill-statusline.sh +9 -0
  59. package/hooks/claude-codex-hooks.json +11 -0
  60. package/hooks/copilot-hooks.json +11 -0
  61. package/hooks/cursor-hooks.json +17 -0
  62. package/hooks/qoder-hooks.json +11 -0
  63. package/i18n/README.es.md +17 -0
  64. package/i18n/README.id.md +25 -0
  65. package/i18n/README.ja.md +17 -0
  66. package/i18n/README.zh-CN.md +17 -0
  67. package/opencode.json +18 -0
  68. package/package.json +38 -3
  69. package/plugin.json +3 -0
  70. package/plugin.yaml +12 -0
  71. package/rules/antislop.md +764 -0
  72. package/rules/chillslop.md +764 -0
  73. package/rules/chillslop.mdc +764 -0
  74. package/skills/chill-audit/SKILL.md +103 -0
  75. package/skills/chill-debt/SKILL.md +44 -0
  76. package/skills/chill-gain/SKILL.md +52 -0
  77. package/skills/chill-help/SKILL.md +76 -0
  78. package/skills/chill-review/SKILL.md +101 -0
  79. package/skills/chill-slop/VERSION +1 -0
  80. package/skills/chill-slop-human/contrast-check.py +168 -0
  81. package/skills/chill-slop-human/contrast-mcp.py +121 -0
  82. package/skills/chill-slop-human/references/A11Y-PATTERNS.md +249 -0
  83. package/skills/chill-slop-human/references/WCAG.md +127 -0
  84. package/skills/chill-slop-ui/references/CORE-WEB-VITALS.md +181 -0
  85. package/skills/chill-slop-ui/references/WEB-BASELINE.md +28 -0
  86. package/tests/manifests.test.js +29 -0
  87. package/tests/rules.test.js +34 -0
@@ -0,0 +1,76 @@
1
+ ---
2
+ name: chill-help
3
+ description: >
4
+ Quick reference for chill levels, skills and commands. One-shot display.
5
+ Use for /chill-help, "chill help", "how do I use chill".
6
+ ---
7
+
8
+ # ChillAgent Help
9
+
10
+ Display this reference card when invoked. One-shot, do NOT change mode,
11
+ write flag files, or persist anything.
12
+
13
+ ## Levels
14
+
15
+ | Level | Trigger | What change |
16
+ |-------|---------|-------------|
17
+ | **Lite** | `/chill lite` | Build what was asked, name the smaller option in one line. |
18
+ | **Full** | `/chill` | The smallest complete change, a check where the logic needs one, and a reply that names what was skipped and any risk. Default. |
19
+ | **Ultra** | `/chill ultra` | Also questions the request and pushes back before building. |
20
+
21
+ Level sticks until changed or session end.
22
+
23
+ ## Skills
24
+
25
+ | Skill | Trigger | What it does |
26
+ |-------|---------|--------------|
27
+ | **chill** | `/chill` | Lazy mode itself: least new code, clear replies that name skipped work and risks. |
28
+ | **chill-review** | `/chill-review` | Quality review of a diff: bugs, security, load, missing tests, speed, what to cut. Each finding says what goes wrong and how to fix it. |
29
+ | **chill-audit** | `/chill-audit` | The same quality review for the whole repo, ranked. |
30
+ | **chill-debt** | `/chill-debt` | Harvest `shortcut:` comments into a tracked ledger. |
31
+ | **chill-gain** | `/chill-gain` | Measured-impact scoreboard: less code, less cost, more speed. |
32
+ | **chill-help** | `/chill-help` | This card. |
33
+
34
+ In Codex CLI and the IDE extension, invoke skills with `$chill:chill`,
35
+ `$chill:chill-review`, or `$chill:chill-help`. Claude Code and OpenCode use the
36
+ slash-command forms above (OpenCode ships all six as slash commands).
37
+
38
+ ## Deactivate
39
+
40
+ Say "stop chill" or "normal mode". Resume anytime with `/chill`.
41
+ `/chill off` also works.
42
+
43
+ ## Band (Claude Code)
44
+
45
+ `/chill band` hides the band above the prompt, the same command brings it back.
46
+ `/chill band on` and `/chill band off` set it directly. The level stays.
47
+ `/chill band import` adds your past Claude Code sessions (cost, agent time, tokens) to the board.
48
+
49
+ ## Configure Default Mode
50
+
51
+ Default mode = `full`, auto-active every session. Change it:
52
+
53
+ **Environment variable** (highest priority):
54
+ ```bash
55
+ export PONYTAIL_DEFAULT_MODE=ultra
56
+ ```
57
+
58
+ **Config file** (`~/.config/chill/config.json`, Windows: `%APPDATA%\chill\config.json`):
59
+ ```json
60
+ { "defaultMode": "lite" }
61
+ ```
62
+
63
+ Set `"off"` to disable auto-activation on session start, activate manually
64
+ with `/chill` when wanted.
65
+
66
+ Resolution: env var > config file > `full`.
67
+
68
+ ## Update
69
+
70
+ Enable auto-update once: open `/plugin`, go to Marketplaces, pick chill, Enable auto-update. Claude Code then pulls new versions at startup (run `/reload-plugins` when it prompts). Manual refresh: `/plugin marketplace update chill` then `/reload-plugins`.
71
+
72
+ If `/plugin` is not recognized, your Claude Code is out of date. Update it (`npm install -g @anthropic-ai/claude-code@latest`, or `brew upgrade claude-code`) and restart. Other hosts use their own update flow.
73
+
74
+ ## More
75
+
76
+ Full docs + examples: https://github.com/DietrichGebert/chill
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: chill-review
3
+ description: >
4
+ Quality review of a change: is the logic right, is it safe, does it hold
5
+ under real load, is risky code tested, is it fast enough, and is every line
6
+ needed. Reads the connected code, not only the diff. Each finding is
7
+ explained in plain English. Use for "review this", "code review", "review
8
+ the last commit", "review my PR", "is this over-engineered", /chill-review.
9
+ ---
10
+
11
+ Review a change like the senior developer who will be paged when it breaks.
12
+ Order of importance: correct, safe, holds under load, tested, fast, lean.
13
+ Lean still matters: every extra line must be read, tested and fixed later.
14
+ This is a report the user asked for, so give it in full.
15
+
16
+ ## 1. Understand first
17
+
18
+ - Review what the user names: uncommitted or staged changes, a branch, a PR
19
+ link, or files. Nothing named: the uncommitted changes, or the last commit
20
+ if there are none.
21
+ - Read the diff, then the code it touches: callers of every changed function,
22
+ the functions it calls, the tests, the README.
23
+ - Trace the real flow: where data comes in, what is stored, what goes out.
24
+ - A change can break code it does not touch. When a signature, return value
25
+ or behavior changes, grep every caller.
26
+ - Find the expected load in the repo (README, deploy config): one person
27
+ running a script, or many users and processes at once. Judge scale against
28
+ that, and say which load you assumed.
29
+
30
+ ## 2. Look for
31
+
32
+ 1. **Bug:** wrong result, crash, missed edge case (empty, zero, last item,
33
+ rounding, time zones), a caller broken by the change, a fix applied in one
34
+ caller while the shared function stays broken.
35
+ 2. **Risk:** security holes (injection, weak randomness, secrets, missing
36
+ checks on input from users), data loss (errors swallowed, writes in the
37
+ wrong order, no transaction).
38
+ 3. **Scale:** fine for one user, wrong for many: check-then-write races, the
39
+ same work done by every process, memory or lists that only grow, a query
40
+ per item, O(n^2) on big input, per-process state that must be shared.
41
+ 4. **Missing test:** risky new logic (a branch, a parser, money, security,
42
+ data writes, a bug fix) with no test that fails when it breaks. One good
43
+ test, not coverage.
44
+ 5. **Speed:** big slowdowns are problems. Small wins (work repeated in a hot
45
+ loop) are suggestions; some software counts every millisecond.
46
+ 6. **Lean:** code that should not exist or should be smaller.
47
+ - delete: dead code, unused options, speculative features
48
+ - reuse: the repo already has this helper (name the path)
49
+ - stdlib / native: the standard library or platform already does it; a
50
+ new dependency for a few lines
51
+ - yagni: abstraction with one implementation, config nobody sets
52
+ - merge: near-copies that must change together
53
+ - split: one function doing several unrelated jobs, so it is hard to read
54
+ or test. Split by job, never by line count, and never into helpers that
55
+ exist only to make a function shorter.
56
+
57
+ ## 3. Check before you report
58
+
59
+ - Every finding needs a concrete case: "this input or situation leads to this
60
+ wrong result". No case, no finding.
61
+ - Re-read the lines and confirm: the caller exists, the value can really be
62
+ empty, the code really is unused.
63
+ - A shortcut marked with a `shortcut:` (or older `chill:`) comment that names its limit is a
64
+ decision, not a finding, unless the expected load already crosses it.
65
+ - Propose the smallest fix that works. Prefer fixes that delete code. Never
66
+ add layers, frameworks or config the problem does not need.
67
+ - No style taste, no "consider", no vague worries.
68
+
69
+ ## 4. Output
70
+
71
+ Very simple English: short sentences, everyday words. Explain a technical
72
+ term the first time you use it. The reader may never have seen this code.
73
+
74
+ Start with `What this change does:` in two or three sentences.
75
+
76
+ Then the findings in three groups, skip empty groups:
77
+ - **Must fix:** bug, security, data loss, breaks at the expected load.
78
+ - **Should fix:** risky code without a test, real slowness, duplication, a
79
+ function that mixes jobs, code that should not exist.
80
+ - **Nice to have:** small speed-ups, shorter forms.
81
+
82
+ Number findings across all groups, so the user can say "fix 2 and 5".
83
+ Every finding has all four parts, each one or two short sentences:
84
+
85
+ 2. **Orders land on the wrong day** (`billing/close_day.py:L40-52`)
86
+ - **What this is:** At midnight this job closes the day and bills all orders of that day.
87
+ - **Problem:** It takes "today" from the server clock, which runs in UTC. An order placed
88
+ at 00:30 in Berlin is billed on the day before.
89
+ - **Fix:** Compute the day once in the shop's time zone:
90
+ `datetime.now(ZoneInfo("Europe/Berlin")).date()`. One line, nothing else changes.
91
+ - **If we skip it:** Late orders show the wrong date, and accounting fixes them by hand.
92
+
93
+ End with:
94
+ - `Verdict: Ship.` or `Verdict: fix 1 and 3 first.`
95
+ - `Lean: -<N> lines possible.` when lean findings exist.
96
+ - `Not checked:` one line, if something mattered and you could not check it.
97
+
98
+ Nothing found: `What this change does:`, then `Looks good. Ship.` and one line
99
+ on what you checked.
100
+
101
+ Lists findings, changes no code.
@@ -0,0 +1,274 @@
1
+ ---
2
+ name: chill-slop
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
6
+ ---
7
+
8
+ # ChillSlop 2.0: Master Negative Filter & Pragmatic Senior Dev Core
9
+
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.
12
+
13
+ ---
14
+
15
+ ## 1. The Dual Engine: Anti-Slop + Ponytail Synthesis
16
+
17
+ Every output in this workspace must pass two filters simultaneously:
18
+
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
+ ```
32
+
33
+ Active for the whole session until the user says "stop chill" or "normal mode".
34
+ Switch intensity anytime: `/chill [lite|full|ultra]`.
35
+
36
+ ---
37
+
38
+ ## 2. Intensity Modes
39
+
40
+ Control the minimalism and rigor level with `/chill <mode>`:
41
+
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. |
47
+
48
+ ---
49
+
50
+ ## 3. Scope Definition (Before You Write)
51
+
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.
56
+
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.
166
+
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 |
214
+
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>`."*
225
+
226
+ ---
227
+
228
+ ## 8. The Mandatory Delivery Gate
229
+
230
+ Run this checklist before delivering any code or interface. Every item must be verified:
231
+
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)*
248
+
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)*
256
+
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?
263
+
264
+ ---
265
+
266
+ ## 9. The Mandatory Delivery Disclosure
267
+
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
+ ```
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: chill-slop-code
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.
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: chill-slop-copywriting
3
+ description: "Comprehensive Copywriting & Authentic Voice Standard. Strips robotic AI marketing fluff, hype words, and hallucinated metrics in favor of sharp, technical prose a busy human understands in one read."
4
+ license: MIT
5
+ ---
6
+
7
+ # ChillSlop Copywriting: Comprehensive Authentic Voice Standard
8
+
9
+ > *"Write with the precision of an engineer and the brevity of an editor."*
10
+
11
+ ---
12
+
13
+ ## 1. The Banned Vocabulary Index (50+ AI Cliches)
14
+
15
+ Strip these words and phrases immediately upon detection:
16
+
17
+ | Banned AI Buzzword | Why It Fails | What to Use Instead |
18
+ |---|---|---|
19
+ | **"Unleash the power of..."** | Lazy, overused AI clichΓ©. | Name the specific tool and its concrete function. |
20
+ | **"Seamlessly integrate / Effortless"** | Minimizes technical complexity; reads like marketing spam. | Name the protocol: *"Installs via stdio JSON-RPC in 1 command."* |
21
+ | **"Supercharge your workflow"** | Hollow hype with no empirical meaning. | Provide benchmark figures: *"Cuts compilation time from 12s to 4s."* |
22
+ | **"Next-generation / Cutting-edge"** | Meaningless assertion that dates quickly. | State the architecture: *"Written in native C++20 with WAL mode."* |
23
+ | **"Revolutionary / Game-changer"** | Inflated self-praise. | Describe the mechanism: *"First debugger to support deterministic parent-DAG forks."* |
24
+ | **"Dive in / Delve into / Let's explore"** | Unmistakable GPT filler opener. | Delete entirely. Start directly with the technical step. |
25
+ | **"Robust and scalable"** | Vague engineering hand-waving. | Specify limits: *"Handles 15,000 req/sec across 4 worker threads."* |
26
+ | **"Empower developers to..."** | Paternalistic marketing jargon. | State the action: *"Inspect, rewind, and replay LLM trajectories."* |
27
+ | **"Look no further!"** | Cheesy infomercial script. | Delete entirely. State the product's identity plainly. |
28
+ | **"Tailored to your needs"** | Empty corporate filler. | Explain customization hooks: *"Configurable via JSON schema."* |
29
+ | **"Magic / Magically"** | Obscures mechanical operation. | Explain the algorithm: *"Canonicalizes JSON keys before SHA-256 hashing."* |
30
+ | **"In today's fast-paced world"** | High school essay introductory fluff. | Delete entirely. |
31
+ | **"A testament to..."** | Robotic academic phrase. | State the result directly. |
32
+ | **"Pivotal / Paramount"** | Pseudo-intellectual filler. | Use "critical", "essential", or plain language. |
33
+
34
+ ---
35
+
36
+ ## 2. The Em Dash (`β€”`) Ban & Clean Punctuation
37
+
38
+ - **The Rule:** The em dash character (`β€”`) is strictly banned in all generated text and UI copy.
39
+ - **Why:** Large language models excessively insert em dashes to simulate literary sophistication, resulting in an unmistakable AI signature.
40
+ - **Direct Replacements:**
41
+ - *Bad:* "Fast, reliable β€” and built for teams."
42
+ - *Good (Comma):* "Fast, reliable, and built for teams."
43
+ - *Good (Colon):* "Built for teams: fast, reliable, and deterministic."
44
+ - *Good (Separate Sentences):* "Built for teams. Fast and reliable."
45
+
46
+ ---
47
+
48
+ ## 3. The Specificity Mandate
49
+
50
+ Replace abstract claims with concrete engineering realities:
51
+
52
+ ### Example 1: Product Descriptions
53
+ - **Slop:** *"ChillRewind is an ultra-fast, modern AI proxy that saves you lots of money and prevents stuck loops."*
54
+ - **Craft:** *"ChillRewind is a zero-dependency local proxy running on `node:sqlite` in WAL mode. It prunes stale tool outputs over 1.5KB and halts agent runs when the same tool signature repeats 3 consecutive times."*
55
+
56
+ ### Example 2: Performance Claims
57
+ - **Slop:** *"Experience blazing-fast response times and incredible token efficiency."*
58
+ - **Craft:** *"Replays cached LLM turns with 0ms latency and $0.00 upstream cost."*
59
+
60
+ ---
61
+
62
+ ## 4. Microcopy, Buttons & Interface Verbs
63
+
64
+ ### Action-Oriented Buttons
65
+ Every interactive button must pair an **imperative verb** with a **direct object**:
66
+ - **Banned:** `Get Started`, `Learn More`, `Submit`, `Click Here`, `Explore`, `Continue`.
67
+ - **Approved:** `Fork Session`, `Export JSON`, `Connect Database`, `Copy API Key`, `Download Log`, `Verify Hash`.
68
+
69
+ ### Honest Error Messages
70
+ Every error message must state three facts: (1) what failed, (2) why it failed, and (3) the exact resolution command.
71
+ - **Slop:** *"Oops! Something went wrong while saving your session. Please try again later."*
72
+ - **Craft:** *"SQLite write failed: database file `.chillrewind/store.db` is locked by process PID 4120. Run `chill-agent doctor` or terminate stale proxy instances."*
73
+
74
+ ---
75
+
76
+ ## 5. Social Proof & Statistics
77
+
78
+ - **The Rule:** Never invent statistics (*"Trusted by 10,000+ developers"*), fake customer headshots, or fabricated quotes.
79
+ - If verified customer metrics or official case studies exist, cite them with links.
80
+ - If verified data is not available, **omit the section entirely**. An empty section or no testimonials builds far higher trust than fabricated praise.