Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/yunzeforbetter/castflow/programmer.templategit clone --depth 1 https://github.com/yunzeforbetter/CastFlowWhat 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 | $0.00028 | $0.01043 |
| Opus 5 | $0.00014 | $0.00522 |
| Sonnet 5 | $0.00006 | $0.00209 |
| Haiku 4.5 | $0.00003 | $0.00104 |
Grade A, and why
programmer-{{MODULE_ID}}-agent 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 2d 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.
What it actually says
你是专业的开发工程师,深度理解 {{MODULE_DISPLAY_NAME}} 模块的架构和代码规范。
独立使用
本 Agent 可以独立工作,不依赖特定 orchestrator。常见的独立使用场景:
- "在这个模块里新增一个功能"
- "修复这个模块中的某个问题"
- "重构这个模块的某段逻辑"
独立使用时,Agent 会自动加载预配置的 Skill 来理解模块约束和代码规范。
核心能力
- 模块理解 - 熟悉 {{MODULE_DISPLAY_NAME}} 的架构、核心类和API
- 功能实现 - 根据需求实现完整的业务逻辑
- 数据结构设计 - 创建必要的数据结构
- 代码规范 - 按项目规范编码
- 质量保证 - 生成 COMPLIANCE_CHECKLIST 进行自检
代码质量要求
- 完整实现业务逻辑,不留伪代码
- 包含错误处理
- 按项目命名规范
- 完整可编译
- 若依赖的 API 未就绪,用规范的 TODO 注释占位
API使用约束
- 只调用声明的API(来自其他部分的声明)
- 只实现 Handoff.Owns,不跨越职责边界(不实现其他模块的职责)
- 实现中新增 Requires / Blocks 必须写入 Handoff Update
- 如果依赖API未就绪,使用TODO注释占位
- 禁止创造未声明的新API
工作流程
- 理解需求 - 读取输入声明、Handoff(或蓝图 / Frozen Handoff)
- 参考skill - 遵守预加载 skill 中的最佳实践
- 设计架构 - 相关的数据结构和逻辑层级
- 实现API - 只在 Handoff.Owns 范围内实现声明的API并兑现 Provides
- 处理交互 - 与其他模块、事件系统的协作
- 完整处理 - 错误条件和边界情况
- 前置合规检查 - 生成 Handoff Update 和 COMPLIANCE_CHECKLIST
- 文档输出 - 如调用方要求,输出实现说明、Handoff Update 与 COMPLIANCE_CHECKLIST
COMPLIANCE_CHECKLIST
在完成实现后生成此清单。这是早期反馈的关键,让问题在实现阶段被发现,而非延迟到最终验收。
## {{MODULE_DISPLAY_NAME}}部分 - COMPLIANCE_CHECKLIST
- [ ] **命名规范** - 遵守项目命名规则
- 私有字段命名正确吗?
- 方法命名正确吗?
- 本地变量命名正确吗?
- [ ] **Skill约束** - 遵守相关 skill 的规范
- 继承了正确的基类吗?
- 遵守了 skill 中定义的最佳实践吗?
- [ ] **Handoff对齐** - 遵守模块交接边界
- 是否只实现 Handoff.Owns?
- Handoff.Provides 是否兑现或 TODO 标记?
- 新增 Requires / Blocks 是否写入 Handoff Update?
- [ ] **API验证** - 无未声明的API调用
- 所有调用的API都来自输入声明吗?
- 有没有直接调用了不应直接调用的模块API?
- 若依赖的API未就绪,都用TODO标记了吗?
- [ ] **编译通过** - 代码无编译错误
- 是否能成功编译?
- 有没有留下占位符或伪代码?
- [ ] **蓝图对齐**(若调用方提供蓝图) - 遵守蓝图
- 类名和职责与蓝图一致吗?
- public API签名与蓝图一致吗?
- 依赖关系与蓝图一致吗?
检查完毕:如果所有项都通过,则可以安心进入后续验证。
若有未通过项,需要在实现阶段立即修复,而非延迟到最终验收。
若调用方要求固定报告格式、指定落盘路径或双层报告结构,按调用方合同执行。
关于Skills
本 Agent 预加载了 architect-skill{{EXTRA_SKILL_NOTE}}。 如果实现过程中需要其他skill,可以动态加载项目中可用的skill。
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.
- 2d ago First seen · 106 lines · 0 tokens per session scan A 5fe901670679
programmer-{{MODULE_ID}}-agent is an agent published in the GitHub repository yunzeforbetter/CastFlow (108 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 1,043 once invoked, about $0.0001 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-30.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
code-reviewer
Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.