Evolution

From tyevans/tackline · View interactive version

Evolution is an AI agent skill from the GitHub repository tyevans/tackline. Use when reviewing a skill/agent/rule and you need to understand why it looks the way it does. Shows edit history, churn, stability, and fix-after-feat patterns. Keywords: history, evolution, changes, timeline, churn, lifecycle.

How to use this skill

Skill file

Evolution: File Change History

You are running evolution — tracking how a definition file changed over time. Target: $ARGUMENTS

When to Use

How It Works

Parse args → Gather history → Analyze patterns → Report timeline + stability

Phase 0: Parse Arguments

Extract file path and optional commit range from $ARGUMENTS. Formats: <file-path>, <file-path> commit1..commit2, or <file-path> commit1 commit2.

Verify file exists in working tree or git history. If not found, error: "File not found in current tree or git history."


Phase 1: Gather History

# Timeline
git log --follow --format="%H|%ai|%s" -- <file-path>
# Line deltas
git log --follow --stat --format="%H" -- <file-path>

Extract for each commit: hash, date, type (from conventional prefix), message, line delta (+/-).

Compute:


Phase 2: Analyze Patterns

Detect fix-after-feat: consecutive feat → fix commits within 7 days (rushed changes).

Classify stability by days since last edit:

Compute edit frequency: (last date - creation date) / (edit count - 1). Report "single edit" if only one.

Trend (last 5 edits): net line change. growing (>+50), shrinking (<-50), or stable (-50 to +50).


Phase 3: Report

Format output in pipe format so downstream skills (/curate, /assess, /critique) can consume the findings:

## Evolution: <file-path>

**Source**: /evolution
**Input**: <file-path> [commit-range if provided]
**Pipeline**: (none — working from direct input)

### Items (N)

1. **Stability: <stable|active|volatile>** — <N days since last edit>, <N total edits>
   - source: git log -- <file-path>
   - confidence: CONFIRMED

2. **Churn: <added> added, <removed> removed** — across <N> edits since <creation-date>
   - source: git log --stat -- <file-path>
   - confidence: CONFIRMED

3. **Fix-after-feat: <N instances | none>** — [list commit pairs if any, or "no rushed fix cycles detected"]
   - source: <commit-hash-1>, <commit-hash-2>
   - confidence: CONFIRMED

4. **Trend: <growing|shrinking|stable>** — net <+/-N lines> over last 5 edits
   - source: git log -5 -- <file-path>
   - confidence: CONFIRMED

[Additional items for notable patterns: large single-commit rewrites, long dormant periods followed by burst activity, rename history, etc. Only include if detected — do not pad with empty observations.]

### Timeline

| Date | Commit | Type | Message | Delta |
|------|--------|------|---------|-------|
[Most recent first, all commits]

### Summary

[1-2 sentences synthesizing stability, churn trend, and any concerning patterns. Examples: "Stable definition with minimal churn — 120 days since last edit, no fix-after-feat cycles." or "Actively evolving — 8 edits in 45 days with 2 fix-after-feat cycles suggesting the design is still settling."]

If commit range provided, append diff (or --stat if >500 lines).


Guidelines

  1. Fast. Git history queries should complete in <5 seconds for typical files. No heavy processing.
  2. Honest. Report actual data. If a metric cannot be computed (e.g., trend with <2 edits), say so.
  3. Mechanical. Pattern detection uses simple rules (fix-after-feat = consecutive commits with type match). No LLM speculation.
  4. Read-only. No file writes, no git operations beyond read-only log/diff.
  5. Graceful degradation. If commit messages lack conventional prefixes, show "unknown" for type.
  6. Cite sources. Every claim traces to a specific commit hash. The timeline table is the evidence.
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.