archive/skills/dev-loop-research/SKILL.md
Standalone research agent — scans repo health and vault health, outputs prioritized work-item recommendations. Pass "high" for aggressive mode.
npx skillsauth add karlorz/agent-skills dev-loop-researchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Standalone invocable research agent. Scans two parallel tracks — code health and vault health — cross-references findings, and outputs a prioritized work-item recommendation list.
/dev-loop-research or /dev-loop-research high/loop 1h dev-loop-researchParse arguments for high (case-insensitive). If present,
intensity = high; otherwise intensity = normal.
./.claude/dev-loop.config.md. Required
fields: slug. Optional: vault, cli_src, cli_test,
skills_glob. If missing, prompt user to bootstrap via dev-loop.knowledge_layer config field (default:
skillwiki if vault exists, none otherwise).{vault}/SCHEMA.md ## Layers section —
extract backtick-wrapped directory names ending in /, exclude raw
and project. Store for Track B.CLAUDE.md and user MEMORY.md fresh.┌───────────────────────────────────────────────────────────┐
│ 0. REFRESH │
│ Load project config + read CLAUDE.md/MEMORY.md fresh │
├─────────────────────────┬─────────────────────────────────┤
│ TRACK A: CODE HEALTH │ TRACK B: VAULT HEALTH │
│ │ │
│ A1. CLI COVERAGE GAPS │ B1. RAW-TO-PAGE COVERAGE │
│ A2. SKILLS AUDIT │ B2. CROSS-LINK DENSITY │
│ A3. SPEC DRIFT │ B3. PAGE QUALITY │
│ A4. UNPUSHED COMMITS │ B4. TYPE COVERAGE │
├─────────────────────────┴─────────────────────────────────┤
│ 1. VAULT RETROS (cross-cutting) │
│ 2. SYNTHESIZE — merge + score (P0–P3, +P4 in high) │
│ 3. SAVE & EXIT │
└───────────────────────────────────────────────────────────┘
Skip Track B entirely when query_vault not in BACKEND_CAPS or vault
is empty. Skip Track A when cli_src is empty.
{cli_src}/*.ts. For each: test file in {cli_test}/? --human
flag? Stable exit codes? TODO/FIXME/HACK markers?skills_glob. Check: CLI subcommand
references exist? Description matches current behavior? Skill maps
list all skills correctly?git log origin/$RELEASE_BRANCH..HEAD --oneline. Priority:
≥10→P1, 5-9→P2, 1-4→P4+.skillwiki lint for wikilink_citation warnings.[[wikilink]] in body region per page.skillwiki orphans/overlap.---).Scan {vault}/log.md for recent Improve: and Generalize?: yes entries.
Check {vault}/projects/{slug}/compound/ for pending distillation work.
A retro's Improve: field that names a concrete action is a direct
work-item candidate.
Score each finding:
| Score | Impact | Effort | |-------|--------|--------| | P0 | Spec violation or regression | Any | | P1 | High — untested command, raw-to-page gap >50%, isolated pages | S/M | | P2 | Medium — thin pages, skill map drift, single-source, empty type dirs | S/M | | P3 | Low — code quality, cross-link improvement, section completeness | Any | | P4+ | Speculative — proactive improvements, future-proofing, polish | Any |
normal: top-3, P0–P3 only, suppress unchanged recurring. high: top-5, P0–P4+, never suppress recurring.
Output format per item:
### #N: [title] (Px)
**Source**: [track source]
**What**: One-paragraph spec.
**Acceptance**: Bullet list of verifiable outcomes.
**Files**: Likely files to touch (omit for vault-only items).
{vault}/log.md:
## [YYYY-MM-DD HH:MM] research | dev-loop-research cycle [normal|high]
- Findings: [N] new, [N] recurring
- Vault health: raw=[N] pages=[N] cited=[N]% isolated=[N] thin=[N]
- Top-N: [titles]
Pre-idle gate (mandatory): Before declaring idle, collect actual vault health metrics from B1–B4. If any metric exceeds thresholds below, do NOT report idle:
| Metric | normal | high | |--------|--------|------| | Uncited raw | >50% | >20% | | Isolated pages | any | any (<3 links) | | Thin pages | any (<40L) | any (<60L) | | Empty type dirs | any (entities, comparisons) | any |
Three exit states:
"Research idle — no new findings.""Research steady — [N] recurring: [titles]"NEVER report idle when vault health metrics show actionable gaps.
testing
Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".
tools
Use when porting Claude Code plugins to Codex or Agy/Gemini packages, installing or running the agent-plugin-porter CLI, verifying generated plugin output, preparing Codex personal-marketplace installs, or planning npm publish/release steps for the porter.
tools
Use when porting Claude Code plugins to Codex or Agy/Gemini packages, installing or running the agent-plugin-porter CLI, verifying generated plugin output, preparing Codex personal-marketplace installs, or planning npm publish/release steps for the porter.
development
Scaffold per-repo dev-loop config (PRD layer, knowledge layer, release config, vault path) and build the project glossary with grill-with-docs. Run once per repo before using dev-loop.