@iasiv5/dsh-skills 1.3.7 → 1.3.8
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/package.json +1 -1
- package/skills/answer-me-with-html/SKILL.md +6 -4
- package/skills/answer-me-with-html/references/codebase.md +2 -2
- package/skills/answer-me-with-html/scripts/am.mjs +715 -309
- package/skills/domain-modeling/GLOSSARY-FORMAT.md +3 -2
- package/skills/impeccable/SKILL.md +1 -1
- package/skills/impeccable/reference/audit.md +2 -2
- package/skills/impeccable/reference/critique.md +3 -3
- package/skills/impeccable/reference/generate.md +1 -1
- package/skills/impeccable/reference/init.md +0 -2
- package/skills/impeccable/reference/live.md +4 -2
- package/skills/impeccable/reference/new-work-comp.md +1 -1
- package/skills/impeccable/reference/new-work-world.md +1 -1
- package/skills/impeccable/scripts/VERSION +1 -1
- package/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/skills/impeccable/scripts/impeccable +28 -5
- package/skills/impeccable/scripts/impeccable.cmd +11 -2
- package/skills/impeccable/scripts/live-browser.js +10 -6
- package/skills/writing-plans/SKILL.md +1 -0
- package/skills/writing-plans/references/plan-self-review.md +4 -0
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ If the context contains the `[answer-me-with-html always-on]` reminder (the user
|
|
|
52
52
|
|
|
53
53
|
- Whenever this turn gives a conclusion, summary, plan, comparison, review or explanation, attach a page.
|
|
54
54
|
- Do not skip it because "the answer is short". If there is a conclusion, produce a page.
|
|
55
|
-
- For everyday conclusions use a small page with 2–4 panels: one callout with the conclusion, plus one table or one diagram. Do not add panels just to fill space.
|
|
55
|
+
- For everyday conclusions use a small page with 2–4 panels: one callout with the conclusion, plus one table or one diagram. Layout advice for a new answer, not a content budget (see section 4). Do not add panels just to fill space.
|
|
56
56
|
- Render with `--no-open`, so no browser window interrupts the user. The user opens the page by clicking the path at the end of the reply.
|
|
57
57
|
- Order: render the page first, then write the text reply. The reply is the last thing in the turn, with the page link on its last line (see step 5). Do not write the reply and then call `am render`. The one call that may come after the reply is the choice tool that puts the page's asks to the user, when your host can ask questions: write the reply first, so the user holds the link before answering (see step 5).
|
|
58
58
|
- The internal-report rule of step 1 applies here too: a delegated report that inherits the always-on rule renders no page, unless the delegated task explicitly asks for one.
|
|
@@ -72,7 +72,7 @@ On every other host the token is left as it stands or comes out empty. There, be
|
|
|
72
72
|
|
|
73
73
|
Keep the default output; it needs no flag. If the session cannot write to `~/.answer-me-with-html/pages` (a sandbox that allows writes only in the workspace), the CLI saves the page in a private folder in the system temporary folder and says so on a `!` line; the system may clear that folder. Add `-o "<absolute-workspace-path>/.tmp/answers/topic.html"` to `render -` before the heredoc only when the user wants the page in the workspace or the render fails with `Cannot write the page`. `-o` names an HTML file, not a folder; the CLI creates missing parent directories. Use `AM_HOME` only when the whole data directory must move.
|
|
74
74
|
|
|
75
|
-
1. First list 3–8 panels in your head. Each panel answers one sub-question only.
|
|
75
|
+
1. First list 3–8 panels in your head. Each panel answers one sub-question only. Layout advice for a new answer, not a content budget (see section 4).
|
|
76
76
|
The draft language follows the language of the user's question: an English question gets an English draft, a Chinese question a Chinese draft, a Japanese question a Japanese draft. The page button labels, `<html lang>` and the STE check rules switch automatically by the draft language (a draft containing kana counts as Japanese); STE applies the English or Chinese rules to each sentence by its language (Japanese sentences get only the sentence-length and paragraph-length checks, with the same character limits as Chinese; any other language gets only those two checks, counted in words). To set the language yourself, write `lang:` in the frontmatter: `en`, `zh` (Simplified Chinese), `zh-Hant` or `zh-TW` (Traditional Chinese), `ja`, or any other language tag such as `fr` or `ko`. Detection reads Chinese (Simplified, or Traditional when the text has characters written in only one form), Japanese, Korean, and Cyrillic, Arabic, Hebrew, Thai and Greek text, and reads all Latin-script text as English. Declare the language when the user writes a Latin-script language other than English, when a Chinese text is too short or too plain to show Traditional characters, or when an exact tag matters (Arabic script also writes Persian, Cyrillic also Ukrainian). A language without its own labels still gets the right `<html lang>`, with English page labels.
|
|
77
77
|
2. Choose components by the shape of the information (see section 4).
|
|
78
78
|
3. Render in one go with a heredoc:
|
|
@@ -127,7 +127,7 @@ file: tcp-handshake # when the title has few or no English letters: a short Engl
|
|
|
127
127
|
cols: 3 # most columns in a sheet row (a whole number), default 3
|
|
128
128
|
source: RFC 9293 # any other key is shown in the page header's meta line
|
|
129
129
|
---
|
|
130
|
-
|
|
130
|
+
The core conclusion in one or two sentences (optional): this first paragraph, before any ## heading, is the lead.
|
|
131
131
|
|
|
132
132
|
## A Panel title {span=2 meta="small text, top right"}
|
|
133
133
|
Plain Markdown: paragraphs, lists, tables, quotes.
|
|
@@ -165,6 +165,7 @@ Write a component as a fenced code block (```` ```flow ```` … ```` ``` ````);
|
|
|
165
165
|
| Multi-dimension comparison, can / cannot list | Markdown table | write ok / no / warn in the status column |
|
|
166
166
|
| What a real screen, photo or render looks like, as an existing file | image | `` alone on a line |
|
|
167
167
|
| Code that exists in the project | code block that quotes the file | ```` ```ts src=path/to/file.ts lines=18-30 hl=22 ```` and an empty block |
|
|
168
|
+
| Walk a reader through a diagram step by step, with an explanation per step, or link it to code lines | `steps` | in a panel with one `flow`, `state` or `tree`: `Item: explanation`; or add one code block and write `Item 12-15: note`; the item is the diagram's text, written without a colon |
|
|
168
169
|
| A plan, refactor or PR summary that changes structure | `flow`, `state`, `tree`, `er` or `api` with change markers | start a line with `+ ` added, `- ` removed, `~ ` changed (a node, field, entity, state, endpoint or section only): `+ A -> B`, `- A -> B`, `~ Node`, tree `+ file.js`, `- dir/`, er `+ Coupon`, ` + phone string`, `+ User 1--* Coupon` |
|
|
169
170
|
| A change to code | diff block | ```` ```diff file=path/to/file.ts ```` and the unified diff inside |
|
|
170
171
|
| Code that does not exist yet, or a command | code block | ```` ```ts title="name · sketch" ```` with the code inside |
|
|
@@ -174,11 +175,12 @@ For `api`, field syntax is `name type [required|optional] | description`. The fi
|
|
|
174
175
|
Selection rules:
|
|
175
176
|
- Conclusion first. The first panel or the lead gives the core answer; the following panels give the evidence.
|
|
176
177
|
- One panel, one question. With more than 8 panels, split the page or cut panels.
|
|
178
|
+
- When the page presents content the user already has (a document, a draft or your previous answer), keep every section, table row and fact of it and change only the form, except the parts the user asked to summarise, shorten or change. The panel budget above constrains the layout of a `sheet`, not which facts survive: a `sheet` holds 8 panels at most, and `template: doc` has no section cap, so use `doc` or split the page instead of cutting. If the user did ask for a summary, list the omitted sections in one `callout`, so the page says what it left out.
|
|
177
179
|
- `span` is a hint. In a browser the sheet sizes each panel to its content and fills every row, so write no `span` for a wide table or diagram. Write `span` only for a panel that must stand out (`span` = `cols` gives it a row of its own). `span` and `rows` are whole numbers; a fraction such as `span=2.5` is an error. `rows` applies only to the plain grid (without JavaScript, in print and on narrow screens); the browser layout ignores it.
|
|
178
180
|
- To show what a plan, refactor or PR summary changes in structure, write one `flow`, `state`, `tree`, `er` or `api` and mark the changed lines with `+ `, `- ` or `~ `, not a before and an after. Leave unchanged lines bare. The page shows colors, badges and counts in its Changes view and adds a Before / After switch that shows the plain diagram on either side. To change a link or a relationship, remove the old one with `-` and add the new one with `+`. A name that starts with `- ` needs brackets in `flow` (`[- Gateway]`) or `\- item` in `tree`. A marked entity gives its fields its marker; a marked field does not mark its entity. In `api`, added or removed endpoints and sections pass their marker to their children. Write paired `-` old and `+` new definitions to preserve exact changes; `~` alone has no old value. See `am help flow`, `am help state`, `am help tree`, `am help er` and `am help api`.
|
|
179
181
|
- Quote code that exists with `src=` and `lines=`: the CLI reads the lines, so you type no code and the code is real. Use a path inside the current folder; files outside it are refused. Pick the 10–40 lines that make the point. Mark code that does not exist yet as a sketch in `title=`. In a diff block every line starts with `+`, `-`, a space or `@@`; do not cut lines with `...`, split the diff into two hunks. The render lists every file it embedded; tell the user before they share a page that holds private code. See `am help code`.
|
|
180
182
|
- Use an image only for what a diagram cannot show, such as a real UI. Use an existing file by its absolute path (PNG, JPG, GIF, WebP, AVIF or SVG, up to 5 MB). The alt text is the caption, so write what the picture shows. Images must be local files: remote images do not load in the page. Never generate or invent an image. See `am help image`.
|
|
181
|
-
- Use `ask` only for a fork that changes what you do next, such as a plan or a choice between options: 1 to 5 per page, each in the panel it changes, the question in 15 words or fewer. These numbers are writing advice the CLI does not check: more decisions mean more asks (each in the panel it changes) or splitting the page, and the CLI enforces 2 to 6 options per ask. Mark the option you would pick with `*`. An option may carry a preview: indent a `:::` block under it (any component, or `html`/`svg`), and add `cards` to lay the options out in a grid; draw a preview only when seeing the option is what makes the choice clear (a layout, a drawing, a look), and leave it out for a text choice and for options where it adds nothing. A preview shows on the page only: a host's question tool carries just the question and option text, so it does not reach the user there. Every page has a Reply button: the user picks options, comments on any panel and copies one reply back. When a page has asks, say in your reply how many decisions are open and that the suggested options are what you would do. If your host can ask questions (Claude Code's AskUserQuestion), put those asks to the user with that choice tool after the reply, never before it: the reply carries the page link, and the user should be able to open the page before answering.
|
|
183
|
+
- Use `ask` only for a fork that changes what you do next, such as a plan or a choice between options: 1 to 5 per page, each in the panel it changes, the question in 15 words or fewer. These numbers are writing advice the CLI does not check: more decisions mean more asks (each in the panel it changes) or splitting the page, and the CLI enforces 2 to 6 options per ask. Mark the option you would pick with `*`. An option may carry a preview: indent a `:::` block under it (any component except `steps`, which belongs in a panel of its own, or `html`/`svg`), and add `cards` to lay the options out in a grid; draw a preview only when seeing the option is what makes the choice clear (a layout, a drawing, a look), and leave it out for a text choice and for options where it adds nothing. A preview shows on the page only: a host's question tool carries just the question and option text, so it does not reach the user there. Every page has a Reply button: the user picks options, comments on any panel and copies one reply back. When a page has asks, say in your reply how many decisions are open and that the suggested options are what you would do. If your host can ask questions (Claude Code's AskUserQuestion), put those asks to the user with that choice tool after the reply, never before it: the reply carries the page link, and the user should be able to open the page before answering.
|
|
182
184
|
- For numbers you compare, use `chart`, never a hand-written `svg` block: it follows the theme and dark mode and costs a few lines. Use `limits` when each row is one value against one limit. Write plain numbers (no thousands separators), put the unit in `unit=`, and use `*` on the row the reader must see. With more than one number on a row, name the series on a first line (`| p50 | p95`). Use `bar` to compare items, `line` for values over time (up to 60 points) and `pie` for the shares of one whole (up to 6 slices, no negative values, one number per row). Up to 6 series and 24 bar rows; a collapsed table under the chart holds the numbers. See `am help chart`.
|
|
183
185
|
- Do not invent data. Without real numbers, do not use limits or charts; mark illustrative data as "illustrative" in the description.
|
|
184
186
|
|
|
@@ -28,10 +28,10 @@ On a repository too large to read in this context: once the modules in scope are
|
|
|
28
28
|
Render from the repository root, so `src=` and the spans resolve against it.
|
|
29
29
|
|
|
30
30
|
- **Frontmatter:** `commit:` set to `git rev-parse --short HEAD`, with `+dirty` appended when `git status --porcelain` prints anything. The page header shows it, so the reader knows which code the page describes.
|
|
31
|
-
-
|
|
31
|
+
- The first paragraph, before any `##` heading: the answer in two or three sentences.
|
|
32
32
|
- **Modules:** a `tree`, one line per module, `folder/ | job`.
|
|
33
33
|
- **Main path:** a `flow` for how parts connect, or a `sequence` for calls between parts over time. Use the same names as the module tree.
|
|
34
|
-
- **Key code:** code blocks with `src=` and `lines=` for the few spots the main path turns on.
|
|
34
|
+
- **Key code:** code blocks with `src=` and `lines=` for the few spots the main path turns on; when the main path is a `flow`, a `state` or a `tree`, a `steps` block in its panel links one of them to it. `steps` does not link a `sequence` diagram: with one, keep the code and its citations and write no `steps` block.
|
|
35
35
|
- **Module table:** module, its files, its job, what it depends on.
|
|
36
36
|
- **Data model,** when the question is about data: an `er` or `class` diagram.
|
|
37
37
|
|