Planning open-metadata-planning

Use when starting a non-trivial feature, refactor, or multi-file change. Forces structured design thinking before writing any code - brainstorm approaches, get approval, then create a step-by-step implementation plan.

Works in Claude, ChatGPT, Codex and more
Our test
—
not tested yet
GitHub stars
16k
open-metadata/openmetadata
Added by
0
members
Updated
Dec 6
commit 15fca86
Content
1 file
no scripts · 5 KB
License
Apache 2.0
free to use

What our test found

Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.

View on GitHub ↗
name: planning
description: Use when starting a non-trivial feature, refactor, or multi-file change. Forces structured design thinking before writing any code - brainstorm approaches, get approval, then create a step-by-step implementation plan.
user-invocable: true
argument-hint: "<feature or task description>"

Planning - Design Before Code

Structured workflow for planning implementation before writing code. Prevents wasted effort from diving in without a clear direction.

When to Use

  • New features spanning multiple files or modules
  • Refactors touching backend, frontend, or ingestion layers
  • Bug fixes where the root cause is unclear
  • Any task where the approach isn't immediately obvious

Workflow

Phase 1: Understand the Problem
  1. Read before suggesting. Explore the relevant code, schemas, and tests. Do not propose changes to code you haven't read.
  2. Ask clarifying questions one at a time. Don't dump a list of 10 questions.
  3. Identify constraints:
  4. Which layers are affected? (Java backend, React frontend, Python ingestion, JSON schemas)
  5. Are there existing patterns to follow? (Check similar implementations)
  6. Database migration needed? (Flyway in bootstrap/sql/migrations/)
  7. Schema changes needed? (openmetadata-spec/ JSON schemas)
Phase 2: Propose Approaches

Present 2-3 approaches with trade-offs:

## Approach A: [Name]
- How it works: [1-2 sentences]
- Pros: [bullet list]
- Cons: [bullet list]
- Files affected: [list]
- Risk: [low/medium/high]

## Approach B: [Name]
...

## Recommendation: [A or B] because [reason]

Wait for user approval before proceeding.

Phase 3: Create Implementation Plan

Once an approach is approved, break it into ordered tasks:

  1. Each task should be completable in a single focused step
  2. Each task must specify:
  3. Exact file paths to create or modify
  4. What changes to make (not vague descriptions)
  5. Verification command (test to run, build to check)
  6. Order tasks by dependency — schema changes before model generation, backend before frontend
  7. Include a final verification task that runs all relevant tests

For Python changes, use the locked Nox sessions through Make from the checkout root: make unit_ingestion ARGS="-n 0 tests/unit/PATH". Include lock validation with the pinned "$(python3 scripts/python_tools.py uv-path)" lock --check --project ingestion. When generation inputs change, include make generate ARGS=--python-only and python3 scripts/check_generated_models.py --check. Preserve public aliases and intentional test exclusions when migrating command callers.

UI work: include a component map in the plan. Before any UI task, map every piece of the screen to the existing component it will use, from @openmetadata/ui-core-components or openmetadata-ui/src/main/resources/ui/src/components/common/. Use the concept table in .claude/rules/single-source.md and the reuse table in .claude/rules/component-library.md:

| Screen piece | Component (and props) | New? |
|---|---|---|
| Page title, breadcrumb, actions | `PageLayout.PageHeader` + `HeaderBreadcrumb` | no |
| Off / Warn / Block choice | `ButtonGroup` | no |
| Read-only switch with explanation | `Toggle` + core `tooltip` prop | core change (own PR) |
| Section inside a drawer or settings modal | `Card variant="muted"` + `Typography` + `Box` (ADR:2026-11-05-nested-cards-sit-one-step-off-their-panel) | no |
| Editor with a different preview source | existing editor + `onPreview` callback prop | prop on the original |

Every row marked new names what was checked and why it does not fit. A new row may not be a wrapper that only forwards props to a core component, or a copy of an existing component with one call changed: those become a prop on the original component (or a core change). Each new component file also lists its X.test.tsx in the tasks. The user approves the map with the plan.

OpenMetadata task ordering pattern:

1. JSON Schema changes (openmetadata-spec/)
2. Run: make generate (regenerate Pydantic models)
3. Java backend changes (openmetadata-service/)
4. Run: mvn spotless:apply && mvn test-compile
5. Python ingestion changes (ingestion/)
6. Run: cd ingestion && make py_format && make py_format_check && make unit_ingestion_dev_env
7. Frontend changes (openmetadata-ui/.../ui/)
8. Run: yarn lint && yarn test
9. Database migrations if needed (bootstrap/sql/)
10. Full verification: mvn test or relevant integration tests
Phase 4: Execute
  • Work through the plan task by task
  • Mark each task complete as you finish it
  • If you hit a blocker, stop and discuss — don't silently deviate from the plan
  • After all tasks complete, run the final verification

Rules

  • Never skip Phase 2. Even if the approach seems obvious, stating it gets alignment.
  • No placeholder code. Every step in the plan must describe real, complete changes.
  • Schema-first. If the feature touches data models, start with JSON Schema changes in openmetadata-spec/.
  • User approves before code. Don't write code until the plan is approved.
  • No UI plan without a component map. A UI change whose plan does not map each screen piece to an existing component is not ready for approval.