analyze-project – skill Agent & Tự động hóa cho agent AI
Trình phân tích nguyên nhân gốc (forensic) cho các phiên Antigravity. Phân loại thay đổi phạm vi, mẫu làm lại, nguyên nhân gốc, điểm nóng, và đề xuất cải thiện prompt và quy trình làm việc.
Cài skill analyze-project bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/analyze-project-2fd64.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /analyze-project – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/analyze-project-2fd64.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $analyze-project – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/analyze-project-2fd64.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /analyze-project – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/analyze-project-2fd64.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /analyze-project – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
/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:
1. What changed from the initial ask to the final executed work
2. Whether the main cause was:
- user/spec
- agent
- repo/codebase
- validation/testing
- legitimate task complexity
3. Whether the opening prompt was sufficient
4. Which files/subsystems repeatedly correlate with struggle
5. 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 corroborated content evidence; timestamps alone establish timing, not cause
- 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
1. Read available conversation summaries from system context
2. List conversation folders in the user’s Antigravity brain/ directory
3. Build a conversation index with:
conversation_idtitleobjectivecreatedlast_modified
4. If the user supplied a keyword/path, filter to matching conversations; otherwise establish the project/date window before reading unrelated private sessions
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:
- Human-added scope — new asks beyond the original task
- Necessary discovered scope — work required to complete the original task correctly
- Agent-introduced scope — likely unnecessary work introduced by the agent
Record:
scope_change_type_primaryscope_change_type_secondary(optional)scope_change_confidence- evidence
Keep one short example in mind for calibration:
- Human-added: “also refactor nearby code while you’re here”
- Necessary discovered: hidden dependency must be fixed for original task to work
- Agent-introduced: extra cleanup or redesign not requested and not required
---
Step 5: Rework Shape
Classify each session into one primary pattern:
- Clean execution
- Early replan then stable finish
- Progressive scope expansion
- Reopen/reclose churn
- Late-stage verification churn
- Abandoned mid-flight
- Exploratory / research session
Record:
rework_shaperework_shape_confidence- evidence
---
Step 6: Root Cause Analysis
For every non-clean session, assign:
Primary root cause
One of:
SPEC_AMBIGUITYHUMAN_SCOPE_CHANGEREPO_FRAGILITYAGENT_ARCHITECTURAL_ERRORVERIFICATION_CHURNLEGITIMATE_TASK_COMPLEXITY
Secondary root cause
Optional if materially relevant
Root-cause guidance
- SPEC_AMBIGUITY: opening ask lacked boundaries, targets, criteria, or constraints
- HUMAN_SCOPE_CHANGE: scope expanded because the user broadened the task
- REPO_FRAGILITY: hidden coupling, brittle files, unclear architecture, or environment issues forced extra work
- AGENT_ARCHITECTURAL_ERROR: wrong files, wrong assumptions, wrong approach, hallucinated structure
- VERIFICATION_CHURN: implementation mostly worked, but testing/validation caused loops
- LEGITIMATE_TASK_COMPLEXITY: revisions were expected for the difficulty and not clearly avoidable
Every root-cause assignment must include:
- evidence
- why stronger alternative causes were rejected
- confidence
---
Step 6.5: Session Severity Scoring (0–100)
Assign each session a severity score to prioritize attention.
Components (sum, clamp 0–100):
- Completion failure: 0–25 (
abandoned = 25) - Replanning intensity: 0–15
- Scope instability: 0–15
- Rework shape severity: 0–15
- Prompt sufficiency deficit: 0–10 (
low = 10) - Root cause impact: 0–10 (
REPO_FRAGILITY/AGENT_ARCHITECTURAL_ERRORhighest) - Hotspot recurrence: 0–10
Bands:
- 0–19 Low
- 20–39 Moderate
- 40–59 Significant
- 60–79 High
- 80–100 Critical
Record:
session_severity_scoreseverity_bandseverity_drivers= top 2–4 contributorsseverity_confidence
Use severity as a prioritization signal, not a verdict. Always explain the drivers.
Contextualize severity using session intent so research/exploration sessions are not over-penalized.
---
Step 7: Subsystem / File Clustering
Across all conversations, cluster repeated struggle by file, folder, or subsystem.
For each cluster, calculate:
- number of conversations touching it
- average revisions
- completion rate
- abandonment rate
- common root causes
- average severity
Goal: identify whether friction is mostly prompt-driven, agent-driven, or concentrated in specific repo areas.
---
Step 8: Comparative Cohorts
Compare:
- first-shot successes vs re-planned sessions
- completed vs abandoned
- high prompt sufficiency vs low prompt sufficiency
- narrow-scope vs high-scope-growth
- short sessions vs long sessions
- low-friction subsystems vs high-friction subsystems
For each comparison, identify:
- what differs materially
- which prompt traits correlate with smoother execution
- which repo traits correlate with repeated struggle
Do not just restate averages; extract cautious evidence-backed patterns.
---
Step 9: Non-Obvious Findings
Generate 3–7 findings that are not simple metric restatements.
Each finding must include:
- observation
- why it matters
- evidence
- confidence
Examples of strong findings:
- replans cluster around weak file targeting rather than weak acceptance criteria
- scope growth often begins after initial success, suggesting post-success human expansion
- auth-related struggle is driven more by repo fragility than agent hallucination
---
Step 10: Report Generation
Create session_analysis_report.md with this structure:
📊 Session Analysis Report — [Project Nam
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- brief – /c-level-agents:brief [topic] — Tạo bản tóm tắt chiến lược một trang từ biểu mẫu…
- humanize-automation – Hành vi chuột, bàn phím và cuộn giống người để vượt qua kiểm tra bot dựa trên hành vi.
- browser-automation – Dùng khi người dùng yêu cầu tự động hóa tác vụ trên trình duyệt, scrape website, điền…
- anti-sleep – Giữ Mac luôn thức bằng caffeinate trong các bản build dài, tải xuống, hoặc các lần chạy…
- openai-docs – Dùng khi người dùng hỏi cách xây dựng với sản phẩm hoặc API của OpenAI, hỏi về chính…
- antigravity-agent-manager – Cấu hình và điều phối các agent song song bằng Antigravity 2.0 Agent Manager độc lập và…
- antigravity-skill-orchestrator – Meta-skill hiểu yêu cầu của tác vụ, tự động chọn các skill phù hợp, theo dõi các tổ hợp…
- aomi-transact – Xây dựng agent crypto/DeFi bằng ngôn ngữ tự nhiên và plugin EVM MCP (Claude Code…