mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-11 02:33:10 +08:00
feat(harness-audit): add GitHub + deploy-target categories, big-phase Stop hook
Extends the deterministic /harness-audit engine with: - GitHub Integration category (always-on): workflows, PR template, issue templates, CODEOWNERS, Dependabot/Renovate. - Per-provider Integration categories (conditional via detector map): vercel, netlify, cloudflare, fly. Only scored when a provider marker is present (e.g. vercel.json, netlify.toml, wrangler.toml, fly.toml). - Dynamic max_score (replaces hardcoded 70). - New JSON output fields: applicable_categories[], category_count, rubric_version: "2026-05-19". - Registers big-phase-nudge.js Stop hook in hooks/hooks.json: prints one nudge line when >=5 files OR >=200 non-lockfile lines OR a dependency-manifest change is detected. Aggregates metrics only, honors CLAUDE_QUIET=1 and ECC_PHASE_NUDGE_OFF=1. Mirror docs updated. Rubric version bumped 2026-03-30 -> 2026-05-19.
This commit is contained in:
@@ -20,9 +20,9 @@ node scripts/harness-audit.js <scope> --format <text|json> [--root <path>]
|
||||
|
||||
This script is the source of truth for scoring and checks. Do not invent additional dimensions or ad-hoc points.
|
||||
|
||||
Rubric version: `2026-03-30`.
|
||||
Rubric version: `2026-05-19`.
|
||||
|
||||
The script computes 7 fixed categories (`0-10` normalized each):
|
||||
The script computes up to 12 fixed categories (`0-10` normalized each). The first seven are always applicable; GitHub Integration is always applicable; deploy-target categories are applicable only when a matching marker is detected.
|
||||
|
||||
1. Tool Coverage
|
||||
2. Context Efficiency
|
||||
@@ -31,6 +31,11 @@ The script computes 7 fixed categories (`0-10` normalized each):
|
||||
5. Eval Coverage
|
||||
6. Security Guardrails
|
||||
7. Cost Efficiency
|
||||
8. GitHub Integration
|
||||
9. Vercel Integration *(when `vercel.json` or `.vercel/` is present)*
|
||||
10. Netlify Integration *(when `netlify.toml` or `.netlify/` is present)*
|
||||
11. Cloudflare Integration *(when `wrangler.toml` or `wrangler.jsonc` is present)*
|
||||
12. Fly Integration *(when `fly.toml` is present)*
|
||||
|
||||
Scores are derived from explicit file/rule checks and are reproducible for the same commit.
|
||||
The script audits the current working directory by default and auto-detects whether the target is the ECC repo itself or a consumer project using ECC.
|
||||
@@ -39,11 +44,12 @@ The script audits the current working directory by default and auto-detects whet
|
||||
|
||||
Return:
|
||||
|
||||
1. `overall_score` out of `max_score` (70 for `repo`; smaller for scoped audits)
|
||||
2. Category scores and concrete findings
|
||||
3. Failed checks with exact file paths
|
||||
4. Top 3 actions from the deterministic output (`top_actions`)
|
||||
5. Suggested ECC skills to apply next
|
||||
1. `overall_score` out of `max_score`. `max_score` depends on which categories are applicable to the target — never assume a fixed total.
|
||||
2. `applicable_categories[]` and `category_count` describe which categories contributed.
|
||||
3. Category scores and concrete findings.
|
||||
4. Failed checks with exact file paths.
|
||||
5. Top 3 actions from the deterministic output (`top_actions`).
|
||||
6. Suggested ECC skills to apply next.
|
||||
|
||||
## Checklist
|
||||
|
||||
@@ -55,14 +61,15 @@ Return:
|
||||
## Example Result
|
||||
|
||||
```text
|
||||
Harness Audit (repo): 66/70
|
||||
Harness Audit (repo, repo): 71/80
|
||||
- Tool Coverage: 10/10 (10/10 pts)
|
||||
- Context Efficiency: 9/10 (9/10 pts)
|
||||
- Quality Gates: 10/10 (10/10 pts)
|
||||
- GitHub Integration: 2/10 (2/10 pts)
|
||||
|
||||
Top 3 Actions:
|
||||
1) [Security Guardrails] Add prompt/tool preflight security guards in hooks/hooks.json. (hooks/hooks.json)
|
||||
2) [Tool Coverage] Sync commands/harness-audit.md and .opencode/commands/harness-audit.md. (.opencode/commands/harness-audit.md)
|
||||
1) [GitHub Integration] Add at least one workflow under .github/workflows/. (.github/workflows/)
|
||||
2) [Security Guardrails] Add prompt/tool preflight security guards in hooks/hooks.json. (hooks/hooks.json)
|
||||
3) [Eval Coverage] Increase automated test coverage across scripts/hooks/lib. (tests/)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user