/coding-productivity:report [date range, e.g. "2025-01 to 2026-03"]from coding-productivity
Generates a markdown executive summary report of coding productivity analysis. Runs queries for monthly trends, author productivity, and merge velocity over a user-specified date range.
Ships in coding-productivity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill runs all analysis queries and composes a comprehensive markdown report document.
Important: Use AskUserQuestion for every interactive prompt. Never assume answers or skip steps. Apply the style-andrea skill when composing the written sections of the report.
The project root is the directory containing .coding-productivity.env. All paths below are relative to this root.
Run via Bash:
python3.14 -c "
import sys; sys.path.insert(0, 'scripts')
from lib.config import Config
from lib.storage import get_storage
from lib.scoring_meta import get_active
cfg = Config()
st = get_storage(cfg)
commits = st.count('commits')
try:
scores = st.count(get_active(st).commit_table)
except:
scores = 0
try:
mrs = st.count('merge_requests')
except:
mrs = 0
print(f'COMMITS:{commits}')
print(f'SCORES:{scores}')
print(f'MRS:{mrs}')
st.close()
"
COMMITS:0, tell the user: "No commit data found. Run /coding-productivity:extract first." and stop.Ask the user:
What date range should the report cover?
Enter start and end dates (YYYY-MM-DD), e.g.
2025-01-01 to 2025-12-31Or type "all" to use the full dataset range.
If the user says "all", determine the range by running via Bash:
python3.14 -c "
import sys; sys.path.insert(0, 'scripts')
from lib.config import Config
from lib.storage import get_storage
cfg = Config()
st = get_storage(cfg)
col = 'authored_date' if cfg.DATE_FIELD == 'authored_date' else 'committed_date'
rows = st.query(f'SELECT MIN({col}) AS min_d, MAX({col}) AS max_d FROM commits')
print(f'MIN:{rows[0][\"min_d\"]}')
print(f'MAX:{rows[0][\"max_d\"]}')
st.close()
"
Ask the user:
Would you like to include a before/after period comparison (e.g. pre/post tool adoption)?
- Yes
- No, skip it
If yes, ask for baseline and comparison date ranges (same format as the analyze skill Step 3, option 2).
Run each analysis via Bash, capturing the JSON output for programmatic use:
python3.14 scripts/analyze.py --config .coding-productivity.env \
--query monthly_trends --since <start> --until <end> --format json
python3.14 scripts/analyze.py --config .coding-productivity.env \
--query author_productivity --since <start> --until <end> --format json
python3.14 scripts/analyze.py --config .coding-productivity.env \
--query merge_velocity --since <start> --until <end> --format json
python3.14 scripts/analyze.py --config .coding-productivity.env \
--query category_distribution --since <start> --until <end> --format json
python3.14 scripts/analyze.py --config .coding-productivity.env \
--query code_efficiency --since <start> --until <end> --format json
If the user opted for a before/after comparison:
python3.14 scripts/analyze.py --config .coding-productivity.env \
--query period_comparison \
--baseline-start <b_start> --baseline-end <b_end> \
--comparison-start <c_start> --comparison-end <c_end> --format json
If a score-based query exits with an error that the date range mixes scoring models, stop and tell the user: a report across two models would present a change of instrument as a change in productivity. Offer to narrow the range to one model, or to run /coding-productivity:calibrate and /coding-productivity:rebase. Pass --allow-legacy-null only if the user confirms that scores with no recorded model come from the same model as the rest.
Every analysis run prints, on stderr when the format is json, an excluded: N commits (...), moved-code discount X% of productivity line for its range, and a WARNING when duplicate-work detection has never run or is out of date. Offer to run /coding-productivity:dedupe first when it warns, and state in the report how much duplicate work was excluded (or that none was, because dedupe has not run), so readers know the totals are net of it.
Every run also prints identity: lines (stderr when the format is json): the identities joined into one person automatically, and the non-person accounts excluded. Say in the report how many people were merged this way and that IDENTITY_NO_MERGE undoes a wrong merge. When MIN_ACTIVE_COMMITS is above 1, monthly trends carry active_developers and productivity_per_active_developer; show both next to unique_authors and say which threshold was used.
When scoring data is included, state in the report which scorer_model produced the scores (shown by the score skill summary or the scoring_meta table) so readers know the instrument.
Using the JSON results from Step 4, compose a markdown document with the following structure. Apply Andrea's writing style for the narrative sections: clear, concise, no filler, direct.
# Coding Productivity Report
**Period:** <start> to <end>
**Generated:** <today's date>
---
## Methodology
Brief explanation of how the dataset was built and what the metrics mean:
- Commits and merge requests were extracted from the configured repositories via the platform API.
- **Total Productivity** is a composite score derived from code additions, deletions, and change complexity.
- **Weighted Score** adjusts productivity by commit category (feature, bugfix, refactor, etc.).
- **Merge Velocity** measures how quickly merge requests move from creation to merge.
- **Code Efficiency** compares additions in all commits versus additions in merged commits only.
If scoring data is unavailable, note: "AI-powered scoring was not enabled for this dataset. Score-dependent metrics (weighted score, category distribution) are omitted."
---
## Key Findings
Analyze the data and write 3-5 key takeaways. Each should be a single sentence with a supporting data point. Examples of what to look for:
- Month-over-month trends (increasing/decreasing commits, productivity)
- Top contributors and their share of total productivity
- Merge velocity trends (improving or degrading)
- Category balance (is most work features? bugfixes? refactoring?)
- Efficiency ratio changes over time
---
## Monthly Trends
<markdown table from monthly_trends results>
---
## Before/After Comparison
_Only include this section if the user provided comparison periods._
<markdown table from period_comparison results>
Write 1-2 sentences interpreting the % change row.
---
## Top Contributors
<markdown table from author_productivity results, top 10>
---
## Merge Velocity
<markdown table from merge_velocity results>
Write 1-2 sentences summarizing average time-to-merge and the proportion merged within 7 days.
---
## Category Distribution
_Omit this section if scoring data is unavailable._
<markdown table from category_distribution results>
---
## Code Efficiency
<markdown table from code_efficiency results>
---
## Data Coverage and Limitations
- **Commits analyzed:** <count>
- **Merge requests analyzed:** <count>
- **Scoring data:** Available / Not available (<count> scored commits)
- **Repositories:** <number> configured
- Limitations: commit counts reflect all branches (cross-branch deduplication applied). Merge velocity is based on MR created_at, not first commit date. Productivity scores require AI scoring to be enabled and run separately.
Determine today's date and save the report to the project root:
coding-productivity-report-YYYY-MM-DD.md
Use the Write tool to create the file.
Display the full report content inline so the user can review it immediately.
Tell the user:
Report saved to
coding-productivity-report-YYYY-MM-DD.md.
What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/analyzecoding-productivity:analyzeRun interactive productivity analysis on extracted data. Use after extraction to view monthly trends, before/after comparisons, per-author metrics, merge velocity, and category breakdowns./calibratecoding-productivity:calibrateCompare a candidate scoring model with the current one before switching. Rescores a deterministic sample of already-scored commits with both, reports ratios and correlations per quarter, and says COMPARABLE or REBASE REQUIRED. Use when a newer Claude model is available or before changing SCORING_MODEL. Writes nothing to the score tables./connectcoding-productivity:connectConnect to an existing BigQuery dataset for read-only analysis. Use when you have access to a pre-populated dataset and want to explore results without running extraction./dedupecoding-productivity:dedupeDetect duplicate work in the extracted commits (merge commits, squash and promotion commits, cherry-picked copies, moved code) so analysis stops counting it twice. Run after extraction and scoring, and again whenever new commits arrive. Rebuilds the duplicate_commits and file_moved_share tables./developerscoding-productivity:developersManage the developer roster — review detected bots, find and merge duplicate identities, exclude developers from analysis. Use after extraction to clean up identity data./extractcoding-productivity:extractExtract commits, diffs, and merge/pull requests from configured GitHub or GitLab repositories. Use after setup to populate the local database, or re-run to fetch new data.npx claudepluginhub facens/coding-productivity --plugin coding-productivityOther plugins' skills for the same job