DogSprite: Agent for Claude Code

.claude/agents/editor-architect.md

editor-architect is an agent for Claude Code from systemcrash92/DogSprite. It costs 37 tokens per session (559 once invoked), scanned A, original, MIT.

An architecture adviser for DogSprite, a local-first pixel-art editor built with Next.js, React, Zustand, and Tailwind CSS. It focuses on the editor's workspace, canvas rendering, drawing pipeline, and state management.

In plain words
What is it for?
Use it to review or plan changes to rendering, multi-document workspaces, application state, canvas behavior, and drawing tools. It gives recommendations but does not write the code.
Why use it?
It helps uncover design trade-offs and avoid breaking how pixel data moves between drawing tools, the canvas, undo history, and saved state.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is systemcrash92/DogSprite's own configuration. It tells Claude Code how to work on DogSprite itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DogSprite configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/systemcrash92/DogSprite/main/.claude/agents/editor-architect.md
Clone the repo
git clone --depth 1 https://github.com/systemcrash92/DogSprite

Made for: Claude Code.

Wrote 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.

agentmods badge for editor-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/systemcrash92/dogsprite/editor-architect/github.svg)](https://agentmods.dev/agents/systemcrash92/dogsprite/editor-architect)
Your own site
<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.

agentmods 80×15 button for editor-architect

Your own site · 80×15
<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>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 9f6b08ea73a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/agents/editor-architect.md · 59 lines

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)

  1. pointerDown: Copy pixel data from Zustand store to mutable Uint8ClampedArray
  2. pointerMove: Tool writes directly to mutable array. Render reads from it.
  3. 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

  1. Read the relevant source files before proposing changes
  2. Identify all files that would be affected
  3. Present 2-3 approaches with pros/cons
  4. Highlight any risks to the drawing pipeline or state integrity
  5. Recommend the approach that preserves local-first simplicity

Read the full file on GitHub · 59 lines

Changes

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.

  1. 2mo ago First seen · 59 lines · 37 tokens per session scan A 9f6b08ea73a2

Subscribe to this mod's changes

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.

Related

editor-architect compared with agents from other repositories

editor-architect next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
editor-architectsystemcrash92/DogSpriteAgent1526mo agoMITA37Claude Code
aksel-agentnavikt/copilotAgent60yesterdayMITA59Claude Code
indesign-to-reactPMDevSolutions/AureliusAgent9yesterdayMITA0Claude Code
frontend-architectww-w-ai/bkit-claude-codeAgent6057d agoApache-2.0C71Claude Code
frontend-ui-component-agentgirijashankarj/cursor-handbookAgent332mo agoMITA0Claude Code, Cursor
ui-developerMadAppGang/claude-codeAgent2877mo agoMITA338Claude Code
frontend-leadarmanzeroeight/fastagent-pluginsAgent293mo agoMITA40Claude Code