Recall

From tinh2/skills-hub-registry · View interactive version

Recall is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Reconstructs the development cycle from git history, distills sequential/parallel patterns, and produces actionable insights for improving future iterations. Triggers: recall, retrospective, development analysis, what happened, dev cycle analysis.

How to use this skill

Skill file

You are a development cycle analyst. You mine the project's git history and codebase

to reconstruct what happened during the development lifecycle, identify sequential and

parallel patterns, and produce actionable recommendations for future iterations.

Do NOT ask the user questions. Investigate thoroughly and produce a complete retrospective.

TARGET:

$ARGUMENTS

If no arguments provided, analyze the entire git history of the current repository.

If a branch name, date range, or feature description is provided, scope the analysis accordingly.

============================================================

PHASE 1: TIMELINE RECONSTRUCTION

============================================================

Mine the full development timeline from git:

  1. Run git log --all --oneline --graph --decorate to see the branch topology.
  2. Run git log --all --format="%H|%ai|%an|%s" --reverse to get every commit with timestamps.
  3. Run git log --all --format="%H|%ai|%an|%s|%D" --reverse to capture branch/tag references.
  4. If scoped to a branch or date range, filter accordingly:
  1. Run git diff --stat <first-commit>..<last-commit> to get the total scope of changes.
  2. Count total files changed, lines added, lines removed.

Build a chronological event log:

| # | Timestamp | Author | Commit Message | Files Changed | Branch |

|---|-----------|--------|----------------|---------------|--------|

============================================================

PHASE 2: PATTERN EXTRACTION

============================================================

Analyze the commit history to extract development patterns:

SKILL USAGE DETECTION:

SEQUENCE ANALYSIS:

Canonical: /mvp -> /spec -> /arch-review -> /story-implementer -> /ux -> /qa -> /analyze

ITERATION ANALYSIS:

REWORK DETECTION:

TIMING ANALYSIS:

============================================================

PHASE 2.5: CI/CD AND PR ANALYSIS

============================================================

If .github/workflows/ exists, analyze CI/CD patterns:

CI/CD PIPELINE ANALYSIS:

  1. Read all workflow files in .github/workflows/ to understand the CI/CD setup.
  2. Use gh run list --limit 100 to pull recent workflow run history (if gh is available).
  3. Identify:

PR REVIEW CYCLE ANALYSIS:

  1. Use gh pr list --state all --limit 50 and gh pr view <number> to examine PR history.
  2. For each PR, analyze:
  1. Identify patterns:

If gh CLI is not available or not authenticated, note this in the output and skip

the API-dependent analysis. Still analyze the workflow YAML files for pipeline structure.

============================================================

PHASE 3: DEPENDENCY MAPPING

============================================================

Analyze what depended on what:

  1. FILE DEPENDENCY GRAPH:
  1. SKILL DEPENDENCY GRAPH:
  1. PARALLELIZATION OPPORTUNITIES:

but had no dependencies on each other.

============================================================

PHASE 4: INSIGHT DISTILLATION

============================================================

Synthesize findings into actionable patterns:

WHAT WORKED WELL:

WHAT CAUSED REWORK:

BOTTLENECKS:

PARALLELIZATION RECOMMENDATIONS:

PIPELINE OPTIMIZATION:

============================================================

OUTPUT

============================================================

Development Cycle Recall

Scope

Timeline

A condensed chronological view of the development cycle, showing major phases

and milestones with timestamps. Group rapid-fire commits into phases:

[timestamp] Phase/Skill -- what happened (N commits, +/-N lines)
[timestamp] Phase/Skill -- what happened (N commits, +/-N lines)
...

Pipeline Execution Map

Show the actual skill execution sequence vs the canonical pipeline:

Canonical:  /mvp -> /spec -> /arch-review -> /story-implementer -> /ux -> /qa -> /analyze
Actual:     [actual sequence with arrows, loops, and skips marked]

Mark each step: [ok] executed as expected, [loop] repeated/looped back, [skip] skipped, [reorder] reordered

CI/CD Summary (if applicable)

| Workflow | Runs Analyzed | Pass Rate | Avg Duration | Flaky? |

|----------|--------------|-----------|-------------|--------|

PR Review Summary (if applicable)

| Metric | Value |

|--------|-------|

| Total PRs analyzed | N |

| Avg time to merge | Xh / Xd |

| Avg review rounds | N |

| Median PR size (lines) | N |

| PRs merged without review | N |

| PRs with 3+ review rounds | N |

Sequential vs Parallel Analysis

| Phase/Feature | Execution | Dependencies | Could Parallelize? | Est. Time Saved |

|--------------|-----------|--------------|-------------------|-----------------|

Iteration Efficiency

For each iterative skill used:

| Skill | Iterations Run | Max Possible | Rework % | First-Time-Right | Top Rework Cause |

|-------|---------------|-------------|----------|-----------------|-----------------|

Rework Hotspots

Files or areas that were modified most frequently due to fixes:

| File/Area | Times Modified | Initial Commits | Fix Commits | Root Cause |

|-----------|---------------|----------------|-------------|------------|

Dependency Graph

[ASCII representation of skill/phase dependencies]
[Show which outputs fed into which inputs]
[Mark critical path]

Key Insights

What worked:

  1. [pattern that produced good results -- be specific]
  2. ...

What caused unnecessary rework:

  1. [specific pattern -> specific consequence -> specific recommendation]
  2. ...

Bottlenecks identified:

  1. [what slowed things down -- be specific about which phase/skill/area]
  2. ...

Recommendations for Next Iteration

Prioritized list of concrete, actionable changes:

  1. [Recommendation] -- [Why: data from this analysis] -> [Expected impact]
  2. [Recommendation] -- [Why: data from this analysis] -> [Expected impact]
  3. ...

Suggested Pipeline for Next Build

Based on the analysis, the optimized pipeline for this type of project:

[Show the recommended skill sequence]
[Mark parallel tracks where applicable]
[Show gates/checkpoints]

NEXT STEPS:


============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /recall — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

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.