원클릭으로
planning-refactor-mart
Use when a selected mart unit must be analyzed into staging and higher-layer refactor candidates before any code changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when a selected mart unit must be analyzed into staging and higher-layer refactor candidates before any code changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use automatically before any completion, successful, passing, PR-ready, merged, or stage-complete statement to verify fresh evidence and choose accurate claim wording.
Use internally when /refactor-mart dispatches one approved Type: int or Type: mart candidate
Use when a monolith warehouse or lakehouse has a whole-warehouse `warehouse-ddl/` snapshot and needs tables or views grouped into business data domains with data owners for data mesh decentralization, setup-source selection, migration planning, or scope and migrate-mart inputs.
Use when generating or revising one dbt model for a single profiled table or view after refactor and approved test-spec work are complete.
Use when the generate-model workflow needs a read-only review of generated dbt model artifacts before accepting the result or sending it back for fixes.
Use internally when /refactor-mart dispatches one approved Type: stg candidate
| name | planning-refactor-mart |
| description | Use when a selected mart unit must be analyzed into staging and higher-layer refactor candidates before any code changes |
| user-invocable | false |
| argument-hint | <schema.table> [schema.table ...] |
Analyze one or more selected targets that form one bounded mart-domain unit and write a markdown plan of refactor candidates. This skill is planning-only: do not create, edit, delete, or rewire dbt models.
catalog/, manifest.json, and dbt/ context./refactor-mart-plan.If the selected targets do not form a coherent unit of work, stop and ask the user for a narrower target set. Do not silently widen the plan to the whole project.
Read these before drafting candidates:
references/plan-file-contract.md../_shared/references/dbt-project-standards.md../_shared/references/model-naming.md../_shared/references/sql-style.md../_shared/references/yaml-style.mdBefore analysis, scan catalog table and view entries for unresolved diagnostics with severity: "error". If any selected target has catalog errors, stop with CATALOG_ERRORS_UNRESOLVED, report the target and error code, and do not draft or write a plan.
dbt/models/staging/, dbt/models/intermediate/, and dbt/models/marts/; and/refactor-mart.stg candidates usually depend on none.int candidates must depend on all upstream stg or int candidates they require.mart candidates must depend on all upstream stg, int, or mart candidates they require.Preselect approval with - [x] Approve: yes only when all are true:
Use - [ ] Approve: no when confidence is lower, when the candidate is broad,
or when user review is required before model changes.
Never auto-approve candidates when the evidence comes from dynamic SQL recovery, string-built SQL, partial parsing, or inferred source names. Leave those candidates unapproved even when the recovered transformation looks simple. Never auto-approve column renames that carry business meaning, such as source codes mapped into alternate-key fields, unless an existing reviewed catalog or dbt model already proves the mapping.
Write exactly one markdown plan to the path supplied by the command. The plan must include:
## Targets, ## Assumptions, and ## Non-Goals sections;references/plan-file-contract.md;Candidate sections must use ## Candidate: <ID> exactly. Do not put candidates under a ## Candidates wrapper or use ### Candidate headings. Candidate sections must include approval, type, output, dependencies, validation, and execution status. Use Execution status: planned for every new candidate.
Return a concise summary with:
stg, int, and mart;/refactor-mart <plan-file> stg.