image-generate-mcp-remote: Instructions file for Codex

AGENTS.md

image-generate-mcp-remote AGENTS.md is an instructions file for Codex, OpenCode from zztdandan/image-generate-mcp-remote. It costs 1,110 tokens per session, scanned A, original, MIT.

A set of Python coding rules for the image-generate-mcp-remote project. It covers type annotations, JSON data, enums, constants, and structured function inputs and outputs.

In plain words
What is it for?
Use it when writing or reviewing Python functions, classes, JSON handling, fixed value sets, and structured parameters or return values.
Why use it?
It reduces unclear or overly broad types and keeps related values consistent across the codebase. This makes the intended shape of data easier to understand and check.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is zztdandan/image-generate-mcp-remote's own configuration. It tells Codex and OpenCode how to work on image-generate-mcp-remote 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 image-generate-mcp-remote configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zztdandan/image-generate-mcp-remote. 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/zztdandan/image-generate-mcp-remote/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/zztdandan/image-generate-mcp-remote

Made for: Codex, OpenCode.

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 image-generate-mcp-remote AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zztdandan/image-generate-mcp-remote/agents-md.svg)](https://agentmods.dev/instructions/zztdandan/image-generate-mcp-remote/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/zztdandan/image-generate-mcp-remote/agents-md"><img src="https://agentmods.dev/badge/instructions/zztdandan/image-generate-mcp-remote/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,110 This file is loaded in full into every session.
When invoked 1,110 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 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.01110 $0.01110
Opus 5 $0.00555 $0.00555
Sonnet 5 $0.00222 $0.00222
Haiku 4.5 $0.00111 $0.00111

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

Security

Grade A, and why

image-generate-mcp-remote AGENTS.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 7d 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.

AGENTS.md · 97 lines

How it starts

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

AGENTS Handbook (image-generate-mcp-remote)

本文件定义 image-generate-mcp-remote/ 范围内的 Python 编码规范。

1) 类型标注总原则

  • 所有 Python 函数的入参、返回值必须显式标注类型。
  • 所有类变量、实例变量必须显式标注类型。
  • 禁止在业务代码的函数入参、返回值、类变量定义中直接使用 Any
  • 若能确定具体类型,必须写具体类型;不得为了省事退化成 Anyobject、宽泛 dict 或宽泛 list

2) JSON 相关类型约定

涉及通用 JSON 数据时,统一优先使用以下类型别名语义:

from typing import TypeAlias

JSONScalar: TypeAlias = str | int | float | bool | None
JSONValue: TypeAlias = JSONScalar | list["JSONValue"] | dict[str, "JSONValue"]
JSONMap: TypeAlias = dict[str, JSONValue]
  • 若值可明确为某个结构体,不得继续使用 JSONMap 兜底,必须定义真实类型。
  • JSONScalar 仅用于确属标量的值;不要把有明确业务含义的字段长期保留为裸 str 或裸 int

3) 枚举与常量

  • 若某字段是字符串枚举或数字枚举,必须定义枚举类型,不得在代码中散落魔法字面量。
  • 字符串枚举优先使用 StrEnum;数字枚举按语义使用 IntEnumEnum
  • 真正使用该值时,应引用枚举成员,而不是再次手写原始字串或数字。
  • 若某值是固定定值且具有明确业务意义,必须提取为命名常量,不得直接硬编码。

示例:

from enum import StrEnum

REQUEST_STATUS_PENDING = "pending"


class RequestStatus(StrEnum):
    PENDING = "pending"
    RUNNING = "running"
    DONE = "done"
  • 若该值属于“有限候选集合”,优先建枚举。
  • 若该值属于“单一协议常量 / 元数据键 / 固定开关值”,优先建常量。

4) 结构化参数与返回值

  • 若函数参数本质上是一个固定结构,不得使用 tuple[...] 位置拼装多个值传递业务语义。
  • 不得使用 dict[str, Any]dict[str, object] 表达稳定结构的入参或返回值。
  • 对于稳定结构,必须定义真实类型,如 dataclasspydantic.BaseModel、具名类。
  • 若返回值包含多个具名字段,同样优先返回结构化对象,而不是匿名元组或宽泛字典。

推荐方向:

  • 领域/服务层稳定载荷:优先 dataclasspydantic.BaseModel
  • 配置对象:优先 BaseModel 或明确配置类
  • 协议对象:优先具名模型类与类型别名组合

5) 宽泛类型禁用清单

以下写法在本目录范围内默认禁止,除非是三方库边界适配且无法收窄:

  • Any
  • dict[str, Any]
  • list[Any]
  • tuple[Any, ...]
  • 无业务语义的裸 object

如确实处于外部系统边界,必须先在边界层完成解析、校验、收窄,再进入业务代码。

6) 建模要求

  • 参数一旦存在业务名称、业务约束、字段含义,就应建模,不要把结构藏在 tuple 下标或 dict key 里。
  • 类字段类型应直接表达真实含义,例如状态、模式、资源类型、事件名,应优先使用枚举或具名类型。
  • 不允许因为“当前先跑通”而省略类型;类型本身就是可读性与可靠性的一部分。

7) 代码评审判定标准

出现以下情况,视为不符合本规范:

  • 新增函数参数或返回值含 Any
  • 新增类字段使用 Any
  • 业务枚举值仍以裸字符串/裸数字直接流转
  • 固定结构仍以 tupledict[str, Any]、匿名字典传递
  • 明明可以写成具体类型,却退化为宽泛类型

8) 落地优先级

  • 第一优先级:新增代码必须完全遵守本规范。
  • 第二优先级:修改旧代码时,若触达相关函数、模型、字段,应顺手把对应类型收窄到本规范要求。
  • 第三优先级:所有新增协议常量、状态值、事件值、模式值,应在首次引入时完成枚举或常量化。

Read the full file on GitHub · 97 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. 7d ago First seen · 97 lines · 1,110 tokens per session scan A 4209fc400b0b

Subscribe to this mod's changes

image-generate-mcp-remote AGENTS.md is an instructions file published in the GitHub repository zztdandan/image-generate-mcp-remote (0 stars, last pushed 2d ago), licensed MIT. It adds 1,110 tokens to every session, about $0.0056 per session on Opus 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-31.

Related

Other instructions, from other repositories

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,182 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

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

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

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

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens