From core-skills
Generate a deep CTO self-review report: working hours, productivity patterns, focus sessions, AI collaboration depth, cognitive load signals, sustainability health, and codebase velocity — not just commit counts. Triggers on "weekly review", "CTO report", "week summary", "what did I build", "productivity report", "show me my week", "engineer report", "weekly digest". Scans git across repos, AI agent session logs, shell history, file timestamps, and produces markdown + HTML reports. Always trigger this skill for any weekly or periodic review of engineering or product work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/core-skills:cto-weekly-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Founder-grade weekly report from git history, AI session logs, shell history, and file
Founder-grade weekly report from git history, AI session logs, shell history, and file timestamps — not just commit counts.
Works with any coding agent that can run subagents and shell commands.
Supporting files (read when needed):
Scripts: read every file under scripts/ before running. They scan git repos, AI session
logs, shell history, and local file timestamps. Confirm SINCE, ME, REPOS, and
SEARCH_ROOT before execution. Double-check every time.
Ask once (or infer from the request):
| Setting | Default | Notes |
|---|---|---|
| Date range | last 7 days | Accept "last 14 days", specific dates, "this sprint" |
| Repos | crawl ~/ | Accept explicit paths via REPOS env var |
| Author email | git config user.email | Ask if multiple identities |
| Timezone | system TZ | Critical for working-hour analysis |
| Output directory | {SKILL_OUTPUT_DIR}/cto-weekly-review/ | See ../OUTPUT.md |
Create the output directory if it does not exist.
Set env vars for collectors: SINCE, ME, REPOS (optional), SEARCH_ROOT (optional).
Run three collector subagents in parallel when supported. Each returns structured pipe-delimited output. Keep contexts isolated until Step 2.
Fallback: Run scripts sequentially yourself, or inline if scripts unavailable.
SINCE="7 days ago" ME="[email protected]" bash scripts/collect-git.sh
# Optional: REPOS="/path/a /path/b" SEARCH_ROOT="$HOME"
Collects: commits, stats, files, reverts, TODOs, heatmap hours, flow sessions, dependency/schema/infra changes.
SINCE="7 days ago" bash scripts/collect-ai-sessions.sh
See data-sources.md for output format. Skip gracefully if empty.
SINCE="7 days ago" bash scripts/collect-context.sh
Collects: shell history, tool usage, file edit timestamps, GitHub PRs/issues/reviews.
Merge all collector output. Compute derived metrics using scoring.md.
From commit timestamps + AI session timestamps + FSEDIT records:
Cluster commits with gap > 90 min = new session. Classify per scoring.md: deep work / quick fix / context switching / normal.
Classify by size (micro/small/medium/large) and type (feature/fix/refactor/experiment/docs/infra/revert). Compute churn rate, avg files per commit, revert count.
Read architecture decisions written this week from the shared output tree:
{SKILL_OUTPUT_DIR}/architecture-review/index.md
{SKILL_OUTPUT_DIR}/architecture-review/ADR-*.md
If the index exists, parse rows and include ADRs whose date falls within the report's date range in:
architecture-review with link to the ADR fileIf no ADRs this week, note "No ADRs recorded this week" — do not invent decisions.
Cross-reference AI session end times with commit timestamps. See scoring.md.
After processing, write these sections (orchestrating agent or synthesis subagent):
Tone: Founder briefing co-founder. Specific numbers. Honest about bad weeks. No corporate fluff.
Always write both markdown and HTML.
Fill weekly-template.md.
Path: {output_dir}/weekly-YYYY-MM-DD.md
Follow report-template.md. Link to the .md file in header.
Path: {output_dir}/weekly-YYYY-MM-DD.html
Maintain {output_dir}/index.md:
# CTO Weekly Reviews
| Week ending | Markdown | HTML | Health | Commits | Highlights |
|-------------|----------|------|--------|---------|------------|
Append row (newest first):
| YYYY-MM-DD | [weekly-YYYY-MM-DD.md](weekly-YYYY-MM-DD.md) | [weekly-YYYY-MM-DD.html](weekly-YYYY-MM-DD.html) | [score]/100 | [n] | [one-line summary] |
.md, .html, index.md)gh CLI — skip PR section; suggest brew install ghdate -d and date -v~/ — pass explicit REPOS pathsME or run twice"give me a weekly review"
"generate my CTO report for this week"
"what did I build this week"
"weekly digest, last 14 days"
"markdown only — skip HTML"
npx claudepluginhub hiteshbandhu/skills-i-use --plugin core-skillsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.