27 Commits

Author SHA1 Message Date
rookie-ricardo 1fb6ec5df7 docs(anthropic-style-diagram): make reviewing the render a required step
The workflow told the model to look at the PNG but framed it as an aesthetic
glance, so the checks that matter were left implicit. Two failures this week
were semantic, not geometric: a component placed below another asserted a
dependency that did not exist, and a system that is fundamentally a loop was
drawn one-way. No geometric audit can catch either.

Split verification into clearing the audit and reviewing the image, and give
the review a checklist that reads the render as a set of claims — what the
picture says cold, what each arrow direction asserts, whether the return edge
is visible, whether shared colour means shared category.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 00:44:44 +08:00
rookie-ricardo 698354072a feat(anthropic-style-diagram): allow ring layouts and audit round nodes
The blanket ban on circular layouts was a documentation choice, not a limit of
the renderer, and it was too absolute: a cycle with no natural entry point reads
better as a ring than as a line with a return path.

The real defect was the audit. It queried only <rect>, so a ring diagram passed
with everything unchecked — circles could overlap and labels could sit outside
their shape with no warning.

- measure round nodes as ellipses: exact circle-circle separation instead of
  bounding-box intersection, corner-distance test for label spill, and elliptical
  containment for connector crossings
- open ring layouts up to 6 nodes, with the polar geometry, arc-gap angle and
  sweep direction written down, plus a worked five-stage example
- make the visual pass an explicit second verification step: the audit measures,
  reading the rendered PNG back judges order, aim, grouping and density

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 00:41:47 +08:00
rookie-ricardo eac383c75d docs: use the star-history.com chart image
Drop the self-generated SVG chart and its generator in favour of a static
export from star-history.com, committed as an image so GitHub's proxy can
serve it without a token.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 00:27:27 +08:00
rookie-ricardo 17f3506a2f fix: top the star chart at the current total, drop the README caption
The axis ran to the next round number, so empty headroom sat above the last
point and read as a ceiling the repo had stalled below. Top the scale at the
total itself; the line now closes in the corner.

Also remove the note about GitHub's stargazers restriction from both READMEs —
that is maintenance trivia for whoever regenerates the chart, and it belongs in
the script, not in front of readers.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 00:03:23 +08:00
rookie-ricardo ffaaf48084 feat: self-generate the star history chart
GitHub restricts the stargazers list to a repository's own admins and
collaborators, so the star-history.com embed can never work again: the README
image is fetched by GitHub's camo proxy with no token, and the token that
service asks for lives in the viewer's own localStorage. Adding one fixes your
personal view of their site, not the badge.

Read the timestamps with the owner's credentials instead and commit the
rendered chart. Light and dark variants are selected steps validated against
GitHub's actual README surfaces, served via <picture>.

Also fix --no-fit in the diagram renderer: it was documented but parseArgs
never declared it, and this Node version has no allowNegative.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 23:59:37 +08:00
rookie-ricardo 61b6b1192e docs: attribute the license to Erduo
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 20:39:37 +08:00
rookie-ricardo eaf683f001 docs: add MIT license
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 20:35:51 +08:00
rookie-ricardo 409bbe803b fix(anthropic-style-diagram): resolve global playwright under npm --prefix
"npm root -g" inherits npm_config_prefix from a parent npm invocation, so
running the script through "npm --prefix <dir> run" made it report the skill
directory as the global root and the browser lookup failed. Strip npm's config
from the child environment.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 19:55:04 +08:00
rookie-ricardo cbc570137b fix(anthropic-style-diagram): guard against drained colour and uniform grids
Drawing a real diagram exposed three gaps in the guidance. The audit passed
cleanly on a layout that was flat, rigid and topologically wrong, because it
only measures overflow, overlap and crossings.

- state that nodes carry a ramp by default; `box` is for homogeneous sub-parts
  inside one container, not a whole-diagram pattern
- drop the flat "2-3 ramps" cap that pushed toward neutral nodes; the real rule
  is one ramp per category, never one per row
- add a Composition section for what the audit cannot see: uniform grids,
  missing feedback edges, false stacking, and no visual subject

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 19:54:29 +08:00
rookie-ricardo 13f76afc15 feat(anthropic-style-diagram): render SVG diagrams to PNG with layout auditing
Turn the draft prompt spec into a working skill under skills/.

The authored SVG now carries geometry and semantic classes only. render.mjs
drives headless chromium to inject the design system, resolve the theme, audit
the layout, crop the viewBox to real ink bounds, bake computed styles into
literal attributes, and write the PNG.

The audit catches the three failure modes that actually ruin diagrams: text
spilling out of its box, overlapping boxes, and connectors slicing through
unrelated nodes.

- assets/diagram.css: light and dark ramps behind four semantic slots
- references/: design tokens, diagram-type routing, a worked example
- register in the image-tools bundle and both READMEs
- drop the root draft, superseded by the skill (kept in 1ed6602)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 19:43:35 +08:00
rookie-ricardo 1ed6602563 chore: add anthropic-style diagram draft spec and examples
Work-in-progress prompt spec, design-system CSS and rendered examples
for the Anthropic-style SVG diagram skill.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 19:30:11 +08:00
rookie-ricardo a65f23c255 chore: update marketplace bundle mapping and sync docs 2026-04-06 22:53:19 +08:00
rookie-ricardo 52efddaf1c feat(translate-polisher): update agentic glossary and add punctuation fixer 2026-04-06 22:50:24 +08:00
rookie-ricardo 5c21087848 feat: add web-to-markdown skill and document it in readmes 2026-04-06 22:48:34 +08:00
rookie-ricardo e539bd7b40 fix(translate-polisher): add em-dash misuse rule and 5 structural improvements
- 新增破折号使用规范:仅用于真正中断句子的插入/转折,并列名词和同位短语用顿号,附错误示例
- 审校 5.0 步骤新增破折号滥用检查项
- 新增标题翻译规范(2.9 节):要求先明确原标题主语和动作方向再决定中文标题
- 新增流行文化梗识别(2.10 节):要求主动标记网络梗/亚文化表达并决策等效还原策略
- 术语一致性:在 5.1 审校中新增 AI 术语全文统一扫描步骤
- 注释位置规范:注释插入并列词之间打断节奏时,应后置或改为破折号说明
2026-04-06 22:40:01 +08:00
rookie-ricardo 32eb7f6dd0 docs: add star history chart 2026-03-27 00:11:10 +08:00
rookie-ricardo ef8356a36e Harden URL fetching for translate polisher 2026-03-23 23:47:00 +08:00
rookie-ricardo bf458d112d Add Claude marketplace and translate polisher docs 2026-03-23 01:04:32 +08:00
rookie-ricardo 8613bd7997 docs: revamp README with skill overview table and install commands 2026-03-19 00:18:59 +08:00
rookie-ricardo 6d256d339b feat: add transcript-polisher skill 2026-03-19 00:18:52 +08:00
rookie-ricardo e7a20d834e Ignore Python cache files 2026-03-17 01:23:43 +08:00
rookie-ricardo 5d0018fe80 Add ak-rss-digest skill 2026-03-17 01:23:16 +08:00
rookie-ricardo 8bad50f91c docs: add usage instructions for gemini-watermark-remover 2026-02-03 01:18:43 +08:00
rookie-ricardo 5ec8748dba feat: add gemini-watermark-remover skill and update docs 2026-02-03 01:15:58 +08:00
rookie-ricardo 6c9bf5e038 docs: update daily news report skill documentation 2026-01-21 01:52:55 +08:00
rookie-ricardo f38cd1d42c feat: Add daily news report skill with source configuration, agent definition, and comprehensive English documentation. 2026-01-21 01:23:15 +08:00
rookie-ricardo c83486aa3f chore: init project 2026-01-21 01:06:30 +08:00