juandelossantos/another-agent-skills/project-metrics
Claude Code and agent skill by juandelossantos/another-agent-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-metricsSemi-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
| Artifact | Format | Location | Quality Criteria | |
|---|---|---|---|---|
| quality-metrics.json data file | JSON file with per-project metrics (build, commit, gate, coverage, discovery, override) + global aggregates | ~/.config/opencode/quality-metrics.json | Metrics 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:
| Action | Metric Type | Key Fields | |
|---|---|---|---|
npm run build | build | result, duration, errors, warnings | |
git commit | commit | files_changed, pre_commit_passed | |
| Pre-commit checklist | gate | gate_name, result, checks_passed/failed | |
| Test run | coverage | before, after, delta, tests_added | |
| Discovery phase complete | discovery | duration, questions_asked, user_confirms | |
| User override | override | type, 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:
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:
Examples:
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
| Excuse | Response | |
|---|---|---|
| "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.jsonexists 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
- SKILL.md in the repositoryCheckingskills/project-metrics/SKILL.md
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
[](https://verified-skill.com/skills/juandelossantos/another-agent-skills/project-metrics)