metrics
Skill4 starsChanged 30 days agoMITView on GitHub
[UDS] Track development metrics, code quality indicators, and technical debt over time. Use when: assessing ongoing project health, classifying and trending technical debt, reporting code quality to a team. Not for: first-time assessment of an unfamiliar codebase — use /discover; test coverage specifically — use /coverage or /ac-coverage. Keywords: metrics, code quality, technical debt, project health, debt trend, 開發指標, 技術債, 專案健康度.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- AsiaOstrich/universal-dev-standardsword for word, first seen Nov 4, 2026
- SatanshuMishra/interphasetheir own version, first seen Nov 1, 2026
- hiper2d/werewolf-ai-party-gametheir own version, first seen Nov 1, 2026
- vijaysuperpositionist/skillstheir own version, first seen Nov 1, 2026
- vivekschaudhary/compasstheir own version, first seen Oct 25, 2026
Used with
Projects with it also use ingest, spec and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JaimeGBASkillingest
Digest an external source (article, paper, transcript, URL, book chapter) and integrate its content into the knowledge base
Also in 3 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 3 projects that use this
Microsoft AzureSkilltest
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 1
- AsiaOstrich/universal-dev-standards★ 84100% same
Edited · 0
None found.
Wrote their own version · 19
- google-gemini/gemini-cli★ 109ksame name
- ZimoLiao/scholaraio★ 585same name
- menkesu/awesome-pm-skills★ 441same name
- ai-analyst-lab/ai-analyst★ 304same name
- BULDEE/ai-craftsman-superpowers★ 35same name
- hiper2d/werewolf-ai-party-game★ 21same name
- ariaxhan/kernel-claude★ 15same name
- The-Utopia-Studio/skills★ 6same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- vivekschaudhary/compass★ 2same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ac-coverageSkill
- adrSkill
- ai-collaboration-standardsSkill
- ai-friendly-architectureSkill
- ai-instruction-standardsSkill
- api-designSkill
- atddSkill
- auditSkill
- bddSkill
- brainstormSkill
- changelogSkill
- checkinSkill
- ci-cdSkill
- code-reviewSkill
- commitSkill
- contract-testSkill
- databaseSkill
- deploySkill
- methodologySkill
- dev-workflowSkill
- docgenSkill
- documentation-guideSkill
- durableSkill
- e2eSkill
- error-code-guideSkill
- git-workflow-guideSkill
- incidentSkill
- journey-test-assistantSkill
- knowledge-graphSkill
- logging-guideSkill
- migrateSkill
- observabilitySkill
- orchestrateSkill
- planSkill
- prSkill
- discoverSkill
- project-structure-guideSkill
- pushSkill
- refactorSkill
- releaseSkill
- requirementSkill
- retrospectiveSkill
- reverseSkill
- runbookSkill
- securitySkill
- scanSkill
- skill-builderSkill
- sloSkill
- spec-deriveSkill
- sddSkill
- sweepSkill
- tddSkill
- coverageSkill
- testing-guideSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
0
Distinctive
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
- Very specific: line 80
Use --debt-trend to compare against previous snapshots.
- Very specific: line 149
After /metrics completes, the AI assistant should suggest:
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Metrics Dashboard Assistant | 開發指標助手
Track development metrics, code quality indicators, and project health over time.
追蹤開發指標、程式碼品質指示器,以及專案隨時間的健康狀態。
Usage | 使用方式
| Command | Purpose | 用途 |
/metrics | Run full project health check | 執行完整專案健康檢查 |
/metrics --quality | Code quality metrics only | 僅程式碼品質指標 |
/metrics --debt | Classified technical debt report | 分類技術債報告 |
/metrics --debt-trend | Debt trend over time | 技術債趨勢 |
/metrics --test | Test health metrics | 測試健康指標 |
/metrics src/ | Scope to specific module | 限定特定模組範圍 |
Metric Categories | 指標類別
| Category | Metrics | 指標說明 |
| Code Quality | Complexity, duplication, lint warnings | 複雜度、重複率、lint 警告 |
| Test Health | Coverage %, pass rate, flaky count | 覆蓋率 %、通過率、不穩定測試數 |
| Commit Quality | Size, frequency, conventional format | 大小、頻率、格式合規 |
| Debt Tracking | TODO/FIXME counts, age of issues, debt classification | TODO/FIXME 數量、問題存在時間、債務分類 |
| Dependency Health | Outdated packages, vulnerability count | 過時套件、漏洞數量 |
Technical Debt Classification | 技術債分類
Based on SQALE methodology and ISO/IEC 25010 maintainability characteristics.
基於 SQALE 方法和 ISO/IEC 25010 維護性子特性。
| Category | What to Measure | 衡量項目 | Detection Method |
| Code Debt | TODO/FIXME, dead code, duplications | TODO/FIXME、死碼、重複 | Grep, lint |
| Test Debt | Uncovered modules, low coverage areas | 未覆蓋模組、低覆蓋區域 | Coverage report |
| Design Debt | Complexity hotspots (cyclomatic > 15), deep nesting | 複雜度熱點、深層巢狀 | Static analysis |
| Doc Debt | Undocumented APIs, outdated docs | 未文件化 API、過時文件 | JSDoc/TypeDoc scan |
| Dependency Debt | Outdated packages, known CVEs | 過時套件、已知 CVE | npm audit/outdated |
Debt Report Format | 債務報告格式
## Technical Debt Report
**Date**: YYYY-MM-DD | **Debt Density**: N items per 1K lines
### Summary
| Category | Count | Severity | Est. Fix Time | Trend |
|----------|-------|----------|---------------|-------|
| Code Debt | 42 | Medium | 21h | ↑ +5 |
| Test Debt | 15 modules | High | 30h | → stable |
| Design Debt | 3 hotspots | High | 16h | ↓ -1 |
| Doc Debt | 8 APIs | Low | 8h | ↑ +2 |
| Dependency Debt | 5 outdated | Critical | 4h | → stable |
**Total Estimated Remediation**: 79 hours
### Top Priority Items
1. [CRITICAL] CVE-2024-XXXX in lodash — fix: npm update
2. [HIGH] src/parser/ complexity 28 — fix: extract methods
3. [HIGH] src/payments/ 0% coverage — fix: add IT testsTrend Tracking | 趨勢追蹤
Use --debt-trend to compare against previous snapshots.
使用 --debt-trend 與過去的快照比較。
User: /metrics --debt-trend
AI: Technical Debt Trend (last 3 months):
Code Debt: ████████░░ 42 (+5) ↑ increasing
Test Debt: ██████░░░░ 15 (0) → stable
Design Debt: ███░░░░░░░ 3 (-1) ↓ improving
Doc Debt: ████░░░░░░ 8 (+2) ↑ increasing
Dep Debt: ██░░░░░░░░ 5 (0) → stable
Overall: 73 items (was 67) — ⚠️ debt increasingQuick Health Score | 快速健康分數
The health score is a weighted composite:
健康分數為加權組合:
| Factor | Weight | Ideal | 理想值 |
| Test coverage | 30% | >= 80% | >= 80% |
| Lint pass rate | 20% | 100% | 100% |
| TODO/FIXME density | 15% | < 1 per 1K lines | < 每千行 1 個 |
| Build success | 20% | 100% | 100% |
| Dependency freshness | 15% | < 3 months | < 3 個月 |
Score = sum(factor_score * weight)
Workflow | 工作流程
- COLLECT - Gather raw metrics from tools and git history
- ANALYZE - Compare against thresholds and historical trends
- REPORT - Generate summary with actionable highlights
- TREND - Show direction (improving / declining / stable)
- 收集 - 從工具與 git 歷史收集原始指標
- 分析 - 與閾值及歷史趨勢比較
- 報告 - 產生含可行動重點的摘要
- 趨勢 - 顯示方向(改善 / 衰退 / 穩定)
Usage Examples | 使用範例
User: /metrics
AI: Analyzing project health...
Code Quality: B+ (complexity avg 8.2, 0 lint errors)
Test Health: A (coverage 87%, 0 flaky tests)
Debt Tracking: C (42 TODOs, 3 FIXMEs)
Overall Score: 78/100 (Good)User: /metrics --debt
AI: Technical Debt Summary:
TODO: 42 (12 in src/legacy/, 8 in src/utils/)
FIXME: 3 (all in src/parser/)
Oldest: 6 months (src/legacy/auth.js:45)
Trend: +5 since last month (increasing)Next Steps Guidance | 下一步引導
After /metrics completes, the AI assistant should suggest:
指標分析完成。建議下一步 / Metrics analysis complete. Suggested next steps:
- 執行
/refactor處理高複雜度模組 ⭐ Recommended / 推薦 — Address high-complexity modules- 執行
/coverage改善低覆蓋率區域 — Improve low-coverage areas- 執行
/audit檢視安全與依賴問題 — Review security & dependency issues- 執行
/metrics --debt-trend追蹤技術債趨勢 — Track debt trend over time- 執行
/retrospective在回顧中討論技術債 — Discuss tech debt in retrospective
Version History | 版本歷史
| Version | Date | Changes | 變更 |
| 1.1.0 | 2026-03-26 | Add tech debt classification, SQALE quantification, trend tracking | 新增技術債分類、SQALE 量化、趨勢追蹤 |
| 1.0.0 | 2026-03-24 | Initial release | 初始版本 |
AI Agent Behavior | AI 代理行為
完整的 AI 行為定義請參閱對應的命令文件:
/metricsFor complete AI agent behavior definition, see the corresponding command file:
/metrics
License | 授權
CC BY 4.0
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
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.

