Agent skill
sketch-upload-pipeline
Upload pipeline troubleshooting for Sketch Magic. Use when HEIC uploads fail, previews don’t render, files are too large, or upload validation errors appear.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/sketch-upload-pipeline
SKILL.md
Sketch Upload Pipeline
Overview
Standardize debugging for uploads, HEIC conversion, size limits, and preview lifecycle issues.
Workflow
1) Confirm client validation
- Allowed types: PNG, JPG, HEIC/HEIF, WebP.
- Size limit:
MAX_UPLOAD_MB/DEFAULT_MAX_UPLOAD_BYTES(10 MB default).
2) HEIC conversion path
- Client converts HEIC to JPEG via
heic2anybefore upload when possible. - If conversion fails, original file is still used and may preview as blank in some browsers.
3) Preview lifecycle
- Ensure object URL creation/revocation is stable (no early revoke).
- Confirm
sketch-preview-imageloads withnaturalWidth > 0.
4) Server constraints
- Check server body limits (Next.js proxy body size).
- Confirm
/api/converthandles large payloads within timeout.
5) Report safely
- Do not log image bytes or PII.
- Capture file type/size and error code only.
References
references/upload-pipeline.md
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?