{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "bybit-exchange-svg-diagram--lint-svg-and-read-json-findings",
 "repo": "bybit-exchange/svg-diagram",
 "repo_url": "https://github.com/bybit-exchange/svg-diagram",
 "repo_slug": "bybit-exchange-svg-diagram",
 "title": "Lint an existing SVG and read findings as JSON",
 "page_title": "How to lint an existing SVG and read findings as JSON with SVG Diagram",
 "summary": "Run svg-lint on a diagram and get each violation with its check id and repair line.",
 "who": "An engineer or agent reviewing a diagram in a pull request who needs to know exactly what breaks the house style.",
 "problem": "A diagram that looks fine can still break viewBox margins, font stacks, arrow markers or escaping, and reviewing those by eye is slow.",
 "outcome": "A list of findings with check ids and repair lines in JSON, plus a clear pass or fail based on 0 errors and 0 warnings.",
 "steps": [
  "Clone the SVG Diagram repository, or install the skill with `npx skills add bybit-exchange/svg-diagram -g`.",
  "Run `node tools/svg-lint/bin/svg-lint.mjs diagram.svg` to see findings in plain text.",
  "Run `node tools/svg-lint/bin/svg-lint.mjs diagram.svg --json` to get the same findings as JSON.",
  "Work through each finding by its check id and repair line, then lint again."
 ],
 "agent_prompt": "In the svg-diagram repo, run node tools/svg-lint/bin/svg-lint.mjs <path/to/file.svg> --json and list each finding's check id and repair line. Confirm the file reports 0 errors and 0 warnings before calling it clean.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The linter reports only what the house style forbids, so a clean run does not prove a diagram is accurate or easy to read.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "Node.js, since svg-lint is plain Node with no packages",
  "A coding agent that loads skills, such as Claude Code, Codex, Cursor or Gemini CLI",
  "npx, to run the skills install command"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/bybit-exchange-svg-diagram/lint-svg-and-read-json-findings/",
 "md": "https://dedupedai.com/use-cases/bybit-exchange-svg-diagram/lint-svg-and-read-json-findings/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/bybit-exchange-svg-diagram--lint-svg-and-read-json-findings.json",
 "api_version": "v1"
}
