spec-to-project-html/SKILL.md
Sync the project HTML architecture atlas to active planning specs by driving `apltk architecture --spec <spec_dir>`. The CLI writes overlay YAML under `<spec_dir>/architecture_diff/atlas/` and re-renders only the affected proposed-after HTML pages — macro SVG and per-sub-module internal-dataflow diagrams stay zoomable like the base atlas — so `apltk architecture diff` pairs before/after by path under `docs/plans/**/architecture_diff/`. Preserve the two-layer rule and the responsibility split: **subagents only** — each subagent reads ONE affected feature and declares EVERY intra-feature overlay change; the main agent **waits until all subagents finish**, then aggregates outbound summaries and declares **only** cross-feature edges. **Exact CLI spelling:** always `apltk architecture --help`. Ground every declaration in repo evidence; mark `TBD` when code is missing.
npx skillsauth add laitszkin/apollo-toolkit spec-to-project-htmlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
init-project-html — its SKILL.md is the semantic rulebook; apltk architecture --help is the verb/flag source of truth. Reuse the same CLI here with --spec.recover-missing-plan if a spec pointer is missing.generate-spec / implement-specs* terminology for requirement IDs.review-spec-related-changes when verifying diagram updates against specs.TBD strings or a gap token in the role/purpose/dataflow fields; MUST NOT mark them as implemented.spec.md → design.md → contract.md → coordination notes.--spec <spec_dir> (exact verbs/flags: apltk architecture --help). The CLI writes overlay YAML to <spec_dir>/architecture_diff/atlas/ and re-renders only the affected proposed-after HTML pages there. MUST NOT hand-edit architecture_diff/**/*.html — the renderer owns those files.init-project-html/SKILL.md:
dataflow prose that pretends to cross features.--help:
feature / submodule (add / set / remove as appropriate).function, variable, dataflow, error (add / remove / reorder for dataflow where supported).edge add / remove (prefer stable --id when you may remove the same edge later).submodule remove / feature remove in spec mode populate removal manifests so diff can show removed pages; renames are usually remove old slug + add new slug so the viewer shows remove + add rather than a silent overwrite.apltk architecture ... --spec <spec_dir> (exact flags: --help). Each returns ONLY a structured summary: sub-module change list, outbound boundary changes (cross-feature edges to add/change/remove), and any planned / gap markers.edge mutation, overlay-wide meta that stitches multiple features, or shared actor that exists only for cross-feature context.apltk architecture validate --spec <spec_dir> after the final mutation. Resolve every reported error before reporting completion.meta.summary or in sub-module purposes when relevant.render --spec if batched → validate --spec → diff check → handover.apltk architecture diff opens cleanly with no orphan pages; no dangling edges.<spec_dir>/architecture_diff/atlas/** (overlay state) and <spec_dir>/architecture_diff/**/*.html (renderer output). Base resources/project-architecture/ is NEVER mutated.init-project-html)Open the proposed-after viewer (apltk architecture diff) and verify both criteria on the overlay pages before reporting completion:
data-row), interaction logic (call + return), error handling and rollback (failure). Any new / changed / removed cross-boundary path the spec implies MUST exist as an edge mutation in the overlay — not as sub-module prose.dataflow steps. Declare function / variable before referencing them so validate --spec passes.User-pointed path wins; otherwise use the batch coordination.md or recover-missing-plan to find the most recent plan; collect R… / INT-… IDs for traceability.
Derive from the spec/design diff which feature modules change: new sub-modules, edge changes, variable changes, error changes, retired sub-modules… Also include any feature owning the other end of a cross-feature edge that is being changed (even if that feature’s own spec is untouched). Record only slug + change-kind; do not enter function bodies yet.
Dispatch one write-capable subagent per affected feature. Each subagent owns every intra-feature overlay write and reports outbound boundaries upward. Use apltk architecture --help for exact add|set|remove|reorder spelling.
Feature
<slug>subagent contract (overlay)
- Read this feature’s affected sub-modules and the cited spec passages / requirement IDs.
- Apply every intra-feature overlay mutation with
--spec <spec_dir>: structural (feature/submodule), rows (function,variable,dataflow,error), and intra-featureedgechanges (including failure / rollback between this feature’s own sub-modules). Orderdataflowso variable state reads end-to-end.- Run
apltk architecture validate --spec <spec_dir>before returning.- Return ONLY: (i) sub-module change list, (ii) outbound boundary changes (cross-feature edges add/change/remove with endpoints and suggested kind/label), (iii) any
planned/gapflags formeta.summary.
After every subagent has completed, the main agent declares only cross-feature seams, then renders and validates:
# exact flags per edge: see --help
apltk architecture edge add --spec <spec_dir> --from <featA>/<subA> --to <featB>/<subB> --kind call|return|data-row|failure --label "..." --no-render
apltk architecture edge remove --spec <spec_dir> --id <stable_id> --no-render
apltk architecture render --spec <spec_dir>
apltk architecture validate --spec <spec_dir>
Pause → Do planned / gap markers read consistently across affected sub-modules?
The main agent MUST NOT re-declare a subagent’s intra-feature components, and MUST NOT open source files for any feature it delegated.
Pause → Does apltk architecture diff pair every changed page correctly? If a page shows as add + remove instead of modified, you renamed a slug somewhere — re-check.
Use feature-trace (or meta.summary for spec-only changes) to map spec IDs to implementation status: met / partial / planned / gap.
List overlay files touched (or verb families used), the diff counts (modified / added / removed) from apltk architecture diff, confirmation that all subagents finished before cross-feature wiring, unresolved spec-vs-code gaps, and any follow-ups.
--spec <member_dir> writes its own overlay; diff lists each spec’s section in the paginated viewer.submodule set --role "deprecated: ..." before submodule remove so reviewers see intent.validate --spec catches dangling references.init-project-html/SKILL.md — semantic contracts and acceptance criteria.init-project-html/references/TEMPLATE_SPEC.md — schema cheat sheet (fields/enums), not a command list.apltk architecture --help — live CLI reference.development
Review a pull request — interactive PR selection via `gh`, 4-dimension code review (hallucinated code, architecture, performance, test validity), then post severity-graded comments with fix suggestions on the PR. Not for spec-based review — use `review` instead.
development
Read a user-specified PDF that marks the week's key financial events, deeply research each marked event with current sources, capture any additional breaking financial developments, and produce a concise Chinese-capable PDF briefing that explains what happened and why it matters.
documentation
Generate long-form videos (more than 10 minutes) by following user instructions and invoking related skills only when needed (`openai-text-to-image-storyboard`, `docs-to-voice`, `remotion-best-practices`). For text inputs, extract a complete long-form story arc, generate fresh storyboard images (no reuse of previously generated pictures), and render a 16:9 animated long-form video.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。