{
 "schema_version": 1,
 "generated": "2026-10-19",
 "id": "cathrynlavery-diagram-design--review-plan-diagram-before-coding",
 "repo": "cathrynlavery/diagram-design",
 "repo_url": "https://github.com/cathrynlavery/diagram-design",
 "repo_slug": "cathrynlavery-diagram-design",
 "title": "Draw the plan before your agent writes the code",
 "page_title": "How to draw the plan before your agent writes the code with diagram-design",
 "summary": "Ask for a flow or sequence diagram of a proposed change and approve the design first.",
 "who": "Developer about to hand a multi-step feature to a coding agent who wants to catch design mistakes early",
 "problem": "Agents start coding from a vague plan and the wrong design only shows up after many files change.",
 "outcome": "A sequence or flow diagram of the planned change that you read, correct and approve before any code is written.",
 "steps": [
  "Install the skill with: npx skills add cathrynlavery/diagram-design",
  "Describe the feature, for example: Give me a sequence of a bearer call with token refresh on 401.",
  "Read the diagram and fix any wrong step by telling the agent what to change.",
  "Once the diagram matches your intent, ask the agent to implement it."
 ],
 "agent_prompt": "Before writing code for <feature>, use the diagram-design skill to draw the planned flow as one HTML diagram. Wait for my approval of the diagram, and flag any step where you made an assumption.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "field",
 "caveat": "The diagram only helps if you actually read it before the agent continues. Tell the agent explicitly to stop and wait for approval.",
 "category": "Software & DevOps",
 "tags": [
  "Software & DevOps"
 ],
 "lang": "html",
 "requirements": [
  "An Agent Skills compatible host such as Claude Code, Codex, Cursor, Qoder, GitHub Copilot, Gemini CLI, Cline, Windsurf or Amp",
  "Node.js for the npx install command",
  "A browser to open the generated HTML file",
  "Optional: a public website URL for brand onboarding"
 ],
 "risk": "none",
 "seen_in_the_wild": true,
 "best": false,
 "score": 0.79,
 "evidence": [
  {
   "platform": "reddit",
   "url": "https://i.redd.it/scj22allyuvh1.jpeg",
   "posted": "1792169019"
  }
 ],
 "url": "https://dedupedai.com/use-cases/cathrynlavery-diagram-design/review-plan-diagram-before-coding/",
 "md": "https://dedupedai.com/use-cases/cathrynlavery-diagram-design/review-plan-diagram-before-coding/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."
}
