capwitf/mechanical-cad-skills/cad-reference-acceptance
Claude Code and agent skill by capwitf/mechanical-cad-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when a CAD, DWG, DXF, PDF, SVG, PNG, screenshot, scan, or mechanical drawing is claimed to match, replicate, trace, copy, or visually follow a reference, especially after "looks similar", "复刻", "照着画", "不像", "分格", "逐格", or acceptance concerns.
Install
npx vskill@latest install capwitf/mechanical-cad-skills/cad-reference-acceptanceSKILL.md
CAD Reference Acceptance
Core Rule
Never accept a reference-matched CAD/drawing result from whole-page appearance, file validity, entity count, or one broad crop. A match claim needs numbered local-region evidence from the final delivered file.
Observed failure this skill prevents: a hand-redrawn mechanical sheet passed file checks and coarse crop checks, but failed when split into 16 numbered cells.
Acceptance Gate
Use this gate before saying a reference match is ready:
- Fix the reference source path and final output path.
- Render or open the final output, not a working preview.
- Split both into a numbered grid; default is 4x4, numbered left-to-right, top-to-bottom.
- Compare each cell for pixel similarity, edge difference, line density, text/leader placement, holes, hatches, dimensions, and view boundaries.
- List the worst cells and root class: geometry, proportion, line type, hatch, annotation, layout, export, or stale file.
- If any required cell fails, fix the source of truth and regenerate.
- Save the grid overlay, side-by-side grid, CSV/JSON metrics, and final file evidence.
Do not bury weak cells inside a good average. Report minimum score and worst cell IDs.
Default Thresholds
Use thresholds as tripwires, not proof:
| Check | Default | |
|---|---|---|
| grid | 4x4 | |
| minimum cell similarity | >= 0.94 | |
| average cell similarity | >= 0.95 | |
| maximum edge difference | <= 0.08 |
If the reference is a noisy scan, photo, compressed image, or intentionally redrawn semantic CAD, adjust thresholds but state the reason.
Visual vs Editable CAD
Choose and state the target:
| Target | Acceptance focus | Risk label | |
|---|---|---|---|
| Visual replica | grid similarity, local outlines, text appearance, hatches | Text/dimensions may be outlines or hatches | |
| Editable CAD drawing | LINE/ARC/MTEXT/DIMENSION objects, layers, scale, CAD semantics | Visual similarity may be lower until manually aligned |
Do not deliver a traced outline file while implying it is an editable engineering drawing. Do not deliver editable but rough CAD while implying visual replication.
Script
Use scripts/grid_acceptance.py when reference and output can be rendered as images or PDFs:
The script writes:
grid_acceptance.jsongrid_acceptance.csvreference_grid.pngcandidate_grid.pngside_by_side_grid.png
Required Report
Report:
- reference source used,
- final output file checked,
- grid size and thresholds,
- min/average similarity,
- worst cell IDs,
- whether all cells passed,
- root causes for failed cells,
- final file checks and any unverified claims.
Common Mistakes
- Treating PDF/DXF/DWG existence as match evidence.
- Comparing only the whole sheet or one large view crop.
- Reporting average similarity without the minimum and worst cells.
- Comparing a preview while delivering a stale CAD file.
- Mixing visual-trace output with editable-CAD claims.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcad-reference-acceptance/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/capwitf/mechanical-cad-skills/cad-reference-acceptance)