analyze-project
它能做什么
这个工具用来分析一个借助 AI 完成的编程项目是怎么做出来的。它会梳理发生了什么、为什么会发生,谁或什么导致了问题,以及下次该如何改进。
适用场景
- ✓当你想弄清楚某个 AI 项目为什么出了问题或改动特别多时。
- ✓当你想判断问题是由你、AI 还是代码本身造成的时候。
- ✓当你想获得关于如何在今后更好地开展 AI 项目的建议时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/analyze-project/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析一下我上一个 AI 编程项目,告诉我为什么它耗时这么长,以及下次我该怎样做得更好。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会查看项目文件,以及你和 AI 的对话记录。它会把你最初的需求和最终的实际结果进行对比,从而找出问题的原因。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/analyze-project — Root Cause Analyst Workflow
Analyze AI-assisted coding sessions in ~/.gemini/antigravity/brain/ and produce a report that explains not just what happened, but why it happened, who/what caused it, and what should change next time.
Goal
For each session, determine:
- What changed from the initial ask to the final executed work
- Whether the main cause was:
- user/spec
- agent
- repo/codebase
- validation/testing
- legitimate task complexity
- Whether the opening prompt was sufficient
- Which files/subsystems repeatedly correlate with struggle
- What changes would most improve future sessions
When to Use
- You need a postmortem on AI-assisted coding sessions, especially when scope drift or repeated rework occurred.
- You want root-cause analysis that separates user/spec issues from agent mistakes, repo friction, or validation gaps.
- You need evidence-backed recommendations for improving future prompts, repo health, or delivery workflows.
Global Rules
- Treat
.resolved.Ncounts as iteration signals, not proof of failure - Separate human-added scope, necessary discovered scope, and agent-introduced scope
- Separate agent error from repo friction
- Every diagnosis must include evidence and confidence
- Confidence levels:
- High = direct artifact/timestamp evidence
- Medium = multiple supporting signals
- Low = plausible inference, not directly proven
- Evidence precedence:
- artifact contents > timestamps > metadata summaries > inference
- If evidence is weak, say so
Step 0.5: Session Intent Classification
Classify the primary session intent from objective + artifacts:
DELIVERYDEBUGGINGREFACTORRESEARCHEXPLORATIONAUDIT_ANALYSIS
Record:
session_intentsession_intent_confidence
Use intent to contextualize severity and rework shape. Do not judge exploratory or research sessions by the same standards as narrow delivery sessions.
Step 1: Discover Conversations
- Read available conversation summaries from system context
- List conversation folders in the user’s Antigravity
brain/directory - Build a conversation index with:
conversation_idtitleobjectivecreatedlast_modified
- If the user supplied a keyword/path, filter to matching conversations; otherwise analyze all
Output: indexed list of conversations to analyze.
Step 2: Extract Session Evidence
For each conversation, read if present:
Core artifacts
task.mdimplementation_plan.mdwalkthrough.md
Metadata
*.metadata.json
Version snapshots
task.md.resolved.0 ... Nimplementation_plan.md.resolved.0 ... Nwalkthrough.md.resolved.0 ... N
Additional signals
- other
.mdartifacts - timestamps across artifact updates
- file/folder/subsystem names mentioned in plans/walkthroughs
- validation/testing language
- explicit acceptance criteria, constraints, non-goals, and file targets
Record per conversation:
Lifecycle
has_taskhas_planhas_walkthroughis_completedis_abandoned_candidate= task exists but no walkthrough
Revision / change volume
task_versionsplan_versionswalkthrough_versionsextra_artifacts
Scope
task_items_initialtask_items_finaltask_completed_pctscope_delta_rawscope_creep_pct_raw
Timing
created_atcompleted_atduration_minutes
Content / quality
objective_textinitial_plan_summaryfinal_plan_summaryinitial_task_excerptfinal_task_excerptwalkthrough_summarymentioned_files_or_subsystemsvalidation_requirements_presentacceptance_criteria_presentnon_goals_presentscope_boundaries_presentfile_targets_presentconstraints_present
Step 3: Prompt Sufficiency
Score the opening request on a 0–2 scale for:
- Clarity
- Boundedness
- Testability
- Architectural specificity
- Constraint awareness
- Dependency awareness
Create:
prompt_sufficiency_scoreprompt_sufficiency_band= High / Medium / Low
Then note which missing prompt ingredients likely contributed to later friction.
Do not punish short prompts by default; a narrow, obvious task can still have high sufficiency.
Step 4: Scope Change Classification
Classify scope change into:
…
常见问题
什么是“范围偏差”(scope deltas)?
“范围偏差”指的是你最初提出的需求与项目最终实际完成的内容之间的差异。
什么是“返工模式”(rework patterns)?
“返工模式”指的是项目过程中反复出现的重复工作或重构的模式。
这个工具如何判断是谁或什么导致了问题?
它会分析文件和对话中的证据,比如需求的变更、AI 的错误,或者代码本身的问题,并为每个原因给出一个置信度。
详情
作者的原始描述
Forensic root cause analyzer for Antigravity sessions. Classifies scope deltas, rework patterns, root causes, hotspots, and auto-improves prompts/health.
热度
- GitHub 星标
- 48k
- 排名
- #6248
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。