ワンクリックで
code-health
Run repo code-health checks: duplication, dead code, complexity, maintainability, coverage hotspots, diff summary.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run repo code-health checks: duplication, dead code, complexity, maintainability, coverage hotspots, diff summary.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create, repair, validate, visually QA, and package Codex-compatible v2 animated pets from character art, generated images, company or prospect brand cues, or visual references. Use for any new Codex pet, custom mascot, non-pixel pet style, brand-inspired pet, existing-pet repair, or 8x11 spritesheet workflow requiring all 9 standard animation rows, 16 look directions, deterministic assembly, QA artifacts, and spriteVersionNumber 2 packaging.
Rewrite current branch into N semantic commits with a legacy backup branch and optional rebase onto origin/main.
Merge origin/main into current branch while preserving branch intent, context, and ownership decisions.
Chain branch onboarding, code-health, and non-test analysis into a branch-scoped remediation plan.
Summarize current branch diff from fork point with intent, scope, risks, and context for follow-on work.
Audit codebase architecture: module dependencies, layering, circular imports, ownership, and structural decay.
| name | code-health |
| description | Run repo code-health checks: duplication, dead code, complexity, maintainability, coverage hotspots, diff summary. |
Run the repo's code-health pipeline and deliver a concise, actionable report that highlights risks and cleanup opportunities. Always split diff reporting into non-test vs test. Minimize non-test diff; do not constrain test diff.
pytest, coverage, vulture, radon, xenon, and jscpd (via npx or global install). Use uv if available.test -f /Users/mrx-ksjung/.codex/skills/code-health/scripts/run_code_health.py || rg --files /Users/mrx-ksjung/.codex/skills/code-health -g 'run_code_health.py'python /Users/mrx-ksjung/.codex/skills/code-health/scripts/run_code_health.py --mode summary --top 20--base <upstream> only to override the upstream branch used for fork-point detection.--mode full for deeper scans (keep the same fork-point baseline).--top-files 20 to expand the branch churn list.stderr and can write a live status file with --status-json /path/to/code_health.status.json.--status-json is omitted, the script writes a sibling *.status.json next to the normal report JSON/output directory when it has enough path context.pytest --cov=stowage --cov=tui -q; treat that as evidence for the normal test lane only, never as make test-full or any full-dataset substitute.--skip-coverage only if tests are too heavy; ask before skipping coverage when accuracy matters.--out-dir, verify writability: test -w /tmp or test -d "$CODEX_HOME/shared/code-health".<repo_root>/.codex_tmp/code-health) and report the fallback.pytest failure from later reporting failure so downstream consumers can decide whether the standard test item passed even when code-health overall failed.xenon FAIL, radon C+), run:
uv run radon cc src -s -n Cuv run xenon --max-absolute B --max-modules A --max-average A src (or repo-provided thresholds)references/xenon_triage_playbook.md:
steps (average tool or reasoning steps)cost_usd (if available from logs)efficiency = Acc@5 / cost_usd (or mark unavailable when no cost metric exists)rg to files surfaced by diff/health outputs before any broader scan.rg --files or find.git rev-parse --is-inside-work-tree.git log --since=1.week --name-only and git diff --stat.test -f / test -d first; when $CODEX_HOME/shared/code-health is missing, skip it and continue with /tmp/code-health.--skip-coverage) and continue.python -c or single-line commands for inline scripts.ruff implicitly via health scripts, set RUFF_CACHE_DIR to a writable path (prefer <repo_root>/.ruff_cache) after test -w <repo_root>.pytest --cov ... lane completed.status, standard_test_status, and failure object for downstream automation.status_json file with phase, current_step, heartbeat updates, and artifact paths for long-running checks.code-health coverage satisfies make test-full; full-dataset verification requires an explicit separate run.scripts/run_code_health.py: orchestrate tool execution and write global reports (not in repo).scripts/diff_summary_compact.py: compact git diff summary.scripts/code_health_compact.py: vulture/radon/xenon summary with thresholds.scripts/coverage_hotspots.py: coverage hotspot report from coverage.json.references/xenon_triage_playbook.md: block-first/module-second remediation order for xenon failures.$CODEX_HOME/shared/code-health if CODEX_HOME is set, otherwise /tmp/code-health.<project>__<branch>__code_health.{md,json}.legacy__...__YYYYmmdd_HHMMSS to keep history.test -d "$CODEX_HOME/shared/code-health"; if missing, use /tmp/code-health and continue.