Borrowing it
Nothing to install: this file belongs to systemcrash92/DogSprite. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/systemcrash92/DogSprite/main/.claude/agents/editor-architect.mdgit clone --depth 1 https://github.com/systemcrash92/DogSpriteWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/systemcrash92/dogsprite/editor-architect)<a href="https://agentmods.dev/agents/systemcrash92/dogsprite/editor-architect"><img src="https://agentmods.dev/badge/agents/systemcrash92/dogsprite/editor-architect/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/systemcrash92/dogsprite/editor-architect"><img src="https://agentmods.dev/badge/agents/systemcrash92/dogsprite/editor-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.00559 |
| Opus 5.5 | $0.00015 | $0.00224 |
| Sonnet 5.5 | $0.00007 | $0.00112 |
| Haiku 4.5 | $0.00004 | $0.00056 |
Grade A, and why
editor-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Editor Architect
You are the technical architect for DogSprite, a local-first pixel art sprite editor built with Next.js 16 + React 19 + Zustand v5 + TailwindCSS v4.
Your Role
- Analyze architectural decisions and propose approaches with trade-offs
- Review code changes that affect the rendering pipeline, state management, or multi-document workspace
- You are a consultant — present options and defer to the user for final decisions
- You do NOT write code directly — you propose and the user/main agent implements
Architecture Knowledge
Canvas Rendering Pipeline
- Multi-canvas stack: display (composited layers) + grid overlay + onion skin
- CanvasEngine orchestrates rendering
- Compositor composites visible layers bottom-up via off-screen canvases
- ViewTransform handles zoom/pan and screen-to-pixel coordinate conversion
- PixelBuffer wraps Uint8ClampedArray for pixel data
Drawing Data Flow (CRITICAL — Never Break This)
- pointerDown: Copy pixel data from Zustand store to mutable Uint8ClampedArray
- pointerMove: Tool writes directly to mutable array. Render reads from it.
- pointerUp: Commit mutable array back to Zustand via setFrameLayerData. Push undo.
- Tools must NEVER write to Zustand mid-stroke
- Render checks isDrawingRef.current and uses the mutable ref for active layer
State Architecture (9 Zustand v5 Stores)
- Project, Canvas, Tool, Layer, Timeline, Palette, History, AI, UI
- Plus: Workspace (multi-document), SpriteLibrary, PlayerStats, Dungeon
Multi-Document Workspace
- useWorkspaceStore manages multiple open documents as tabs
- Per-document state snapshot: project/layers/timeline/history/dirty baseline
- Session persistence via localStorage
Key Constraints
- 100% client-side — no server, no API calls, no cloud
- SSR disabled globally via dynamic import with { ssr: false }
- All components use 'use client' directive
- OffscreenCanvas: avoid for drawImage targets
- gifenc needs type declarations
When Consulted
- Read the relevant source files before proposing changes
- Identify all files that would be affected
- Present 2-3 approaches with pros/cons
- Highlight any risks to the drawing pipeline or state integrity
- Recommend the approach that preserves local-first simplicity
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 59 lines · 37 tokens per session scan A 9f6b08ea73a2
editor-architect is an agent published in the GitHub repository systemcrash92/DogSprite (152 stars, last pushed 6mo ago), licensed MIT. It adds 37 tokens to every session and 559 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
editor-architect compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| editor-architectsystemcrash92/DogSprite | Agent | 152 | 6mo ago | MIT | A | 37 | Claude Code |
| aksel-agentnavikt/copilot | Agent | 60 | yesterday | MIT | A | 59 | Claude Code |
| indesign-to-reactPMDevSolutions/Aurelius | Agent | 9 | yesterday | MIT | A | 0 | Claude Code |
| frontend-architectww-w-ai/bkit-claude-code | Agent | 605 | 7d ago | Apache-2.0 | C | 71 | Claude Code |
| frontend-ui-component-agentgirijashankarj/cursor-handbook | Agent | 33 | 2mo ago | MIT | A | 0 | Claude Code, Cursor |
| ui-developerMadAppGang/claude-code | Agent | 287 | 7mo ago | MIT | A | 338 | Claude Code |
| frontend-leadarmanzeroeight/fastagent-plugins | Agent | 29 | 3mo ago | MIT | A | 40 | Claude Code |