ワンクリックで
branch-health-remediation-workflow
Chain branch onboarding, code-health, and non-test analysis into a branch-scoped remediation plan.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Chain branch onboarding, code-health, and non-test analysis into a branch-scoped remediation plan.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | branch-health-remediation-workflow |
| description | Chain branch onboarding, code-health, and non-test analysis into a branch-scoped remediation plan. |
Run a sequential workflow: onboard the current branch, assess code health, analyze non-test inefficiency, run graph-guided localization, then propose a minimal, deletion-first remediation plan aligned with branch goals. Prefer rpg-loop-reasoning for dual-view (semantic + topology) localization when candidates span multiple modules.
flowchart LR
A["Onboard"] --> B["Code Health"]
B --> C["Non-test Analysis"]
C --> D["RPG Loop Localization (Optional)"]
D --> E["Graph-Guided Localization"]
E --> F["Remediation Plan"]
test -f scripts/collect_branch_info.py before onboarding script usage.test -d "$CODEX_HOME/shared/code-health" before reading shared health outputs.rg --files as a secondary check when path assumptions are unclear.
If a required path is missing, skip that path and continue with fallback branch context commands:git log --since=1.week --name-onlygit diff --statOnboard the branch.
Run the branch-onboarding-brief skill first.
Proceed immediately to the next phases without asking for approval.
Run code health.
Use the code-health skill.
Keep non-test diff minimization central and call out net non-test growth.
Analyze non-test inefficiency and fragmentation.
Delegate deep-code discovery and structural localization to probe-deep-search first, then use exact-match follow-up via rg -n.
Non-test scope: exclude tests/, **/test_*.py, **/*_test.py, **/conftest.py.
If discovery pulls in tests, re-run with narrower path filters or ignore test-only hits in synthesis.
Focus areas: hot loops, large functions, duplicate logic, repeated normalization, cache misuse, redundant I/O, and split responsibilities across many small modules.
Read references/non_test_localization_queries.md for query templates before the first pass.
Delegate to rpg-loop-reasoning when dual-view localization is needed.
Use rpg-loop-reasoning in hybrid mode when at least one condition holds:
probe/rg localization.rg -n)codex-exec-sub-agent.~/.codex/skills/codex-exec-sub-agent/scripts/run.sh --timeout-sec 600 --prompt-file /full/path/prompt.txt
branch-onboarding-brief owns branch onboarding collection and briefing.code-health owns health pipeline execution and health metrics.rpg-loop-reasoning owns dual-view closed-loop localization and incremental evolution planning.references/non_test_localization_queries.mdCreate, 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.
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.
Assess tech debt and rank refactoring priorities, change pain, maintainability risks, and cleanup roadmap.