Analyze project

From satnamrsm/https-github.com-sickn33-antigravity-awesome-skills · View interactive version

Analyze project is an AI agent skill from the GitHub repository satnamrsm/https-github.com-sickn33-antigravity-awesome-skills. Forensic root cause analyzer for Antigravity sessions. Classifies scope deltas, rework patterns, root causes, hotspots, and auto-improves prompts/health.

How to use this skill

Skill file

/analyze-project — Root Cause Analyst Workflow

Analyze AI-assisted coding sessions in brain/ and produce a diagnostic report that explains not just what happened, but why it happened, who/what caused it, and what should change next time.

This workflow is not a simple metrics dashboard.

It is a forensic analysis workflow for AI coding sessions.


Primary Objective

For each session, determine:

  1. What changed from the initial ask to the final executed work
  2. Whether the change was caused primarily by:
  1. Whether the original prompt was sufficient for the actual job
  2. Which subsystems or files repeatedly correlate with struggle
  3. What concrete changes would most improve future sessions

Core Principles


Step 1: Discovery — Find Relevant Conversations

  1. Read the conversation summaries available in the system context.
  2. List all subdirectories in:

`~/.gemini/antigravity/brain/

  1. Build a Conversation Index by cross-referencing summaries with UUID folders.
  2. Record for each conversation:
  1. If the user supplied a keyword/path, filter on that. Otherwise analyze all workspace conversations.

Output: indexed list of conversations to analyze.


Step 2: Artifact Extraction — Build Session Evidence

For each conversation, read all structured artifacts that exist.

2a. Core Artifacts

2b. Metadata

2c. Version Snapshots

2d. Additional Signals

2e. Record Per Conversation

Presence / Lifecycle
Revision / Change Volume
Scope
Timing
Content / Quality Signals

Step 3: Prompt Sufficiency Analysis

For each conversation, score the opening objective/request on a 0–2 scale for each dimension:

Create:

Then note which missing ingredients likely contributed to later friction.

Important:

Do not assume a low-detail prompt is bad by default.

Short prompts can still be good if the task is narrow and the repo context is obvious.


Step 4: Scope Change Classification

Do not treat all scope growth as the same.

For each conversation, classify scope delta into:

4a. Human-Added Scope

New items clearly introduced beyond the initial ask.

Examples:

4b. Necessary Discovered Scope

Work that was not in the opening ask but appears required to complete it correctly.

Examples:

4c. Agent-Introduced Scope

Work that appears not requested and not necessary, likely introduced by agent overreach.

For each conversation record:


Step 5: Rework Shape Analysis

Do not just count revisions. Determine the shape of session rework.

Classify each conversation into one of these patterns:

Record:


Step 6: Root Cause Analysis

For every non-clean session, assign:

6a. Primary Root Cause

Choose one:

6b. Secondary Root Cause

Optional if a second factor materially contributed.

6c. Evidence Requirements

Every root cause assignment must include:

6d. Root Cause Heuristics

SPEC_AMBIGUITY

Use when the opening ask lacked boundaries, targets, criteria, or constraints, and the plan had to invent them.

HUMAN_SCOPE_CHANGE

Use when the task set expanded due to new asks, broadened goals, or post-hoc additions.

REPO_FRAGILITY

Use when hidden coupling, unclear architecture, brittle files, or environmental issues forced extra work.

AGENT_ARCHITECTURAL_ERROR

Use when the agent chose the wrong approach, wrong files, wrong assumptions, or hallucinated structure.

VERIFICATION_CHURN

Use when implementation mostly succeeded but tests, validation, QA, or fixes created repeated loops.

LEGITIMATE_TASK_COMPLEXITY

Use when revisions were reasonable given the difficulty and do not strongly indicate avoidable failure.


Step 7: Subsystem / File Clustering

Across all conversations, cluster repeated struggle by subsystem, folder, or file mentions.

Examples:

For each cluster, calculate:

Output the top recurring friction zones.

Goal:

Identify whether struggle is prompt-driven, agent-driven, or concentrated in specific repo areas.


Step 8: Comparative Cohort Analysis

Compare these cohorts:

For each comparison, identify:

Do not merely restate averages.

Extract causal-looking patterns cautiously and label them as inference where appropriate.


Step 9: Non-Obvious Findings

Generate 3–7 findings that are not simple metric restatements.

Good examples:

Bad examples:

Each finding must include:


Step 10: Report Generation

Create session_analysis_report.md in the current conversation’s brain folder.

Use this structure:

📊 Session Analysis Report — [Project Name]

Generated: [timestamp]

Conversations Analyzed: [N]

Date Range: [earliest] → [latest]


Executive Summary

| Metric | Value | Rating |

|:---|:---|:---|

| First-Shot Success Rate | X% | 🟢/🟡/🔴 |

| Completion Rate | X% | 🟢/🟡/🔴 |

| Avg Scope Growth | X% | 🟢/🟡/🔴 |

| Replan Rate | X% | 🟢/🟡/🔴 |

| Median Duration | Xm | — |

| Avg Revision Intensity | X | 🟢/🟡/🔴 |

Then include a short narrative summary:


Root Cause Breakdown

| Root Cause | Count | % | Notes |

|:---|:---|:---|:---|

| Spec Ambiguity | X | X% | ... |

| Human Scope Change | X | X% | ... |

| Repo Fragility | X | X% | ... |

| Agent Architectural Error | X | X% | ... |

| Verification Churn | X | X% | ... |

| Legitimate Task Complexity | X | X% | ... |


Prompt Sufficiency Analysis


Scope Change Analysis

Separate:

Show top offenders in each category.


Rework Shape Analysis

Summarize how sessions tend to fail:


Friction Hotspots

Cluster repeated struggle by subsystem/file/domain.

Show which areas correlate with:


First-Shot Successes

List the cleanest sessions and extract what made them work:


Non-Obvious Findings

List 3–7 high-value findings with evidence and confidence.


Recommendations

Each recommendation must use this format:

Recommendation [N]

Recommendations must be specific, not generic.


Per-Conversation Breakdown

| # | Title | Duration | Scope Δ | Plan Revs | Task Revs | Root Cause | Rework Shape | Complete? |

|:---|:---|:---|:---|:---|:---|:---|:---|:---|

Add short notes only where meaningful.


Step 11: Auto-Optimize — Improve Future Sessions

11a. Update Project Health State

Example path (update to your actual location):

`~/.gemini/antigravity/.agent/skills/project-health-state/SKILL.md`

Update:

11b. Generate Prompt Improvement Guidance

Create prompt_improvement_tips.md

Do not give generic advice.

Instead extract:

11c. Suggest Missing Skills / Workflows

If multiple struggle sessions cluster around the same subsystem or repeated sequence, recommend:

Only recommend workflows when the pattern appears repeatedly.


Final Output Standard

The workflow must produce:

  1. A metrics summary
  2. A root-cause diagnosis
  3. A subsystem/friction map
  4. A prompt-sufficiency assessment
  5. Evidence-backed recommendations
  6. Non-obvious findings

If evidence is weak, say so.

Do not overclaim.

Prefer explicit uncertainty over fake precision.

How to invoke this skill

Just say any of these in a new conversation:

The agent will automatically discover and use the skill.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.