dsh-lean-router 1.0.9 → 2.0.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/NOTICE.md +2 -4
- package/README.en.md +47 -43
- package/README.md +45 -41
- package/cordis.patch.yml +4 -26
- package/docs/agents/domain.md +1 -1
- package/docs/architecture.en.md +51 -86
- package/docs/architecture.md +46 -77
- package/docs/changelog.en.md +32 -1
- package/docs/changelog.md +32 -1
- package/docs/configuration.en.md +25 -56
- package/docs/configuration.md +14 -45
- package/docs/install.en.md +2 -2
- package/docs/install.md +2 -2
- package/docs/quickstart.en.md +29 -34
- package/docs/quickstart.md +11 -16
- package/docs/release-checklist.en.md +3 -4
- package/docs/release-checklist.md +5 -6
- package/docs//350/267/257/347/224/261-/350/256/276/350/256/241/350/257/264/346/230/216.md +2 -2
- package/lib/index.js +9 -61
- package/lib/router.js +15 -148
- package/package.json +4 -15
- package/presets/base/frag-lean.patch.yml +1 -5
- package/presets/base/frag-preset.patch.yml +1 -3
- package/presets/base/frag-router.patch.yml +1 -12
- package/presets/base/frag-toolface.patch.yml +0 -2
- package/presets/base/lean-router.patch.yml +1 -4
- package/scripts/doctor.mjs +15 -10
- package/test/integration-preset.test.mjs +4 -3
- package/test/plugin-entry.test.mjs +15 -50
- package/test/router.test.mjs +7 -47
- package/assets/gating.weights.json +0 -13
- package/assets/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/assets/skills/ask-matt/SKILL.md +0 -80
- package/assets/skills/ask-matt/agents/openai.yaml +0 -5
- package/assets/skills/chief-of-staff/SKILL.md +0 -76
- package/assets/skills/chief-of-staff/agents/openai.yaml +0 -5
- package/assets/skills/code-review/SKILL.md +0 -91
- package/assets/skills/code-review/agents/openai.yaml +0 -5
- package/assets/skills/codebase-design/DEEPENING.md +0 -37
- package/assets/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/assets/skills/codebase-design/SKILL.md +0 -116
- package/assets/skills/codebase-design/agents/openai.yaml +0 -5
- package/assets/skills/diagnosing-bugs/SKILL.md +0 -140
- package/assets/skills/diagnosing-bugs/agents/openai.yaml +0 -5
- package/assets/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/assets/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/assets/skills/domain-modeling/GLOSSARY-FORMAT.md +0 -60
- package/assets/skills/domain-modeling/SKILL.md +0 -76
- package/assets/skills/domain-modeling/agents/openai.yaml +0 -5
- package/assets/skills/grilling/SKILL.md +0 -52
- package/assets/skills/grilling/agents/openai.yaml +0 -5
- package/assets/skills/handoff/SKILL.md +0 -17
- package/assets/skills/handoff/agents/openai.yaml +0 -5
- package/assets/skills/implement/SKILL.md +0 -55
- package/assets/skills/implement/agents/openai.yaml +0 -5
- package/assets/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/assets/skills/improve-codebase-architecture/SKILL.md +0 -72
- package/assets/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/assets/skills/loop-me/SKILL.md +0 -33
- package/assets/skills/loop-me/agents/openai.yaml +0 -5
- package/assets/skills/pr/CREDITS.md +0 -3
- package/assets/skills/pr/SKILL.md +0 -172
- package/assets/skills/pr/agents/openai.yaml +0 -5
- package/assets/skills/prototype/LOGIC.md +0 -67
- package/assets/skills/prototype/SKILL.md +0 -28
- package/assets/skills/prototype/UI.md +0 -112
- package/assets/skills/prototype/agents/openai.yaml +0 -5
- package/assets/skills/research/SKILL.md +0 -14
- package/assets/skills/research/agents/openai.yaml +0 -5
- package/assets/skills/retro/SKILL.md +0 -45
- package/assets/skills/retro/agents/openai.yaml +0 -5
- package/assets/skills/setup-matt-pocock-skills/SKILL.md +0 -121
- package/assets/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/assets/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/assets/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -50
- package/assets/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/assets/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
- package/assets/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/assets/skills/setup-ts-deep-modules/SKILL.md +0 -103
- package/assets/skills/setup-ts-deep-modules/agents/openai.yaml +0 -5
- package/assets/skills/setup-ts-deep-modules/dependency-cruiser.config.cjs +0 -95
- package/assets/skills/software-factory/EXAMPLE-TASKS.md +0 -80
- package/assets/skills/software-factory/GIT-HOSTS.md +0 -84
- package/assets/skills/software-factory/OBSERVABILITY-PLATFORMS.md +0 -75
- package/assets/skills/software-factory/RUNNERS.md +0 -94
- package/assets/skills/software-factory/SKILL.md +0 -99
- package/assets/skills/software-factory/TICKET-TRACKERS.md +0 -85
- package/assets/skills/tdd/SKILL.md +0 -40
- package/assets/skills/tdd/agents/openai.yaml +0 -5
- package/assets/skills/tdd/mocking.md +0 -59
- package/assets/skills/tdd/tests.md +0 -77
- package/assets/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/assets/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/assets/skills/teach/MISSION-FORMAT.md +0 -31
- package/assets/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/assets/skills/teach/SKILL.md +0 -141
- package/assets/skills/teach/agents/openai.yaml +0 -5
- package/assets/skills/to-questionnaire/SKILL.md +0 -55
- package/assets/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/assets/skills/to-spec/SKILL.md +0 -76
- package/assets/skills/to-spec/agents/openai.yaml +0 -5
- package/assets/skills/to-tickets/SKILL.md +0 -106
- package/assets/skills/to-tickets/agents/openai.yaml +0 -5
- package/assets/skills/triage/AGENT-BRIEF.md +0 -207
- package/assets/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/assets/skills/triage/SKILL.md +0 -113
- package/assets/skills/triage/agents/openai.yaml +0 -5
- package/assets/skills/wait-what/SKILL.md +0 -8
- package/assets/skills/wait-what/agents/openai.yaml +0 -5
- package/assets/skills/wayfinder/SKILL.md +0 -129
- package/assets/skills/wayfinder/agents/openai.yaml +0 -5
- package/assets/skills/wizard/SKILL.md +0 -46
- package/assets/skills/wizard/agents/openai.yaml +0 -5
- package/assets/skills/wizard/template.sh +0 -223
- package/assets/skills/writing-beats/SKILL.md +0 -44
- package/assets/skills/writing-beats/agents/openai.yaml +0 -5
- package/assets/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/assets/skills/writing-for-agents/SKILL.md +0 -83
- package/assets/skills/writing-for-agents/agents/openai.yaml +0 -5
- package/assets/skills/writing-fragments/SKILL.md +0 -80
- package/assets/skills/writing-fragments/agents/openai.yaml +0 -5
- package/assets/skills/writing-shape/SKILL.md +0 -59
- package/assets/skills/writing-shape/agents/openai.yaml +0 -5
- package/assets/skills.matrix.json +0 -311
- package/docs/HANDOFF-2026-11-22.md +0 -155
- package/docs/matrix.en.md +0 -57
- package/docs/matrix.md +0 -57
- package/docs//346/212/200/350/203/275/351/227/250/346/216/247-/350/256/276/350/256/241/350/257/264/346/230/216.md +0 -134
- package/docs//351/235/242/346/235/277-/350/256/276/350/256/241/350/257/264/346/230/216.md +0 -205
- package/lib/audit-commands.js +0 -289
- package/lib/audit-sink.js +0 -137
- package/lib/client.js +0 -276
- package/lib/gate-runner.js +0 -179
- package/lib/skill-provider.js +0 -167
- package/lib/skillgate.js +0 -396
- package/lib/skills-panel.js +0 -322
- package/scripts/check-drift.mjs +0 -24
- package/skills.manifest.json +0 -287
- package/test/audit-commands.test.mjs +0 -325
- package/test/audit-sink.test.mjs +0 -150
- package/test/client-plugin.test.mjs +0 -123
- package/test/gate-run.test.mjs +0 -173
- package/test/manifest.test.mjs +0 -25
- package/test/provider.test.mjs +0 -21
- package/test/skillgate-provider.test.mjs +0 -122
- package/test/skillgate.test.mjs +0 -217
- package/test/skills-panel.test.mjs +0 -114
- package/ui/go.json +0 -19
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
# A wizard walks a human through a manual procedure, step by step.
|
|
4
|
-
# Generated by the /wizard skill.
|
|
5
|
-
#
|
|
6
|
-
# Everything above the "STAGES" marker is the wizard library: do not hand-edit
|
|
7
|
-
# it. Author the per-step stages below the marker.
|
|
8
|
-
|
|
9
|
-
set -euo pipefail
|
|
10
|
-
|
|
11
|
-
# ──────────────────────────────────────────────────────────────────────────
|
|
12
|
-
# Wizard library: delightful, consistent UX, identical across every wizard.
|
|
13
|
-
# ──────────────────────────────────────────────────────────────────────────
|
|
14
|
-
|
|
15
|
-
if [[ -t 1 ]] && command -v tput >/dev/null 2>&1 && [[ "$(tput colors 2>/dev/null || echo 0)" -ge 8 ]]; then
|
|
16
|
-
BOLD=$(tput bold); DIM=$(tput dim); RESET=$(tput sgr0)
|
|
17
|
-
BLUE=$(tput setaf 4); GREEN=$(tput setaf 2); YELLOW=$(tput setaf 3)
|
|
18
|
-
else
|
|
19
|
-
BOLD=""; DIM=""; RESET=""; BLUE=""; GREEN=""; YELLOW=""
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
# Author sets this at the top of the stages section.
|
|
23
|
-
TOTAL_STAGES=0
|
|
24
|
-
|
|
25
|
-
_STAGE_INDEX=0
|
|
26
|
-
ENV_FILE="${ENV_FILE:-.env}"
|
|
27
|
-
WRITTEN_ENV=() # KEYs written to ENV_FILE this run
|
|
28
|
-
WRITTEN_SECRET=() # secret NAMEs set this run
|
|
29
|
-
SKIPPED=() # things we couldn't do (e.g. gh missing)
|
|
30
|
-
|
|
31
|
-
# _clear wipes the terminal so only the current step is on screen. No-op when
|
|
32
|
-
# output isn't a terminal, so piped logs stay readable.
|
|
33
|
-
_clear() {
|
|
34
|
-
[[ -t 1 ]] || return 0
|
|
35
|
-
if command -v tput >/dev/null 2>&1 && tput clear 2>/dev/null; then return 0; fi
|
|
36
|
-
printf '\033[2J\033[3J\033[H'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
# banner "Title" shows the opening frame: what this wizard does.
|
|
40
|
-
banner() {
|
|
41
|
-
_clear
|
|
42
|
-
printf '\n%s%s %s%s\n' "$BOLD" "$BLUE" "$1" "$RESET"
|
|
43
|
-
printf '%s %s stages%s\n\n' "$DIM" "$TOTAL_STAGES" "$RESET"
|
|
44
|
-
printf '%s You drive the browser; this wizard tells you exactly what to do and\n' "$DIM"
|
|
45
|
-
printf ' captures the values you copy back. Stop any time with Ctrl-C and re-run\n'
|
|
46
|
-
printf ' later, since it remembers values already saved.%s\n' "$RESET"
|
|
47
|
-
pause "Ready to start?"
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
# stage "Name" clears the screen, then announces a stage and shows progress.
|
|
51
|
-
# Clearing keeps only the current step on screen.
|
|
52
|
-
stage() {
|
|
53
|
-
_clear
|
|
54
|
-
_STAGE_INDEX=$((_STAGE_INDEX + 1))
|
|
55
|
-
printf '\n%s%s▸ Stage %s/%s · %s%s\n' \
|
|
56
|
-
"$BOLD" "$BLUE" "$_STAGE_INDEX" "$TOTAL_STAGES" "$1" "$RESET"
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
# say "..." prints a plain instruction line.
|
|
60
|
-
say() { printf ' %s\n' "$1"; }
|
|
61
|
-
# step "..." is a numbered-feeling action the human takes in the browser.
|
|
62
|
-
step() { printf ' %s•%s %s\n' "$BLUE" "$RESET" "$1"; }
|
|
63
|
-
note() { printf ' %s%s%s\n' "$DIM" "$1" "$RESET"; }
|
|
64
|
-
warn() { printf ' %s⚠ %s%s\n' "$YELLOW" "$1" "$RESET"; }
|
|
65
|
-
|
|
66
|
-
# open_url URL opens it in the human's browser, cross-platform incl. WSL.
|
|
67
|
-
open_url() {
|
|
68
|
-
local url="$1"
|
|
69
|
-
printf ' %s↗ opening%s %s\n' "$GREEN" "$RESET" "$url"
|
|
70
|
-
{ if command -v wslview >/dev/null 2>&1; then wslview "$url"
|
|
71
|
-
elif command -v explorer.exe >/dev/null 2>&1; then explorer.exe "$url"
|
|
72
|
-
elif command -v xdg-open >/dev/null 2>&1; then xdg-open "$url"
|
|
73
|
-
elif command -v open >/dev/null 2>&1; then open "$url"
|
|
74
|
-
else false; fi
|
|
75
|
-
} >/dev/null 2>&1 || warn "couldn't open a browser, so visit it manually: $url"
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
# pause "msg" waits for the human to confirm they've done the manual part.
|
|
79
|
-
pause() {
|
|
80
|
-
printf ' %s%s%s ' "$DIM" "${1:-Press Enter to continue}" "$RESET"
|
|
81
|
-
read -r _ || true
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
# confirm "question" is a y/N gate; returns success on yes.
|
|
85
|
-
confirm() {
|
|
86
|
-
local reply=""
|
|
87
|
-
printf ' %s? %s [y/N] ' "$YELLOW" "$1"
|
|
88
|
-
read -r reply || true
|
|
89
|
-
[[ "$reply" =~ ^[Yy] ]]
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
# _existing KEY: current value of KEY in ENV_FILE, if any, with write_env's single
|
|
93
|
-
# quotes or a plain dotenv double-quoted value undone.
|
|
94
|
-
_existing() {
|
|
95
|
-
[[ -f "$ENV_FILE" ]] || return 1
|
|
96
|
-
local line value sq="'\\''"; line=$(grep -E "^${1}=" "$ENV_FILE" | tail -n1) || return 1
|
|
97
|
-
value="${line#*=}"
|
|
98
|
-
if [[ "$value" == \'*\' ]]; then value="${value:1:${#value}-2}"; value="${value//"$sq"/\'}"
|
|
99
|
-
elif [[ "$value" == \"*\" ]]; then
|
|
100
|
-
value="${value:1:${#value}-2}"
|
|
101
|
-
[[ "$value" == *[\\\$\"]* ]] && return 1 # escapes, $ or ": can't decode safely; ask again
|
|
102
|
-
fi
|
|
103
|
-
printf '%s' "$value"
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
# ask KEY "Prompt" reads a value into $KEY. Offers the existing .env value as
|
|
107
|
-
# a default on re-runs (Enter keeps it). Visible input (non-secret), edited
|
|
108
|
-
# with Readline. Fails at EOF with no input.
|
|
109
|
-
ask() {
|
|
110
|
-
local key="$1" prompt="$2" current input s=$'\001' e=$'\002' p rc=0
|
|
111
|
-
current=$(_existing "$key" || true)
|
|
112
|
-
# Readline needs the colour codes wrapped in \001..\002 to place the cursor.
|
|
113
|
-
p=" $s$BOLD$e$prompt$s$RESET$e "
|
|
114
|
-
[[ -n "$current" ]] && p+="$s$DIM$e[Enter keeps current]$s$RESET$e "
|
|
115
|
-
read -e -r -p "$p" input || rc=1
|
|
116
|
-
if (( rc )) && [[ -z "$input" ]]; then return 1; fi
|
|
117
|
-
[[ -z "$input" && -n "$current" ]] && input="$current"
|
|
118
|
-
printf -v "$key" '%s' "$input"
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
# ask_secret KEY "Prompt" is like ask, but input is hidden.
|
|
122
|
-
ask_secret() {
|
|
123
|
-
local key="$1" prompt="$2" current input rc=0
|
|
124
|
-
current=$(_existing "$key" || true)
|
|
125
|
-
if [[ -n "$current" ]]; then
|
|
126
|
-
printf ' %s%s%s %s[Enter keeps current]%s ' "$BOLD" "$prompt" "$RESET" "$DIM" "$RESET"
|
|
127
|
-
else
|
|
128
|
-
printf ' %s%s%s ' "$BOLD" "$prompt" "$RESET"
|
|
129
|
-
fi
|
|
130
|
-
read -rs input || rc=1
|
|
131
|
-
printf '\n'
|
|
132
|
-
if (( rc )) && [[ -z "$input" ]]; then return 1; fi
|
|
133
|
-
[[ -z "$input" && -n "$current" ]] && input="$current"
|
|
134
|
-
printf -v "$key" '%s' "$input"
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
# write_env KEY VALUE upserts KEY='VALUE' into ENV_FILE (replaces any existing
|
|
138
|
-
# line) and sets $KEY. Idempotent. Creates ENV_FILE at mode 0600; writes through
|
|
139
|
-
# a symlink and keeps an existing file's mode.
|
|
140
|
-
write_env() {
|
|
141
|
-
local key="$1" value="$2" tmp sq="'\\''"
|
|
142
|
-
[[ -e "$ENV_FILE" ]] || (umask 077 && : > "$ENV_FILE")
|
|
143
|
-
tmp=$(mktemp)
|
|
144
|
-
grep -vE "^${key}=" "$ENV_FILE" > "$tmp" || true
|
|
145
|
-
printf "%s='%s'\n" "$key" "${value//\'/$sq}" >> "$tmp"
|
|
146
|
-
cat "$tmp" > "$ENV_FILE"
|
|
147
|
-
rm -f "$tmp"
|
|
148
|
-
printf -v "$key" '%s' "$value"
|
|
149
|
-
WRITTEN_ENV+=("$key")
|
|
150
|
-
printf ' %s✓ wrote%s %s → %s\n' "$GREEN" "$RESET" "$key" "$ENV_FILE"
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
# set_secret NAME VALUE sets a GitHub Actions repo secret via gh. Falls back
|
|
154
|
-
# to a warning (and records it) if gh is unavailable or unauthenticated.
|
|
155
|
-
set_secret() {
|
|
156
|
-
local name="$1" value="$2"
|
|
157
|
-
if command -v gh >/dev/null 2>&1 && gh auth status >/dev/null 2>&1; then
|
|
158
|
-
if printf '%s' "$value" | gh secret set "$name" >/dev/null 2>&1; then
|
|
159
|
-
WRITTEN_SECRET+=("$name")
|
|
160
|
-
printf ' %s✓ set%s GitHub secret %s\n' "$GREEN" "$RESET" "$name"
|
|
161
|
-
return
|
|
162
|
-
fi
|
|
163
|
-
fi
|
|
164
|
-
SKIPPED+=("GitHub secret $name (set it manually: gh secret set $name)")
|
|
165
|
-
warn "skipped GitHub secret $name: gh not ready; set it later"
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
# set_var NAME VALUE sets a GitHub Actions repo variable (non-secret).
|
|
169
|
-
set_var() {
|
|
170
|
-
local name="$1" value="$2"
|
|
171
|
-
if command -v gh >/dev/null 2>&1 && gh auth status >/dev/null 2>&1; then
|
|
172
|
-
if gh variable set "$name" --body "$value" >/dev/null 2>&1; then
|
|
173
|
-
printf ' %s✓ set%s GitHub variable %s\n' "$GREEN" "$RESET" "$name"
|
|
174
|
-
return
|
|
175
|
-
fi
|
|
176
|
-
fi
|
|
177
|
-
SKIPPED+=("GitHub variable $name")
|
|
178
|
-
warn "skipped GitHub variable $name, gh not ready; set it later"
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
# finish clears, then shows a closing summary of everything configured.
|
|
182
|
-
finish() {
|
|
183
|
-
_clear
|
|
184
|
-
printf '\n%s%s ✓ Setup complete%s\n' "$BOLD" "$GREEN" "$RESET"
|
|
185
|
-
(( ${#WRITTEN_ENV[@]} )) && note "wrote ${#WRITTEN_ENV[@]} value(s) to $ENV_FILE: ${WRITTEN_ENV[*]}"
|
|
186
|
-
(( ${#WRITTEN_SECRET[@]} )) && note "set ${#WRITTEN_SECRET[@]} GitHub secret(s): ${WRITTEN_SECRET[*]}"
|
|
187
|
-
if (( ${#SKIPPED[@]} )); then
|
|
188
|
-
printf '\n'; warn "still to do by hand:"
|
|
189
|
-
for s in "${SKIPPED[@]}"; do note " - $s"; done
|
|
190
|
-
fi
|
|
191
|
-
printf '\n'
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
# ──────────────────────────────────────────────────────────────────────────
|
|
195
|
-
# STAGES: author this section. One stage() per step the human takes.
|
|
196
|
-
# Replace the example below. Set TOTAL_STAGES to match the stages you write.
|
|
197
|
-
# Keep every stage inside run_wizard and the last line as is: bash then parses
|
|
198
|
-
# the whole file before the first prompt, so an edit mid-run can't break it.
|
|
199
|
-
# ──────────────────────────────────────────────────────────────────────────
|
|
200
|
-
|
|
201
|
-
run_wizard() {
|
|
202
|
-
|
|
203
|
-
TOTAL_STAGES=1
|
|
204
|
-
|
|
205
|
-
banner "Stripe setup"
|
|
206
|
-
|
|
207
|
-
# ── Example stage: replace with your real steps ───────────────────────────
|
|
208
|
-
stage "Stripe: API keys"
|
|
209
|
-
say "We'll grab your Stripe test keys and store them for local dev + CI."
|
|
210
|
-
open_url "https://dashboard.stripe.com/test/apikeys"
|
|
211
|
-
step "On the API keys page, copy the Publishable key (starts pk_test_)."
|
|
212
|
-
ask STRIPE_PUBLISHABLE_KEY "Paste the publishable key:"
|
|
213
|
-
step "Click 'Reveal test key' on the Secret key row, then copy it."
|
|
214
|
-
ask_secret STRIPE_SECRET_KEY "Paste the secret key:"
|
|
215
|
-
write_env STRIPE_PUBLISHABLE_KEY "$STRIPE_PUBLISHABLE_KEY"
|
|
216
|
-
write_env STRIPE_SECRET_KEY "$STRIPE_SECRET_KEY"
|
|
217
|
-
set_secret STRIPE_SECRET_KEY "$STRIPE_SECRET_KEY" # CI needs this one
|
|
218
|
-
# ──────────────────────────────────────────────────────────────────────────
|
|
219
|
-
|
|
220
|
-
finish
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
run_wizard "$@"; exit
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: writing-beats
|
|
3
|
-
description: Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
user-invocable: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<what-to-do>
|
|
9
|
-
|
|
10
|
-
The user has passed (or will pass) a markdown file of raw material. This is **exploit**: the exploring is done, the pile is fixed. Commit to a path through it and mine the pile to fill each beat.
|
|
11
|
-
|
|
12
|
-
Read `../_shared/WRITING-MECHANICS.md` once now: it holds the grounding accounting, how to pull from the pile, and the writing rhythm that this skill runs on.
|
|
13
|
-
|
|
14
|
-
If the user did not say where to save the article, ask once and remember the path.
|
|
15
|
-
|
|
16
|
-
Then run a beat-by-beat journey, choose-your-own-adventure style:
|
|
17
|
-
|
|
18
|
-
1. **Establish the prerequisites.** Before any beats, settle with the user what the audience already knows walking in: the concepts that are **grounded** from the start. Everything else must be grounded by a beat before a later beat can use it.
|
|
19
|
-
2. Write 2–3 candidate **starting beats**, drawn from the raw material. Each is a different entry point into the article. Each may only lean on grounded concepts; note what new concepts each one grounds. Show the user the beats before writing to the article file. The user picks one. Preview what beats that pick unlocks, as if the user is seeing a little way down the path.
|
|
20
|
-
3. Once the user picks a starting beat, write **only that beat** to the article file. A beat may be one sentence or several paragraphs, whatever that beat naturally is. Stop there.
|
|
21
|
-
4. Re-read the article file from disk. Then offer 2–3 candidate **next beats**: different directions the journey could pivot to from where the article now stands. Each must be reachable from the current grounded set; note what each one grounds.
|
|
22
|
-
5. Loop steps 3–5 until the article reaches a natural end.
|
|
23
|
-
|
|
24
|
-
</what-to-do>
|
|
25
|
-
|
|
26
|
-
<supporting-info>
|
|
27
|
-
|
|
28
|
-
## What is a beat
|
|
29
|
-
|
|
30
|
-
A beat is one move in the journey. It does one thing: sets a scene, lands a point, asks a question, drops an aside, twists the angle. Then it stops, leaving the reader at a place where the next beat can pivot.
|
|
31
|
-
|
|
32
|
-
A beat is sized by what it needs:
|
|
33
|
-
|
|
34
|
-
- A single sentence if that's all the move is ("And then nothing happened for three weeks.").
|
|
35
|
-
- A short paragraph if the move needs setup.
|
|
36
|
-
- Multiple paragraphs if the beat is a self-contained vignette, argument, or example.
|
|
37
|
-
|
|
38
|
-
If a "beat" needs five paragraphs and three subheadings, it's not a beat; it's two beats glued together. Split it.
|
|
39
|
-
|
|
40
|
-
## The one rule that makes the journey work
|
|
41
|
-
|
|
42
|
-
A candidate beat is only reachable if everything it requires is already grounded, and picking a beat that grounds concept X unlocks every beat that was waiting on X. That is the whole mechanic: the shared page explains the accounting, and it is why every offer of next beats must name what each one grounds.
|
|
43
|
-
|
|
44
|
-
</supporting-info>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Skill mechanics
|
|
2
|
-
|
|
3
|
-
The skill-specific branch of [`writing-for-agents`](SKILL.md): what changes when the document is a skill (frontmatter, the invocation choice, and router skills). Everything else about writing it is the universal reference in `SKILL.md`.
|
|
4
|
-
|
|
5
|
-
## Invocation
|
|
6
|
-
|
|
7
|
-
Two choices, trading the two loads:
|
|
8
|
-
|
|
9
|
-
- A **model-invoked** skill keeps a `description`, so the agent can fire it autonomously, and other skills can reach it. You can still type its name: model-invocation always _includes_ user reach; a description only ever adds agent discovery, never removes the human's. The description is the skill's top-level context pointer, forced to stay loaded at all times: permanent context load in exchange for discoverability. A model-invoked skill whose content is all reference is also one home for shared reference: another skill can invoke it, so reference needed by several skills lives in one place. Mechanics: omit `disable-model-invocation`, and write a model-facing description carrying the trigger branches (the pointer-writing rules in `SKILL.md` apply in full).
|
|
10
|
-
- A **user-invoked** skill strips the description from the agent's reach: only the human typing its name can invoke it, and no other skill can. Zero context load, but it spends cognitive load: you are the index that must remember it exists. Mechanics: set `disable-model-invocation: true`; the `description` becomes human-facing: a one-line summary, trigger lists stripped.
|
|
11
|
-
|
|
12
|
-
Pick model-invocation only when the agent must reach the skill on its own, or another skill must. If it only ever fires by hand, make it user-invoked and pay no context load.
|
|
13
|
-
|
|
14
|
-
Shared reference that two user-invoked skills both need can live in neither: with no descriptions, neither can fire the other. Push it to a plain file outside the skill system: external reference any skill can point at.
|
|
15
|
-
|
|
16
|
-
## Splitting by invocation
|
|
17
|
-
|
|
18
|
-
The invocation cut of splitting (the sequence cut lives in `SKILL.md`): split off a model-invoked skill when you have a distinct leading word that should trigger it on its own (a trigger word you actually use in your prompts), or another skill must reach it. You pay context load for the new always-loaded description, so that independent reach has to be worth it.
|
|
19
|
-
|
|
20
|
-
## Router skills
|
|
21
|
-
|
|
22
|
-
When user-invoked skills multiply past what you can remember, that piled-up cognitive load is cured by a **router skill**: one user-invoked skill that names the others and when to reach for each, so the human has one skill to remember instead of many. It can only hint, never fire them: user-invoked skills have no description, so nothing but the human can reach them.
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: writing-for-agents
|
|
3
|
-
description: Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
user-invocable: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
Reference for writing any document an agent consumes: a skill, an `AGENTS.md` / `CLAUDE.md`, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable, since the agent takes the same _process_ every run rather than producing the same output.
|
|
9
|
-
|
|
10
|
-
When the document you're writing is a skill, read [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.
|
|
11
|
-
|
|
12
|
-
## Context pointers
|
|
13
|
-
|
|
14
|
-
A **context pointer** is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in `AGENTS.md` naming a doc is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material, and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.
|
|
15
|
-
|
|
16
|
-
A pointer does two jobs: state what the material is, and list the **branches** that should trigger reaching it (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body:
|
|
17
|
-
|
|
18
|
-
- **Front-load the leading word**: the pointer is where it does its triggering work.
|
|
19
|
-
- **One trigger per branch.** Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
|
|
20
|
-
- **Cut identity the body already carries.**
|
|
21
|
-
|
|
22
|
-
## The two loads
|
|
23
|
-
|
|
24
|
-
Every document and pointer you add spends one of two budgets:
|
|
25
|
-
|
|
26
|
-
- **Context load** is the cost of always-loaded material on the agent's window: an `AGENTS.md` line, a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires.
|
|
27
|
-
- **Cognitive load** is the cost on the human: which documents exist and when to reach for each. The human is the index. Not a cost to minimise: it is the price of human agency; spend it where human judgement matters, remove it where it does not.
|
|
28
|
-
|
|
29
|
-
Material reached only through a pointer escapes context load at the price of the pointer's own line; material with no pointer at all rides entirely on cognitive load.
|
|
30
|
-
|
|
31
|
-
## Information hierarchy
|
|
32
|
-
|
|
33
|
-
A document is built from two content types: **steps** (the ordered actions the agent performs) and **reference** (definitions, rules, facts consulted on demand). The two mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the **information hierarchy**, a ladder ranked by how immediately the agent needs the material:
|
|
34
|
-
|
|
35
|
-
1. **In-file step** is the primary tier: what the agent does, in order.
|
|
36
|
-
2. **In-file reference** is consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung), which is a fine arrangement, not a smell.
|
|
37
|
-
3. **Disclosed reference** is pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
|
|
38
|
-
|
|
39
|
-
Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
|
|
40
|
-
|
|
41
|
-
**Progressive disclosure** is the move down the ladder (out of the main file and behind a pointer) so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip: a variance lever, not just a legibility one.
|
|
42
|
-
|
|
43
|
-
**Co-location** is the within-file companion: where the ladder decides _how far down_ a piece sits, co-location decides _what sits beside it_ once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent. Grouped material reads that way; scattered material does not. (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
|
|
44
|
-
|
|
45
|
-
**Sprawl** is the failure mode here: a document simply too long, even when every line is live and unique. Attention thins across the excess, and every extra line is one more to keep relevant. The cure is the ladder: disclose reference behind pointers, and split by branch or sequence so each path carries only what it needs.
|
|
46
|
-
|
|
47
|
-
## Steps and completion criteria
|
|
48
|
-
|
|
49
|
-
Every step ends on a **completion criterion**, the condition that tells the agent the work is done. Two properties make it a lever:
|
|
50
|
-
|
|
51
|
-
- **Clarity**: can the agent tell done from not-done? A vague bound ("understanding reached") invites **premature completion**: ending the step before it is genuinely done, attention slipping to _being done_. The visible steps still ahead (the **post-completion steps**) supply the pull; the criterion's clarity is the resistance. Defend in order: **sharpen the bound first** (local and cheap); only if it is irreducibly fuzzy _and_ you observe the rush, hide the later steps by splitting the sequence. Hiding only works across a real context boundary (a hand-off or a subagent dispatch; an inline call leaves the later steps in context and clears nothing).
|
|
52
|
-
- **Demand**: how much it requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not. Demand drives **legwork** (the digging the agent does within the work, latent in the wording rather than written as its own step), and it is not step-bound: "every rule applied" binds a body of flat reference just as "every step done" binds a sequence, which is how an all-reference document still carries an exhaustiveness bar.
|
|
53
|
-
|
|
54
|
-
The strongest criteria are both checkable and exhaustive.
|
|
55
|
-
|
|
56
|
-
## When to split
|
|
57
|
-
|
|
58
|
-
Splitting one document into two spends one of the two loads, so split only when the cut earns it:
|
|
59
|
-
|
|
60
|
-
- **By sequence**: split a run of steps where the post-completion steps tempt the agent to rush the one in front of it. Keeping them out of view drives more legwork on the current task. Beware the reverse: merging sequences exposes each step's later steps to what follows, inviting premature completion.
|
|
61
|
-
- **By invocation**, skill-specific: see [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md).
|
|
62
|
-
|
|
63
|
-
## Leading words
|
|
64
|
-
|
|
65
|
-
A **leading word** is a compact concept already living in the model's pretraining that the agent thinks with while running the document (_lesson_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds. Coining your own works if you define it clearly, but a made-up word recruits no priors: you pay in definition tokens what a pretrained word gives free; reach for an existing word first.
|
|
66
|
-
|
|
67
|
-
It anchors twice. In the body, _execution_: the agent reaches for the same behaviour every time the word appears, and inside flat reference it focuses attention on a class of thing to look for. In a pointer, _invocation_: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the material and reaches it more reliably.
|
|
68
|
-
|
|
69
|
-
Hunt for opportunities to refactor with leading words. A triad spelled out at three sites, a pointer spending a sentence to gesture at one idea. Each is a passage begging to collapse into a single token:
|
|
70
|
-
|
|
71
|
-
- "fast, deterministic, low-overhead" → _tight_ (a _tight_ loop).
|
|
72
|
-
- "a loop you believe in" → _red_, turning a fuzzy gate into a binary observable state (the loop goes _red_ on the bug, or it doesn't).
|
|
73
|
-
|
|
74
|
-
You win twice: fewer tokens, and a sharper hook for the agent to hang its thinking on. Assume every document is carrying restatements that leading words retire. Go find them.
|
|
75
|
-
|
|
76
|
-
**Negation** is the failure mode beside this lever: steering by prohibition drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; the negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Prompt the **positive**: state the target behaviour ("write one-line comments") so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.
|
|
77
|
-
|
|
78
|
-
## Pruning
|
|
79
|
-
|
|
80
|
-
- Keep each meaning in a **single source of truth**: one authoritative place, so changing the behaviour is a one-place edit. **Duplication** (the same meaning in more than one place) costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank. (The accidental inverse of a leading word, which repeats a token on purpose, never the meaning.)
|
|
81
|
-
- The **environment** is a source of truth too (`package.json` scripts, config files, the directory layout, `--help` output), and a document that restates it is a **cache**: a copy of a lookup, earning its load only when the lookup is expensive. Cache what the agent cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config confesses. Leave the one-file, one-command lookups to the environment, where they cannot go stale.
|
|
82
|
-
- Check every line for **relevance**: does it still bear on what the document does? A line loses relevance by never bearing on the task (mere exposition, or a branch that should be disclosed) or by going stale as the behaviour or world it describes changes. Shorter documents are easier to keep relevant. Without a pruning discipline the default fate is **sediment**: stale layers that settle because adding feels safe and removing feels risky, until you must core down through them to find what is still live.
|
|
83
|
-
- Hunt **no-ops** sentence by sentence: an instruction the model already obeys by default pays load to say nothing. The test (does it change behaviour versus the default?) is model-relative, not reader-relative: two people disagreeing about a no-op disagree about the default, and settle it by running the document, not by debate. When a sentence fails, delete the whole sentence rather than trim words from it. The test also grades leading words: a word too weak to beat the default (_be thorough_ when the agent is already thorough-ish) is a no-op, and the fix is a stronger word (_relentless_), not a different technique.
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: writing-fragments
|
|
3
|
-
description: "Writing, explore: mine raw fragments, no structure yet."
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
user-invocable: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<what-to-do>
|
|
9
|
-
|
|
10
|
-
This is pure **explore**: widen the space of what could be written without committing to structure. Committing is _exploit_, a separate skill's job. Run a grilling session that produces fragments, interviewing the user relentlessly about whatever they want to write about. Imposing phases, outlines, or article structure is out of scope here.
|
|
11
|
-
|
|
12
|
-
As fragments emerge from either side of the conversation, append them to a single markdown file.
|
|
13
|
-
|
|
14
|
-
If the user did not pass a path, ask once where to save the document, then remember it for the rest of the session.
|
|
15
|
-
|
|
16
|
-
Capture fragments from the very first thing the user says, including the initial prompt.
|
|
17
|
-
|
|
18
|
-
On first write, put a single H1 at the top with a working title (it can change later) and nothing else: no metadata, no TOC, no date.
|
|
19
|
-
|
|
20
|
-
</what-to-do>
|
|
21
|
-
|
|
22
|
-
<supporting-info>
|
|
23
|
-
|
|
24
|
-
## What is a fragment
|
|
25
|
-
|
|
26
|
-
A fragment is any piece of text that might survive into the final article. It must be _readable by the author_ (the author can tell what it means), but it does not need to define its terms or be comprehensible to a cold reader. The bar is "is this a piece of good writing?", not "is this a self-contained argument?"
|
|
27
|
-
|
|
28
|
-
Fragments are deliberately heterogeneous. Examples of what could be a fragment:
|
|
29
|
-
|
|
30
|
-
- A sharp sentence you'd want to deploy somewhere but don't yet know where.
|
|
31
|
-
- A claim with a one-line justification.
|
|
32
|
-
- A vignette: a thing that happened, a code snippet, a scenario, an analogy.
|
|
33
|
-
- A half-thought: "something about how X feels like Y, work this out later."
|
|
34
|
-
- A quote, a piece of dialogue, an overheard line.
|
|
35
|
-
- A list of related observations that hang together by feel.
|
|
36
|
-
- A complaint, a confession, a punchline.
|
|
37
|
-
- A **leading word**: a compact metaphor or coinage the whole piece can hang on (one term that names the idea, the way _tracer bullets_ or _fog of war_ names a whole pattern).
|
|
38
|
-
|
|
39
|
-
Of these, the leading word is the most valuable fragment to land. It is load-bearing: name the right one in explore and it shapes the structure, the transitions, and the title later, paying dividends through the entire exploit phase. When the conversation circles a recurring idea, push to coin a word for it.
|
|
40
|
-
|
|
41
|
-
The novelist's diary is the model: years of unstructured noticings that later get mined for raw material. Fragments are noticings.
|
|
42
|
-
|
|
43
|
-
## File format
|
|
44
|
-
|
|
45
|
-
```markdown
|
|
46
|
-
# Working title
|
|
47
|
-
|
|
48
|
-
A first fragment lives here.
|
|
49
|
-
|
|
50
|
-
It can be multiple paragraphs. It can include lists, code, quotes: whatever
|
|
51
|
-
shape the fragment naturally takes.
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
A second fragment.
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
> A quoted line that the user wants to keep around.
|
|
60
|
-
|
|
61
|
-
A reaction to it.
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
- A cluster of related observations
|
|
66
|
-
- That hang together by feel
|
|
67
|
-
- And want to be near each other
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
Fragments are separated by a horizontal rule (`\n---\n`). No headings inside the body. No tags. No order beyond the order they were added.
|
|
71
|
-
|
|
72
|
-
## Writing rhythm
|
|
73
|
-
|
|
74
|
-
Append silently. Don't ask permission for each fragment. Mention what you added in passing ("adding that"), but don't interrupt the conversation with save dialogs.
|
|
75
|
-
|
|
76
|
-
Before every write: re-read the file from disk. The user may have edited, reordered, or deleted fragments between turns, so preserve their changes. Never overwrite the file; only append (or, if the user asks, edit a specific fragment in place).
|
|
77
|
-
|
|
78
|
-
The user can say "cut the last one", "rewrite that one sharper", "merge those two" at any time. Treat those as first-class instructions.
|
|
79
|
-
|
|
80
|
-
</supporting-info>
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: writing-shape
|
|
3
|
-
description: "Writing, exploit: shape raw material into an article, paragraph by paragraph."
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
user-invocable: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<what-to-do>
|
|
9
|
-
|
|
10
|
-
The user has passed (or will pass) a markdown file of raw material. Treat it as the input pile: anything from a tidy list of fragments to a wall of unstructured prose to a transcript. The format does not matter. Read it end-to-end before doing anything else.
|
|
11
|
-
|
|
12
|
-
Read `../_shared/WRITING-MECHANICS.md` once now: it holds the grounding accounting, how to pull from the pile, and the writing rhythm that this skill runs on.
|
|
13
|
-
|
|
14
|
-
Then run a shaping session that produces a separate article document. This is **exploit**: the exploring is done, the pile is fixed: commit to a structure and mine the pile to fill it. Do not edit the raw material file: it is read-only to this skill.
|
|
15
|
-
|
|
16
|
-
If the user did not say where to save the article, ask once and remember the path.
|
|
17
|
-
|
|
18
|
-
</what-to-do>
|
|
19
|
-
|
|
20
|
-
<supporting-info>
|
|
21
|
-
|
|
22
|
-
## The loop
|
|
23
|
-
|
|
24
|
-
1. **Read the pile.** Read the input file in full. Form a sense of what's in it.
|
|
25
|
-
2. **Establish the prerequisites.** Settle with the user what the reader knows walking in: the concepts that are **grounded** from the start. Everything else must be grounded by a block before a later block can lean on it.
|
|
26
|
-
3. **Draft 2–3 candidate openings.** Each opening should imply a different thesis or angle for the article. Show all of them. Force the user to pick or compose a hybrid. The chosen opening defines what the rest of the article must do.
|
|
27
|
-
4. **Grow paragraph by paragraph.** After the opening lands, ask "given this opening, what does the reader need to hear next?" Pull material from the pile to answer. The next block may only lean on grounded concepts, and grounds new ones as it lands. Argue about the form the next block takes: a paragraph, a list, a table, a callout, a quote, a code block. Each format choice should be deliberate and defensible.
|
|
28
|
-
5. **Append to the article file as you go.** Don't batch. Write each agreed paragraph or block immediately so the user can see the article taking shape.
|
|
29
|
-
6. **Loop step 4 until the article is done.** The user decides when it's done.
|
|
30
|
-
|
|
31
|
-
## Conversational feel
|
|
32
|
-
|
|
33
|
-
This is a grilling session inverted. In ideation, the question was "what are you actually noticing?" Here it's "what is this article actually arguing, and in what order does the reader need to hear it?" Push back. Refuse to let weak transitions slide. If a paragraph doesn't earn its place, cut it.
|
|
34
|
-
|
|
35
|
-
Specific moves to keep using:
|
|
36
|
-
|
|
37
|
-
- "What does this paragraph do for the reader that the previous one didn't?"
|
|
38
|
-
- "If I cut this, what breaks?"
|
|
39
|
-
- "Is this prose, or should it be a list? Why prose?"
|
|
40
|
-
- "This sentence is doing two jobs: split it or pick one."
|
|
41
|
-
- "The opening promised X. We've drifted to Y. Either re-thread it or change the opening."
|
|
42
|
-
|
|
43
|
-
## Format arguments to actually have
|
|
44
|
-
|
|
45
|
-
When choosing how to render a block, weigh these tradeoffs out loud with the user, not silently:
|
|
46
|
-
|
|
47
|
-
- **Prose vs. list.** Prose carries argument; lists carry parallel items. If items aren't truly parallel, prose is better. If they are, a list is faster to scan.
|
|
48
|
-
- **Inline vs. callout.** Tips, warnings, and asides go in callouts (`> [!TIP]`, `> [!NOTE]`), but only if they'd genuinely derail the main argument inline. Otherwise leave them inline.
|
|
49
|
-
- **Table vs. repeated structure.** If the same shape repeats 3+ times with the same fields, a table. Otherwise prose with bold leads.
|
|
50
|
-
- **Quote vs. paraphrase.** Quote when the original wording is the point. Paraphrase when only the idea matters.
|
|
51
|
-
- **Code block vs. inline code.** Multi-line, runnable, or illustrative → block. Single token or identifier → inline.
|
|
52
|
-
|
|
53
|
-
## Out of scope
|
|
54
|
-
|
|
55
|
-
- Mining for new fragments that aren't in the pile (handle gaps as "Pulling from the pile" describes in the shared page).
|
|
56
|
-
- Editing the raw material file.
|
|
57
|
-
- Publishing, formatting for a specific platform, or adding frontmatter the user didn't ask for.
|
|
58
|
-
|
|
59
|
-
</supporting-info>
|