audit-label-coverage
БесплатноЗапускает вложенные скриптыНе проверенAudit and report on GitHub issue/PR label coverage with actionable recommendations
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
audit-label-coverage Skill
Comprehensive label coverage auditing for GitHub issues and pull requests with automated recommendations and multi-format reporting.
Overview
This skill audits which issues and PRs are missing required labels (type:*, status:*, priority:*, area:*) and generates actionable reports in three formats:
- CLI Report — Terminal-friendly table view
- Markdown Report — GitHub-ready documentation with recommendations
- JSON Report — Structured data for integration and tooling
Installation
npm install
Quick Start
Programmatic Usage
const { AuditLabelCoverageSkill } = require('./skills/audit-label-coverage');
const skill = new AuditLabelCoverageSkill(octokit, 'owner', 'repo');
// Audit all open issues/PRs
const result = await skill.audit({
state: 'open',
outputFormat: 'all',
outputPath: '.github/reports/audit-label-coverage',
});
// Print CLI report
console.log(result.reports.cli);
// Save to files
// - .github/reports/audit-label-coverage/audit-report.txt
// - .github/reports/audit-label-coverage/audit-report.md
// - .github/reports/audit-label-coverage/audit-report.json
Workflow Integration
name: Label Coverage Audit
on:
schedule:
- cron: '0 2 * * 1' # Weekly Monday at 2 AM UTC
workflow_dispatch:
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Audit label coverage
run: |
npm install
node scripts/audit-label-coverage.js \
--owner lightspeedwp \
--repo .github \
--format all \
--output .github/reports/audit-label-coverage
- name: Create issue with results
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const report = fs.readFileSync('.github/reports/audit-label-coverage/audit-report.md', 'utf-8');
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: 'Weekly Label Coverage Audit',
body: report,
labels: ['type:audit', 'area:governance', 'meta:bot-generated']
});
API Reference
Constructor
new AuditLabelCoverageSkill(octokit, owner, repo)
Parameters:
octokit— Authenticated Octokit GitHub API clientowner— Repository owner (string)repo— Repository name (string)
Methods
audit(options)
Runs comprehensive label coverage audit.
Options:
state(string, default:'open') — Issue state filter ('open','closed','all')outputFormat(string, default:'all') — Report format ('cli','markdown','json','all')outputPath(string, optional) — Directory to save reportsdryRun(boolean, default:false) — Preview mode (no changes)
Returns: Promise resolving to:
{
success: true,
auditResult: {
total: number,
fullyLabeled: number,
partiallyLabeled: number,
unlabeled: number,
averageCoverage: number,
familyCoverage: { family: { labeled: number, coverage: number } },
topMissingLabels: [{ family: string, count: number, percentage: number }],
topSuggestedLabels: [{ label: string, count: number }],
issues: [{ number, title, coverage, labels, missing, suggestions }]
},
reports: { cli: string, markdown: string, json: string },
dryRun: boolean
}
Example:
const result = await skill.audit({
state: 'open',
outputFormat: 'markdown',
outputPath: './reports'
});
console.log(`Audit complete: ${result.auditResult.fullyLabeled} fully labeled`);
getRecommendations(issueNumber)
Get label recommendations for a single issue.
Parameters:
issueNumber(number) — GitHub issue/PR number
Returns: Promise resolving to:
{
number: number,
coverage: number,
missing: { family: true },
suggestions: [string]
}
Example:
const rec = await skill.getRecommendations(123);
console.log(`Issue #${rec.number}: ${rec.coverage}% coverage`);
console.log('Suggested labels:', rec.suggestions);
Label Requirements
Required (Every Issue)
| Family | Count | Example | Status |
|---|---|---|---|
type:* |
1 | type:bug |
Must have exactly one |
status:* |
1 | status:in-progress |
Must have exactly one |
priority:* |
1 | priority:normal |
Must have exactly one |
area:* |
1+ | area:ci |
Must have at least one |
Optional
meta:*— Meta labels (e.g.,meta:needs-changelog)release:*— Release scope (e.g.,release:patch)comp:*— Component labels (e.g.,comp:block-editor)
Report Examples
CLI Report
════════════════════════════════════════════════════════════════════════════════
Label Coverage Audit Report
══════════════════════════════════════════════════════════
Установить audit-label-coverage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл audit-label-coverage?
Audit and report on GitHub issue/PR label coverage with actionable recommendations
Как установить скилл audit-label-coverage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл audit-label-coverage запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic