Skip to content

Add compile command, require to compile .mmd#1

Open
andywangyzfh wants to merge 2 commits into
GarrickZ2:masterfrom
andywangyzfh:feat/export
Open

Add compile command, require to compile .mmd#1
andywangyzfh wants to merge 2 commits into
GarrickZ2:masterfrom
andywangyzfh:feat/export

Conversation

@andywangyzfh
Copy link
Copy Markdown

Summary

Introduces a new Compile command that exports existing technical design artifacts into a human-readable technical design document under assets/exports/.

Enhances the design workflow to validate Mermaid diagram syntax and fix errors before presenting diagrams to the user.

Details

New resources/commands/archie-compile.yaml command reads design artifacts (features/, workflow/, api/, storage.md, metrics.md, dependency.md, background.md, glossary.md) and synthesizes them into a structured technical design document focused on readability, not copy-paste.

The generated document follows a standard structure (Overview, Requirements, Architecture, Workflow, API Design, Data Model, Metrics & Monitoring, Dependencies, Open Questions) with clear guidelines and guard checks on feature status and required artifacts.

Updates resources/commands/archie-design.yaml to add a validation step for Mermaid diagrams, require both flowchart and sequence diagrams, and ensure syntax errors are fixed before diagrams are shown to the user.

Motivation

Makes it easier for engineers and stakeholders to consume designs without digging through multiple raw files or code.

Improves reliability of generated diagrams by catching and correcting Mermaid syntax issues early in the interactive design flow.

Testing

Ran archie-design to generate diagrams and verified that syntax validation and error-fix behavior run before user approval.

Ran archie-compile on an existing design and confirmed the output assets/exports/tech-design-*.md is generated with the expected structure and content transformation.

@andywangyzfh andywangyzfh changed the title Add compile command & Ask agent to fix mermaid Add compile command, require to compile .mmd Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants