@ericrisco/rsc 2.0.20 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -21
- package/manifest.json +18 -85
- package/package.json +5 -1
- package/scripts/consult.js +8 -8
- package/scripts/install-apply.js +48 -11
- package/scripts/lib/default-skill-floor.js +5 -4
- package/scripts/lib/divergence.js +7 -3
- package/scripts/lib/domains.js +2 -2
- package/scripts/lib/onboarding-apply.js +43 -26
- package/scripts/lib/onboarding.js +5 -5
- package/scripts/lib/recommend.js +1 -1
- package/scripts/lib/repair.js +4 -2
- package/scripts/lib/retired-skills.js +20 -0
- package/scripts/rsc.js +25 -19
- package/scripts/skill-behavior-rubric.md +1 -1
- package/scripts/skill-migration-brief.md +3 -3
- package/skills/analyze/SKILL.md +3 -8
- package/skills/analyze/evals/cases.yaml +1 -1
- package/skills/author-skill/SKILL.md +3 -3
- package/skills/author-skill/evals/cases.yaml +1 -1
- package/skills/author-skill/references/rsc-conventions.md +1 -1
- package/skills/clarify/SKILL.md +7 -14
- package/skills/clarify/evals/cases.yaml +2 -2
- package/skills/code-review/SKILL.md +1 -1
- package/skills/constitution/SKILL.md +10 -13
- package/skills/constitution/evals/cases.yaml +3 -3
- package/skills/continuous-learning/SKILL.md +1 -1
- package/skills/continuous-learning/evals/cases.yaml +1 -1
- package/skills/debug/SKILL.md +8 -12
- package/skills/debug/evals/cases.yaml +1 -1
- package/skills/decision-challenge/SKILL.md +1 -1
- package/skills/deprecation/SKILL.md +1 -1
- package/skills/ftd/SKILL.md +1 -3
- package/skills/ftd/evals/cases.yaml +1 -1
- package/skills/harness/SKILL.md +10 -9
- package/skills/harness/references/claude-md-template.md +1 -1
- package/skills/harness/references/wiki-protocol.md +5 -6
- package/skills/idea-refinement/SKILL.md +1 -1
- package/skills/implement/SKILL.md +14 -18
- package/skills/implement/evals/cases.yaml +1 -1
- package/skills/init/SKILL.md +36 -45
- package/skills/init/evals/README.md +3 -3
- package/skills/init/evals/cases.yaml +7 -7
- package/skills/init/references/accompaniment-and-profile.md +22 -40
- package/skills/init/references/discovery.md +2 -2
- package/skills/init/references/recommend-skills.md +5 -5
- package/skills/init/scripts/verify.sh +3 -7
- package/skills/knowledge-ops/SKILL.md +1 -1
- package/skills/orient/SKILL.md +52 -41
- package/skills/orient/evals/README.md +11 -9
- package/skills/orient/evals/cases.yaml +39 -29
- package/skills/orient/references/explain-ladder.md +93 -0
- package/skills/orient/references/orientation-contract.md +70 -18
- package/skills/parallel/SKILL.md +1 -1
- package/skills/parallel/evals/cases.yaml +2 -2
- package/skills/plan/SKILL.md +9 -13
- package/skills/review/SKILL.md +5 -8
- package/skills/roast-me/SKILL.md +1 -1
- package/skills/sdd/SKILL.md +10 -14
- package/skills/sdd/evals/README.md +2 -2
- package/skills/sdd/evals/cases.yaml +4 -4
- package/skills/sdd/references/model-routing.md +5 -12
- package/skills/sdd-init/SKILL.md +3 -3
- package/skills/ship/SKILL.md +6 -11
- package/skills/simplify-code/SKILL.md +1 -1
- package/skills/skill-scout/SKILL.md +1 -1
- package/skills/source-grounded-development/SKILL.md +1 -1
- package/skills/specify/SKILL.md +13 -14
- package/skills/specify/evals/cases.yaml +1 -1
- package/skills/specify/references/eliciting-requirements.md +5 -5
- package/skills/suggest/SKILL.md +3 -9
- package/skills/suggest/evals/cases.yaml +1 -1
- package/skills/tasks/SKILL.md +6 -7
- package/skills/tasks/evals/cases.yaml +1 -1
- package/skills/unslop/SKILL.md +39 -10
- package/skills/unslop/evals/README.md +7 -7
- package/skills/unslop/evals/cases.yaml +10 -9
- package/skills/verify/SKILL.md +5 -8
- package/skills/verify/evals/cases.yaml +1 -1
- package/skills/worktrees/SKILL.md +14 -18
- package/skills/worktrees/evals/cases.yaml +1 -1
- package/targets/_md-block.js +7 -1
- package/targets/auto-update.mjs +200 -0
- package/targets/claude.js +2 -0
- package/targets/clone-bootstrap.mjs +5 -2
- package/targets/opt-outs.js +1 -0
- package/targets/session-start.mjs +5 -78
- package/targets/update-wiring.js +153 -0
- package/skills/bro/SKILL.md +0 -76
- package/skills/bro/evals/README.md +0 -22
- package/skills/bro/evals/cases.yaml +0 -62
- package/skills/eli5/SKILL.md +0 -63
- package/skills/eli5/evals/README.md +0 -22
- package/skills/eli5/evals/cases.yaml +0 -54
- package/skills/show-me/SKILL.md +0 -140
- package/skills/show-me/evals/README.md +0 -23
- package/skills/show-me/evals/cases.yaml +0 -61
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
skill: bro
|
|
2
|
-
|
|
3
|
-
# `bro` is the final-language pass: it rewrites an existing answer/draft or
|
|
4
|
-
# drafts requested text in a natural register. It does not define a reusable
|
|
5
|
-
# brand system, translate content, or choose a documentation/copy strategy.
|
|
6
|
-
should_trigger:
|
|
7
|
-
- prompt: "Bro, escribe como un humano."
|
|
8
|
-
why: "A terse bro-style instruction after an answer is the canonical request to rewrite the last assistant message naturally."
|
|
9
|
-
|
|
10
|
-
- prompt: "Rewrite your last answer so it sounds like a person, not a consultant."
|
|
11
|
-
why: "The user wants a human-language pass over the previous answer while preserving its content."
|
|
12
|
-
|
|
13
|
-
- prompt: "Haz este correo más natural y directo, pero no cambies las fechas ni los compromisos."
|
|
14
|
-
why: "Rewriting a supplied draft while preserving facts and commitments is the skill's core contract."
|
|
15
|
-
|
|
16
|
-
- prompt: "Això sona escrit per una IA. Fes-ho més humà i sense tanta cerimònia."
|
|
17
|
-
why: "Catalan request to remove AI-shaped formality tests multilingual semantic triggering."
|
|
18
|
-
|
|
19
|
-
- prompt: "Can you say that again in plain language without all the corporate jargon?"
|
|
20
|
-
why: "The symptom is jargon and artificial formality rather than the skill name, but the needed action is the same rewrite."
|
|
21
|
-
|
|
22
|
-
- prompt: "Escríbeme una respuesta breve y humana para decirle que llegaremos un día tarde."
|
|
23
|
-
why: "The user requests new text rather than a rewrite, but explicitly wants the same natural, truthful voice."
|
|
24
|
-
|
|
25
|
-
- prompt: "Keep all the technical details, just make it sound less robotic."
|
|
26
|
-
why: "Humanizing without deleting precision exercises the distinction between plain language and simplification."
|
|
27
|
-
|
|
28
|
-
should_not_trigger:
|
|
29
|
-
- prompt: "Define a reusable voice guide so every writer and channel sounds like our brand."
|
|
30
|
-
route_to: "brand-voice"
|
|
31
|
-
why: "A standing voice system is brand-voice; bro only performs a local writing pass."
|
|
32
|
-
|
|
33
|
-
- prompt: "Translate this onboarding email from English to Spanish and adapt the date and currency formats."
|
|
34
|
-
route_to: "translation-l10n"
|
|
35
|
-
why: "Translation and locale-aware adaptation are owned by translation-l10n, even when natural prose matters."
|
|
36
|
-
|
|
37
|
-
- prompt: "Turn this mixed README into a clean tutorial and API reference with runnable examples."
|
|
38
|
-
route_to: "technical-writing"
|
|
39
|
-
why: "Choosing documentation modes and restructuring technical docs is technical-writing, not a final tone pass."
|
|
40
|
-
|
|
41
|
-
- prompt: "Write the hero, value proposition and CTA for our pricing page."
|
|
42
|
-
route_to: "landing-copy"
|
|
43
|
-
why: "Conversion architecture and finished landing-page copy belong to landing-copy; bro may only polish its language afterward."
|
|
44
|
-
|
|
45
|
-
- prompt: "Rewrite this function to be simpler and remove the unnecessary abstractions."
|
|
46
|
-
route_to: "simplify-code"
|
|
47
|
-
why: "The requested source-code simplification is owned by simplify-code; 'rewrite' does not make it a prose task."
|
|
48
|
-
|
|
49
|
-
- prompt: "Revisa este README antes de publicarlo y dime qué frases suenan a IA, una por una."
|
|
50
|
-
route_to: "unslop"
|
|
51
|
-
why: "A named, per-phrase audit of an existing text before shipping is unslop's contract; bro rewrites the register instead of enumerating tells."
|
|
52
|
-
|
|
53
|
-
capability:
|
|
54
|
-
- scenario: "The previous assistant answer is a long Spanish status update full of headings, repeated summaries, corporate jargon and fake enthusiasm. Rewrite it for a client while preserving a June 30 deadline, a EUR 2,400 price, one unresolved risk, two URLs and the original uncertainty."
|
|
55
|
-
must_include:
|
|
56
|
-
- "preserves June 30, EUR 2,400, both URLs, the unresolved risk and the original uncertainty exactly"
|
|
57
|
-
- "uses natural Spanish appropriate for a client rather than automatically becoming slangy or over-casual"
|
|
58
|
-
- "removes needless headings, repeated conclusions, corporate filler and canned enthusiasm"
|
|
59
|
-
- "uses concrete verbs and readable sentence rhythm without adding typos or forced fragments"
|
|
60
|
-
- "does not invent evidence, anecdotes, opinions, commitments or certainty"
|
|
61
|
-
- "returns the rewritten message without a meta preface or an explanation of the edits"
|
|
62
|
-
- "keeps any harness orientation clearly outside the client-ready artifact"
|
package/skills/eli5/SKILL.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: eli5
|
|
3
|
-
description: "Use when a topic must be explained from zero to someone who knows nothing about it: one page, big pictures, very few words, everyday analogies, no jargon and nothing assumed. NOT the smallest in-conversation visual for someone already following (that is `show-me`), NOT a course with exercises (that is `course-builder`)."
|
|
4
|
-
tags: [eli5, explain, beginner, simple, analogy, no-jargon, explicame]
|
|
5
|
-
recommends: [show-me, technical-writing, course-builder]
|
|
6
|
-
profiles: [minimal, core, full]
|
|
7
|
-
origin: risco
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# eli5 — explain it to someone who knows nothing
|
|
11
|
-
|
|
12
|
-
The topic is whatever the user named. With no topic named, it is the one the conversation is already
|
|
13
|
-
on. The audience is someone with **zero** background: no vocabulary, no context, no patience for a
|
|
14
|
-
definition that needs another definition.
|
|
15
|
-
|
|
16
|
-
## The contract
|
|
17
|
-
|
|
18
|
-
1. **A page, not a paragraph.** The output is one self-contained HTML page, big visuals first, words
|
|
19
|
-
second. Open it when it is written.
|
|
20
|
-
2. **Picture carries the idea, words label it.** If the page still makes sense with the text removed,
|
|
21
|
-
it is working. Aim for a caption per picture, not a paragraph per picture.
|
|
22
|
-
3. **Everyday objects only.** Compare to things a person has physically handled: boxes, keys, queues
|
|
23
|
-
at a counter, post, a light switch. Never explain one unknown with another unknown.
|
|
24
|
-
4. **Zero jargon, and zero smuggled jargon.** No term appears without being shown first. "It caches"
|
|
25
|
-
is jargon; "it keeps a copy nearby so it doesn't have to walk back" is the same fact.
|
|
26
|
-
5. **Simple, never false.** When the simplification would make something untrue, say what got left
|
|
27
|
-
out, in one line, at the end. A comfortable lie is worse than a hard truth.
|
|
28
|
-
6. **No condescension.** Simple words, adult tone. The reader is new to the topic, not a child.
|
|
29
|
-
|
|
30
|
-
## The shape of the page
|
|
31
|
-
|
|
32
|
-
```text
|
|
33
|
-
one sentence: what this thing is, in words a stranger would use
|
|
34
|
-
big picture 1 : the thing, drawn
|
|
35
|
-
big picture 2 : the thing doing its job, step by step
|
|
36
|
-
one line : the part people get wrong
|
|
37
|
-
one line : what this explanation left out (only if it left something out)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Three to five visuals is the whole page. Inline SVG or plain HTML boxes beat any chart library here:
|
|
41
|
-
the drawing has to be readable on a phone, at a glance, with no legend to study.
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
open path/to/eli5-<topic>.html
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Anti-patterns
|
|
48
|
-
|
|
49
|
-
| Anti-pattern | Why it fails | Do this instead |
|
|
50
|
-
| --- | --- | --- |
|
|
51
|
-
| Define a term with two more terms | The reader loses the thread on line one | Show the thing, then name it |
|
|
52
|
-
| A wall of text with one decorative image | That is a blog post with a picture | Picture first, caption second |
|
|
53
|
-
| "Imagine you're a packet travelling…" | Cute framing, still abstract | Compare to an object the reader has held |
|
|
54
|
-
| Simplify until it is wrong | The reader now has to unlearn it | Keep it true and name what you dropped |
|
|
55
|
-
| Baby talk, emoji, exclamation marks | Talks down to the reader | Plain adult words, short sentences |
|
|
56
|
-
| Five diagrams of the same idea | Repetition reads as padding | One picture per genuinely new idea |
|
|
57
|
-
|
|
58
|
-
## Where this ends
|
|
59
|
-
|
|
60
|
-
- Someone already following the conversation who needs the shape of one mechanism: `show-me`.
|
|
61
|
-
- A structured curriculum with exercises, assessment and progression: `course-builder`.
|
|
62
|
-
- Documentation an informed reader will keep coming back to: `technical-writing`.
|
|
63
|
-
- Making an existing text sound human rather than simpler: `bro`.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Evals — eli5
|
|
2
|
-
|
|
3
|
-
Two claims: that a from-zero request routes here instead of to the in-conversation visual skill or to
|
|
4
|
-
teaching material, and that the loaded skill produces a page a genuine beginner can follow.
|
|
5
|
-
|
|
6
|
-
## Triggering
|
|
7
|
-
|
|
8
|
-
Load only `eli5` and run every prompt in 3–5 fresh sessions. A positive passes when `eli5` loads in a
|
|
9
|
-
majority of trials; a negative passes when it stays quiet and the declared `route_to` skill is the
|
|
10
|
-
real owner. Require at least 90% accuracy.
|
|
11
|
-
|
|
12
|
-
`show-me` is the negative that matters: both are "explain it visually". The discriminator is the
|
|
13
|
-
reader's starting knowledge, and it must survive any description edit on either side.
|
|
14
|
-
|
|
15
|
-
## Capability
|
|
16
|
-
|
|
17
|
-
Run the scenario without the skill and with it, same topic and one grader, three trials. The
|
|
18
|
-
with-skill condition must satisfy at least 80% of the rubric and beat the baseline by at least 20
|
|
19
|
-
percentage points.
|
|
20
|
-
|
|
21
|
-
Grade the jargon point strictly: a baseline answer almost always keeps one unexplained term, which is
|
|
22
|
-
exactly the failure the skill exists to prevent.
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
skill: eli5
|
|
2
|
-
|
|
3
|
-
# `eli5` owns one move: a from-zero explanation of one topic, as a page of big
|
|
4
|
-
# pictures and few words, for someone with no background at all. It does not own
|
|
5
|
-
# in-conversation diagrams for someone already following, curricula, or docs.
|
|
6
|
-
should_trigger:
|
|
7
|
-
- prompt: "Explícame qué es una API como si tuviera cinco años."
|
|
8
|
-
why: "The canonical from-zero request, named outright, in the user's own language."
|
|
9
|
-
|
|
10
|
-
- prompt: "My mum asked me what a VPN is. I need something she can actually look at."
|
|
11
|
-
why: "A named audience with zero background and an explicit ask for something visual."
|
|
12
|
-
|
|
13
|
-
- prompt: "eli5 how a blockchain works"
|
|
14
|
-
why: "The bare skill name plus a topic is the shortest form of the same request."
|
|
15
|
-
|
|
16
|
-
- prompt: "No tengo ni idea de esto. Empieza por lo más básico, sin palabras raras."
|
|
17
|
-
why: "Zero background plus an explicit no-jargon constraint, with no topic named: the topic is the current one."
|
|
18
|
-
|
|
19
|
-
- prompt: "Can you explain what an index is in a database, but for someone who has never programmed?"
|
|
20
|
-
why: "A technical topic aimed at a non-technical reader is the audience this skill is written for."
|
|
21
|
-
|
|
22
|
-
- prompt: "Necesito explicarle a mi cliente, que no es técnico, qué es un webhook. Que lo entienda de una."
|
|
23
|
-
why: "Explaining to a named non-technical third party is the same job, one step removed."
|
|
24
|
-
|
|
25
|
-
should_not_trigger:
|
|
26
|
-
- prompt: "Show me the call order when the form is submitted, I'm lost in the code."
|
|
27
|
-
route_to: "show-me"
|
|
28
|
-
why: "The user is already inside the topic and needs one mechanism drawn, not a from-zero page."
|
|
29
|
-
|
|
30
|
-
- prompt: "Build a four-week course on SQL with exercises and a final project."
|
|
31
|
-
route_to: "course-builder"
|
|
32
|
-
why: "Curriculum, progression and assessment are course-builder; eli5 is a single explanation."
|
|
33
|
-
|
|
34
|
-
- prompt: "Write the getting-started docs for our SDK, with runnable examples."
|
|
35
|
-
route_to: "technical-writing"
|
|
36
|
-
why: "Reference and tutorial documentation is technical-writing, even when it must be beginner-friendly."
|
|
37
|
-
|
|
38
|
-
- prompt: "Make this paragraph sound less robotic before I send it."
|
|
39
|
-
route_to: "bro"
|
|
40
|
-
why: "A register and tone pass over existing text is bro; nothing here needs explaining from zero."
|
|
41
|
-
|
|
42
|
-
- prompt: "Design the hero section for our homepage so it feels premium."
|
|
43
|
-
route_to: "design-loop"
|
|
44
|
-
why: "Visual identity is the design area; eli5's visuals serve comprehension, not brand."
|
|
45
|
-
|
|
46
|
-
capability:
|
|
47
|
-
- scenario: "A non-technical business owner asks what a webhook is, after two failed explanations that used the words 'endpoint', 'payload' and 'HTTP POST'."
|
|
48
|
-
must_include:
|
|
49
|
-
- "produces one self-contained page with three to five large visuals, not a wall of text"
|
|
50
|
-
- "uses an everyday physical analogy the reader has handled, not another abstraction"
|
|
51
|
-
- "introduces no term without showing the thing first, and never uses endpoint, payload or POST unexplained"
|
|
52
|
-
- "keeps the explanation true, and names in one line whatever was left out"
|
|
53
|
-
- "stays adult in tone: no baby talk, no emoji, no exclamation marks"
|
|
54
|
-
- "opens the page for the user instead of only writing the file"
|
package/skills/show-me/SKILL.md
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: show-me
|
|
3
|
-
description: "Use when the user needs to see how something works instead of reading about it: picks the smallest visual that carries the point — pseudocode, call tree, file tree, component tree, Mermaid, a shaped diff, or one HTML page. NOT visual identity (that is `design-loop`), NOT slides (that is `presentations`), NOT a from-zero explainer (that is `eli5`)."
|
|
4
|
-
tags: [show-me, explain, diagram, visual, mermaid, diff, call-tree, ensename]
|
|
5
|
-
recommends: [eli5, presentations, technical-writing, codebase-onboarding]
|
|
6
|
-
profiles: [minimal, core, full]
|
|
7
|
-
origin: risco
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# show-me — the smallest picture that answers the question
|
|
11
|
-
|
|
12
|
-
A second paragraph never fixes the first one. Pick the smallest view that makes the point, put two
|
|
13
|
-
lines of prose beside it, stop.
|
|
14
|
-
|
|
15
|
-
## The contract
|
|
16
|
-
|
|
17
|
-
1. **One form, chosen on purpose.** Read what the question is *about*, pick the matching form from
|
|
18
|
-
the table, draw that. Several forms in one answer is the failure mode, not thoroughness.
|
|
19
|
-
2. **Only the parts that answer the question.** Keep the calls, files, props, states and boundaries
|
|
20
|
-
the user asked about. Everything else is noise that hides the answer.
|
|
21
|
-
3. **Prose shrinks to fit.** No preamble, no "here is a diagram of". The picture leads; the words
|
|
22
|
-
caption it.
|
|
23
|
-
4. **Real names.** Actual paths, actual function and component names, actual state values. A diagram
|
|
24
|
-
of `ServiceA → ServiceB` explains nothing.
|
|
25
|
-
5. **Say so when there is nothing to draw.** A topic with no shape gets a straight answer in prose.
|
|
26
|
-
A decorative diagram costs the reader time and buys nothing.
|
|
27
|
-
|
|
28
|
-
## Pick the form from what the topic is
|
|
29
|
-
|
|
30
|
-
| The question is about | Draw | Why this one |
|
|
31
|
-
| --- | --- | --- |
|
|
32
|
-
| Logic, an algorithm, a decision | pseudocode | branches read top-down; syntax would distract |
|
|
33
|
-
| What calls what at runtime | call tree | shows order and nesting, which prose loses |
|
|
34
|
-
| UI structure | component tree, with state and module boundaries | ownership is the answer most of the time |
|
|
35
|
-
| Which file is responsible for what | shallow file tree with one comment per entry | depth hides the point; one level shows it |
|
|
36
|
-
| Interaction, control flow, data flow between pieces | Mermaid sequence or flow diagram | two-way traffic over time needs an axis |
|
|
37
|
-
| What changes in a shape that already exists | `diff`, in the shape of the topic | the reader keeps their bearings |
|
|
38
|
-
| Layout, visual state, a dense comparison | one self-contained HTML page | text cannot hold it |
|
|
39
|
-
| Nothing with a shape | prose | see contract rule 5 |
|
|
40
|
-
|
|
41
|
-
```text
|
|
42
|
-
on(save)
|
|
43
|
-
if content is unchanged
|
|
44
|
-
return cached result
|
|
45
|
-
write new content
|
|
46
|
-
return fresh result
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
```text
|
|
50
|
-
submitForm
|
|
51
|
-
createSession
|
|
52
|
-
persistPrompt
|
|
53
|
-
launchAgent
|
|
54
|
-
navigateToSession
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
```tsx
|
|
58
|
-
<SessionPage> (apps/example/src/routes/session.tsx)
|
|
59
|
-
useSessionEvents()
|
|
60
|
-
<SessionToolbar>
|
|
61
|
-
<RunSkillButton> (packages/ui)
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
```text
|
|
65
|
-
src/
|
|
66
|
-
├── commands/ # parses user actions
|
|
67
|
-
├── sessions/ # owns session state
|
|
68
|
-
└── transport/ # sends API requests
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
```mermaid
|
|
72
|
-
sequenceDiagram
|
|
73
|
-
participant User
|
|
74
|
-
participant UI
|
|
75
|
-
participant Daemon
|
|
76
|
-
User->>UI: choose command
|
|
77
|
-
UI->>Daemon: send expanded prompt
|
|
78
|
-
Daemon-->>UI: stream result
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## The diff rule
|
|
82
|
-
|
|
83
|
-
Use `diff` when the surrounding shape already exists and the point is what moves. **Match the diff
|
|
84
|
-
to the topic**: a component change is a component diff, a layout change is a file-tree diff, a
|
|
85
|
-
control-flow change is a pseudocode diff. A unified source diff for a structural change makes the
|
|
86
|
-
reader rebuild the structure in their head.
|
|
87
|
-
|
|
88
|
-
```diff
|
|
89
|
-
src/
|
|
90
|
-
├── commands/
|
|
91
|
-
+│ └── show-me.ts # expands the slash command
|
|
92
|
-
├── sessions/
|
|
93
|
-
-└── transport.ts
|
|
94
|
-
+└── transport/
|
|
95
|
-
+ ├── client.ts
|
|
96
|
-
+ └── stream.ts
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
```diff
|
|
100
|
-
on(save)
|
|
101
|
-
- write content
|
|
102
|
-
+ if content is unchanged
|
|
103
|
-
+ return cached result
|
|
104
|
-
+ write new content
|
|
105
|
-
+ invalidate cache
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Show the whole block instead of a diff when most of it is new, when the omitted context would hide
|
|
109
|
-
ownership or order, or when the user needs something copyable.
|
|
110
|
-
|
|
111
|
-
## When it earns an HTML page
|
|
112
|
-
|
|
113
|
-
Layout, visual state, a side-by-side comparison, or a concept too dense for a text diagram. One
|
|
114
|
-
page, self-contained, real labels and real data, readable on a phone and on a desktop. Inherit the
|
|
115
|
-
product's colours, type and spacing from where it lives; this skill borrows an identity, it never
|
|
116
|
-
invents one. Then open it:
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
open path/to/show-me-<topic>.html
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
## Anti-patterns
|
|
123
|
-
|
|
124
|
-
| Anti-pattern | Why it fails | Do this instead |
|
|
125
|
-
| --- | --- | --- |
|
|
126
|
-
| Ship four forms because each adds a little | The reader now has to pick; that was your job | One form, the smallest that answers it |
|
|
127
|
-
| Diagram the whole system when asked about one path | The answer is in there somewhere, which is the same as absent | Draw the path, drop the rest |
|
|
128
|
-
| Placeholder names (`ModuleA`, `doThing`) | Nothing maps back to the codebase | Real paths and real identifiers |
|
|
129
|
-
| A unified source diff for a structural change | Forces the reader to rebuild the shape | Diff in the shape of the topic |
|
|
130
|
-
| Mermaid for a layout question | Boxes and arrows cannot show visual space | One HTML page |
|
|
131
|
-
| A diagram to look thorough | Costs attention, adds nothing | Answer in prose and say why there is nothing to draw |
|
|
132
|
-
|
|
133
|
-
## Where this ends
|
|
134
|
-
|
|
135
|
-
- The visual **identity** of an interface, a landing page or a poster is `design-loop` and `design`.
|
|
136
|
-
- A **deck** someone presents from is `presentations`.
|
|
137
|
-
- **Zero prior knowledge**, big pictures, few words, is `eli5`.
|
|
138
|
-
- Restructuring a document, a README or a reference is `technical-writing`.
|
|
139
|
-
- A guided tour of an unfamiliar repository is `codebase-onboarding`; this skill draws the pieces it
|
|
140
|
-
finds, it does not run the tour.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Evals — show-me
|
|
2
|
-
|
|
3
|
-
Two claims are under test: that "show me / I don't get it / draw me" routes here without stealing
|
|
4
|
-
design, deck or beginner-explainer work, and that the loaded skill answers with **one** well-chosen
|
|
5
|
-
visual instead of more prose.
|
|
6
|
-
|
|
7
|
-
## Triggering
|
|
8
|
-
|
|
9
|
-
Load only `show-me` and run every `should_trigger` and `should_not_trigger` prompt in 3–5 fresh
|
|
10
|
-
sessions. A positive passes when `show-me` loads in a majority of trials. A negative passes when it
|
|
11
|
-
stays quiet and the declared `route_to` skill is the genuine owner. Require at least 90% accuracy.
|
|
12
|
-
|
|
13
|
-
The negatives that matter most are `eli5` and `design-loop`: both are adjacent enough that a sloppy
|
|
14
|
-
description pulls them in. Re-run these two after any description edit.
|
|
15
|
-
|
|
16
|
-
## Capability
|
|
17
|
-
|
|
18
|
-
Run the scenario in two fresh conditions, without the skill and with it, same source discussion and
|
|
19
|
-
one grader. Score each `must_include` point over three trials. The with-skill condition must satisfy
|
|
20
|
-
at least 80% of the rubric and beat the baseline by at least 20 percentage points.
|
|
21
|
-
|
|
22
|
-
The discriminating point is **form choice**: a baseline answer typically produces prose plus a
|
|
23
|
-
generic box diagram. Count "picked one form, and the right one" strictly.
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
skill: show-me
|
|
2
|
-
|
|
3
|
-
# `show-me` owns one move: the smallest visual that answers the question being
|
|
4
|
-
# asked, placed inside the conversation. It does not own visual identity, decks,
|
|
5
|
-
# teaching material for a beginner, or restructuring a document.
|
|
6
|
-
should_trigger:
|
|
7
|
-
- prompt: "No entiendo cómo funciona el login. Enséñamelo."
|
|
8
|
-
why: "An explicit ask to be shown rather than told, about a mechanism that has a shape to draw."
|
|
9
|
-
|
|
10
|
-
- prompt: "Can you show me visually how these three services talk to each other?"
|
|
11
|
-
why: "Interaction between pieces over time is the canonical Mermaid sequence case."
|
|
12
|
-
|
|
13
|
-
- prompt: "Draw me the component tree of this page so I can see which component owns the form state."
|
|
14
|
-
why: "UI structure with an ownership question is the component-tree form, named outright."
|
|
15
|
-
|
|
16
|
-
- prompt: "Antes de tocar nada, qué archivo es responsable de qué en src/?"
|
|
17
|
-
why: "File responsibility maps to the shallow file tree; the user wants the shape before editing."
|
|
18
|
-
|
|
19
|
-
- prompt: "I read your explanation twice and still don't get the order things happen in. Picture?"
|
|
20
|
-
why: "A second failed prose attempt is the trigger this skill exists for; runtime order is a call tree."
|
|
21
|
-
|
|
22
|
-
- prompt: "Show me what would change in the folder layout if we split transport.ts into a module."
|
|
23
|
-
why: "A change to an existing shape is the shaped-diff case, with the diff in the topic's own form."
|
|
24
|
-
|
|
25
|
-
- prompt: "Explícame con un diagrama qué pasa cuando el usuario cancela a mitad del pago."
|
|
26
|
-
why: "An edge path through a flow, explicitly requested as a diagram."
|
|
27
|
-
|
|
28
|
-
should_not_trigger:
|
|
29
|
-
- prompt: "Design the landing page for our new pricing tier, it should look premium."
|
|
30
|
-
route_to: "design-loop"
|
|
31
|
-
why: "Visual identity and composition are owned by the design area; show-me explains, it does not design."
|
|
32
|
-
|
|
33
|
-
- prompt: "Build me a 12-slide deck to present the roadmap to the board on Thursday."
|
|
34
|
-
route_to: "presentations"
|
|
35
|
-
why: "A deck someone presents from is presentations; this skill draws inside the conversation."
|
|
36
|
-
|
|
37
|
-
- prompt: "Explain how a database index works to someone who has never programmed, like they're five."
|
|
38
|
-
route_to: "eli5"
|
|
39
|
-
why: "Zero prior knowledge with big pictures and few words is eli5's contract, not the smallest in-context visual."
|
|
40
|
-
|
|
41
|
-
- prompt: "Reorganise this README into a proper tutorial and an API reference."
|
|
42
|
-
route_to: "technical-writing"
|
|
43
|
-
why: "Restructuring a document is technical-writing; a diagram inside it would be at most one paragraph of the job."
|
|
44
|
-
|
|
45
|
-
- prompt: "Walk me through this whole unfamiliar repo: what it does, how it's built, where to start."
|
|
46
|
-
route_to: "codebase-onboarding"
|
|
47
|
-
why: "A guided tour of an unknown codebase is its own skill; show-me only draws the pieces once they are known."
|
|
48
|
-
|
|
49
|
-
- prompt: "Build a dashboard with our monthly revenue and churn charts."
|
|
50
|
-
route_to: "dashboard"
|
|
51
|
-
why: "A standing analytics surface is dashboard; this is not an explanation of a mechanism."
|
|
52
|
-
|
|
53
|
-
capability:
|
|
54
|
-
- scenario: "The user asks, after a dense prose answer, why saving a document sometimes does not trigger a re-render. The real cause is a cache check inside the save handler plus a subscription set up after navigation. Show them."
|
|
55
|
-
must_include:
|
|
56
|
-
- "picks one form rather than stacking several, and the form matches the topic (control flow or call tree, not a file tree)"
|
|
57
|
-
- "uses the real handler, cache and subscription names from the discussion instead of placeholders"
|
|
58
|
-
- "shows only the path involved in the bug, not the whole module"
|
|
59
|
-
- "puts at most two lines of prose beside the visual, with no 'here is a diagram of' preamble"
|
|
60
|
-
- "marks what changes with a diff in the topic's own shape if it proposes a fix"
|
|
61
|
-
- "does not produce an HTML page for something a text diagram already carries"
|