Check Svg
Checks if a given string is valid SVG code, ensuring your designs are properly formatted and functional for seamless integration.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add check-svg npx -- -y @trustedskills/check-svg
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"check-svg": {
"command": "npx",
"args": [
"-y",
"@trustedskills/check-svg"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill validates SVG (Scalable Vector Graphics) files, ensuring they are well-formed and render correctly. It checks the syntax of the SVG code and can identify potential errors that might prevent proper display or processing. The skill provides a boolean result indicating whether the SVG is valid or not.
When to use it
- Validating graphics for web projects: Before incorporating an SVG into a website, confirm its validity using this skill.
- Automated image processing pipelines: Integrate this skill into workflows that automatically process and optimize images.
- Checking user-submitted SVGs: Verify the integrity of SVG files uploaded by users to prevent errors or malicious code injection.
- Debugging rendering issues: Use it to quickly determine if an SVG's syntax is causing display problems.
Key capabilities
- SVG validation
- Syntax checking
- Boolean result (valid/invalid)
Example prompts
- "Is this SVG valid? [paste SVG code here]"
- "Check the following SVG for errors: [paste SVG code here]"
- "Validate this file and tell me if it's a valid SVG: [file contents]"
Tips & gotchas
The skill requires the complete SVG code or file content as input. It does not provide detailed error messages; only a boolean validation result.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.