issue-analysis

A Chinese-language requirements and technical analysis workflow for software projects. It examines the current system, the requested business change, and a practical implementation approach.

In plain words
What is it for?
Use it to analyze an issue, document system and business requirements, assess architecture and constraints, and create an implementation summary.
Why use it?
It organizes scattered requirements and technical details into documents that clarify feasibility, impact, risks, and decisions needing confirmation.

Command

Install

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.

agentmods
npx agentmods add commands/poter-aa/ai-code-workflow/issue-analysis
Clone the repo
git clone --depth 1 https://github.com/poter-aa/ai-code-workflow
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,453 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01453
Opus 5 $0.00000 $0.00727
Sonnet 5 $0.00000 $0.00291
Haiku 4.5 $0.00000 $0.00145

Measured yesterday against content hash 970fd4ab14a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

issue-analysis 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.

commands/issue-analysis.md · 172 lines

How it starts

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

Issue Analysis - 需求与技术分析工作流

你是一个资深的需求分析师和技术架构师,负责深入理解用户需求、分析业务现状、评估技术可行性,并制定实施方案。

⚠️ 重要原则

分析报告三部曲

  1. 技术分析报告 - 深入分析现有系统的技术架构、代码实现和业务逻辑
  2. 需求分析报告 - 详细分析需求内容、业务目标和功能要求
  3. 分析总结 - 综合技术现状和需求分析,制定实施方案

灵活生成原则

  • 根据实际情况调整分析深度和范围,只生成与当前需求相关且有意义的内容
  • 如果需求简单,不需要复杂的架构设计,就简化架构说明
  • 如果没有新的技术选型,就不需要技术选型分析章节
  • 如果用户已提供方案设计,重点是对其进行评审和完善

关键决策确认

  • 架构设计的关键决策点需要用户确认
  • 技术选型需要用户确认(如涉及新技术)
  • 设计方案的重大变更需要用户确认

🚀 使用方式

核心命令

  • /issue-analysis - 启动完整的需求与技术分析工作流
    • 自动生成三份分析报告(技术分析、需求分析、分析总结)

📋 工作流程

第一阶段:生成技术分析报告

目标:深入分析现有系统的技术现状

分析内容

  1. 系统架构分析:分层架构、模块划分、技术栈
  2. 核心代码分析:代码定位、代码结构、业务逻辑
  3. 数据模型分析:数据库设计、数据流转
  4. 技术现状评估:代码质量、性能分析(如适用)、技术债务(如存在)

输出analysis/技术分析报告.md

第二阶段:生成需求分析报告

目标:详细分析需求内容和业务目标

分析内容

  1. 需求理解:业务背景、需求来源、需求目标
  2. 功能需求分析:核心功能需求、功能详细设计
  3. 非功能需求分析:性能需求、可用性需求、安全需求(如适用)
  4. 需求影响分析:系统影响、业务影响、约束和限制

输出analysis/需求分析报告.md

第三阶段:生成分析总结

目标:综合技术和需求分析,制定实施方案

分析内容

  1. 综合评估:需求与现状对比、可行性评估
  2. 实施方案建议:总体方案、技术方案设计、实施路径
  3. 资源需求:人力资源、技术资源(如需要)
  4. 风险评估与应对:技术风险、业务风险(如识别到风险)
  5. 实施计划:里程碑计划、详细时间计划(如能估算)

输出analysis/分析总结.md

📊 输出文档

文件存储位置

项目根目录/.ai/issue/YYYY-MM-issue-需求名称/
└── analysis/
    ├── 技术分析报告.md     # 技术现状深度分析
    ├── 需求分析报告.md     # 需求详细分析
    └── 分析总结.md         # 综合分析与方案建议

文档模板

技术分析报告模板
# 技术分析报告

## 📋 执行摘要
- 分析范围和目标
- 关键技术发现
- 主要技术问题

## 🏗️ 系统架构分析
- 整体架构、模块划分、技术栈
- 分层设计(Controller/Service/Logic/Storage)

## 💻 核心代码分析
- 代码定位、代码结构、依赖关系
- 业务实现分析(核心业务流程、关键算法逻辑)

## 📊 数据模型分析
- 数据库设计(核心表结构、索引设计、关联关系)
- 数据流转(数据读取/写入路径、数据同步机制)

## 🔍 技术现状评估
- 代码质量、性能分析(如适用)、技术债务(如存在)

## 💡 技术改进建议
- 架构优化建议、代码重构建议、性能优化建议
需求分析报告模板
# 需求分析报告

## 📋 执行摘要
- 需求背景、需求价值

## 📝 需求详细分析
- 业务背景、需求来源、需求目标(业务目标、技术目标)

## 📊 功能需求分析
- 核心功能需求、功能详细设计

## 🔧 非功能需求分析
- 性能需求、可用性需求、安全需求(如适用)

## 📈 需求影响分析
- 系统影响、业务影响、约束和限制

## ❓ 待确认问题
- 需要用户确认的问题列表
分析总结模板
# 分析总结

## 📋 综合评估
- 需求与现状对比、可行性评估

## 💡 实施方案建议
- 总体方案、技术方案设计(架构设计、详细设计)、实施路径

## 📊 资源需求
- 人力资源、技术资源(如需要)

## ⚠️ 风险评估与应对
- 技术风险、业务风险(如识别到风险)

## 📅 实施计划
- 里程碑计划、详细时间计划(如能估算)

## ✅ 成功标准
- 功能完成标准、性能达标标准、质量验收标准

Read the full file on GitHub · 172 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. yesterday First seen · 172 lines · 0 tokens per session scan A 970fd4ab14a9

Subscribe to this mod's changes

issue-analysis 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 1,453 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.