andreybegma/claude-code-plugin/history
Claude Code and agent skill by andreybegma/claude-code-plugin
- community
Checking that the SKILL.md file is still in the repository.
Generate a comprehensive project history by combining PR/release note data with a product status report. Maps development effort to user role portals (e.g., owner, banker, charter) and produces a narrative of what was worked on, effort distribution per role, and current product state. Use when asked to create release notes, project timeline, effort retrospective, work summary, or development history. Triggers on phrases like "project history", "what did we work on", "release notes", "effort summary", "retrospective", "development timeline". Requires `docs/project-status.md` from the repo-analysis skill (or equivalent status report).
Install
npx vskill@latest install andreybegma/claude-code-plugin/historySKILL.md
The same SKILL.md was published earlier as andreybegma/claude-code-plugin/history.
Project History Skill
Combine PR history with the product status report to produce a project retrospective organized by user role portals.
Prerequisites
Check for docs/project-status.md (or ask user for the status report path).
- If it exists: read it to learn which role portals exist, what pages each role has, and current completion status per page. Use this data to populate the "Completion %" column in the Effort Distribution table.
- If it doesn't exist: continue without it. Omit the "Completion %" column from all output tables and add a note at the top of the report:
⚠️ No project-status.md found — completion data unavailable. Run /cs-repo first to add it.
Process
1. Gather PR Data
Detect the git hosting platform and pull all PR data — both merged AND closed-not-merged. This is crucial — partial data produces misleading effort stats, and ignoring abandoned PRs hides real effort that was invested but didn't land.
1a. Fetch merged PRs
GitHub (preferred) — paginated fetch to guarantee completeness:
First, count the total merged PRs:
Then fetch all PRs. The gh CLI returns at most ~1000 per call, so paginate if needed:
If the result count is less than the total, paginate manually using --search with date ranges:
Verify completeness: after fetching, compare the number of unique PRs collected against the total count. If any are missing, retry once with narrower date ranges; if still incomplete, note the gap and proceed with available data.
If `gh` CLI not available, fall back to:
1b. Fetch closed-not-merged PRs (abandoned/rejected work)
Closed-not-merged PRs represent real effort that was invested but didn't make it into the product. Ignoring them:
- Understates total investment per role
- Hides wasted effort patterns (failed experiments, abandoned approaches, rejected work)
- Skews effort distribution — if one role had many closed PRs, its true investment is higher than merged PRs alone suggest
IMPORTANT — `mergedAt` null check: The gh CLI represents unmerged PRs with mergedAt: null, NOT mergedAt: "". Using select(.mergedAt == "") will silently return zero results. Always use select(.mergedAt == null).
Mandatory count verification — immediately after fetching, cross-check:
Compare EXPECTED_UNMERGED against the count from the jq filter above. If they don't match, debug before proceeding.
For each closed-not-merged PR, also fetch files if possible (same approach as merged PRs).
1c. Fetch release notes
If auto-generated release notes or tags exist, pull those too:
2. Map PRs to Role Portals
This is the critical step. The codebase has partial folder separation with lots of shared code, so use a layered approach:
Layer 1 — Direct folder match (requires file data): Scan PR changed files for role-specific directories (e.g., */owner/*, */banker/*, */charter/*). If ALL changed files are within one role's folder → assign to that role.
Layer 2 — Import tracing for shared code: If a PR touches shared/common files, check which role pages import or consume those components. Trace the dependency direction:
- Read the changed shared files
- Search for imports of those files across role-specific pages
- If a shared component is only used by one role → attribute to that role
- If used by multiple roles → attribute proportionally or mark as shared
Layer 3 — PR context clues: Use PR title, description, and labels to disambiguate:
- PR title mentions "owner dashboard" → owner, even if it touches shared files
- Label says "banker" → banker
- Description references a specific role workflow → that role
Layer 4 — Genuinely shared: PRs that are truly cross-cutting (infra, auth, CI/CD, design system, refactors) → classify as "Shared/Platform". Do NOT force these into a role. Expect 15-25% of PRs here; that's normal.
IMPORTANT — file data is essential for accurate classification: If you cannot fetch file lists for PRs (e.g., GitHub API rate limits, GraphQL node limits), do NOT fall back to title-only classification. Title-only classification dramatically inflates the Shared/Platform category because most PRs touching role-specific backend code (e.g., apps/api/src/vessel/) don't mention the role name in the title.
If --json files causes GraphQL errors due to node limits:
- Fetch core data WITHOUT files first:
--json number,title,createdAt,mergedAt,labels,additions,deletions,author - Then fetch files separately in batches of ~50 PRs using
gh pr view {number} --json files - Use
xargs -P 10or similar for parallel fetching - If some file fetches fail, classify those specific PRs by title — but the majority MUST have file data
Sanity check after classification: If Shared/Platform exceeds 25% of all PRs, review the classification. A high Shared count usually means file-based classification failed and too many role-specific PRs fell through to the title-based fallback.
3. Time Period Grouping
Group PRs into logical periods. Use whichever fits best:
- Sprint boundaries (if visible from labels/milestones)
- Monthly (default fallback)
- Release tags (if they exist)
Per period, summarize:
- What was delivered per role (in product terms, not technical terms)
- Key PRs and what they changed from a user perspective
- Whether the work was net-new features, fixes, or visual polish
4. Effort Distribution (Weighted)
Raw PR count is misleading — a 1-line typo fix and a 5-day feature rewrite both count as "1 PR". Use weighted effort estimation to produce more honest numbers.
4a. Classify PR complexity
Before computing weight, classify each PR into a complexity category. This is critical — a refactor touching 40 files is fundamentally easier than a 40-file feature, and the weight must reflect that.
Classify each PR by scanning its title, description, labels, and file patterns:
| Category | Multiplier | How to detect | |
|---|---|---|---|
| Feature | 1.0 | Title contains feature/, feat:, add, implement, create, new. New files created. New endpoints, pages, or components. | |
| Bug fix | 0.9 | Title contains fix/, fix:, patch/, hotfix. Usually targeted changes to existing logic. | |
| Refactor | 0.3 | Title contains refactor, rewrite, replace, rename, move, simplify, clean, remove unused, chore/. High file count + high line churn but mechanically simple (search-replace, restructuring). Also: if deletions > additions * 0.7 and len(files) > 5, likely a refactor. | |
| Bump / Merge / Release | 0.1 | Title contains bump, merge/, Merge main, Merge/main, release/, Release/. Dependency bot authors. Version-only changes. These are near-zero effort regardless of diff size. | |
| Schema / Migration | 0.4 | Files are predominantly *.prisma, *.sql, *migration*, *schema*. High line count but generated or declarative — low cognitive effort per line. | |
| Style / UI polish | 0.6 | Title contains style, ui update, feedback, colour, color, responsive, layout. Changes concentrated in CSS/Tailwind/component JSX without logic changes. | |
| Infrastructure / Config | 0.5 | Files are predominantly config (*.json, *.yaml, *.toml, Dockerfile, CI files, pulumi/*). Important but usually low-complexity. |
Rules:
- Classify using title first (strongest signal), then file patterns, then fall back to "Feature" as default.
- When uncertain between two categories, pick the lower-effort one — it's better to slightly undercount effort than to inflate a refactor into feature-level work.
- A single PR can only have one category. If a PR mixes feature work with refactoring, classify by the dominant intent (what the PR title describes).
4b. Compute effort weight per PR
For each PR, compute an effort weight using these signals (all available from the fetched data):
| Signal | Source | Why it matters | |
|---|---|---|---|
| Lines changed | additions + deletions | Larger diffs generally mean more work | |
| Files touched | len(files) | More files = more coordination and context switching | |
| Time open | createdAt → mergedAt | Longer-lived PRs usually represent harder problems | |
| Commit count | len(commits) | More commits = more iteration/rework | |
| Complexity category | from step 4a | Mechanical work should weigh less than creative work |
Effort weight formula:
Important adjustments:
- Cap
daysOpenat 14 days. PRs open for months are usually stale/forgotten, not actively worked on for months. - If a PR has 0 commits (data unavailable), default
commitsScoreto1.0. - The
complexityMultis the key differentiator: a refactor touching 30 files (x0.3) will weigh less than a feature touching 10 files (x1.0), even though the refactor has a larger raw diff.
4c. Aggregate weighted effort per role
Per role portal, calculate:
- PR count — raw number of PRs (still useful for volume context)
- Lines changed — raw additions + deletions
- Weighted effort — sum of
effortWeightfor all PRs in that role - Weighted effort % — each role's share of total weighted effort
- Time span of activity — first PR to last PR
- Avg effort per PR — weighted effort / PR count (shows typical PR "heaviness" for that role)
- Top 5 heaviest PRs — the PRs with highest effort weight per role (helps identify where most effort actually went)
Also calculate for Shared/Platform work separately.
4d. Caveats on effort estimation
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/history/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andreybegma/claude-code-plugin/history)