kdx sync will validate and deploy.
Start From A Synced Repository
If the environment already contains resources, pull them first:Give Claude Code The Right Scope
Open Claude Code from the repository root:Ask For A Plan Before Large Edits
For non-trivial changes, ask Claude Code to describe the file plan first:- resource scope: organization-level versus project-scoped
- filenames and slugs
- references to existing task templates, data forms, modules, bridges, and knowledge resources
- whether a trigger or project binding is needed
- whether the manifest needs to include new files
Useful Prompt Patterns
Create A Data Definition
Create A Task And Form
Create An Activity Plan
Add Knowledge-Driven Behavior
Review Existing Metadata
Keep References Portable
Prefer sync-friendly references over environment-specific UUIDs when the KDX sync resolver supports them. Examples:${org} contract is ${org}/<slug>: the placeholder, a slash, then the resource slug. kdx sync push substitutes it with the destination organization slug in every pushed resource, including references embedded in a module’s script. If any string still contains ${org} after substitution — for example a malformed token such as ${org}-name — the push stops and reports the resource and the field paths that still carry it, instead of deploying the literal text and letting it fail later at runtime.
Portable references make the same repository usable across dev, staging, and production targets.
