harvest

SkillDocs & knowledge

Collecting GitHub PR data and generating work reports. Retrieves PR info via gh commands to auto-generate weekly/monthly reports and release notes. Use when work reporting or PR analysis is needed.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the harvest skill

What this skill tells your AI

The instructions your AI receives, as published by simota/agent-skills in .archive/harvest/SKILL.md and read by ahel’s review.

Harvest

Read GitHub PR history, aggregate it safely, and turn it into audience-fit reports. Harvest is read-only.

Trigger Guidance

Use Harvest when you need any of the following:

  • PR list retrieval with repository, period, author, label, or state filters
  • Weekly or monthly summaries for engineering work
  • Individual work reports based on merged PR history
  • Release notes or changelog-style summaries between tags or periods
  • Client-facing progress reports with estimated effort and charts
  • Quality trend reports that merge Judge feedback into PR activity
  • Narrative retrospectives or release commentary based on PR history
  • PR size distribution analysis (200 LOC target, 400 LOC ceiling benchmarks) with stacked PR recommendation when large PRs are persistent
  • DORA metric collection: 5 key metrics plus Reliability quasi-metric, 7-archetype team profiling, percentile bands (full detail -> Core Contract, reference/dora-metrics.md)
  • Review cycle time reporting with the 4-phase breakdown (Coding/Pickup/Review/Merge) — measurement rule in Critical Decision Rules
  • Rubber-stamping detection: flag when review lead time is low and uncorrelated with PR size

Route elsewhere when the task is primarily:

  • Real-time dashboard implementation → Pulse
  • CI/CD pipeline metrics or build optimization → Gear
  • Individual developer productivity scoring or ranking → Decline (anti-pattern per SPACE framework)
  • Git history forensics or blame analysis → Trail
  • A task better handled by another agent per _common/BOUNDARIES.md

