@iasiv5/dsh-skills 1.3.3 → 1.3.5

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.
Files changed (84) hide show
  1. package/NOTICE.md +1 -1
  2. package/package.json +1 -1
  3. package/skills/answer-me-with-html/SKILL.md +3 -3
  4. package/skills/answer-me-with-html/references/video.md +1 -0
  5. package/skills/answer-me-with-html/scripts/am.mjs +1671 -1131
  6. package/skills/darwin-skill/README.md +136 -121
  7. package/skills/darwin-skill/README_EN.md +138 -123
  8. package/skills/darwin-skill/SKILL.md +256 -421
  9. package/skills/darwin-skill/_archive/hero-2.0.gif +0 -0
  10. package/skills/darwin-skill/assets/banner-en.svg +1 -1
  11. package/skills/darwin-skill/assets/banner.svg +2 -2
  12. package/skills/darwin-skill/assets/chart-loop-en.html +2 -2
  13. package/skills/darwin-skill/assets/chart-loop-en.png +0 -0
  14. package/skills/darwin-skill/assets/chart-loop.html +2 -2
  15. package/skills/darwin-skill/assets/chart-loop.png +0 -0
  16. package/skills/darwin-skill/assets/chart-phases-en.html +12 -12
  17. package/skills/darwin-skill/assets/chart-phases-en.png +0 -0
  18. package/skills/darwin-skill/assets/chart-phases.html +13 -13
  19. package/skills/darwin-skill/assets/chart-phases.png +0 -0
  20. package/skills/darwin-skill/assets/darwin-3.0-launch.mp4 +0 -0
  21. package/skills/darwin-skill/assets/hero.gif +0 -0
  22. package/skills/darwin-skill/assets/result-card-example.png +0 -0
  23. package/skills/darwin-skill/docs/index.html +93 -357
  24. package/skills/darwin-skill/references/about-author.md +101 -0
  25. package/skills/darwin-skill/references/eval-protocol.md +156 -0
  26. package/skills/darwin-skill/references/skilllens-evidence.md +2 -1
  27. package/skills/darwin-skill/references/v3-evidence.md +114 -0
  28. package/skills/darwin-skill/scripts/darwin.py +400 -0
  29. package/skills/darwin-skill/scripts/screenshot.mjs +3 -2
  30. package/skills/darwin-skill/showcase.html +93 -357
  31. package/skills/darwin-skill/templates/result-card.html +36 -20
  32. package/skills/darwin-skill/templates/result-card.png +0 -0
  33. package/skills/darwin-skill/test-prompts.json +36 -12
  34. package/skills/docx/SKILL.md +5 -4
  35. package/skills/docx/scripts/office/helpers/__init__.py +22 -4
  36. package/skills/docx/scripts/office/helpers/pptx_chart.py +124 -11
  37. package/skills/docx/scripts/office/helpers/pptx_slide.py +43 -3
  38. package/skills/docx/scripts/office/soffice.py +85 -1
  39. package/skills/docx/scripts/office/validate.py +50 -7
  40. package/skills/docx/scripts/office/validators/base.py +16 -4
  41. package/skills/docx/scripts/office/validators/docx.py +59 -6
  42. package/skills/docx/scripts/office/validators/pptx.py +116 -8
  43. package/skills/docx/scripts/office/validators/redlining.py +292 -113
  44. package/skills/impeccable/SKILL.md +4 -2
  45. package/skills/impeccable/reference/adapt.md +1 -1
  46. package/skills/impeccable/reference/animate.md +17 -0
  47. package/skills/impeccable/reference/critique-rubric.md +496 -0
  48. package/skills/impeccable/reference/critique.md +12 -504
  49. package/skills/impeccable/reference/degraded/documenter.md +1 -1
  50. package/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  51. package/skills/impeccable/reference/document.md +3 -1
  52. package/skills/impeccable/reference/foundations.md +44 -0
  53. package/skills/impeccable/reference/hooks.md +3 -3
  54. package/skills/impeccable/reference/live-setup.md +1 -1
  55. package/skills/impeccable/reference/live.md +26 -12
  56. package/skills/impeccable/reference/new-work-comp.md +24 -0
  57. package/skills/impeccable/reference/new-work-world.md +20 -0
  58. package/skills/impeccable/reference/new-work.md +6 -34
  59. package/skills/impeccable/reference/typeset.md +6 -0
  60. package/skills/impeccable/reference/visualize.md +1 -1
  61. package/skills/impeccable/scripts/VERSION +1 -1
  62. package/skills/impeccable/scripts/engine-checksums.txt +5 -5
  63. package/skills/impeccable/scripts/live-browser.js +51 -22
  64. package/skills/pdf/{forms.md → FORMS.md} +1 -1
  65. package/skills/pdf/{reference.md → REFERENCE.md} +3 -2
  66. package/skills/wechat-draft/SKILL.md +1 -0
  67. package/skills/xlsx/SKILL.md +19 -14
  68. package/skills/xlsx/scripts/office/helpers/__init__.py +22 -4
  69. package/skills/xlsx/scripts/office/helpers/pptx_chart.py +124 -11
  70. package/skills/xlsx/scripts/office/helpers/pptx_slide.py +43 -3
  71. package/skills/xlsx/scripts/office/soffice.py +85 -1
  72. package/skills/xlsx/scripts/office/validate.py +50 -7
  73. package/skills/xlsx/scripts/office/validators/base.py +16 -4
  74. package/skills/xlsx/scripts/office/validators/docx.py +59 -6
  75. package/skills/xlsx/scripts/office/validators/pptx.py +116 -8
  76. package/skills/xlsx/scripts/office/validators/redlining.py +292 -113
  77. package/skills/xlsx/scripts/recalc.py +731 -136
  78. package/skills-manifest.json +2 -2
  79. /package/skills/darwin-skill/{assets → _archive}/chart-ratchet-en.html +0 -0
  80. /package/skills/darwin-skill/{assets → _archive}/chart-ratchet-en.png +0 -0
  81. /package/skills/darwin-skill/{assets → _archive}/chart-ratchet.html +0 -0
  82. /package/skills/darwin-skill/{assets → _archive}/chart-ratchet.png +0 -0
  83. /package/skills/darwin-skill/{templates → _archive}/result-card-dark.html +0 -0
  84. /package/skills/darwin-skill/{templates → _archive}/result-card-white.html +0 -0
package/NOTICE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # NOTICE — 第三方归属与许可汇总
2
2
 
3
- 本包(`@iasiv5/dsh-skills`)收录 iasiv5/skills 仓库 29 个 agent skill 中的 **28 个**(20 个上游第三方 + 8 个本地自研;21 个模型可自动触发 + 7 个仅斜杠调用)。收录遵循 as-is 原则(不裁剪上游文件);**1 个 skill 因上游许可缺失而被排除在包外**(见下节,仓库内保留)。各收录 skill 目录内的原许可文件原样保留;本文件汇总归属与许可状态。核查方法与逐 skill 台账见维护者审计档案(2026-11)。
3
+ 本包(`@iasiv5/dsh-skills`)收录 iasiv5/skills 仓库中的全部 **28 个** agent skill(20 个上游第三方 + 8 个本地自研;19 个模型可自动触发 + 9 个仅斜杠调用)。收录遵循 as-is 原则(不裁剪上游文件);**1 个 skill 因上游许可缺失而被排除在包外**(见下节)。各收录 skill 目录内的原许可文件原样保留;本文件汇总归属与许可状态。核查方法与逐 skill 台账见维护者审计档案(2026-11)。
4
4
 
5
5
  ## Apache-2.0
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iasiv5/dsh-skills",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "iasi 的 Agent skills 合集 DSH 插件:以 bundled skill 方式加载,免拷贝进 skills 目录。作者自用,不推广。",
5
5
  "keywords": [
6
6
  "dsh",
@@ -95,7 +95,7 @@ AM_EOF
95
95
  - `STE n warnings`: rewrite the flagged lines as suggested, then render again. Retry at most 2 rounds; if warnings remain, keep the last page and say so.
96
96
  - When rendering again after a `✓`, add `--replace <path from the last ✓ line>` for a page in the data directory's `pages/` or the temporary folder's `pages/`; the CLI deletes that page once the new one is written. For a page written with `-o`, reuse the same quoted `-o` HTML file path to overwrite it in place.
97
97
  - `! Cleanup hint: …` or `! Update hint: …`: pass it on to the user in one sentence at the end of the reply, and ask whether to clean up / update. **Do not run am clean or the update command yourself**; wait until the user agrees. The CLI throttles these: the cleanup hint appears at most once every 7 days, the update hint at most once every 3 days.
98
- 5. Reply in the terminal with only 2–3 lines: one core conclusion + the page link. The 2–3 line limit is for replies to the user. If a parent agent asked for the page, also return the verification details it asked for (step 1), in full. Do not paste the draft or the HTML back into the terminal. Write this reply after the render, as the last step of the turn: render the page first, then reply. No tool call comes after the reply, except the choice tool that puts the page's asks to the user: when the page has asks and your host can ask questions (Claude Code's AskUserQuestion), write this reply first — the page link on its last line — and call that tool right after it, so the user opens the page before answering. Asking first leaves the user answering questions about a page they have not seen.
98
+ 5. Reply in the terminal with only 2–3 lines: one core conclusion + the page link. The 2–3 line limit is for replies to the user. If a parent agent asked for the page, also return the verification details it asked for (step 1), in full. Do not paste the draft or the HTML back into the terminal. Write this reply after the render, as the last step of the turn: render the page first, then reply. No tool call comes after the reply, except the choice tool that puts the page's asks to the user: when the page has asks and your host can ask questions (Claude Code's AskUserQuestion), write this reply first — the page link on its last line — and call that tool right after it, so the user opens the page before answering. Asking first leaves the user answering questions about a page they have not seen. That tool shows the question and the option labels as text: an option preview stays on the page and does not reach the user there, so do not rely on it when the choice goes through that tool.
99
99
  If the render output has a `link:` line, the user runs `am serve`: use that URL as the page link instead, with the URL as the label too, and skip the local-file links below. Never start `am serve` yourself; only the user starts it.
