juandelossantos/another-agent-skills/project-metrics

Claude Code and agent skill by juandelossantos/another-agent-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Log empirical quality metrics across projects: build pass rate, rework, coverage, discovery time, gate pass rate. Runs automatically in the background. Do NOT use for manual data collection.

Install

npx vskill@latest install juandelossantos/another-agent-skills/project-metrics

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as juandelossantos/another-agent-skills/project-metrics.

Project Metrics

Runs automatically in background. Do NOT invoke directly.

When to Use

Automatically in background after every significant action. No direct invocation needed.

When NOT to Use

  • Manual data collection or ad-hoc queries (runs automatically)
  • Direct invocation (background skill only)

Output Contract

ArtifactFormatLocationQuality Criteria
quality-metrics.json data fileJSON file with per-project metrics (build, commit, gate, coverage, discovery, override) + global aggregates~/.config/opencode/quality-metrics.jsonMetrics logged automatically after every significant action, 6 metric types covered, global aggregates recalculated after each entry, no secrets or code in file, last 90 days per-project retained

Logs empirical quality metrics after every significant action, enabling retrospectives, trend analysis, and continuous improvement.

Purpose

Without metrics, "quality" is unmeasurable. Answers:

  • Builds passing more often over time?
  • Time in discovery vs rework?
  • Gates catching issues before code?
  • User frequently overriding suggestions?

Automatic Logging Triggers

After these actions, skill MUST log:

ActionMetric TypeKey Fields
npm run buildbuildresult, duration, errors, warnings
git commitcommitfiles_changed, pre_commit_passed
Pre-commit checklistgategate_name, result, checks_passed/failed
Test runcoveragebefore, after, delta, tests_added
Discovery phase completediscoveryduration, questions_asked, user_confirms
User overrideoverridetype, reason, phase, was_agent_correct

→ See `guides/METRICS-REFERENCE-GUIDE.md` for complete JSON schemas of all 6 metrics.

Manual review: User says "show metrics" or "quality report" anytime.


Storage

Location: ~/.config/opencode/quality-metrics.json

Format:

json
{
"version": "1.0",
"created_at": "2026-05-24",
"projects": {
"project-name": {
"first_session": "2026-05-20",
"last_session": "2026-05-24",
"total_sessions": 5,
"metrics": [
{ "metric": "build", "timestamp": "...", "result": "pass" }
]
}
},
"global": {
"total_builds": 42,
"build_pass_rate": 0.88,
"rework_rate": 0.13,
"avg_discovery_minutes": 9.5,
"gate_pass_rate": 0.91,
"user_override_rate": 0.08
}
}

Rules:

  • Never secrets, API keys, or code snippets.
  • Only metadata: timestamps, counts, durations, pass/fail.
  • Update global aggregates after every logged metric.
  • Keep last 90 days per-project.

Logging Commands

After any action, log with:

LOG METRIC: [metric-type]
- project: [project-name]
- [field]: [value]

Examples:

LOG METRIC: build
- project: cafe-del-alba
- result: pass
- duration: 45
- errors: 0
- warnings: 2
LOG METRIC: gate
- project: cafe-del-alba
- gate_name: pre-commit-checklist
- result: pass
- checks_passed: 12
- checks_total: 12
LOG METRIC: override
- project: cafe-del-alba
- type: stack_change
- reason: user_preferred_vue
- phase: architecture_decision

Quality Report

→ See `guides/REPORT-TEMPLATE-GUIDE.md` for presentation format.

When user requests report, read quality-metrics.json, calculate aggregates, present trends.


Anti-Rationalizations

ExcuseResponse
"Metrics slow me down."3 lines of JSON. Insight prevents hours of rework.
"I already know I'm good."Without data, "good" is a feeling. With data, improvable fact.
"User doesn't care about metrics."User cares about results. Metrics deliver better results.
"I'll add metrics later."Must log in the moment. Retroactive = guesswork.

Verification

  • [ ] ~/.config/opencode/quality-metrics.json exists and updated after every session.
  • [ ] Global aggregates recalculated after each metric.
  • [ ] No secrets or code in metrics file.
  • [ ] Quality report shows meaningful trends, not just raw numbers.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/juandelossantos/another-agent-skills/project-metrics/badge)](https://verified-skill.com/skills/juandelossantos/another-agent-skills/project-metrics)

Something wrong with this skill or its page? Tell us.