design-doc-code-completion

Implements code from design documents through planned steps with per-step unit test verification.

Updated Jul 31, 2026
One-click install
npx skills add https://github.com/shengmingzhishu/LeeCommonVideoCut --skill design-doc-code-completion-shengmingzhishu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: design-doc-code-completion
Source: https://github.com/shengmingzhishu/LeeCommonVideoCut/tree/main/.rules-skills/ai-server/.trae/skills/design-doc-code-completion
Command: npx skills add https://github.com/shengmingzhishu/LeeCommonVideoCut --skill design-doc-code-completion-shengmingzhishu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning a design document into working code often leads to unplanned, unverified changes that drift from the specification. This Skill enforces a closed loop: analyze the design doc, plan development by functional blocks based on existing tests, implement step by step, run unit tests after each step, and produce a final development summary report. ## Core Features & Use Cases - Design-Driven Planning: Extracts goals, acceptance criteria, and code boundaries from a design document before writing any code. - Test-Gated Step Execution: Splits work into functional blocks (schema, service logic, adapters, entry points) and requires unit test verification after each block before proceeding. - Summary Report Generation: Produces a development summary report in the 文档/ directory covering scope, plan execution, verification results, and risks. - Use Case: Given a design doc for a new API module and an existing test suite, the Skill plans the implementation in blocks, codes each block, runs the relevant tests after each one, and finishes with a documented report. ## Quick Start Ask the AI to read the design document at a given path and complete the code implementation step by step, running the related unit tests after each step and generating a summary report at the end.

Frequently Asked Questions about design-doc-code-completion

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement code from a design document step by step?▼

Provide the design document path, related test files or test commands, and the target module scope. The Skill extracts acceptance criteria, plans development by functional blocks, implements each block, and runs the relevant unit tests before moving on.

How to enforce unit test verification during AI code generation?▼

This Skill makes per-step unit testing a mandatory gate: after each functional block is coded, the narrowest relevant test is run, and the next step only starts after tests pass. Steps without existing tests are explicitly recorded as skipped.

What happens if a step has no unit tests?▼

If no relevant unit test exists for a step, the verification is skipped for that step and the skip is explicitly recorded in the progress notes and final summary report, so unverified work is never silently accepted.

What inputs are required before starting design-driven code completion?▼

Three inputs are needed: the design document path, existing test files or a test command, and the functional or module scope for this round. Missing information is resolved by locating the document first, then tests, then code boundaries.

What does the final development summary report contain?▼

The report, saved to the 文档/ directory, includes the design document source, development scope, plan execution status per step, verification results for each test run, and remaining risks or follow-up recommendations.