100
100
  Otherwise, in DeepSeek Harness, write a Markdown link directly to the absolute path from the `✓` line, with the path as the label too: `[C:/Users/Name/My Pages/page.html](<C:/Users/Name/My Pages/page.html>)` on Windows or `[/abs/path.html](</abs/path.html>)` on macOS/Linux. Use forward slashes on Windows and angle brackets around the destination so spaces work. These path links open the Document Preview panel.
101
101
  In other hosts, write the page link as a Markdown link to a `file://` URL, with the URL as the label too: `[file:///abs/path.html](file:///abs/path.html)`. Take the absolute path from the `✓` line and add `file://` in front; do not percent-encode it. GUI hosts (Codex, Antigravity) render this as a clickable link, and a terminal still shows the full URL.
@@ -159,7 +159,7 @@ Write a component as a fenced code block (```` ```flow ```` … ```` ``` ````);
159
159
  | Word-by-word comments on one sentence | `annot` | `# heading \| right note`, `[span]{note}`, `[wrong word]{!red note}`, `> footnote` |
160
160
  | Metadata / title block | `kv [cols=2]` | `key: value`, `* wide cell: value` |
161
161
  | Conclusion / warning | `callout <info\|ok\|warn\|err> title` | Markdown body |
162
- | A decision the user must make before you go on | `ask [multi]` | question line, then `* suggested option \| note`, `- other option` |
162
+ | A decision the user must make before you go on | `ask [multi] [cards]` | question line, then `* suggested option \| note`, `- other option`; an option may take an indented `:::flow` … `:::` preview, drawn as the card canvas |
163
163
  | Multi-dimension comparison, can / cannot list | Markdown table | write ok / no / warn in the status column |
