بنقرة واحدة
refresh-branch-docs
Refresh branch-scoped docs and AGENTS from current diff, code evidence, and repo SSOT conventions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Refresh branch-scoped docs and AGENTS from current diff, code evidence, and repo SSOT conventions.
التثبيت باستخدام 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 | refresh-branch-docs |
| description | Refresh branch-scoped docs and AGENTS from current diff, code evidence, and repo SSOT conventions. |
Refresh internal docs so they match current branch behavior without losing map-first navigation quality. Default to incremental delta refresh; use full refresh only when explicitly requested or when drift is widespread. Collect evidence first, then rewrite docs with explicit anchors. Prefer repo-local, versioned artifacts over external summaries. If important operating context only exists outside the repository, encode it into the refreshed docs or linked references.
flowchart LR
A["Branch Onboarding"] --> B["Impact Mapping"]
B --> C["Code Evidence"]
C --> D["Doc Rewrite"]
D --> E["Mechanical Validation"]
E --> F["Delivery Brief"]
AGENTS.md map-first, not encyclopedia-first.docs/_meta/docs-contract.md).AGENTS.md -> docs/index.md -> leaf docs).docs-check or equivalent).Collect branch onboarding context first.
Run branch-onboarding-brief before editing docs and reuse its outputs.
Capture changed files, net LOC, and high-churn non-test modules from onboarding output.
Read map and boundary docs first.
Read AGENTS.md, docs/index.md, and docs/_meta/docs-contract.md before drafting edits.
If local AGENTS are active, inventory src/**/AGENTS.md and keep chain consistency.
If the repository keeps top-level design/plan/quality/reliability/security docs, read the relevant ones before rewriting leaf docs.
Choose refresh mode.
--base to let the helper detect origin/HEAD, then main/master.
Run:python /Users/mrx-ksjung/.codex/skills/refresh-branch-docs/scripts/collect_doc_refresh_context.py --format md
Use references/doc_update_matrix.md to validate and expand candidate docs.
Always prioritize:
AGENTS.md, docs/index.md, docs/_meta/docs-contract.md) when doc navigation or boundaries changedprobe-deep-search, then use rg -n for exact anchors.
Use references/doc_refresh_localization_queries.md only as doc-refresh-specific seed/query guidance.
Require evidence for each doc claim:probe extract plus adjacent call-site search, or from rpg-loop-reasoning when cross-module flow remains unclearrg -nAvoid speculative text. If uncertain, mark it as unresolved and list missing evidence.
rg -n "TODO|TBD|FIXME|\\bdeprecated\\b" docs
rg -n "<old_symbol>" docs
rg -n "<new_symbol>" docs
Run docs integrity gates:
make docs-check (if target exists).scripts/check_code_paths.sh, scripts/check_make_targets.sh, scripts/check_md_links.py directly.Optionally run focused tests for changed behavior and report only tests that were actually executed. If the same documentation failure keeps reappearing in review feedback or validation output, recommend promoting that rule into tooling, linters, structural tests, or reusable scripts instead of adding more prose.
rpg-loop-reasoning) was reusedbranch-onboarding-brief owns branch diff collection and onboarding synthesis.rpg-loop-reasoning may supply upstream dual-view localization context; this skill remains the owner of doc impact mapping, evidence gathering, doc rewrites, and doc consistency validation.scripts/collect_doc_refresh_context.py: map branch diff to candidate docs.../_shared/references/docs_harness_checklist.md: shared harness checklist for map/SSOT/progressive-disclosure/docs-check.references/doc_update_matrix.md: code-path to doc mapping matrix.references/doc_refresh_localization_queries.md: reusable probe/rg query sets for doc refresh.