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.
curl -O https://raw.githubusercontent.com/zztdandan/image-generate-mcp-remote/main/AGENTS.mdgit clone --depth 1 https://github.com/zztdandan/image-generate-mcp-remoteWrote 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/instructions/zztdandan/image-generate-mcp-remote/agents-md)<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/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/instructions/zztdandan/image-generate-mcp-remote/agents-md"><img src="https://agentmods.dev/badge/instructions/zztdandan/image-generate-mcp-remote/agents-md.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.01110 | $0.01110 |
| Opus 5.5 | $0.00444 | $0.00444 |
| Sonnet 5.5 | $0.00222 | $0.00222 |
| Haiku 4.5 | $0.00111 | $0.00111 |
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 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 — 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。 - 若能确定具体类型,必须写具体类型;不得为了省事退化成
Any、object、宽泛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;数字枚举按语义使用IntEnum或Enum。 - 真正使用该值时,应引用枚举成员,而不是再次手写原始字串或数字。
- 若某值是固定定值且具有明确业务意义,必须提取为命名常量,不得直接硬编码。
示例:
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]表达稳定结构的入参或返回值。 - 对于稳定结构,必须定义真实类型,如
dataclass、pydantic.BaseModel、具名类。 - 若返回值包含多个具名字段,同样优先返回结构化对象,而不是匿名元组或宽泛字典。
推荐方向:
- 领域/服务层稳定载荷:优先
dataclass或pydantic.BaseModel - 配置对象:优先
BaseModel或明确配置类 - 协议对象:优先具名模型类与类型别名组合
5) 宽泛类型禁用清单
以下写法在本目录范围内默认禁止,除非是三方库边界适配且无法收窄:
Anydict[str, Any]list[Any]tuple[Any, ...]- 无业务语义的裸
object
如确实处于外部系统边界,必须先在边界层完成解析、校验、收窄,再进入业务代码。
6) 建模要求
- 参数一旦存在业务名称、业务约束、字段含义,就应建模,不要把结构藏在 tuple 下标或 dict key 里。
- 类字段类型应直接表达真实含义,例如状态、模式、资源类型、事件名,应优先使用枚举或具名类型。
- 不允许因为“当前先跑通”而省略类型;类型本身就是可读性与可靠性的一部分。
7) 代码评审判定标准
出现以下情况,视为不符合本规范:
- 新增函数参数或返回值含
Any - 新增类字段使用
Any - 业务枚举值仍以裸字符串/裸数字直接流转
- 固定结构仍以
tuple、dict[str, Any]、匿名字典传递 - 明明可以写成具体类型,却退化为宽泛类型
8) 落地优先级
- 第一优先级:新增代码必须完全遵守本规范。
- 第二优先级:修改旧代码时,若触达相关函数、模型、字段,应顺手把对应类型收窄到本规范要求。
- 第三优先级:所有新增协议常量、状态值、事件值、模式值,应在首次引入时完成枚举或常量化。
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 · 97 lines · 1,110 tokens per session scan A 4209fc400b0b
image-generate-mcp-remote AGENTS.md is an instructions file published in the GitHub repository zztdandan/image-generate-mcp-remote (0 stars, last pushed 12d ago), licensed MIT. It adds 1,110 tokens to every session, about $0.0044 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-31.
image-generate-mcp-remote AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| image-generate-mcp-remote AGENTS.mdzztdandan/image-generate-mcp-remote | Instructions file | 0 | 12d ago | MIT | A | 1,110 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |