skills/init-project-html/SKILL.md
Initialize the project architecture atlas. Use the apltk CLI to map feature and submodule relationships into a renderable HTML architecture diagram following the C4 model (Context → Container → Component → Code).
npx skillsauth add laitszkin/apollo-toolkit init-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.
Produce a project architecture diagram via the apltk CLI.
Help users understand the project's software architecture.
evidence.sourceFile:sourceLine); unresolved ones are tagged inferredfunctions and variables arrays (mandatory, may not be left empty)This skill's "feature" and "submodule" map to the C4 model as follows:
| C4 Level | Skill Equivalent | Description | When to Use |
|----------|-----------------|-------------|-------------|
| System Context | Whole system | System boundaries, external actors, and external systems | Step 1 — establish baseline awareness |
| Container | Feature | High-level functional boundary (e.g. Login, Payment) | Primary abstraction level |
| Component | Submodule | Implementation unit inside a feature (controller, service, repository) | Primary detail level |
| Code | Function row | Function-level detail with source file and line evidence | Mandatory — every submodule must declare its functions with evidence.sourceFile:sourceLine |
At load time, check the project state to select the correct mode:
design — No resources/project-architecture/atlas/ directory exists.
Run full C4 initialization. Use --evidence observed for source-confirmed components.
record — Atlas directory exists but is near-empty (< 2 features).
Run quick feature-by-feature recording using apltk architecture scan to discover candidates.
Use --evidence inferred for structurally inferred components.
update — Atlas has substantive content and source code has changed.
Delegate to update-project-html skill for drift measurement and incremental update.
review — An architecture_diff/ overlay directory exists.
Run diff comparison workflow. If no diff found, fallback to update mode.
guard — If you are explicitly instructed to run design/init mode but the atlas directory already exists and is non-empty, pause and ask the user whether to: (a) overwrite the existing atlas, (b) switch to update mode, or (c) abort.
Applicable modes: design (full initialization), record (quick recording)
apltk codegraph surveyBefore diving into the code, establish a high-level understanding:
Then read sample-demo/ to understand the expected output format and abstraction level.
Next, run apltk codegraph survey to get a structured survey report:
--json output for programmatic consumption by the LLMBased on the survey report, decide how to partition features (C4 Container level):
apltk architecture applyGenerate the atlas incrementally by C4 level:
Consult references/architecture.md for CLI flag details when needed (parameter reference, mutation series).
functions and variables for every submodule, attaching evidence (source file and line number via --evidence observed:path/file.ts:42)Use apltk architecture apply <proposal.yaml> for batch atlas writes (replaces manual per-mutation CLI calls).
Transform the codebase knowledge gathered in the previous step into a clear architecture diagram.
After completion, verify the atlas format is valid and renders correctly.
Confirm the following before finishing:
observed for source-confirmed, inferred otherwise)apltk architecture validateEvery component declared via the CLI must carry source evidence:
evidence.sourceFile + evidence.sourceLine)If time or context constraints prevent full traceability, record the scanned scope and known gaps in meta.summary.
references/architecture.md — Full parameter reference for the apltk architecture tool (consult when CLI flag details are needed).references/TEMPLATE_SPEC.md — Atlas field reference, enum values, and CLI shape cheat sheet.references/definition.md — Detailed definitions of feature and submodule.assets/architecture-page.template.html — HTML template.references/architecture.css — Style template.sample-demo/ — Complete example output for understanding the final atlas shape and C4 level mapping.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。
development
Incrementally refresh the architecture atlas when the project diagram drifts from actual code. Measures drift before updating to determine scope, then updates the base atlas and re-renders HTML.