skills/spec/SKILL.md
Transforms user requirements into strictly-scoped business specification documents (SPEC.md). Deeply explores the codebase to calibrate every requirement against actual code. Produces batch specs when requirements exceed 5 BDD items. Not for discussion without PROPOSAL.md, nor for single-file changes that don't need a spec.
npx skillsauth add laitszkin/apollo-toolkit specInstall 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.
Transform user requirements into pure business specifications (SPEC.md). Answer only "what business goal to achieve" and "what is in/out of scope" — no technical implementation. Ground every requirement's scope in the actual repository state through CodeGraph-assisted exploration.
Technical architecture belongs to design. Execution methodology belongs to plan.
assets/templates/SPEC.md with all sections populatedfeature/<spec-name> or similar)docs/plans/<YYYY-MM-DD>/<spec_name>/SPEC.md (single) or docs/plans/<YYYY-MM-DD>/<batch-name>/<spec_name>/SPEC.md (batch)Greenfield repo (no code): Skip to Step 2.
Non-greenfield: Establish code-level understanding BEFORE reading requirements. Run apltk codegraph --help then apltk codegraph <subcommand> --help. Use the live help output to pick suitable commands for files, symbols, callers/callees, context, or impact analysis. Record findings that affect requirement scope.
Analyze requirements from PROPOSAL.md. Compare CodeGraph findings against what PROPOSAL.md describes — if actual code contradicts or constrains the proposal, note these calibrations explicitly.
Deeply explore the codebase for:
Transform requirements into GIVEN/WHEN/THEN BDD items scoped against codegraph findings:
Batch threshold: ≤ 5 BDD items → single SPEC.md. > 5 → group by business flow or user role, 3-5 related items per subdirectory, each with its own SPEC.md.
For each requirement, assess Uncertainty Level:
Define Error and Edge Cases covering: authorization boundaries, data boundaries (input length, type, format, uniqueness), external dependency anomalies (API failure, timeout, degraded response), abuse/invalid state transitions, and failure handling.
If a requirement remains unclear after research and affects scope, record it for the Clarification Questions section — do not proceed without user input.
Before generating files, check the current git branch. If on main, master, develop, or any non-dedicated branch:
feature, refactor, fix, chore)git checkout -b <type>/<kebab-case-name>Run apltk create-specs --help first, then:
apltk create-specs <feature_name> [--batch-name <name>]
See references/create-specs.md for all flags.
Fill each section according to assets/templates/SPEC.md. Each BDD block must be independently testable with an observable THEN outcome. For batch specs, repeat template-filling per group.
For every Exploratory requirement or significant ambiguity, present Clarification Questions to the user. Each question must include:
Before writing the recommendation, the agent must:
Only omit Clarification Questions when all requirements are Known and unambiguous.
Check each item before delivering. Fix any issues found.
assets/templates/SPEC.md — SPEC.md output formatreferences/create-specs.md — apltk create-specs CLI referencedevelopment
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。