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 codegraphPrerequisite before any architecture work. The code graph provides the source-code evidence that powers the atlas.
Before choosing commands, run apltk codegraph --help and apltk codegraph <subcommand> --help. Use the live help output to initialize/index if needed, then inspect files, symbols, call relationships, contextual flows, or impact radius relevant to the architecture atlas.
Based on CodeGraph findings, partition features (C4 Container level):
Then read sample-demo/ to understand the expected output format and abstraction level before writing the atlas.
Consult references/codegraph.md for detailed flags.
apltk architecture addBefore invoking any apltk architecture command, run apltk architecture --help and the relevant subcommand help, then follow the live CLI guidance.
Generate 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 add for incremental atlas writes (one entity per command).
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/codegraph.md — apltk codegraph CLI reference; verify current usage with apltk codegraph --help.references/architecture.md — apltk architecture CLI reference; verify current usage with apltk architecture --help.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
Guides the agent through creating a new Agent Skill from scratch. Use when the user wants to build a skill, create a new skill, scaffold a skill directory, or author a SKILL.md. Do NOT use for optimising or rewriting existing skills — use 'optimise-skill' for that. Do NOT use for editing files that are already part of a skill. Do NOT use for creating non-skill content like documentation, scripts, or project files.
development
Guides the agent through creating a new Agent Skill from scratch. Use when the user wants to build a skill, create a new skill, scaffold a skill directory, or author a SKILL.md. Do NOT use for optimising or rewriting existing skills — use 'optimise-skill' for that. Do NOT use for editing files that are already part of a skill. Do NOT use for creating non-skill content like documentation, scripts, or project files.
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.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。