Improve complex mechanical/illustrative diagram quality#21
Merged
GeneralJerel merged 2 commits intomainfrom Mar 23, 2026
Merged
Improve complex mechanical/illustrative diagram quality#21GeneralJerel merged 2 commits intomainfrom
GeneralJerel merged 2 commits intomainfrom
Conversation
Defines 5 concrete problems with current diagram generation (rough shapes, floating components, disconnected controls, thin skill guidance, oversimplified sub-diagrams) and proposes 5 PRs to fix them: 1. Expand illustrative diagram rules in svg-diagram-skill.txt 2. Add diagram planning protocol (pre-generation thinking step) 3. Add progressive rendering pattern for interactive diagrams 4. Create dedicated mechanical-illustration-skill.txt 5. Add SVG shape library with reusable path fragments All changes are skill/prompt file modifications only — no code changes. https://claude.ai/code/session_0116PYmVGknEBVfUU8xZT78B
Expands the agent's skill files to produce higher-quality mechanical
and illustrative diagrams (cars, airplanes, engines, etc.):
1. Expand illustrative diagram rules in svg-diagram-skill.txt:
- Composition grid zones (illustration, annotation margin, sub-diagram)
- Depth layering order for proper visual stacking
- Shape construction from geometric primitives (not freehand paths)
- Force/motion arrow conventions with color coding
- Annotation hierarchy (primary/secondary/tertiary tiers)
- Cross-section vs side-view guidance
2. Add diagram planning protocol (pre-generation thinking step):
- Subject decomposition, educational priority, spatial layout
- Composition sketch, shape fidelity check, control-to-visual mapping
3. Add progressive rendering pattern for interactive diagrams:
- Centralized state-and-render JS architecture
- Element ID convention (viz-{component}-{property})
- Preset button pattern with slider sync
4. Create mechanical-illustration-skill.txt:
- Shape construction method with worked car/airplane examples
- Spatial accuracy rules with grid overlay technique
- Sub-diagram quality standards (no placeholder rectangles)
- Interactive control binding template with compute/render pattern
5. Add svg-shape-library.txt with reusable path fragments:
- Vehicle profiles (sedan, airplane)
- Mechanical parts (gear, piston, wheel)
- Physics shapes (airfoil, force arrows)
- Annotation elements (zoom callout, dimension lines)
- Control surfaces (rudder, aileron, elevator)
All changes mirrored to both agent and MCP skill directories.
https://claude.ai/code/session_0116PYmVGknEBVfUU8xZT78B
GeneralJerel
pushed a commit
that referenced
this pull request
Mar 23, 2026
Approve with suggestions. Key findings: - Well-structured prompt-only changes (no runtime code modifications) - 4 complementary skill files forming a coherent diagram improvement system - Suggestions: monitor token budget, deduplicate agent/mcp skills, move issue proposal to GitHub Issue, broaden domain coverage https://claude.ai/code/session_01NvdQBhgYLjhtKQdAZFcKXx
Collaborator
Author
Self-Review FindingsVerdict: No merge block — P0=0, P1=2, P2=4, P3=2
Context Budget Impact
Testing Gaps
Self-review by Claude Code |
This was referenced Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan