Pull Before You Edit
Start every session by pulling the latest platform state and Git state:kdx sync pull changed files, commit or intentionally review those changes before asking Claude Code to make new edits. A clean baseline makes conflicts easier to reason about.
Validate Local Files
Validate changed resource files before sync:kdx validate checks YAML against the platform OpenAPI schema without sending the resource to the server.
Dry-Run The Sync
Always preview before pushing:- created resources
- updated resources
- deleted resources
- dependency ordering
- unresolved references
- target organization and environment
Push To A Development Environment
Once the dry run is correct:Use Deploy For GitOps Promotion
Usesync deploy when your repository has branch or tag mappings in sync-config.yaml:
Handling Conflicts
If KDX reports stale server state:--force until you understand which server-side change would be overwritten.
Ask Claude Code to help with the merge, not to blindly force it:
A Safe Claude Code + KDX Loop
Next Steps
Sync Overview
Understand the sync repository model.
Pull, Push & Deploy
Learn command flags and operational behavior.
Conflict Detection
See how
.sync-state/ protects against stale writes.Resource Validation
Validate YAML against the platform schema before deployment.
