usecase-to-design

Generates system design documents from use case files, Delphi source code, and database specifications.

Updated Aug 15, 2026
One-click install
npx skills add https://github.com/jacksonlee-tw/mystock-vue --skill usecase-to-design-jacksonlee-tw
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: usecase-to-design
Source: https://github.com/jacksonlee-tw/mystock-vue/tree/main/mystock-analysis/.github/skills/usecase-to-design
Command: npx skills add https://github.com/jacksonlee-tw/mystock-vue --skill usecase-to-design-jacksonlee-tw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve? Writing system design documents for legacy Delphi weighing-scale modules requires manually cross-referencing use case requirements, Object Pascal source code (.pas/.dfm), and database specifications, which is slow and error-prone. ## Core Features & Use Cases - Automated SD Generation: Produces complete system design documents containing function descriptions, data table details, Mermaid ER diagrams, Delphi program listings, and categorized SQL statements. - Delphi Source Analysis: Extracts uses dependencies, procedures, functions, SQL statements, and .dfm form components from MM_D7/MM_D10 modules, including Form Stub detection and version-control query patterns. - Batch Multi-Module Processing: Generates multiple design documents in one run with parallel source analysis. - Use Case: Ask it to convert UC-arrivePlant-廠門地磅作業 into a design document, and it reads the use case, analyzes uarrivePlant.pas/.dfm, cross-checks the database spec, and outputs SD-arrivePlant-廠門地磅作業-系統設計.md to docs/02_Design. ## Quick Start Ask the assistant to generate a system design document from the UC-arrivePlant-廠門地磅作業 use case and save it to docs/02_Design.

Frequently Asked Questions about usecase-to-design

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

FAQPage Schema
How do I generate a system design document from a use case file?▼

Provide the use case markdown file path and request SD generation. The skill reads the UC document, analyzes the corresponding Delphi .pas and .dfm source files, cross-references the database specification, and writes a structured design document to docs/02_Design.

What inputs are required to create a Delphi system design document?▼

Three inputs are mandatory: a use case markdown file under docs/01_Requirements/use-cases, the Delphi source code (.pas and .dfm) in MM_D10/Source or MM_D10/COMMON, and the database specification at docs/02_Design/db/mmsystem-db規格書.md.

Can it generate design documents for multiple modules at once?▼

Yes, batch processing is supported. The database specification is read once and shared across modules, then each use case is processed individually, with parallel sub-agents analyzing each module's Delphi source code.

Does it handle Delphi forms that are only stubs without business logic?▼

Yes, it detects Form Stub patterns where a .pas file contains only UI skeleton code. The generated document flags this with an architecture note and points to the actual implementation file, such as uInOutStore.pas for the outstore module.

What diagrams does the generated design document include?▼

Documents include a Mermaid flowchart for business processes, an optional architecture flowchart for complex modules, and a Mermaid erDiagram showing all data tables used by the module with their relationships and primary keys.