agentleFS
vasilyu1983vasilyu1983/AI-Agents-public/skills/universal/dev-ai-coding-metrics/SKILL.md

dev-ai-coding-metrics

Skill94 starsChanged 32 days agoMITView on GitHub

Measures AI coding impact and extension robustness. Use when tracking delivery, quality trajectories, cost, experience, pilots, scorecards, or leadership reporting.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the smallest scorecard that can answer the decision:

    line 66
  2. Distinctive:

    Use before publishing any AI coding report:

    line 99
  3. Very specific:

    When prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present.

    line 182
  4. Very specific:

    After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append …

    line 184

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AI Coding Metrics

Measures coding assistants and coding agents without collapsing results into vanity metrics or one blended score.

The critical distinction is mode: assistants help inline or in chat; agents execute multi-step work and need task-level measurement. Do not measure them as if they were the same thing.

When to Use This Skill

TriggerExample
Designing a pilot or rollout scorecard"We're rolling out Copilot to 200 engineers — what do we measure?"
Diagnosing usage-up / outcomes-flat"Seat utilization is 80% but PR throughput is unchanged"
Comparing assistant vs. agent workflows"Should we instrument these separately?"
Building an ROI model or leadership report"Finance wants a renewal decision by Q3"
Designing an experiment better than vendor benchmarks"We can't trust the vendor's numbers — how do we run our own study?"

Defaults

RuleRationale
Start from the decision, not the telemetry availablePrevents instrument-what-is-easy bias
Separate assistant and agent funnelsMixing hides which workflow drives results
Pair every speed metric with quality + experienceSpeed alone is misleading
Aggregate at team levelIndividual dashboards become surveillance; see Individual-Data Policy
Treat benchmarks as capability signals, not business KPIsBenchmark gaps do not equal production gaps

Workflow

  1. Define the decision.
  2. Pick the program mode: assistant, agent, or mixed.
  3. Build the minimum viable scorecard.
  4. Choose the study design.
  5. Produce one deliverable.

Quick Reference

Decision to deliverable:

DecisionDefault Output
buy, renew, or cut a toolROI model plus executive report
improve adoptionadoption metrics plus survey
prove delivery impactproductivity metrics plus experiment plan
check quality driftquality metrics plus dashboard
understand trust or frictiondeveloper-experience metrics plus survey
evaluate coding agentsagent-execution metrics plus experiment plan

Program Modes

ModeUnit of AnalysisPrimary Emphasis
assistantdeveloper-day, team-week, repo-monthadoption, delivery, quality, experience
agenttask, PR, workflow runtask success, merge, revert, review burden, cost per accepted change
mixedteam-week plus task-level samplesseparate the two funnels before combining results

Metric Families

Use the smallest scorecard that can answer the decision:

FamilyWhat It Tells You
adoptionwhether usage is real and sustained
deliverywhether software flow is faster where AI actually touches the path
qualitywhether speed gains are offset by defects, rework, review burden, or declining extension robustness
economicswhether the value justifies tool and operating cost
experiencewhether developers trust the tool and want to keep using it
agent executionwhether autonomous workflows succeed in production, not just in demos

Study Design Defaults

Planning default: 8 weeks of pre-intervention data. This is a local planning floor, not a research-derived sufficiency threshold: before a causal pilot, compute the minimum detectable effect from the baseline's own week-to-week variance and the number of team-weeks. If that MDE is larger than any effect you would act on, do not run a causal study; report a descriptive scorecard labelled directional.

SituationDesign
new pilot, no control groupdifference-in-differences against non-adopting or late-adopting teams, or an interrupted time series with ≥8 pre-period points; a single before/after delta is directional only (it absorbs freezes, reorgs, and hiring waves) When teams adopt at different times, plain two-way fixed-effects DiD is biased; use a staggered estimator and check pretrend power before reading a flat pretrend as proof (foundations-causal-inference)
enough comparable teamsmatched A/B or stratified assignment
teams resist permanent denial of toolscrossover design
agent workflow change on one task familytask-level shadow comparison or reviewer-blind evaluation
leadership wants a fast answerbalanced scorecard with explicit caveats, not a causal claim

Cohort and denominator contract

Freeze the measurement population before reading outcomes. Record the eligible population, assignment rule, actual exposure, observation window, and accepted outcome for each metric. Report eligible, assigned, exposed, and observed counts side by side; never silently replace the assigned cohort with active users, completed tasks, or merged PRs. That survivor-only denominator makes adoption and success look better precisely when setup failures, abandoned agent runs, or unmerged changes are the problem.

For incomplete observations, name the reason (not_started, abandoned, still_open, telemetry_missing, or excluded_by_rule) and keep it in the funnel. Treat still-open work as right-censored rather than failed until the outcome window closes. A report may be directional with imperfect telemetry, but it must state which denominator supports each percentage and how missing cases could change the decision.

When exporting GitHub PRs, retain open, closed-unmerged, and merged outcomes in the opened-since cohort. A PR export cannot recover assigned tasks that never produced a PR; join it to the task registry before reporting agent success. Treat author-level CSV as restricted source data under the Individual-Data Policy.

Measurement Checklist

Use before publishing any AI coding report:

  • Baseline established (≥8 weeks before intervention)
  • Assistant and agent funnels tracked separately
  • Every speed metric paired with at least one quality metric
  • Sample size, confidence level, and study design stated
  • Confounds documented (team changes, release pressure, policy changes)
  • Vendor evidence labeled as vendor evidence
  • Usage measured after stabilization (not week-1 novelty period)
  • Review burden and rework cost included in ROI model
  • Edit-capable agents measured across evolving-spec checkpoints, including late-checkpoint cost and quality slopes
  • Aggregated at team level (no manager-visible individual dashboards)

Evidence Rules

Durable rules from the research; the dated studies, figures, and caveats live in references/evidence-update.md:

  • AI amplifies existing system strengths and weaknesses; it is not a universal accelerant.
  • Perceived and measured gains can differ; never report self-reported gains as measured impact.
  • Throughput gains can shift load to review and incidents; pair any throughput gain with review-burden and incident metrics.

Anti-Gaming Checklist

Reject a scorecard or report if any of the following apply:

  • Single blended AI productivity score mixing usage, speed, sentiment, and quality
  • Seat activation or prompt volume cited as delivery impact
  • Cross-team comparison without controlling for stack, task mix, staffing, or release pressure
  • Measurement period is <8 weeks or includes week-1 novelty window
  • Vendor benchmark cited as production ROI evidence
  • Review burden excluded from ROI model
  • Individual-level AI usage visible to managers
  • Directional before/after movement stated as causal without controlled design
  • SlopCodeBench averages or trajectory signals used as organizational targets or causal ROI evidence

Individual-Data Policy

This is the one policy for person-level data, shared with dev-contribution-quality-analysis (which points here):

  • Team level by default. AI usage and AI-assist metrics are never shown to managers per person and never feed performance, promotion, or staffing decisions.
  • Person-level output is allowed only as opt-in self-review or coaching, shown to the person first, with the sampled evidence and a correction path.
  • Questions about individuals ("who uses AI well", "per-engineer quality") route to dev-contribution-quality-analysis under these limits; team-level AI-tool impact stays here.

Navigation

References

  • references/adoption-metrics.md — assistant and agent adoption funnels, metric definitions, stall patterns, privacy rules
  • references/productivity-metrics.md — DORA and SPACE applied to AI workflows, delivery stack decomposition, confound management
  • references/quality-metrics.md — defect, complexity, test, security, and technical debt metrics with targets and alert thresholds
  • references/roi-framework.md — full cost model (including review burden), benefit model, scenario planning, executive report structure
  • references/developer-experience-metrics.md — satisfaction surveys, cognitive load, friction indicators, trust calibration, DX anti-patterns
  • references/agent-execution-metrics.md — agent funnel, core metrics, reviewer burden, scorecards for pilot / scaling / executive decisions
  • references/benchmarking-methodology.md — A/B, before/after, crossover, shadow designs; statistical rigor; confound management
  • references/theory-of-constraints-applied.md — bottleneck identification before instrumenting, throughput accounting for ROI, DBR for review-queue protection, CRT for stalled rollouts, evaporating cloud for adoption-vs-quality tensions
  • references/evidence-update.md — dated citations with caveats: METR RCT (2025), METR 2026 update (selection-bias caveat), DORA 2025 AI report, DORA 2026 ROI report, DX Core 4, Faros 2026 telemetry, SlopCodeBench

Assets and data

  • assets/metric-dashboard-template.md
  • assets/adoption-survey-template.md
  • assets/roi-calculator-template.md
  • assets/executive-report-template.md
  • assets/experiment-design-template.md
  • data/sources.json
  • data/sample-ai-metrics.json

Scripts

  • scripts/roi_calculator.py — when calculating a capacity-value scenario, supply the observation period and both measured burden terms; zero-cost ROI is undefined. Per-family rating bands are illustrative local rubrics, not validated constructs.
  • scripts/extract_github_events.py — when collecting the PR outcome cohort or commit telemetry; look up GitHub endpoint permissions and rate-limit guidance before a live export.
  • scripts/README.md

Cross-References

  • ../dev-contribution-quality-analysis/SKILL.md — per-person or team contribution quality from commit and PR history, under the Individual-Data Policy
  • ../dev-context-engineering/SKILL.md
  • ../ai-agents/SKILL.md
  • ../qa-observability/SKILL.md
  • ../product-management/SKILL.md

Learnings Loop

When prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.