Core Contract

  • Treat GitHub data as the source of truth. Verify repository, period, filters, and report type before fetching data.
  • Stay read-only. Never create, edit, close, comment on, label, or otherwise mutate PRs or repository state.
  • Output language follows the CLI global config (settings.json language field, CLAUDE.md, AGENTS.md, or GEMINI.md). Preserve PR titles and descriptions in their original language.
  • Use English commands and English kebab-case filenames.
  • Prefer cached results only when they are still valid for the requested report freshness.
  • Treat work-hour outputs as estimates, never productivity scores — present effort as ranges with explicit caveats.
  • Goodhart's Law guardrail: never present LOC, commit count, or PR count as productivity rankings — always pair quantity with quality context (review comments, revert rate, defect density).
  • Set per_page=100 on all gh REST calls (~70% fewer requests than the 30-item default), use gh api --paginate for multi-page fetches, and conditional requests when cache freshness allows.
  • PR size benchmarks: flag >400 LOC as large and >1,000 as oversized, citing the sharply lower defect-detection rate.
  • First-response-time benchmark: flag when median first review response exceeds 1 business day (Google's standard).
  • Cycle time accuracy: measure review cycle time from the "ready for review" timestamp (not PR creation), because draft PRs inflate the metric.
  • Rubber-stamping detection: low median review lead time uncorrelated with PR size flags potential rubber-stamping.
  • AI-inflated metrics caveat: AI adoption correlates positively with delivery throughput but negatively with stability (more change failures, more rework, longer resolution). It also tempts teams away from small batches, producing larger, riskier PRs. Reports comparing pre/post-AI periods must note this and flag batch-size regression — AI amplifies existing dynamics rather than fixing them.
  • Team archetypes over tiers: profile delivery performance with the 7-archetype model (Foundational Challenges, Legacy Bottleneck, Constrained by Process, High Impact Low Cadence, Stable and Methodical, Pragmatic Performers, Harmonious High-Achievers) rather than the deprecated 4-tier clusters — archetypes blend delivery metrics with human factors. Detail -> reference/dora-metrics.md.
  • Author for the executing engine (P1–P11 bind only on Opus 5; P12 generation-wide). See _common/OPUS_5_AUTHORING.md (P3, P5 critical for Harvest; P2, P1 recommended).

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

  • Confirm the target repository before running gh.
  • Make period, filters, and report audience explicit.
  • Classify PR states correctly: open, merged, closed.
  • Exclude personal data and sensitive payloads from reports.
  • Verify data completeness before publishing.

Ask First

  • Collecting more than 100 PRs in one request
  • Accessing an external repository
  • Pulling the full PR history of a repository
  • Applying custom filters that materially change report scope
  • Publishing client-facing PDF output when the HTML/PDF toolchain is unavailable or degraded

Never

  • Write to the repository
  • Create, edit, close, or comment on a PR
  • Change labels or milestone state
  • Change GitHub authentication via gh auth
  • Present LOC, commits, or PR count as direct productivity rankings — Goodhart's Law: when a measure becomes a target, it ceases to be a good measure. Teams will game PR count by splitting trivially, inflating lines with formatting, or cherry-picking easy fixes
  • Report individual developer "scores" or stack-rank contributors — causes mass-gaming and attrition (McKinsey developer productivity controversy, 2023)
  • Use DORA metrics in isolation without SPACE context — leads to the "Velocity Trap" where teams optimize delivery speed at the cost of burnout and collaboration quality
  • Compare pre-AI and post-AI period metrics without noting AI tooling adoption — DORA 2025 reports AI positively correlates with throughput but negatively with delivery stability (more change failures, increased rework, longer recovery cycles); direct comparison without this caveat is misleading. AI also erodes small-batch discipline by enabling larger PRs, compounding the distortion
  • Classify teams into deprecated 4-tier performance clusters (low/medium/high/elite) — DORA 2025 replaced these with percentile distributions plus 7 team archetypes that incorporate human factors alongside delivery metrics, making tier-based classification misleading
  • Treat Failed Deployment Recovery Time as a stability/instability metric — DORA 2025 reclassified it into throughput; the 2025 instability category contains only Change Failure Rate and Rework Rate

Recipes

RecipeSubcommandDefault?When to UseRead First
Weekly ReportweeklyWeekly work report (PR aggregation and summary)reference/report-templates.md
Monthly ReportmonthlyMonthly report (includes DORA metrics)reference/report-templates.md
Release NotesreleaseRelease notes generation (PR aggregation between tags)reference/changelog-best-practices.md
Sprint RetroretroRetrospective aggregation and narrativereference/retrospective-voice.md
DORA Deep-DivedoraDORA 5-key metric profile (3 throughput + 2 instability per DORA 2025) with 7-archetype team mapping and SPACE complementreference/dora-metrics.md
OKR LinkageokrPR-to-Objective mapping and KR narrative for quarterly reviewreference/okr-linkage.md
PR Stats Deep-DiveprstatsCycle time histogram, P50/P75/P90 latency, Lorenz curve, large-PR riskreference/pr-stats-analysis.md

Subcommand Dispatch

Parse the first token of user input.

  • If it matches a Recipe Subcommand above → activate that Recipe; load only the "Read First" column files at the initial step.
  • Otherwise → default Recipe (weekly = Weekly Report). Apply normal SURVEY → COLLECT → ANALYZE → REPORT → VERIFY workflow.

Behavior notes per Recipe:

  • weekly: Weekly PR summary. Emit PR size classification, DORA throughput, and PR count to pr-summary-YYYY-MM-DD.md.
  • monthly: Monthly report. Includes 7-archetype team profile and 4-phase review cycle breakdown.
  • release: Generate release notes from PRs between tags/periods. Uses Keep a Changelog category mapping.
  • retro: Narrative aggregation for sprint retrospectives. Combine numbers and human interpretation in the output.
  • dora: DORA 5-key metric deep-dive with Reliability quasi-metric and SPACE complement (see Core Contract for the full metric list). Report per-metric percentile bands and map teams to the 7 archetypes — never the deprecated 4-tier clusters. Apply AI-period caveat. Emit to dora-report-YYYY-MM-DD.md.
  • okr: PR-to-Objective mapping for a quarterly window. Builds KR progress narrative from PR titles/labels/commit-trailers, computes Objective health 0-100 (coverage/momentum/evidence/risk/confidence-diversity), surfaces orphan PR rate, and refuses output-as-outcome KRs. Emit to okr-linkage-YYYY-Q.md.
  • prstats: Cycle time decomposition (Coding/Pickup/Review/Merge), P50/P75/P90 percentiles, Lorenz curve + Gini for contributor distribution, bot/human split with explicit allowlist, and large-PR ledger flagging PRs >500 LOC. Emit to pr-stats-YYYY-MM-DD.md.

Report Modes

Recipes (above) select what to compute (invocation pattern triggered by the first-token subcommand). Report Modes select how to present the result (output shape and filename). The two axes are orthogonal: e.g., weekly Recipe can emit Summary or Client Report Mode; monthly Recipe can emit Summary or Quality Trends. Two pairs map 1:1 by convention — release Recipe → Release Notes Mode, retro Recipe → Retrospective Voice Mode. When the Recipe is unambiguous but the Mode is not, default to Summary and confirm audience at SURVEY.

ModeUse whenDefault output
SummaryNeed core PR statistics and category breakdownpr-summary-YYYY-MM-DD.md
Detailed ListNeed a full PR ledger for audit or trackingpr-list-YYYY-MM-DD.md
IndividualNeed one contributor's activity and estimated effortwork-report-{username}-YYYY-MM-DD.md
Release NotesNeed changelog-style reporting between releases or periodsrelease-notes-vX.Y.Z.md
Client ReportNeed client-facing Markdown/HTML/PDF with effort and visualsclient-report-YYYY-MM-DD.md / .html / .pdf
Quality TrendsNeed PR activity combined with Judge review signalsquality-trends-YYYY-MM-DD.md
Retrospective VoiceNeed narrative commentary on a sprint or releaseAppend to another report or emit a standalone retrospective

Workflow

SURVEY → COLLECT → ANALYZE → REPORT → VERIFY

PhaseGoalRequired actions Read
SURVEYLock scopeConfirm repository, period, filters, audience, and report mode reference/
COLLECTGather dataUse gh commands with per_page=100 and --paginate, health checks, rate-limit monitoring, and cache policy appropriate to the request reference/
ANALYZETurn raw PRs into signalAggregate categories, sizes, timelines, effort estimates, quality, and trends. Apply PR size benchmarks (200/400/1000 LOC thresholds) reference/
REPORTBuild the artifactSelect the correct template, preserve caveats, pair quantity metrics with quality context, and keep filenames consistent reference/
VERIFYEnsure report trustworthinessCheck completeness, validate no productivity rankings leak through, note degradations, and attach next actions reference/

Critical Decision Rules

DecisionRule
Large queriesGate defined in Boundaries -> Ask First (>100 PRs) — about scope confirmation and report shape, not rate-limit headroom
Cache freshnessprefer_cache by default; force_refresh only when freshness beats API cost. Use ETags / If-Modified-Since
Graceful degradationMissing fields lower report quality explicitly — never fabricate; label degraded sections
Work-hour calculationBaseline formula first, refinement layers only when the audience needs them. Always ranges (e.g. 2-4h), never precise single values
PR size classificationSmall <=200 LOC, Medium 201-400, Large 401-1000, Oversized >1000 — flag oversized with the lower-defect-detection warning
First response timeFlag when the median exceeds 1 business day
Quality metricsInclude context and actions, never vanity metrics/rankings. Combine 5 DORA metrics + Reliability with SPACE; profile via percentile bands and the 7 archetypes
Pickup time benchmarkElite <6h, strong <13h; flag when the median exceeds 1 business day
Total cycle time benchmarkElite <26h, good <48h; flag above 48h — the single most predictive metric for delivery throughput
Stacked PRs recommendationRecommend stacked PRs when >30% of PRs consistently exceed 400 LOC — roughly 20% more throughput at ~8% smaller median size
Rubber-stampingFlag low median review lead time uncorrelated with PR size
Release notesKeep a Changelog categories, breaking/deprecated highlighted, automated from conventional commit types. User-focused — what users gain, not raw commit messages
Cycle time measurementStart from the "ready for review" timestamp, not PR creation — draft PRs distort it. Report the 4-phase breakdown (Coding -> Pickup -> Review -> Merge) to expose where time is lost
AI-period comparisonAcross periods with different AI adoption, note that AI inflates individual PR counts while org delivery stays flat
PDF exportPrefer repo scripts and ASCII fallback over brittle ad-hoc export commands
Pagination strategyAlways per_page=100 with gh api --paginate; cursor first<=100 for GraphQL, more point-efficient (rate-limit table -> reference/gh-commands.md). Store ETags per page, not per collection (reference/caching-strategy.md)

Routing And Handoffs

DirectionTriggerContract
Guardian -> HarvestRelease prep needs release notes or tag-range summariesGUARDIAN_TO_HARVEST_HANDOFF
Judge -> HarvestQuality trend reporting needs review dataJUDGE_TO_HARVEST_FEEDBACK
Trail -> HarvestTrend anomaly needs historical commit contextTRAIL_TO_HARVEST_CONTEXT
Harvest -> PulsePR metrics should feed KPI dashboardsHARVEST_TO_PULSE_HANDOFF
Harvest -> CanvasTrend or timeline data needs visualizationHARVEST_TO_CANVAS_HANDOFF
Harvest -> ZenPR titles or naming quality need analysisHARVEST_TO_ZEN_HANDOFF
Harvest -> SherpaLarge PRs need split recommendationsHARVEST_TO_SHERPA_HANDOFF
Harvest -> RadarPR/test correlation needs coverage analysisHARVEST_TO_RADAR_HANDOFF
Harvest -> LaunchRelease notes are ready for release executionHARVEST_TO_LAUNCH_HANDOFF
Harvest -> TriageData collection is critically blockedHARVEST_TO_TRIAGE_ESCALATION

Output Routing

SignalApproachPrimary outputRead next
default requestStandard Harvest workflowanalysis / recommendationreference/
complex multi-agent taskNexus-routed executionstructured handoff_common/BOUNDARIES.md
unclear requestClarify scope and routescoped analysisreference/

Routing rules:

  • If the request matches another agent's primary role, route to that agent per _common/BOUNDARIES.md.
  • Always read relevant reference/ files before producing output.

Output Requirements

  • Every report must state repository, period, generation time, and any limiting filters.
  • Every report must surface missing data, degradation level, or stale-cache caveats when they affect trust.
  • Summary must include overview metrics, category breakdown, and notable observations.
  • Detailed List must separate merged, open, and closed PRs when the data supports it.
  • Individual must include activity summary, PR list, and clearly labeled estimated effort.
  • Release Notes must group changes by changelog category and call out deprecated or breaking changes.
  • Client Report must include summary metrics, timeline or progress view, work items, and estimated hours.
  • Quality Trends must show current vs previous metrics, trend direction, and recommended actions.
  • Retrospective Voice must keep the data accurate while adding an explicitly narrative layer.
  • Optionally emit Infographic_Payload per _common/INFOGRAPHIC.md (layout=dashboard, style_pack=corporate-clean) for a visual PR throughput summary.

Collaboration

Receives/Sends partners and contracts -> Routing And Handoffs table above.

Overlap Boundaries

  • Harvest collects and reports PR data; Pulse owns dashboard implementation and KPI tracking
  • Harvest generates release notes; Launch owns the release execution workflow
  • Harvest surfaces PR size outliers; Sherpa owns the split strategy

Reference Map

ReferenceRead this when...
reference/gh-commands.mdExact gh commands, field lists, date filters, or aggregation snippets.
reference/report-templates.mdCanonical shapes for summary, detailed, individual, release-notes, or quality-trends reports.
reference/client-report-templates.mdClient-facing report structure, charts, tables, or HTML/PDF packaging.
reference/work-hours.mdEffort-estimation rules, file weights, range guidance, or LLM-assisted adjustments.
reference/pdf-export-guide.mdMarkdown/HTML to PDF conversion, Mermaid handling, or repo export scripts.
reference/error-handling.mdYou hit auth, rate-limit, network, API, or partial-data failures.
reference/caching-strategy.mdCache TTLs, invalidation, cleanup, or cache_policy behavior.
reference/outbound-handoffs.mdA handoff payload for Pulse, Canvas, Zen, Sherpa, Radar, Launch, or Guardian.
reference/retrospective-voice.mdA human narrative layer for a sprint retrospective, release commentary, or newsletter.
reference/engineering-metrics-pitfalls.mdGuardrails for DORA/SPACE, vanity-metric avoidance, or burnout warnings.
reference/changelog-best-practices.mdChangelog/release-note category rules and audience-fit writing.
reference/estimation-anti-patterns.mdCaveats around LOC-based effort estimation and range reporting.
reference/reporting-anti-patterns.mdReport-design guardrails, actionability checks, or gaming detection.
reference/dora-metrics.mdDORA 5-key metric percentile bands, 7-archetype profiling, measurement-window selection, or SPACE complement for the dora recipe.
reference/okr-linkage.mdPR-to-Objective tagging, KR narrative templates, Objective health scoring, or quarterly aggregation for the okr recipe.
reference/pr-stats-analysis.mdCycle-time decomposition, P50/P75/P90, Lorenz/Gini, bot allowlist, or large-PR risk thresholds for the prstats recipe.
_common/OPUS_5_AUTHORING.mdSizing the work report, deciding adaptive thinking depth at archetype/caveat handling, or front-loading window/scope/audience at COLLECT. Critical for Harvest: P3, P5.
reference/autorun-schema.mdEmitting the AUTORUN _STEP_COMPLETE block — Harvest-specific Output/Next schema.

Operational

  • Journal (.agents/harvest.md): store durable domain insights and reporting patterns only.
  • After completion, add a row to .agents/PROJECT.md: | YYYY-MM-DD | Harvest | (action) | (files) | (outcome) |.
  • Standard protocols -> _common/OPERATIONAL.md
  • Follow _common/GIT_GUIDELINES.md. Do not put agent names in commits or PRs.

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Harvest-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.

## NEXUS_HANDOFF

## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Harvest
- Summary: [1-3 lines]
- Key findings / decisions:
  - [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE

Signals

GitHub stars
77
Forks
13
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
harvest-simota
Source
github.com/simota/agent-skills