@useavalon/caelence-agent 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +201 -0
- package/bin/harness.ts +10 -0
- package/package.json +75 -0
- package/skills/copy-editor/SKILL.md +74 -0
- package/skills/copy-editor/references/anti-slop.md +62 -0
- package/skills/copy-editor/references/ui-states.md +46 -0
- package/skills/copy-editor/scripts/lint-copy.py +78 -0
- package/skills/copy-harry-dry/SKILL.md +120 -0
- package/skills/copy-rmbc/SKILL.md +97 -0
- package/skills/copywriting/SKILL.md +73 -0
- package/skills/impeccable/SKILL.md +133 -0
- package/skills/impeccable/references/visual-slop.md +36 -0
- package/src/cli/main.test.ts +36 -0
- package/src/cli/main.ts +384 -0
- package/src/cli/media-models.ts +82 -0
- package/src/cli/models.ts +43 -0
- package/src/cli/openrouter-live.test.ts +35 -0
- package/src/cli/openrouter-live.ts +72 -0
- package/src/cli/openrouter-modality.test.ts +25 -0
- package/src/cli/openrouter-modality.ts +83 -0
- package/src/cli/picker.test.ts +53 -0
- package/src/cli/picker.ts +48 -0
- package/src/cli/plain-text.ts +15 -0
- package/src/cli/slash-dispatch.test.ts +213 -0
- package/src/cli/slash-dispatch.ts +298 -0
- package/src/cli/slash.test.ts +113 -0
- package/src/cli/slash.ts +119 -0
- package/src/cli/theme.test.ts +10 -0
- package/src/cli/theme.ts +44 -0
- package/src/cli/tui-layout.test.ts +33 -0
- package/src/cli/tui-layout.ts +33 -0
- package/src/cli/tui-screen.test.ts +33 -0
- package/src/cli/tui-screen.ts +13 -0
- package/src/cli/tui.tsx +735 -0
- package/src/config.ts +86 -0
- package/src/core/approval.test.ts +60 -0
- package/src/core/approval.ts +83 -0
- package/src/core/auto-router.test.ts +31 -0
- package/src/core/auto-router.ts +66 -0
- package/src/core/errors.ts +67 -0
- package/src/core/events.ts +85 -0
- package/src/core/hooks.test.ts +66 -0
- package/src/core/hooks.ts +94 -0
- package/src/core/ids.ts +6 -0
- package/src/core/instructions.test.ts +49 -0
- package/src/core/instructions.ts +44 -0
- package/src/core/logger.ts +45 -0
- package/src/core/mcp.ts +191 -0
- package/src/core/mode.test.ts +63 -0
- package/src/core/mode.ts +60 -0
- package/src/core/run-turn.test.ts +339 -0
- package/src/core/run-turn.ts +487 -0
- package/src/core/session.test.ts +203 -0
- package/src/core/session.ts +349 -0
- package/src/core/stdio-mcp.ts +143 -0
- package/src/core/strands.ts +262 -0
- package/src/core/usage.test.ts +69 -0
- package/src/core/usage.ts +171 -0
- package/src/desktop/bridge.test.ts +331 -0
- package/src/desktop/bridge.ts +729 -0
- package/src/desktop/open-local.test.ts +40 -0
- package/src/desktop/open-local.ts +52 -0
- package/src/desktop/preview-cache.test.ts +36 -0
- package/src/desktop/preview-cache.ts +63 -0
- package/src/desktop/secrets.test.ts +44 -0
- package/src/desktop/secrets.ts +60 -0
- package/src/evals/runner.test.ts +43 -0
- package/src/evals/runner.ts +225 -0
- package/src/index.ts +132 -0
- package/src/init.test.ts +54 -0
- package/src/init.ts +117 -0
- package/src/integrations/catalog-data.json +424 -0
- package/src/integrations/catalog.ts +81 -0
- package/src/integrations/connect.ts +231 -0
- package/src/integrations/integrations.test.ts +329 -0
- package/src/integrations/marks/airtable.svg +1 -0
- package/src/integrations/marks/algolia-mcp.svg +1 -0
- package/src/integrations/marks/canva.jpg +0 -0
- package/src/integrations/marks/cloudflare-mcp.svg +1 -0
- package/src/integrations/marks/contentful-mcp.svg +1 -0
- package/src/integrations/marks/craft.png +0 -0
- package/src/integrations/marks/dinero.png +0 -0
- package/src/integrations/marks/figma.svg +1 -0
- package/src/integrations/marks/gitlab.svg +1 -0
- package/src/integrations/marks/google-calendar.svg +1 -0
- package/src/integrations/marks/google-docs.svg +1 -0
- package/src/integrations/marks/google-drive.svg +1 -0
- package/src/integrations/marks/google-gmail.svg +1 -0
- package/src/integrations/marks/google-sheets.svg +1 -0
- package/src/integrations/marks/google-slides.svg +1 -0
- package/src/integrations/marks/granola.png +0 -0
- package/src/integrations/marks/jira.svg +1 -0
- package/src/integrations/marks/linear.svg +1 -0
- package/src/integrations/marks/microsoft-365.svg +7 -0
- package/src/integrations/marks/miro.svg +1 -0
- package/src/integrations/marks/mixpanel-mcp.svg +1 -0
- package/src/integrations/marks/monday.png +0 -0
- package/src/integrations/marks/mux-mcp.png +0 -0
- package/src/integrations/marks/neon-mcp.svg +1 -0
- package/src/integrations/marks/notion.svg +1 -0
- package/src/integrations/marks/paddle-mcp.svg +1 -0
- package/src/integrations/marks/posthog-mcp.svg +1 -0
- package/src/integrations/marks/prismic-mcp.svg +1 -0
- package/src/integrations/marks/replicate-mcp.svg +1 -0
- package/src/integrations/marks/resend-mcp.svg +1 -0
- package/src/integrations/marks/sanity-mcp.svg +1 -0
- package/src/integrations/marks/sceneplane.png +0 -0
- package/src/integrations/marks/sentry-mcp.svg +1 -0
- package/src/integrations/marks/stripe-mcp.svg +1 -0
- package/src/integrations/marks/supabase-mcp.svg +1 -0
- package/src/integrations/marks/upstash-mcp.svg +1 -0
- package/src/integrations/marks/vercel.svg +1 -0
- package/src/integrations/marks/webflow.svg +1 -0
- package/src/integrations/mcp-oauth.test.ts +39 -0
- package/src/integrations/mcp-oauth.ts +330 -0
- package/src/integrations/oauth-clients.test.ts +77 -0
- package/src/integrations/oauth-clients.ts +127 -0
- package/src/integrations/oauth.ts +145 -0
- package/src/integrations/remote-mcp.ts +307 -0
- package/src/integrations/store.ts +149 -0
- package/src/media/openrouter-generate.test.ts +80 -0
- package/src/media/openrouter-generate.ts +178 -0
- package/src/media/prefs.ts +54 -0
- package/src/observability/categories.ts +41 -0
- package/src/observability/create.test.ts +56 -0
- package/src/observability/create.ts +45 -0
- package/src/observability/experiments.ts +113 -0
- package/src/observability/fake.ts +191 -0
- package/src/observability/index.ts +57 -0
- package/src/observability/judges.ts +91 -0
- package/src/observability/langfuse.ts +275 -0
- package/src/observability/noop.ts +33 -0
- package/src/observability/observability.test.ts +113 -0
- package/src/observability/prompts.ts +98 -0
- package/src/observability/regression-items.ts +158 -0
- package/src/observability/sanitize.test.ts +26 -0
- package/src/observability/sanitize.ts +57 -0
- package/src/observability/types.ts +122 -0
- package/src/observability/version.ts +41 -0
- package/src/product.ts +2 -0
- package/src/runtime.test.ts +98 -0
- package/src/runtime.ts +438 -0
- package/src/skills/author-skill.ts +49 -0
- package/src/skills/create-skill.test.ts +108 -0
- package/src/skills/create-skill.ts +70 -0
- package/src/skills/loader.test.ts +122 -0
- package/src/skills/loader.ts +162 -0
- package/src/skills/registry.test.ts +190 -0
- package/src/skills/registry.ts +402 -0
- package/src/skills/skill-command.ts +53 -0
- package/src/skills/user-dir.ts +8 -0
- package/src/tools/git.test.ts +71 -0
- package/src/tools/git.ts +126 -0
- package/src/tools/local.ts +258 -0
- package/src/tools/paths.test.ts +24 -0
- package/src/tools/paths.ts +39 -0
- package/src/tools/read-skill.ts +43 -0
- package/src/tools/subagent.test.ts +77 -0
- package/src/tools/subagent.ts +74 -0
- package/src/tools/todo.test.ts +25 -0
- package/src/tools/todo.ts +70 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: copy-rmbc
|
|
3
|
+
description: >-
|
|
4
|
+
RMBC copy sequence: Research, Mechanism, Brief, Copy. Use when drafting a
|
|
5
|
+
lander, campaign, or site copy from a brief, or when the user names RMBC.
|
|
6
|
+
Any category. Specificity only from supplied facts. Not visual QA.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# RMBC (adapted)
|
|
10
|
+
|
|
11
|
+
Adapted from [Stefan Georgi's RMBC](https://github.com/coleschaffer/copywritingskills-rmbc)
|
|
12
|
+
(MIT, Copyright 2026 Stefan Georgi). Not a vendor of that repository. Do not
|
|
13
|
+
install the 42 DR skills. Do not run gates that require fake proof.
|
|
14
|
+
|
|
15
|
+
Router: copywriting. Next: copy-harry-dry.
|
|
16
|
+
|
|
17
|
+
Copy thinking before writing. Do not start at the headline. A facts brief
|
|
18
|
+
is research input, not finished copy.
|
|
19
|
+
|
|
20
|
+
## 1. Research
|
|
21
|
+
|
|
22
|
+
From this project's spec, sitemap, and brief only:
|
|
23
|
+
|
|
24
|
+
- What it is, who it is for, the primary action
|
|
25
|
+
- Facts: names, hours, prices, place, product, URLs
|
|
26
|
+
- What the reader already knows. Do not invent a failed-past story.
|
|
27
|
+
|
|
28
|
+
If a fact is missing, omit it or ask. Do not fill the hole with a plausible
|
|
29
|
+
number, town, or customer.
|
|
30
|
+
|
|
31
|
+
## 2. Mechanism
|
|
32
|
+
|
|
33
|
+
Why it works, in the reader's terms. **Internal**, not the hero.
|
|
34
|
+
Not a feature list. Not a fake proprietary name. Not a quantified engine
|
|
35
|
+
that was not measured.
|
|
36
|
+
|
|
37
|
+
A bakery's mechanism is how they bake. A SaaS product's mechanism is how
|
|
38
|
+
the product works. Neither belongs in the h1.
|
|
39
|
+
|
|
40
|
+
## 3. Brief
|
|
41
|
+
|
|
42
|
+
One positioning spine. Prefer named role, transformation, or a single
|
|
43
|
+
thesis. Epithet only when X is not the category. Not a feature list. Not
|
|
44
|
+
a tour of the website. Proof = only what was supplied. CTA = a verb that
|
|
45
|
+
matches the state it produces. No scarcity clock, bonus-stack math, or
|
|
46
|
+
assumed guarantee.
|
|
47
|
+
|
|
48
|
+
## 4. Copy
|
|
49
|
+
|
|
50
|
+
Hero is the spine: one positioning line, sentence case, no terminal period.
|
|
51
|
+
Subhead is one line. Section titles sound like that company's page, not a
|
|
52
|
+
mechanic with a drumroll, not a continuity slogan. Two CTAs per section
|
|
53
|
+
maximum. Oxford comma. Present tense. Restating the brief is a fail.
|
|
54
|
+
|
|
55
|
+
Then run Harry Dry on body and proof. Swap-test the hero if it is
|
|
56
|
+
`The {category} for {audience}`. Do not use a missing number to kill a
|
|
57
|
+
named role.
|
|
58
|
+
|
|
59
|
+
## Gates (inverted)
|
|
60
|
+
|
|
61
|
+
The upstream RMBC gates demand a number, testimonial, and urgency on every
|
|
62
|
+
claim. Those require invented proof. Here:
|
|
63
|
+
|
|
64
|
+
1. **Specificity from the brief.** A number, name, or timeframe only when
|
|
65
|
+
supplied.
|
|
66
|
+
2. **Honest mechanism.** How it actually works. No fake named system.
|
|
67
|
+
3. **Audience from the brief.** Do not invent what they tried and what failed.
|
|
68
|
+
4. **Proof that exists.** A real price, hour, address, or name is enough.
|
|
69
|
+
Missing testimonials is correct.
|
|
70
|
+
5. **Objections with facts.** What they get, what it costs if priced. No fake
|
|
71
|
+
deadline.
|
|
72
|
+
|
|
73
|
+
Unproven claims: omit or `[VERIFY]` in a draft. Never a fake figure.
|
|
74
|
+
|
|
75
|
+
## Dropped
|
|
76
|
+
|
|
77
|
+
VSL, cart abandonment, supplement research, scarcity as a default,
|
|
78
|
+
soap-opera sequences, bonus stacks, 5-10x value-comparison pricing,
|
|
79
|
+
assumed guarantees, required social-proof blocks.
|
|
80
|
+
|
|
81
|
+
## Examples (published or supplied facts)
|
|
82
|
+
|
|
83
|
+
**Pointing with a real figure:** Stripe's site states *$1.9T in payments
|
|
84
|
+
volume processed in 2025*. That is a published number. *"Powerful payments
|
|
85
|
+
infrastructure"* is talking. Do not invent "12,000 teams".
|
|
86
|
+
|
|
87
|
+
**A local business:** hours and the address from the brief. Not a 5-star
|
|
88
|
+
row you made up.
|
|
89
|
+
|
|
90
|
+
**Hero register (form only, not a line to paste):** named role *"The AI Code
|
|
91
|
+
Reviewer."* Transformation *"Shift your product into self-driving mode."*
|
|
92
|
+
Thesis *"The future isn't writing code. It's reviewing it."* Epithet only
|
|
93
|
+
when X is not the category: *"The continual learning platform for agents."*
|
|
94
|
+
Fail: *The {category} for {audience}* restated from the brief. *"Secure,
|
|
95
|
+
Safe, and Trustworthy AI"* is a weak triad, not the craft.
|
|
96
|
+
|
|
97
|
+
Write a new spine from **this** brief.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: copywriting
|
|
3
|
+
description: >-
|
|
4
|
+
Routes copy work through a pipeline: RMBC, Harry Dry line test, then
|
|
5
|
+
copy-editor and anti-AI-slop. Use when writing or editing headlines, CTAs,
|
|
6
|
+
landers, product UI, or when the user says copy, RMBC, Harry Dry, audit
|
|
7
|
+
copy, anti-slop, or copy editor. Any category. Invented metrics and
|
|
8
|
+
testimonials stay illegal. Not visual QA (that is impeccable).
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Copywriting (router)
|
|
12
|
+
|
|
13
|
+
Do not dump every method into one prompt. Run the pipeline. Read each skill
|
|
14
|
+
when you reach it (`read_skill`).
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
COPYWRITING
|
|
18
|
+
│
|
|
19
|
+
RESEARCH POSITIONING
|
|
20
|
+
└──────┬──────┘
|
|
21
|
+
▼
|
|
22
|
+
RMBC
|
|
23
|
+
Research → Mechanism → Brief → Copy
|
|
24
|
+
▼
|
|
25
|
+
Harry Dry (body and proof)
|
|
26
|
+
▼
|
|
27
|
+
COPY EDITOR
|
|
28
|
+
▼
|
|
29
|
+
ANTI-AI-SLOP
|
|
30
|
+
▼
|
|
31
|
+
FINAL COPY
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
| Step | Skill | Job |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| Sequence | copy-rmbc | Research, mechanism, brief, then copy. Facts from this project's brief only. |
|
|
37
|
+
| Line | copy-harry-dry | Body and proof: visualize / falsify / ownable. Not a kill-switch on a hero epithet. |
|
|
38
|
+
| Edit | copy-editor | Write vs edit. UI states. Sweeps. `[VERIFY]` or omit. |
|
|
39
|
+
|
|
40
|
+
**Invented proof is always illegal.** Never invent a number, testimonial, case
|
|
41
|
+
study, customer name, star rating, or sample metric. Unproven claims: omit, or
|
|
42
|
+
mark `[VERIFY]` in drafts. Shipped HTML never contains `[VERIFY]` or a fake
|
|
43
|
+
figure.
|
|
44
|
+
|
|
45
|
+
## Two jobs
|
|
46
|
+
|
|
47
|
+
| | Who | Facts and voice | Do not |
|
|
48
|
+
|---|---|---|---|
|
|
49
|
+
| **This product** | Landing, app, chrome for the repo you are in | That project's brief and `design.md` | Another product's palette or slogans. Invented lock-in stats. |
|
|
50
|
+
| **A customer's site** | The brief's business, any category | Spec, sitemap, hours, names, prices, place, product | Narrating how the website was built. Invented reviews. Importing the harness brand. |
|
|
51
|
+
|
|
52
|
+
Visual identity is separate: `impeccable` plus the project's `design.md`.
|
|
53
|
+
Impeccable is not the copy system.
|
|
54
|
+
|
|
55
|
+
A subagent can run one step (`task` with `skills: ["copy-rmbc"]`, then Harry
|
|
56
|
+
Dry, then copy-editor). Do not flatten the pipeline into one prompt.
|
|
57
|
+
|
|
58
|
+
## When to skip a layer
|
|
59
|
+
|
|
60
|
+
- **One UI string** (error, empty, button): copy-editor UI states only.
|
|
61
|
+
- **One headline to polish:** Harry Dry on that line if it is proof; then copy-editor.
|
|
62
|
+
- **Full lander from a facts brief:** whole pipeline in write mode. Facts stay locked. Wording is not. Restating the brief is a fail.
|
|
63
|
+
|
|
64
|
+
## Refused
|
|
65
|
+
|
|
66
|
+
- Direct-response funnel packs: VSL, cart abandonment, scarcity, supplements, bonus stacks, soap-opera, webinars, guaranteed fake proof.
|
|
67
|
+
- Quality gates that require a number, testimonial, or invented mechanism on every claim.
|
|
68
|
+
- Invented keep-examples. Quote a published line with who ran it, or use facts already in the brief.
|
|
69
|
+
|
|
70
|
+
## After the pipeline
|
|
71
|
+
|
|
72
|
+
One revision. Do not add proof to raise a score. Hand back final copy, not a
|
|
73
|
+
methodology essay. Visual polish: `impeccable`.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: impeccable
|
|
3
|
+
description: >-
|
|
4
|
+
Visual QA using Impeccable-style checks. Use when designing, reviewing,
|
|
5
|
+
auditing, polishing, or fixing a page: contrast, type, spacing, radii,
|
|
6
|
+
icons, layout slop, light and dark. Also when the user says critique this
|
|
7
|
+
page, impeccable critique, polish this page, impeccable-caelence, or names
|
|
8
|
+
this skill against HTML/CSS. Honor the host project's design.md. Not the
|
|
9
|
+
copy system (use copywriting).
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Impeccable checks
|
|
13
|
+
|
|
14
|
+
Adapted from [Impeccable](https://github.com/pbakaus/impeccable) (Apache 2.0,
|
|
15
|
+
Copyright 2025 Paul Bakaus). This skill is **not** a vendor of that repository.
|
|
16
|
+
|
|
17
|
+
**Visual authority:** the host project's `docs/design.md` or `design.md` if
|
|
18
|
+
either exists. Read it before changing UI. Do not dump a whole tokens file
|
|
19
|
+
into context. If there is no design doc, use the checks below as the floor
|
|
20
|
+
and do not invent a second typeface, a new radius scale, or a decorative
|
|
21
|
+
gradient.
|
|
22
|
+
|
|
23
|
+
**Copy is another layer.** Wording, proof, and anti-slop live in
|
|
24
|
+
`copywriting`. This skill does not own the copy pipeline. Flag kicker chrome
|
|
25
|
+
and stock section labels as *layout* when they appear; do not run RMBC,
|
|
26
|
+
Harry Dry, or the copy editor from here.
|
|
27
|
+
|
|
28
|
+
A pinned project brief wins over taste. Redirecting the host toward Geist,
|
|
29
|
+
shadcn, or a purple SaaS kit is failure unless that brief already committed it.
|
|
30
|
+
|
|
31
|
+
## How to invoke
|
|
32
|
+
|
|
33
|
+
No npm installer. No `/impeccable` binary. Ask this agent:
|
|
34
|
+
|
|
35
|
+
| You say | This skill does |
|
|
36
|
+
|---|---|
|
|
37
|
+
| critique this page / impeccable critique | Punch list of named *visual* slop, then one fix pass |
|
|
38
|
+
| polish this page | Same checks, subtractive pass |
|
|
39
|
+
| audit this page | Technical quality (contrast, heading levels, overflow), then fix |
|
|
40
|
+
|
|
41
|
+
Point at HTML/CSS in the conversation, or a path. A `task` subagent can run
|
|
42
|
+
critique on one file.
|
|
43
|
+
|
|
44
|
+
## Setup
|
|
45
|
+
|
|
46
|
+
1. Read `docs/design.md` or `design.md` if this session has not.
|
|
47
|
+
2. Inspect the actual result when a browser exists (first viewport, full page,
|
|
48
|
+
light and dark if the host has both). One batched pass, then fix, then at
|
|
49
|
+
most one confirm pass.
|
|
50
|
+
|
|
51
|
+
## Checks (measure the built result)
|
|
52
|
+
|
|
53
|
+
Run against the built result, not intention. Host tokens win when named.
|
|
54
|
+
|
|
55
|
+
- **Contrast:** body ≥ 4.5:1 on the actual surface. White text only on a fill
|
|
56
|
+
that was measured for white. Never white on a mid accent or on orange/warning.
|
|
57
|
+
Gray text on a coloured fill is a fail. On dark, measure against the card
|
|
58
|
+
surface, not pure black.
|
|
59
|
+
- **Primary fill:** at most one primary button per screen. Outline-with-colour
|
|
60
|
+
is for selection, not a second primary. In progress **moves**; done is
|
|
61
|
+
**still**. No static brand fill on a running state.
|
|
62
|
+
- **Neutrals:** do not mix two grey families for the same job (paper vs
|
|
63
|
+
instrument, page vs chrome).
|
|
64
|
+
- **Type:** the faces the design doc names, and no third. Sentence case on
|
|
65
|
+
labels. Mono only for machine strings (paths, IDs, logs, dimensions).
|
|
66
|
+
- **Shape:** a short radius scale (for example 4 / 8 / 12 / full). Hairline
|
|
67
|
+
borders. No gradients, blur, or shadow except on genuinely floating layers
|
|
68
|
+
(menu, popover, modal).
|
|
69
|
+
- **Icons:** one family, one weight per panel. Do not mix line with filled.
|
|
70
|
+
Icon-only controls need an accessible name.
|
|
71
|
+
- **Deleted brand red** if the design doc retired one. Do not reintroduce it.
|
|
72
|
+
|
|
73
|
+
## Refuse (visual AI slop, unless the brief already committed it)
|
|
74
|
+
|
|
75
|
+
Named Impeccable anti-patterns. Check the markup. Longer list:
|
|
76
|
+
`references/visual-slop.md` (`read_skill` name `impeccable`, file that path).
|
|
77
|
+
|
|
78
|
+
- **Italic display headline.** `font-style: italic` on h1–h3, hero lines,
|
|
79
|
+
section titles, or panel headings. Do not wrap a headline in `<em>` or `<i>`
|
|
80
|
+
unless the design doc specifies italic display.
|
|
81
|
+
- **Kicker / eyebrow label above heading.** A small label above an h1/h2
|
|
82
|
+
(uppercase, tracked, or a quiet category word). Same for a hero eyebrow /
|
|
83
|
+
pill chip. Delete it. Wording of a replacement heading is copy-pipeline work.
|
|
84
|
+
- **Stock section labels as the only heading.** How it works, Features,
|
|
85
|
+
Platform, Pricing as the only heading, Our story, Get in touch, Why choose us,
|
|
86
|
+
as an h2 **or** as a kicker. Nav may use those words; that is not a license
|
|
87
|
+
to put the same word above the h2.
|
|
88
|
+
- Same-size icon + heading + text cards as the page structure; nested cards;
|
|
89
|
+
side-tab accent borders
|
|
90
|
+
- Icon tile stacked above a heading as a repeating feature-card grid
|
|
91
|
+
- Hero-metric template (big number, small label, accent). Do not invent numbers
|
|
92
|
+
- All-caps product tags as a default
|
|
93
|
+
- Gradient text, glass, decorative blur, glow, fake 3D
|
|
94
|
+
- Purple-to-blue / indigo / cyan-on-dark gradients, Inter-for-everything, Geist
|
|
95
|
+
- Extreme radius / `9999px` pills on cards or sections (full-pill is for small
|
|
96
|
+
controls)
|
|
97
|
+
- Centered everything; three identical marketing cards. Repeating that
|
|
98
|
+
equal-card grid in every section is the same slop
|
|
99
|
+
- Bounce / elastic easing
|
|
100
|
+
- Emoji in headings, or emoji standing in for the icon set
|
|
101
|
+
- Middle-dot `·` crumb chrome (`label · label · label`)
|
|
102
|
+
- Tiny muted prose to fake density
|
|
103
|
+
- **Product chrome as marketing hero.** Filling the first viewport with
|
|
104
|
+
rulers, a canvas bed, selection handles, wireframes, or a mini editor
|
|
105
|
+
unless that *is* the product shot the brief asked for
|
|
106
|
+
|
|
107
|
+
## Critique mode
|
|
108
|
+
|
|
109
|
+
When the user asks to critique a page:
|
|
110
|
+
|
|
111
|
+
1. Read the design doc if this session has not.
|
|
112
|
+
2. Inspect the markup (and the browser if it exists).
|
|
113
|
+
3. Emit a punch list of **named visual slop only**. Cite the rule.
|
|
114
|
+
No score, no persona theater, no invented defects. Do not audit voice,
|
|
115
|
+
proof, or banned marketing words here.
|
|
116
|
+
4. Apply the visual fixes in the same turn. Cap at **one** revision unless the
|
|
117
|
+
user asks for another.
|
|
118
|
+
|
|
119
|
+
Punch list shape:
|
|
120
|
+
|
|
121
|
+
```json
|
|
122
|
+
{ "findings": [{ "rule": "kicker / eyebrow label above heading", "where": "kicker: How it works", "fix": "Delete the label. Start the section on the claim." }] }
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Empty `findings` means the visual page is clean. Flag How it works anywhere
|
|
126
|
+
prominent (kicker, label, h2). Flag label-above-title. Nav labels and footer
|
|
127
|
+
column titles are not findings.
|
|
128
|
+
|
|
129
|
+
## After the pass
|
|
130
|
+
|
|
131
|
+
Fix the highest-impact systemic visual defect. In check mode, do not deliver a
|
|
132
|
+
scorecard unless asked. Critique mode emits the punch list, then fixes.
|
|
133
|
+
Copy wording: `copywriting`.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Visual slop (Impeccable, adapted)
|
|
2
|
+
|
|
3
|
+
Named layout anti-patterns. Any category. A phrase already in the project's
|
|
4
|
+
brief or design.md outranks a list item.
|
|
5
|
+
|
|
6
|
+
## Kickers and stock labels
|
|
7
|
+
|
|
8
|
+
- Small label above an h1/h2 (kicker, eyebrow, overline, pill chip)
|
|
9
|
+
- How it works, Features, Our story, Get in touch, Why choose us as the only
|
|
10
|
+
heading or as a kicker
|
|
11
|
+
- Nav words repeated as the section h2
|
|
12
|
+
|
|
13
|
+
## Grids and chrome
|
|
14
|
+
|
|
15
|
+
- Three identical icon + heading + text cards as the page structure
|
|
16
|
+
- That equal-card grid repeated in every section
|
|
17
|
+
- Nested cards, side-tab accent borders
|
|
18
|
+
- Hero-metric template with an invented number
|
|
19
|
+
- Product UI chrome (rulers, handles, canvas bed) filling a marketing hero
|
|
20
|
+
unless the brief asked for that shot
|
|
21
|
+
|
|
22
|
+
## Type and effects
|
|
23
|
+
|
|
24
|
+
- Italic display headlines
|
|
25
|
+
- All-caps tags as decoration
|
|
26
|
+
- Gradient text, glass, blur, glow, fake 3D
|
|
27
|
+
- Inter / Geist as a default third face
|
|
28
|
+
- Extreme pill radii on large surfaces
|
|
29
|
+
- Bounce / elastic easing
|
|
30
|
+
- Emoji as icons or in headings
|
|
31
|
+
- Middle-dot crumb chrome
|
|
32
|
+
- Tiny muted paragraphs to fake density
|
|
33
|
+
|
|
34
|
+
## After a finding
|
|
35
|
+
|
|
36
|
+
Fix layout here. Do not rewrite headlines for voice — that is copywriting.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { describe, expect, test } from "bun:test";
|
|
2
|
+
import { parseCliArgs } from "./main.ts";
|
|
3
|
+
|
|
4
|
+
describe("parseCliArgs", () => {
|
|
5
|
+
test("strips --cwd before the command", () => {
|
|
6
|
+
const parsed = parseCliArgs(["--cwd", "/tmp/proj", "eval"]);
|
|
7
|
+
expect(parsed.cmd).toBe("eval");
|
|
8
|
+
expect(parsed.cwd).toContain("proj");
|
|
9
|
+
expect(parsed.rest).toEqual([]);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
test("strips --cwd after the command", () => {
|
|
13
|
+
const parsed = parseCliArgs(["eval", "--cwd", "/tmp/proj"]);
|
|
14
|
+
expect(parsed.cmd).toBe("eval");
|
|
15
|
+
expect(parsed.cwd).toContain("proj");
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test("reads chat -m", () => {
|
|
19
|
+
const parsed = parseCliArgs(["chat", "-m", "hello"]);
|
|
20
|
+
expect(parsed.cmd).toBe("chat");
|
|
21
|
+
expect(parsed.message).toBe("hello");
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test("reads desktop", () => {
|
|
25
|
+
const parsed = parseCliArgs(["desktop", "--cwd", "/tmp/proj"]);
|
|
26
|
+
expect(parsed.cmd).toBe("desktop");
|
|
27
|
+
expect(parsed.cwd).toContain("proj");
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test("reads --mode", () => {
|
|
31
|
+
const parsed = parseCliArgs(["--mode", "ask", "chat", "-m", "hello"]);
|
|
32
|
+
expect(parsed.cmd).toBe("chat");
|
|
33
|
+
expect(parsed.mode).toBe("ask");
|
|
34
|
+
expect(parsed.message).toBe("hello");
|
|
35
|
+
});
|
|
36
|
+
});
|