GPT_Image_Playground: Instructions file for Claude Code

CLAUDE.md

GPT_Image_Playground CLAUDE.md is an instructions file for Claude Code from insistanan/GPT_Image_Playground. It costs 1,664 tokens per session, scanned A, a copy of GPT_Image_Playground AGENTS.md, MIT.

Project instructions for GPT Image Playground, a local-first web app for generating and editing images with OpenAI or GPT Image workflows. It covers the app’s React, TypeScript, and Vite codebase, including its gallery, sharing, storage, and provider settings.

In plain words
What is it for?
Developing, testing, building, and maintaining the GPT Image Playground application.
Why use it?
It gives a coding agent the project’s architecture, commands, style rules, and important implementation notes before it changes the code.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is insistanan/GPT_Image_Playground's own configuration. It tells Claude Code how to work on GPT_Image_Playground 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 GPT_Image_Playground configures →

Reuse

Borrowing it

Nothing to install: this file belongs to insistanan/GPT_Image_Playground. 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/insistanan/GPT_Image_Playground/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/insistanan/GPT_Image_Playground

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 GPT_Image_Playground CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/insistanan/gpt_image_playground/claude-md/github.svg)](https://agentmods.dev/instructions/insistanan/gpt_image_playground/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/insistanan/gpt_image_playground/claude-md"><img src="https://agentmods.dev/badge/instructions/insistanan/gpt_image_playground/claude-md/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 GPT_Image_Playground CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/insistanan/gpt_image_playground/claude-md"><img src="https://agentmods.dev/badge/instructions/insistanan/gpt_image_playground/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,664 This file is loaded in full into every session.
When invoked 1,664 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.01664 $0.01664
Opus 5 $0.00832 $0.00832
Sonnet 5 $0.00333 $0.00333
Haiku 4.5 $0.00166 $0.00166

Measured 10d ago against content hash def96589e92f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

GPT_Image_Playground CLAUDE.md 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 10d 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.

Origin

This is a copy

100% identical to GPT_Image_Playground AGENTS.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project

GPT Image Playground 是一个面向 OpenAI / GPT Image 工作流的本地优先图片生成与编辑工作台。
当前仓库以前端为主,技术栈为 React 19 + TypeScript + Vite + Zustand,核心能力包括图片生成与编辑、任务画廊、图片分享广场、本地持久化、供应商配置、协议兼容与导入导出。

领域语言与关键概念定义见 CONTEXT.md

Code Style

本文件只保留代码规范摘要,详细规则统一见 docs/code-style.md

  • 使用 TypeScript,保持类型边界清晰、命名明确、职责单一。
  • 优先按功能和领域拆分模块,避免巨型文件和重复实现。
  • 前端的页面、状态、接口适配、共享组件要分层组织。
  • 出错时优先显式报错,不要用静默兜底掩盖问题。

Commands

常用命令如下:

npm install
npm run dev
npm run build
npm run test
npm run test:watch
npm run preview

补充说明:

  • 当前 package.json 已提供 testtest:watch,基于 vitest
  • npm run build 会执行 tsc -b && vite build

Architecture

当前推荐按以下结构理解项目:

.
├─ AGENTS.md
├─ CLAUDE.md
├─ docs/
│  ├─ code-style.md
│  └─ images/
├─ public/
├─ workers/
│  └─ square-api/               图片分享广场 API 的 Cloudflare Worker 第一版实现
├─ src/
│  ├─ app/                      应用级骨架组件
│  ├─ features/                 按功能拆分的业务 UI 模块
│  │  ├─ gallery/
│  │  │  └─ components/
│  │  │     ├─ task-card/       任务卡片继续按预览 / 元信息 / 操作区 / hook 拆分
│  │  │     └─ task-grid/       任务网格继续按容器 / 工具条 / 网格体 / 框选 hook 拆分
│  │  ├─ input/
│  │  │  └─ components/
│  │  │     ├─ input-bar/       输入面板继续按提示词 / 参考图 / 参数 / 本地状态 hook 拆分
│  │  │     ├─ prompt-library-drawer/ 提示词库继续按头部 / 保存表单 / 列表拆分
│  │  │     ├─ search-bar/      搜索栏继续按分类轨道 / 筛选 / 状态 hook / 移动端摘要拆分
│  │  │     └─ size-picker/     尺寸选择器继续按标签区 / 模式面板 / 共享常量拆分
│  │  ├─ settings/
│  │  │  └─ components/
│  │  │     └─ settings-modal/  设置抽屉继续按供应商 / 凭据 / 请求策略 / 数据管理分区拆分
│  │  ├─ square/                图片分享广场,按页面 / 卡片 / 分享弹窗 / API adapter / manifest 构建拆分
│  │  └─ viewer/
│  │     └─ components/
│  │        ├─ detail-modal/    详情弹窗继续按预览区 / 信息区 / 图片状态 hook 拆分
│  │        ├─ image-edit-modal/ 局部编辑弹窗继续按画布区 / 侧栏 / 选区 hook / 状态 hook 拆分
│  │        └─ lightbox/        大图查看继续按状态导航 / 缩放手势 / 视图壳层拆分
│  ├─ hooks/                    自定义 hooks
│  ├─ lib/                      基础能力与适配层
│  │  ├─ api/                   Images / Responses 协议实现
│  │  ├─ db/                    IndexedDB schema / tasks / images 访问拆分
│  │  ├─ devProxy.ts            本地代理辅助
│  │  └─ size.ts                尺寸计算与规整
│  ├─ shared/
│  │  └─ components/            通用组件
│  ├─ store/                    Zustand 状态、切片、任务工作流、导入导出等实现
│  │  └─ slices/                provider / inputDraft / task / viewer / dialog 基础切片
│  ├─ App.tsx                   应用根组件
│  ├─ main.tsx                  入口
│  ├─ store.ts                  Store 统一导出入口
│  └─ types.ts                  全局类型定义
├─ package.json
└─ README.md

Read the full file on GitHub · 108 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. 10d ago First seen · 108 lines · 1,664 tokens per session scan A def96589e92f

Subscribe to this mod's changes

GPT_Image_Playground CLAUDE.md is an instructions file published in the GitHub repository insistanan/GPT_Image_Playground (101 stars, last pushed 2d ago), licensed MIT. It adds 1,664 tokens to every session, about $0.0083 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to GPT_Image_Playground AGENTS.md, differing in 0 lines, and is treated as a copy.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens