{
 "schema_version": 1,
 "generated": "2026-10-30",
 "id": "zseven-w-openpencil--script-designs-with-the-op-cli",
 "repo": "ZSeven-W/openpencil",
 "repo_url": "https://github.com/ZSeven-W/openpencil",
 "repo_slug": "zseven-w-openpencil",
 "title": "Script batch design changes from the terminal with the op CLI",
 "page_title": "How to script batch design changes from the terminal with the op CLI with Openpencil",
 "summary": "Install the op CLI and pipe batch design commands into OpenPencil from files or stdin.",
 "who": "A developer who wants repeatable design updates, such as regenerating screens for each locale or brand.",
 "problem": "Repeating the same design edits by hand across many files is slow and inconsistent.",
 "outcome": "Design changes applied by script with op design and op insert, against the desktop app or web server.",
 "steps": [
  "Install with `curl -fsSL https://raw.githubusercontent.com/ZSeven-W/openpencil/main/scripts/install-op.sh | bash` or Homebrew",
  "Start the desktop app or the web server",
  "Use `op design` and `op insert` with the batch design DSL",
  "Pipe commands in from a file or stdin",
  "Export the updated designs to code"
 ],
 "agent_prompt": "Install the ZSeven-W/openpencil op CLI and write a script that uses op design and op insert to <batch change> across <files>, then export each to <framework>.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "rust",
 "requirements": [
  "macOS, Windows or Linux (desktop) or the web app",
  "An AI model provider key, or Claude Code, Codex or OpenCode via MCP",
  "Homebrew, Scoop or a GitHub Release download"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The install script is piped from GitHub into bash; use Homebrew if you prefer not to run it."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/zseven-w-openpencil/script-designs-with-the-op-cli/",
 "md": "https://dedupedai.com/use-cases/zseven-w-openpencil/script-designs-with-the-op-cli/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/zseven-w-openpencil--script-designs-with-the-op-cli.json",
 "api_version": "v1"
}
