Agent skill
architecture-to-json
Guide for extracting architectural diagrams, flowcharts, and sequence diagrams into a structured JSON format. Use this skill when you need to transform a visual or textual description of a system architecture or workflow into a clear, structured JSON representation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/architecture-to-json
SKILL.md
Architecture/Diagram To JSON
Overview
This skill provides a standardized workflow for converting various diagram types (System Architecture, Flowcharts, Sequence Diagrams) into a structured JSON format.
Workflow
- Identify Diagram Type: Determine if the source is an Architecture Diagram, a Flowchart, or a Sequence Diagram.
- Load Reference: Based on the identified type, read the corresponding guideline file:
- Architecture Diagram: Read
references/architecture.md - Flowchart: Read
references/flowchart.md - Sequence Diagram: Read
references/sequence.md
- Architecture Diagram: Read
- Map to JSON: Use the schema defined in the loaded reference file to structure the data.
- Enforce Constraints: Ensure nesting and structure follow the guidelines in the reference file.
- Summarize Results: Provide a brief summary of the extracted elements (e.g., component count, steps, or swimlanes).
Output Requirements
When using this skill, your output should include:
- The complete JSON structure.
- A brief summary of the extracted content (relevant to the diagram type).
- Notes on any adaptations or assumptions made during extraction.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?