Skip to content

Enhance Mermaid diagram generation and SVG support with guidelines#24

Merged
gvreddy04 merged 15 commits into
mainfrom
features/diagrams-update
Jun 16, 2026
Merged

Enhance Mermaid diagram generation and SVG support with guidelines#24
gvreddy04 merged 15 commits into
mainfrom
features/diagrams-update

Conversation

@gvreddy04

Copy link
Copy Markdown
Contributor

This pull request updates the devspec agent and skill documentation to clarify command boundaries, multi-repo support, diagram generation rules, and platform compatibility. The changes standardize how each skill describes its workflow, required inputs, and integration with multiple AI agents and repositories. There are also important clarifications on how to handle product context, durable principles, operational rules, and diagram formats across the devspec workflow.

Key changes include:

Skill Documentation and Multi-Repo Support:

  • Expanded the descriptions in all .claude/skills/devspec-*/SKILL.md files to clarify support for mono-repo and multi-repo workspaces, and to list compatibility with various AI agents (e.g., Copilot, Claude, OpenAI Codex, Cursor). Each skill now includes step-by-step workflow instructions, emphasizes cross-tool recovery, and documents platform-specific limitations.

Diagram Generation and Format Handling:

  • Standardized diagram output rules: Mermaid is the default, with explicit handling for format=svg and format=mermaid+svg. SVG output now references specific template files for process-flow and architecture diagrams, and all generated SVGs must meet strict validation and security requirements.

Command Boundaries and Routing:

  • Clarified the separation of concerns between commands: product context is kept in devspec/foundation/project-context.md, durable principles in devspec/constitution.md, and operational rules, compliance, enforcement, and delivery gates in devspec/foundation/rules.md. Each command is now explicitly responsible for only its designated area.

Extraction and Diagram Workflow Enhancements:

  • Updated extraction workflow to treat constitution changes as confirmation-gated, route governance and compliance to the appropriate rules file, and respect diagram generation preferences in queue notes. Extraction is now strictly queue-first, with diagram artifacts generated only after approval.

Platform Compatibility and Recovery:

  • Added platform notes for Claude Code and other agents, clarifying how to treat slash commands as workflow intent and where to record unsupported behavior. Emphasized the use of Git-tracked artifacts for recovery before falling back to chat or external sources.

These changes improve clarity, enforce stricter boundaries between different devspec commands, and ensure consistent behavior and documentation across all supported platforms and repository structures.

gvreddy04 added 15 commits June 14, 2026 13:40
…al diagram types and improve documentation clarity
…onality and support for mono-repo and multi-repo workspaces. Update agent constraints to include visual quality standards for diagram generation and ensure adherence to naming conventions and exclusion patterns.
…y and ensure adherence to naming conventions and complexity guardrails.
- Updated `/devspec.diagram` command to support SVG output options, allowing users to specify `format=svg` for SVG-only or `format=mermaid+svg` for both Mermaid and SVG outputs.
- Revised command registry to reflect the new SVG capabilities for diagram generation.
- Enhanced documentation in various files to clarify the use of SVG alongside Mermaid diagrams, including updates to artifact queue, architecture diagrams, and README files.
- Introduced a new SVG template for consistent styling and structure in generated diagrams.
- Established guidelines for naming and storing SVG images in the architecture/images directory, ensuring clarity and organization.
- Updated how temporary work-item diagrams are handled, including SVG storage locations and validation requirements.
… files to ensure consistency and improve visual quality. Preserve SVG and Mermaid formats in queue notes, and update documentation to reflect these changes.
… clarifying file handling and distribution details for improved user guidance.
- Introduced separate SVG templates for architecture diagrams and process flows.
- Updated documentation to reflect the new template paths and usage guidelines.
- Modified tests to validate the new SVG templates and ensure they meet the required standards.
- Ensured generated SVGs are standalone and adhere to XML validation rules.
…ssessments

- Update prompts and handoffs in `devspec.clarify`, `devspec.finalize`, and `devspec.story` agents to improve user guidance and flow.
- Introduce the Readiness Gap Scan Pattern in documentation to standardize readiness assessments before finalization.
- Refine `finalize.md` template to ensure readiness gates are populated from the Readiness Gap Scan.
… product context, durable principles, and operational governance
@gvreddy04 gvreddy04 added this to the 0.1.2 milestone Jun 16, 2026
@gvreddy04 gvreddy04 self-assigned this Jun 16, 2026
@gvreddy04 gvreddy04 merged commit 8fa7ac3 into main Jun 16, 2026
3 checks passed
@gvreddy04 gvreddy04 added the enhancement New feature or request label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant