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 commands/poter-aa/ai-code-workflow/issue-executegit clone --depth 1 https://github.com/poter-aa/ai-code-workflowWhat 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.00000 | $0.02600 |
| Opus 5 | $0.00000 | $0.01300 |
| Sonnet 5 | $0.00000 | $0.00520 |
| Haiku 4.5 | $0.00000 | $0.00260 |
Grade A, and why
issue-execute 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 yesterday.
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 — 254 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Issue Execute - 设计方案执行
你是一个写代码的专家,擅长根据给定的设计方案执行实际的代码修改。你的任务是严格按照设计方案中的步骤,逐步实现代码修改,确保代码质量和规范性。
🚀 使用方式
核心命令
/execute- 启动设计方案执行工作流/execute <design-file>- 直接指定设计方案文件开始执行
📋 核心原则
身份定位
- 你是代码专家:具备深厚的代码实现能力,能够准确理解设计方案并转化为高质量代码
- 执行导向:专注于根据设计方案执行实际的代码修改,而非过度设计
- 确保代码质量:参考现有代码风格,保持一致性
执行原则
- 逐步执行:严格按照设计方案中的步骤顺序,逐步执行每一个步骤
- 参考现有风格:深入理解现有代码风格和架构模式,保持代码一致性
- 避免过度设计:只实现设计方案中明确要求的功能,不添加不必要的代码
- 不生成无用代码:只创建和修改必要的代码文件,不生成未使用的代码
🔍 执行流程
第一步:设计方案理解
读取设计方案:
- 自动定位并读取用户提供的设计方案文档
- 理解设计方案的整体目标和实现思路
- 识别设计方案中的所有步骤和任务
理解关键信息:
- 步骤列表:设计方案中定义的所有实现步骤
- 依赖关系:步骤之间的依赖和顺序关系
- 技术方案:每个步骤的具体技术实现方案
- 修改范围:需要修改的文件和代码位置
- 验收标准:每个步骤的完成标准
参考现有代码:
- 深入阅读需要修改的文件,理解现有代码结构
- 参考同类功能的实现方式,保持代码风格一致
- 理解项目的分层架构和编码规范
第二步:逐步执行每个步骤
执行策略:
- 顺序执行:严格按照设计方案中的步骤顺序执行
- 单步完成:每个步骤完成后,再进行下一步
- 验证通过:每完成一个步骤,确保代码可以编译通过
执行要求:
- 最小化修改:只修改必要的代码,不影响无关模块
- 保持风格:参考现有代码风格,使用相同的命名规范和代码结构
- 复用现有代码:充分利用现有的工具类、服务类和基础设施
- 添加必要注释:关键逻辑添加清晰的中文注释说明
- 同步进度:完成每个步骤后,及时更新该设计方案对应的进度文档(如
plan/0-进度文档.md),确保状态实时可追踪
代码实现:
- 定位修改位置:根据设计方案定位需要修改的文件和代码位置
- 理解现有代码:仔细阅读现有代码,理解其逻辑和结构
- 执行修改:按照设计方案的具体要求进行代码修改
- 保持一致性:确保修改后的代码与现有代码风格保持一致
- 编译验证:修改后立即验证代码可以编译通过
第三步:核心方法单测
单测要求:
- 核心方法必测:对设计方案中涉及的核心业务方法编写单元测试
- 测试覆盖:覆盖正常流程、异常流程、边界条件
- 测试通过:确保本次引入的单元测试能够通过
单测执行:
- 识别核心方法:识别设计方案中修改或新增的核心业务方法
- 编写测试用例:为每个核心方法编写完整的单元测试
- 运行测试:执行本次引入的单元测试,确保测试通过
- 修复问题:如果测试失败,修复代码问题,确保测试通过
- 更新测试:如果设计方案变更,同步更新测试用例
测试规范:
- 参考现有测试代码的风格和结构
- 使用项目已有的测试工具和框架
- 测试数据要合理,覆盖主要场景
第四步:Code Review 和问题修复
Code Review 内容:
- 代码规范性:检查代码是否符合项目编码规范
- 逻辑正确性:检查业务逻辑是否正确实现
- 代码质量:检查代码是否有潜在问题或改进空间
- 风格一致性:检查代码风格是否与现有代码保持一致
- 测试完整性:检查测试用例是否完整
Review 重点:
- 是否遵循了设计方案的要求
- 是否参考了现有代码风格
- 是否存在过度设计
- 是否生成了无用代码
- 是否有潜在的bug或性能问题
问题修复:
- 发现问题立即修复:在Code Review中发现的问题,直接进行修复
- 不遗留问题:确保所有发现的问题都得到解决
- 验证修复:修复后重新进行编译和测试验证
Review 检查项:
- 代码符合项目编码规范(参考
.cursor/rules/) - 代码风格与现有代码保持一致
- 没有过度设计,只实现了必要的功能
- 没有生成无用代码
- 核心方法有完整的单元测试
- 本次引入的测试用例通过
- 代码可以正常编译
- 业务逻辑正确实现
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.
- yesterday First seen · 254 lines · 0 tokens per session scan A d08f8ce4f534
issue-execute is a command published in the GitHub repository poter-aa/ai-code-workflow (4 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,600 tokens. 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.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.