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:Review The Diff
After Claude Code edits files:Avoid These Mistakes
| Mistake | Better approach |
|---|---|
| Putting process orchestration inside a Task template | Create an Activity Plan and have it create or wait for Tasks |
| Creating one-off project-specific copies of reusable resources | Define organization-level resources and bind them into projects |
| Hard-coding environment UUIDs in files | Use slugs and sync reference placeholders where supported |
| Writing API keys or vendor credentials into YAML | Use Kodexa secrets or environment-specific secret references |
| Letting Claude Code deploy immediately after editing | Validate and dry-run first |
Ignoring .sync-state/ | Commit sync state so conflict detection works |