164
164
  | What a real screen, photo or render looks like, as an existing file | image | `![what it shows](/absolute/path.png)` alone on a line |
165
165
  | 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 |
@@ -176,7 +176,7 @@ Selection rules:
176
176
  - To show what a plan, refactor or PR summary changes in structure, write one `flow`, `state`, `tree` or `er` 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. See `am help flow`, `am help state`, `am help tree` and `am help er`.
177
177
  - 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`.
178
178
  - 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`.
179
- - 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 `*`. 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.
179
+ - 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.
180
180
  - 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`.
181
181
  - Do not invent data. Without real numbers, do not use limits or charts; mark illustrative data as "illustrative" in the description.
182
182
 
@@ -32,6 +32,7 @@ AM_EOF
32
32
  - Narration is read aloud, so write it as speech, as if explaining to someone face to face: transitions like `你看`, `那问题来了`, `我们换个角度看` are fine, and characters' "lines" go in quotes. Do not write it like a manual (`客户端发送 SYN 报文以请求建立连接`). Sentence length is still subject to the STE check.
33
33
  - The look follows the theme in the settings by default (usually the blueprint drawing style). When the user wants "that dark 3b1b style", write `theme: 3b1b` in the frontmatter.
34
34
  - Narration voice: the default is `--voice auto`: ElevenLabs when `ELEVENLABS_API_KEY` is set, otherwise system TTS (macOS say), and subtitles only when neither is available. When the user says "no sound", add `--voice off`. When the user runs a local OpenAI-compatible speech service and has set `AM_TTS_URL`, use `--voice local`.
35
+ - Command-line TTS: when the user has a command-line TTS installed (edge-tts, piper, a Kokoro CLI) or the sandbox cannot run a speech server, set `AM_TTS_CMD` and use `--voice cmd`. am splits the command into words and runs it without a shell; in each word `{out}` is where the command writes the audio (required), `{text_file}` a file with the line, `{text}` the line and `{lang}` its language tag, and the line is also on stdin. Prefer `{text_file}` to `{text}`. Non-WAV audio needs ffmpeg. edge-tts needs the network: `AM_TTS_CMD='edge-tts --voice zh-CN-XiaoxiaoNeural --file {text_file} --write-media {out}' am video draft.md --voice cmd`. Inside a macOS sandbox `say` writes only silence, so it fails there with a clear message.
35
36
  - Ready-made narration: `--audio-map lines.json` takes a JSON object from narration line to audio file, such as `{"First the client sends SYN.":"audio/01.mp3"}`. Relative audio paths start at the map file's folder; keys ignore `> `, `[ ]` markers and extra whitespace. Non-WAV files need ffmpeg. Every narration line needs a key and every file must exist. Use `--audio-map` without `--voice`: the two explicit options conflict, while a configured default voice is ignored when a map is given.
36
37
  - The output is a single-file player page under `~/.answer-me-with-html/videos/` (audio embedded). The player carries a chapter strip above the controls (a chip jumps into that scene), a speed button (0.5× to 2×) and an export button (⤓) that encodes the same video in the browser and downloads it, with the progress on the button. When the user wants a video file next to the page, add `--mp4` for an MP4 (needs ffmpeg, about 1.3 times the video length). Without ffmpeg, add `--webm` instead: the page encodes a WebM (VP9 + Opus) itself; its time depends on how much of the page moves (measured: 28 s for an 11-second draft, 13.5 minutes for a 2:27 explainer). Both need Chrome and Node.js 22+. The export button needs a secure context (a local file or `localhost`): WebCodecs is not available to a page served over plain HTTP. The player page grows by about 19 KB for this.
37
38
  - Full syntax: `am help video`. In the terminal, reply with one sentence plus the player page link (and the MP4 link), written as in step 5 of section 2 of SKILL.md.