Install
1
Install the plugin$
npx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-engineerWant just this command?
Add to a custom plugin, then install with one command.
Description
Generate documentary-style narrative of repository development history
Argument
[--output PATH] [--detail minimal|standard|comprehensive] [--since DATE] [--commits N]Namespace
git/Allowed Tools
BashReadGrepGlobWriteTaskSkill
Command Content
Transform git history into an engaging documentary narrative.
Context
- Default branch: !
git remote show origin | grep 'HEAD branch' | awk '{print $NF}' - Repository root: !
git rev-parse --show-toplevel 2>/dev/null - Total commits: !
git rev-list --count HEAD 2>/dev/null - First commit: !
git log --reverse --format="%H|%ai|%an|%s" 2>/dev/null | head -1
Arguments
| Option | Format | Default | Description |
|---|---|---|---|
--output | PATH | STORY.md | Output file |
--detail | minimal|standard|comprehensive | standard | Detail level |
--since | YYYY-MM-DD | (all) | Analyze after date |
--commits | N | (all) | Limit to N commits |
Pre-Flight Checks
- Is this a git repo? (
git rev-parse --git-dir) - Any commits? (Error if 0)
- Single commit? (Generate minimal "genesis only" story)
- Large repo (>1000 commits)? (Apply smart sampling)
Smart Sampling
For large repos:
Always include:
- First commit (genesis)
- Tagged commits (releases)
- Merge commits to default branch
- Top 10 commits by files changed
Sample size by detail:
minimal: 20 additionalstandard: 50 additionalcomprehensive: 100 additional
5-Pass Analysis
Pass 1: Repository Overview
# Project name, age, tags, top contributors, monthly distribution
basename "$(git rev-parse --show-toplevel)"
git log --reverse --format="%ai" | head -1
git tag -l --format='%(creatordate:short)|%(refname:short)' | sort
git shortlog -sn --no-merges | head -10
Pass 2: Timeline Analysis
Invoke git-researcher agent:
Task (majestic-engineer:research:git-researcher):
Analyze evolution: milestones, contributor growth, architecture changes,
development patterns, turning points.
Pass 3: Decision Points
- Major refactors (commits touching many files)
- Dependency changes
- Feature branch merges
- Commit message patterns
Pass 4: Narrative Synthesis
Invoke code-story skill which will guide you to find and read the appropriate template:
Skill(skill="code-story")
Follow the skill's instructions to load the template matching the detail level.
Pass 5: Output Generation
- Check if output exists (confirm overwrite)
- Write using Write tool
- Display summary
Output Summary
๐ Code Story Generated
**Output:** [file_path]
**Detail Level:** [minimal|standard|comprehensive]
**Commits Analyzed:** [count]
**Contributors Featured:** [count]
The story is ready: [file_path]
Error Handling
| Scenario | Response |
|---|---|
| Not a git repo | "Error: Not a git repository" |
| Empty repo | "Error: Empty repository" |
| Single commit | Generate "genesis only" minimal story |
| No tags | Note: "No formal releases yet" |
Stats
Stars30
Forks6
Last CommitMar 21, 2026
Actions