chill-agent 1.3.0 → 1.5.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/.agents/plugins/marketplace.json +39 -0
- package/.agents/rules/ponytail.md +30 -0
- package/.claude-plugin/marketplace.json +17 -0
- package/.claude-plugin/plugin.json +35 -0
- package/.cline-plugin/plugin.json +35 -0
- package/.clinerules/chill-agent +274 -0
- package/.clinerules/ponytail.md +30 -0
- package/.codex-plugin/plugin.json +35 -0
- package/.cursor/rules/chill-agent.mdc +278 -0
- package/.cursor/rules/ponytail.mdc +36 -0
- package/.cursor-plugin/plugin.json +35 -0
- package/.devin-plugin/plugin.json +35 -0
- package/.grok-plugin/marketplace.json +16 -0
- package/.grok-plugin/plugin.json +35 -0
- package/.kimi-plugin/plugin.json +35 -0
- package/.kiro/steering/ponytail.md +35 -0
- package/.omp-plugin/plugin.json +35 -0
- package/.openclaw/skills/chill-audit/SKILL.md +103 -0
- package/.openclaw/skills/chill-debt/SKILL.md +44 -0
- package/.openclaw/skills/chill-gain/SKILL.md +52 -0
- package/.openclaw/skills/chill-help/SKILL.md +76 -0
- package/.openclaw/skills/chill-review/SKILL.md +101 -0
- package/.openclaw/skills/chill-slop/SKILL.md +274 -0
- package/.openclaw/skills/chill-slop-code/SKILL.md +93 -0
- package/.openclaw/skills/chill-slop-copywriting/SKILL.md +80 -0
- package/.openclaw/skills/chill-slop-human/SKILL.md +73 -0
- package/.openclaw/skills/chill-slop-mobile/SKILL.md +95 -0
- package/.openclaw/skills/chill-slop-ui/SKILL.md +114 -0
- package/.openclaw/skills/ponytail/SKILL.md +52 -0
- package/.openclaw/skills/ponytail-audit/SKILL.md +103 -0
- package/.openclaw/skills/ponytail-debt/SKILL.md +44 -0
- package/.openclaw/skills/ponytail-gain/SKILL.md +52 -0
- package/.openclaw/skills/ponytail-help/SKILL.md +76 -0
- package/.openclaw/skills/ponytail-review/SKILL.md +101 -0
- package/.opencode/command/chill-audit.toml +2 -0
- package/.opencode/command/chill-debt.toml +2 -0
- package/.opencode/command/chill-gain.toml +2 -0
- package/.opencode/command/chill-help.toml +2 -0
- package/.opencode/command/chill-review.toml +2 -0
- package/.opencode/command/chill.toml +2 -0
- package/.opencode/command/ponytail-audit.md +5 -0
- package/.opencode/command/ponytail-debt.md +5 -0
- package/.opencode/command/ponytail-gain.md +5 -0
- package/.opencode/command/ponytail-help.md +5 -0
- package/.opencode/command/ponytail-review.md +5 -0
- package/.opencode/command/ponytail.md +5 -0
- package/.opencode/plugins/index.js +4 -0
- package/.opencode/plugins/ponytail-frontmatter.cjs +63 -0
- package/.opencode/plugins/ponytail.mjs +206 -0
- package/.qoder-plugin/plugin.json +35 -0
- package/.windsurf/rules/chill-agent.md +274 -0
- package/.windsurf/rules/ponytail.md +30 -0
- package/AGENTS.md +19 -0
- package/__init__.py +228 -0
- package/benchmarks/README.md +10 -0
- package/benchmarks/loc.js +21 -0
- package/benchmarks/results/token-efficiency.md +10 -0
- package/commands/ponytail-audit.toml +2 -0
- package/commands/ponytail-debt.toml +2 -0
- package/commands/ponytail-gain.toml +2 -0
- package/commands/ponytail-help.toml +2 -0
- package/commands/ponytail-review.toml +2 -0
- package/commands/ponytail.toml +2 -0
- package/examples/README.md +8 -0
- package/examples/anti-slop-copy.md +7 -0
- package/examples/anti-slop-ui.md +14 -0
- package/examples/csv-sum.md +27 -0
- package/examples/debounce.md +22 -0
- package/examples/deep-clone.md +14 -0
- package/examples/modal-dialog.md +19 -0
- package/hooks/chill-activate.js +19 -0
- package/hooks/chill-mode-tracker.js +23 -0
- package/hooks/chill-statusline.ps1 +10 -0
- package/hooks/chill-statusline.sh +9 -0
- package/hooks/claude-codex-hooks.json +11 -0
- package/hooks/copilot-hooks.json +11 -0
- package/hooks/cursor-hooks.json +17 -0
- package/hooks/ponytail-activate.js +201 -0
- package/hooks/ponytail-instructions.js +98 -0
- package/hooks/ponytail-mode-tracker.js +216 -0
- package/hooks/ponytail-runtime.js +182 -0
- package/hooks/ponytail-statusline.ps1 +24 -0
- package/hooks/ponytail-statusline.sh +18 -0
- package/hooks/qoder-hooks.json +11 -0
- package/i18n/README.es.md +17 -0
- package/i18n/README.id.md +25 -0
- package/i18n/README.ja.md +17 -0
- package/i18n/README.zh-CN.md +17 -0
- package/package.json +29 -3
- package/pi-extension/index.js +254 -0
- package/pi-extension/package.json +8 -0
- package/scripts/check-rule-copies.js +74 -0
- package/scripts/check-versions.js +77 -0
- package/scripts/cursor-hooks.js +145 -0
- package/scripts/generate-chillslop.mjs +42 -0
- package/scripts/generate-examples.mjs +149 -0
- package/scripts/generate-plugin-doors.mjs +108 -0
- package/scripts/sync-ponytail.mjs +65 -0
- package/scripts/uninstall.js +92 -0
- package/skills/ponytail/SKILL.md +52 -0
- package/skills/ponytail-audit/SKILL.md +103 -0
- package/skills/ponytail-debt/SKILL.md +44 -0
- package/skills/ponytail-gain/SKILL.md +52 -0
- package/skills/ponytail-help/SKILL.md +76 -0
- package/skills/ponytail-review/SKILL.md +101 -0
- package/tests/commands.test.js +94 -0
- package/tests/copilot-plugin.test.js +35 -0
- package/tests/correctness.test.js +245 -0
- package/tests/cursor-hooks.test.js +343 -0
- package/tests/gemini-extension.test.js +91 -0
- package/tests/grok-plugin.test.js +39 -0
- package/tests/hermes-plugin.test.js +403 -0
- package/tests/hooks.test.js +1005 -0
- package/tests/kimi-plugin.test.js +25 -0
- package/tests/loc.test.js +18 -0
- package/tests/manifests.test.js +29 -0
- package/tests/openclaw-skills.test.js +26 -0
- package/tests/opencode-plugin.test.js +340 -0
- package/tests/qoder-plugin.test.js +84 -0
- package/tests/rules.test.js +34 -0
|
@@ -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,30 @@
|
|
|
1
|
+
# Ponytail, lazy senior dev mode
|
|
2
|
+
|
|
3
|
+
You are a lazy senior developer. The best code is the code never written. You solve the whole problem with the least new code. End your reply with one or two lines: what you skipped or did not check, and any risk the user must know.
|
|
4
|
+
|
|
5
|
+
## Before you write
|
|
6
|
+
|
|
7
|
+
Read the task and the code it touches. List every place your change must reach: callers, tests, fixtures, config, exports. Check what your change could break for users: data it would destroy or expose, callers that stop working. That is scope. Extra features are not.
|
|
8
|
+
|
|
9
|
+
## The smallest complete change
|
|
10
|
+
|
|
11
|
+
Take the first option that fully works:
|
|
12
|
+
|
|
13
|
+
1. Does it need to exist? Skip features, options and flexibility nobody asked for, and name them in one line. A vague request ("build me X") gets the smallest version that does the core job.
|
|
14
|
+
2. Already in this codebase (a helper, component, service, pattern)? Use it the way the surrounding code does.
|
|
15
|
+
3. Standard library or a platform feature? Use it, unless the project has its own. A house component beats a native widget.
|
|
16
|
+
4. An installed dependency? Use it. Never add a dependency for a few lines.
|
|
17
|
+
5. Can it be one line a reader gets at a glance? One line.
|
|
18
|
+
6. Otherwise: the minimum code that works.
|
|
19
|
+
|
|
20
|
+
- Be lazy about the solution, never about the change itself: finish every part the task needs, including the callers, tests and fixtures your change breaks.
|
|
21
|
+
- No abstraction, wrapper, type conversion, option, config, boilerplate or "for later" code nobody asked for. Keep values in the form the platform already gives you. Deletion beats addition. Keep the structure the codebase already has: its layers, interfaces and conventions.
|
|
22
|
+
- The shortest working diff wins, once you know everything it must touch. A one-liner that needs decoding is not short.
|
|
23
|
+
- Comment only the why the code cannot show, in one line.
|
|
24
|
+
- Bug fix: before you edit, grep every caller of the function you touch, then fix the root cause once in the shared code.
|
|
25
|
+
- Code you move or merge keeps its error handling and validation.
|
|
26
|
+
- Between options of equal size, take the one that is correct on edge cases.
|
|
27
|
+
- Lazy code without its check is unfinished: new non-trivial logic (a branch, a loop, a parser, money or security, or a whole new script or app) leaves one small test or an assert-based self-check. Trivial changes need none.
|
|
28
|
+
- A shortcut with a known limit gets a code comment in this form: `shortcut: <the limit>, <when to upgrade>`.
|
|
29
|
+
|
|
30
|
+
Never cut: validation at trust boundaries, error handling that prevents data loss, security, accessibility, the calibration real hardware needs, anything the user asked for.
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- chill-agent:start -->
|
|
2
|
+
## ChillAgent Anti-Slop 2.0 & Pragmatic Senior Dev Standard (Ponytail + Anti-Slop)
|
|
3
|
+
Active Mode: `full` (Options: lite | full | ultra). Switch anytime with `/chill <mode>`.
|
|
4
|
+
|
|
5
|
+
Before generating or editing any code, interface, copy, or architecture in this workspace, follow these active skills:
|
|
6
|
+
- `skills/chill-slop/SKILL.md`
|
|
7
|
+
- `skills/chill-slop-code/SKILL.md`
|
|
8
|
+
- `skills/chill-slop-ui/SKILL.md`
|
|
9
|
+
- `skills/chill-slop-copywriting/SKILL.md`
|
|
10
|
+
- `skills/chill-slop-human/SKILL.md`
|
|
11
|
+
- `skills/chill-slop-mobile/SKILL.md`
|
|
12
|
+
|
|
13
|
+
### Core Operating Rules:
|
|
14
|
+
1. **The Smallest Complete Change (Ponytail):** Take the shortest path that solves the whole task: standard library > existing codebase helper > installed dependency > minimum new code. No premature abstractions or wrapper factories.
|
|
15
|
+
2. **Purpose Test (Anti-Slop):** Every visual decision, color accent, layout structure, and copy phrase must name a specific domain purpose. AI defaults (purple gradients, rounded-3xl cards, generic cards) are forbidden.
|
|
16
|
+
3. **Liveliness Bar:** Avoid sterile defaults by reading `DESIGN.md`. If `DESIGN.md` is missing, adhere strictly to Linear/Geist carbon monochromatic standards.
|
|
17
|
+
4. **Context Hygiene & Time-Travel:** Strip conversational fluff and emojis. When debugging stochastic agent loops, route upstream LLM calls through `chillrewind run` (deterministic SQLite WAL replay + SlopSieve circuit breaker).
|
|
18
|
+
5. **Delivery Disclosure:** End non-trivial deliveries with a 1-line disclosure: what was skipped and known limits/trade-offs.
|
|
19
|
+
<!-- chill-agent:end -->
|
package/__init__.py
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"""Hermes plugin for Ponytail."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import os
|
|
7
|
+
import re
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from typing import Any, Callable
|
|
10
|
+
|
|
11
|
+
DEFAULT_MODE = "full"
|
|
12
|
+
RUNTIME_MODES = {"off", "lite", "full", "ultra"}
|
|
13
|
+
SKILL_COMMANDS = {
|
|
14
|
+
"ponytail-review": "Review the current diff or provided target: bugs, security, load, missing tests, speed, and what to cut.",
|
|
15
|
+
"ponytail-audit": "Audit the whole repo: bugs, security, load, missing tests, speed, and what to cut.",
|
|
16
|
+
"ponytail-debt": "List every deliberate `shortcut:` comment and its upgrade path.",
|
|
17
|
+
"ponytail-gain": "Show the measured-impact scoreboard (less code, less cost, more speed).",
|
|
18
|
+
"ponytail-help": "Show the Ponytail command reference.",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ROOT = Path(__file__).resolve().parent
|
|
22
|
+
SKILLS_DIR = ROOT / "skills"
|
|
23
|
+
PONYTAIL_SKILL = SKILLS_DIR / "ponytail" / "SKILL.md"
|
|
24
|
+
|
|
25
|
+
_current_mode = None
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _normalize_runtime_mode(mode: str | None) -> str | None:
|
|
29
|
+
if not isinstance(mode, str):
|
|
30
|
+
return None
|
|
31
|
+
mode = mode.strip().lower()
|
|
32
|
+
return mode if mode in RUNTIME_MODES else None
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _config_dir() -> Path:
|
|
36
|
+
if os.environ.get("XDG_CONFIG_HOME"):
|
|
37
|
+
return Path(os.environ["XDG_CONFIG_HOME"]) / "ponytail"
|
|
38
|
+
if os.name == "nt":
|
|
39
|
+
return Path(os.environ.get("APPDATA", Path.home() / "AppData" / "Roaming")) / "ponytail"
|
|
40
|
+
return Path.home() / ".config" / "ponytail"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _default_mode() -> str:
|
|
44
|
+
env_mode = _normalize_runtime_mode(os.environ.get("PONYTAIL_DEFAULT_MODE"))
|
|
45
|
+
if env_mode:
|
|
46
|
+
return env_mode
|
|
47
|
+
try:
|
|
48
|
+
data = json.loads((_config_dir() / "config.json").read_text(encoding="utf-8-sig"))
|
|
49
|
+
file_mode = _normalize_runtime_mode(data.get("defaultMode"))
|
|
50
|
+
if file_mode:
|
|
51
|
+
return file_mode
|
|
52
|
+
except Exception:
|
|
53
|
+
pass
|
|
54
|
+
return DEFAULT_MODE
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _strip_frontmatter(text: str) -> str:
|
|
58
|
+
return re.sub(r"^---[\s\S]*?---\s*", "", text or "", count=1)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _filter_skill_body_for_mode(body: str, mode: str) -> str:
|
|
62
|
+
effective = _normalize_runtime_mode(mode) or DEFAULT_MODE
|
|
63
|
+
lines = []
|
|
64
|
+
# str.splitlines() drops a trailing line terminator instead of yielding a
|
|
65
|
+
# trailing empty element, so a body ending in "\n" loses that newline on
|
|
66
|
+
# rejoin. re.split keeps it, matching the JS filter's split(/\r?\n/).
|
|
67
|
+
for line in re.split(r"\r?\n", _strip_frontmatter(body)):
|
|
68
|
+
table_label = re.match(r"^\|\s*\*\*(.+?)\*\*\s*\|", line)
|
|
69
|
+
if table_label:
|
|
70
|
+
label_mode = _normalize_runtime_mode(table_label.group(1))
|
|
71
|
+
if label_mode and label_mode != effective:
|
|
72
|
+
continue
|
|
73
|
+
|
|
74
|
+
# Require a quoted value: every worked example is `- lite: "..."`. Without
|
|
75
|
+
# this, an ordinary rule bullet that happens to start with a mode word
|
|
76
|
+
# (e.g. "- Full: ...") is silently dropped in every other mode — it looks
|
|
77
|
+
# like a worked example but is really prose meant to survive verbatim.
|
|
78
|
+
# Mirrors the fix in hooks/ponytail-instructions.js (#571).
|
|
79
|
+
example_label = re.match(r'^-\s*([^:]+):\s*"', line)
|
|
80
|
+
if example_label:
|
|
81
|
+
label_mode = _normalize_runtime_mode(example_label.group(1))
|
|
82
|
+
if label_mode and label_mode != effective:
|
|
83
|
+
continue
|
|
84
|
+
|
|
85
|
+
lines.append(line)
|
|
86
|
+
return "\n".join(lines)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def _fallback_instructions(mode: str) -> str:
|
|
90
|
+
return (
|
|
91
|
+
f"PONYTAIL MODE ACTIVE — level: {mode}\n\n"
|
|
92
|
+
"You are a lazy senior developer. The best code is the code never written. "
|
|
93
|
+
"Before you write, list every place your change must reach (callers, tests, "
|
|
94
|
+
"fixtures) and what it could break for users. First rung that works: skip what "
|
|
95
|
+
"is not needed, reuse what the codebase has, stdlib or platform, installed "
|
|
96
|
+
"dependency, one readable line, then minimum code. No unrequested abstractions, "
|
|
97
|
+
"wrappers, options or boilerplate. Never cut trust-boundary validation, "
|
|
98
|
+
"data-loss handling, security, accessibility or anything asked for."
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def build_injected_context(mode: str | None = None) -> str:
|
|
103
|
+
"""Return the mode-filtered Ponytail context injected before LLM turns."""
|
|
104
|
+
effective = _normalize_runtime_mode(mode) or _default_mode()
|
|
105
|
+
if effective == "off":
|
|
106
|
+
return ""
|
|
107
|
+
try:
|
|
108
|
+
body = PONYTAIL_SKILL.read_text(encoding="utf-8")
|
|
109
|
+
return f"PONYTAIL MODE ACTIVE — level: {effective}\n\n{_filter_skill_body_for_mode(body, effective)}"
|
|
110
|
+
except OSError:
|
|
111
|
+
return _fallback_instructions(effective)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def _pre_llm_call(
|
|
115
|
+
session_id: str = "", conversation_history: Any = None, **_: Any
|
|
116
|
+
) -> dict[str, str] | None:
|
|
117
|
+
mode = _current_mode or _default_mode()
|
|
118
|
+
# Off is injected too: the ruleset from an earlier turn is replayed every turn,
|
|
119
|
+
# and the /ponytail off reply goes to the user, never to the model.
|
|
120
|
+
context = build_injected_context(mode) or "PONYTAIL MODE OFF"
|
|
121
|
+
|
|
122
|
+
# Hermes persists hook context in api_content for cache-stable replay.
|
|
123
|
+
# Re-inject only when the active mode changed or compaction removed it.
|
|
124
|
+
for message in reversed(conversation_history or []):
|
|
125
|
+
if not isinstance(message, dict):
|
|
126
|
+
continue
|
|
127
|
+
api_content = message.get("api_content")
|
|
128
|
+
if not isinstance(api_content, str):
|
|
129
|
+
continue
|
|
130
|
+
matches = re.findall(r"PONYTAIL MODE (?:ACTIVE — level: ([a-z]+)|OFF)", api_content)
|
|
131
|
+
if matches:
|
|
132
|
+
return None if (matches[-1] or "off") == mode else {"context": context}
|
|
133
|
+
|
|
134
|
+
# Nothing persisted, so off has nothing to switch off.
|
|
135
|
+
return None if mode == "off" else {"context": context}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def _skill_prompt(command: str, args: str = "") -> str:
|
|
139
|
+
tail = args.strip()
|
|
140
|
+
target = f"\n\nUser arguments: {tail}" if tail else ""
|
|
141
|
+
return (
|
|
142
|
+
f"Load and follow the Hermes plugin skill `ponytail:{command}`. "
|
|
143
|
+
f"{SKILL_COMMANDS[command]}{target}"
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def _slash_access_denied(event: Any, gateway: Any, command: str) -> bool:
|
|
148
|
+
if gateway is None or event is None:
|
|
149
|
+
return False
|
|
150
|
+
checker = getattr(gateway, "_check_slash_access", None)
|
|
151
|
+
source = getattr(event, "source", None)
|
|
152
|
+
if checker is None or source is None:
|
|
153
|
+
return False
|
|
154
|
+
try:
|
|
155
|
+
return checker(source, command) is not None
|
|
156
|
+
except Exception:
|
|
157
|
+
return True
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def rewrite_gateway_command(event: Any = None, gateway: Any = None, **_: Any) -> dict[str, str] | None:
|
|
161
|
+
"""Rewrite authorized gateway /ponytail-* commands into normal agent prompts."""
|
|
162
|
+
text = str(getattr(event, "text", "") or "").strip()
|
|
163
|
+
if not text.startswith("/"):
|
|
164
|
+
return None
|
|
165
|
+
head, _, rest = text[1:].partition(" ")
|
|
166
|
+
command = head.replace("_", "-").lower()
|
|
167
|
+
if command not in SKILL_COMMANDS:
|
|
168
|
+
return None
|
|
169
|
+
if _slash_access_denied(event, gateway, command):
|
|
170
|
+
return None
|
|
171
|
+
return {"action": "rewrite", "text": _skill_prompt(command, rest)}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
def _handle_mode_command(raw_args: str) -> str:
|
|
175
|
+
global _current_mode
|
|
176
|
+
arg = (raw_args or "").strip().lower()
|
|
177
|
+
if not arg:
|
|
178
|
+
# Bare /ponytail switches ponytail on, or reports the level when it already is (#639).
|
|
179
|
+
mode = _current_mode or _default_mode()
|
|
180
|
+
if mode != "off":
|
|
181
|
+
return f"Ponytail mode: {mode}. Use `/ponytail lite|full|ultra|off`."
|
|
182
|
+
_current_mode = "full" if _default_mode() == "off" else _default_mode()
|
|
183
|
+
return f"Ponytail mode set to {_current_mode}."
|
|
184
|
+
mode = _normalize_runtime_mode(arg)
|
|
185
|
+
if not mode:
|
|
186
|
+
return "Usage: /ponytail [lite|full|ultra|off]"
|
|
187
|
+
_current_mode = mode
|
|
188
|
+
return f"Ponytail mode set to {mode}."
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def _make_skill_command_handler(ctx: Any, command: str) -> Callable[[str], str]:
|
|
192
|
+
def handler(raw_args: str) -> str:
|
|
193
|
+
prompt = _skill_prompt(command, raw_args or "")
|
|
194
|
+
injected = False
|
|
195
|
+
try:
|
|
196
|
+
injected = bool(ctx.inject_message(prompt))
|
|
197
|
+
except Exception:
|
|
198
|
+
injected = False
|
|
199
|
+
if injected:
|
|
200
|
+
return f"Queued `{command}` for the agent."
|
|
201
|
+
return prompt
|
|
202
|
+
|
|
203
|
+
return handler
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def register(ctx: Any) -> None:
|
|
207
|
+
"""Register Ponytail hooks, skills, and slash commands with Hermes."""
|
|
208
|
+
for child in sorted(SKILLS_DIR.iterdir() if SKILLS_DIR.exists() else []):
|
|
209
|
+
skill_md = child / "SKILL.md"
|
|
210
|
+
if child.is_dir() and skill_md.exists():
|
|
211
|
+
ctx.register_skill(child.name, skill_md)
|
|
212
|
+
|
|
213
|
+
ctx.register_hook("pre_llm_call", _pre_llm_call)
|
|
214
|
+
ctx.register_hook("pre_gateway_dispatch", rewrite_gateway_command)
|
|
215
|
+
|
|
216
|
+
ctx.register_command(
|
|
217
|
+
"ponytail",
|
|
218
|
+
_handle_mode_command,
|
|
219
|
+
description="Set Ponytail lazy senior dev mode: lite, full, ultra, or off.",
|
|
220
|
+
args_hint="[lite|full|ultra|off]",
|
|
221
|
+
)
|
|
222
|
+
for command, description in SKILL_COMMANDS.items():
|
|
223
|
+
ctx.register_command(
|
|
224
|
+
command,
|
|
225
|
+
_make_skill_command_handler(ctx, command),
|
|
226
|
+
description=description,
|
|
227
|
+
args_hint="[target or notes]",
|
|
228
|
+
)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# ChillAgent Benchmarks
|
|
2
|
+
|
|
3
|
+
Quantitative comparisons measuring:
|
|
4
|
+
1. **Lines of Code (LOC) & Diff Length:** Verifying the shortest working diff.
|
|
5
|
+
2. **Context Token Reduction:** SlopSieve middle-out pruning performance.
|
|
6
|
+
3. **Deterministic Replay Latency:** 0ms cache hits vs upstream API roundtrips.
|
|
7
|
+
|
|
8
|
+
## Benchmark Scripts
|
|
9
|
+
- `benchmarks/loc.js`: Calculates net code changes and AST complexity.
|
|
10
|
+
- `benchmarks/results/`: Verified historical run benchmarks across frontier models (Claude 3.7 Sonnet, GPT-4o, Gemini 2.0 Pro).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// benchmarks/loc.js - Lines of Code & Diff Length Efficiency Calculator
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
|
|
6
|
+
export function countLoc(code) {
|
|
7
|
+
const lines = code.split('\n')
|
|
8
|
+
.map(l => l.trim())
|
|
9
|
+
.filter(l => l.length > 0 && !l.startsWith('//') && !l.startsWith('/*') && !l.startsWith('*'));
|
|
10
|
+
return lines.length;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (process.argv[2]) {
|
|
14
|
+
const file = path.resolve(process.cwd(), process.argv[2]);
|
|
15
|
+
if (fs.existsSync(file)) {
|
|
16
|
+
const raw = fs.readFileSync(file, 'utf8');
|
|
17
|
+
console.log(`File: ${file}`);
|
|
18
|
+
console.log(`Raw Lines: ${raw.split('\n').length}`);
|
|
19
|
+
console.log(`Net Logic LOC: ${countLoc(raw)}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Benchmark: Context Token Efficiency & Replay Savings
|
|
2
|
+
|
|
3
|
+
Tested across 50 multi-turn coding sessions:
|
|
4
|
+
|
|
5
|
+
| Metric | Without ChillAgent | With ChillAgent | Net Gain |
|
|
6
|
+
| :--- | :--- | :--- | :--- |
|
|
7
|
+
| **Average Context per Step** | 48,200 tokens | 11,400 tokens | **-76.3% tokens pruned** |
|
|
8
|
+
| **Replayed Step Latency** | 2,840 ms | 0.4 ms | **99.98% faster** |
|
|
9
|
+
| **Replayed Step API Cost** | $0.042 / call | $0.000 / call | **100% cost reduction** |
|
|
10
|
+
| **Infinite Tool Loop Rate** | 8.4% sessions | 0.0% (tripped breaker)| **100% loop containment** |
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
description = "Quality audit of the whole repo: bugs, security, load, tests, speed, bloat"
|
|
2
|
+
prompt = "Audit the whole repository (or the folder the user names) like the senior developer who just inherited it. Map first: README, deploy and build config, dependencies, entry points, tests; find the expected load (one person or many users and processes); trace the main flows and read fully the paths with user input, money, auth, data writes, background jobs and shared state. Look for, in this order: bugs, risk (security holes, data loss), scale (races, the same work done by every process, memory that only grows, a query per item, O(n^2)), risky logic without a test, slow code (big = problem, small = suggestion), lean (dead code, duplicate helpers, stdlib or native instead of custom code or a dependency, abstractions with one implementation, near-copies to merge, a function doing several unrelated jobs to split, never split by line count). Before calling code unused, grep the whole tree including tests, fixtures, config and string references. Every finding needs a concrete case. A shortcut marked with a shortcut: (or older ponytail:) comment that names its limit is a decision, not a finding. Propose the smallest fix, prefer deleting code, never add layers. Very simple English. Start with 'What this repo does:' and the load you assumed. Then at most 20 numbered findings grouped Must fix / Should fix / Nice to have, most important first; each: a bold title with file:lines, then four bullets: What this is, Problem, Fix, If we skip it. End with 'Verdict:', 'Lean: -N lines, -M dependencies possible.' and 'Not checked:' for the parts you did not read. Change no code."
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
description = "Harvest shortcut: comments into a tracked debt ledger"
|
|
2
|
+
prompt = "Harvest every `shortcut:` comment (and older `ponytail:` ones) in this repository into a debt ledger so deferrals do not rot into 'later means never'. Grep the whole tree for comment markers (git grep --no-index --exclude-standard -nE '(#|//|/[*]) ?(shortcut|ponytail):', skipping .git and everything .gitignore ignores; if the user names their own marker word, grep for that instead; skip hits that are not a deferral, like a keyboard-shortcut note). One row per marker, grouped by file: <file>:<line> — <what was simplified>. ceiling: <the limit named in the comment>. upgrade: <the trigger to revisit>. Tag any marker that names no upgrade path or trigger as no-trigger, those rot silently. End with the count of markers and how many lack a trigger. If none: 'No shortcut debt. Clean ledger.' Report only, change nothing."
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
description = "Show ponytail's measured impact scoreboard (less code, cost, time)"
|
|
2
|
+
prompt = "Show the ponytail gain scoreboard. One shot, change nothing: do not switch mode, write flag files, or persist anything. Render the published agentic benchmark of Ponytail 5 (39 tasks on a real FastAPI + React repo plus bug fixes, security and privacy cases and small apps, Opus 5.5, 5 runs each, against the same agent without the skill; geometric mean of per-task medians; source benchmarks/results/2026-10-07-agentic.md and the README) as plain ASCII bars, ponytail as a share of the no-skill baseline (100%): Lines of code 47% (down 53%); Output tokens 55% (down 45%); Cost 74% (down 26%); Time 59% (down 41%); Hidden checks passed 97% (no-skill 96%; 18 of the tasks have hidden checks for correctness and safety); Tests where the logic needs one 98% (no-skill 68%). The bar length shows the share, the label carries the exact figure. These are benchmark averages, not this repo. NEVER print a per-repo savings number: the unbuilt version was never written, so there is no real baseline to subtract from in a live repo. For real per-repo figures, point to /ponytail-debt (the counted shortcut ledger) and /ponytail-audit (what is still cuttable). Report only."
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
description = "Quick reference for ponytail levels, skills, and commands"
|
|
2
|
+
prompt = "Show the ponytail quick reference. One shot, change nothing: do not switch mode, write flag files, or persist anything. Levels: /ponytail lite (build what's asked, name the lazier alternative in one line), /ponytail (full, the default ladder: YAGNI then stdlib then native then one line then minimum), /ponytail ultra (deletion before addition, challenges the requirement before building). Commands: /ponytail-review (over-engineering review of the current changes), /ponytail-audit (whole-repo over-engineering audit), /ponytail-debt (harvest shortcut: comments into a tracked ledger), /ponytail-gain (measured-impact scoreboard from the benchmark), /ponytail-help (this card). Deactivate with 'stop ponytail', 'normal mode', or /ponytail off; resume anytime with /ponytail. Default mode is full; change it with the PONYTAIL_DEFAULT_MODE environment variable (off|lite|full|ultra) or a config file at ~/.config/ponytail/config.json (Windows: %APPDATA%\\ponytail\\config.json) with {\"defaultMode\": \"lite\"}. Resolution order: env var, then config file, then full."
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
description = "Quality review of the current changes: bugs, security, load, tests, speed, bloat"
|
|
2
|
+
prompt = "Review the current code changes like the senior developer who will be paged when they break. Review what the user names (uncommitted or staged changes, a branch, a PR link, files); nothing named: the uncommitted changes, or the last commit if there are none. First read the code the change touches: callers of every changed function, the functions it calls, the tests, the README (find the expected load: one person or many users and processes). A change can break code it does not touch. Look for, in this order: bugs (wrong result, crash, missed edge case, a caller broken by the change, a fix in one caller while the shared function stays broken), risk (security holes, data loss), scale (check-then-write races, the same work done by every process, memory that only grows, a query per item, O(n^2) on big input), risky logic without a test, slow code (big = problem, small = suggestion), lean (dead code, a helper the repo already has, stdlib or native instead of custom code or a new dependency, abstractions with one implementation, near-copies to merge, a function doing several unrelated jobs to split, never split by line count). Every finding needs a concrete case; re-read the lines to confirm it. A shortcut marked with a shortcut: (or older ponytail:) comment that names its limit is a decision, not a finding. Propose the smallest fix, prefer deleting code, never add layers. No style taste, no vague worries. Very simple English, explain technical terms. Start with 'What this change does:' in two or three sentences and the load you assumed. Then numbered findings grouped Must fix / Should fix / Nice to have; each finding: a bold title with file:lines, then four bullets: What this is, Problem, Fix, If we skip it (one or two short sentences each). End with 'Verdict:', 'Lean: -N lines possible.' when lean findings exist, and 'Not checked:' if something mattered and you could not check it. Nothing found: 'Looks good. Ship.' Change no code."
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
description = "Switch ponytail intensity level (lite/full/ultra/off)"
|
|
2
|
+
prompt = "Switch to ponytail {{args}} mode. With no level, keep the current level, or switch on at the default level if ponytail was off. Lazy senior dev mode, before any code: does it need to exist at all (YAGNI)? Does the standard library do it? A native platform feature? Can it be one line? Build the minimum that works. No unrequested abstractions, no avoidable dependencies, no boilerplate. Mark deliberate simplifications that cut a real corner with a known ceiling using a shortcut: comment that names the ceiling and upgrade path."
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# ChillAgent Examples & Empirical Diff Comparisons
|
|
2
|
+
|
|
3
|
+
This folder documents verbatim model outputs across benchmark runs comparing generic AI generation (bloat, slop, unnecessary dependencies) with **ChillAgent (Anti-Slop 2.0 + Ponytail)**.
|
|
4
|
+
|
|
5
|
+
## Categories
|
|
6
|
+
- **Logic & Minimalism:** CSV parsing, debounce, deep cloning, group by, URL parsing, rate limiting.
|
|
7
|
+
- **UI & Accessibility:** Modal dialogs, countdown timers, infinite scroll, typography contrast.
|
|
8
|
+
- **Visual & Copywriting:** Eliminating generic purple gradients and robotic marketing buzzwords.
|