quality-sync
Sync
Usage
$quality-sync
$quality-sync "--since HEAD~5"
$quality-sync "--full"
$quality-sync "--dry-run"
$quality-sync "--since abc123 --dry-run"
Flags:
--full-- Complete resync of all tracked files (ignores git diff)--since <commit|HEAD~N>-- Diff since specific commit (default: last sync timestamp)--dry-run-- Show what would be updated without writing
Implementation
Step 1: Validate
test -d .workflow || exit 1 # E001: not initialized
Step 2: Detect Changes
If --full: skip diff, mark all tracked files as changed.
Otherwise:
- Read last sync timestamp from
state.jsonfieldlast_synced - If
--sinceprovided, use that as baseline - Run
git diff --name-only {baseline} HEADto get changed files
If no changes and not --full, report clean state (W001) and exit.
Step 3: Trace Impact Chain
For each changed file, trace through doc-index.json impact layers:
- File layer -- Which doc entries reference this file directly
- Component layer -- Which components contain this file
- Feature layer -- Which features depend on affected components
- Requirement layer -- Which requirements trace to affected features
Build the full set of affected documentation entries.
Step 4: Update Documentation
If --dry-run: display affected entries and exit.
For each affected entry:
- Re-read source files
- Regenerate the documentation section in
.workflow/codebase/ - Update
doc-index.jsonwith new timestamp and content hash
Step 5: Update State
Update state.json:
last_synced: "{ISO timestamp}"last_synced_commit: "{HEAD commit hash}"
Update affected index.json files in phase directories if task files were modified.
Display summary:
=== SYNC COMPLETE ===
Files changed: {N}
Components affected: {C}
Features affected: {F}
Docs updated: {D}
Error Handling
| Code | Severity | Description |
|---|---|---|
| E001 | error | .workflow/ not initialized -- run Skill({ skill: "maestro-init" }) first |
| W001 | warning | No changes detected since last sync |
More from catlog22/maestro-flow
spec-map
Analyze codebase with 4 parallel mapper agents via CSV wave pipeline. Produces .workflow/codebase/ documents for tech-stack, architecture, features, and cross-cutting concerns.
1manage-codebase-rebuild
Full codebase documentation rebuild via CSV wave pipeline. Spawns 5 parallel doc generator agents to scan project and produce complete .workflow/codebase/ documentation set. Replaces manage-codebase-rebuild command.
1maestro-quick
Fast-track single task execution with workflow guarantees — analyze, plan, execute in one pass
1maestro-roadmap
Lightweight roadmap generation via 2-wave CSV pipeline. Wave 1 runs parallel requirement analysis agents (scope, risk, dependency). Wave 2 runs roadmap assembly agent producing roadmap.md with phases, milestones, and success criteria. Replaces maestro-roadmap command.
1manage-memory
Manage memory entries across workflow and system stores (list, search, view, edit, delete, prune)
1team-review
Unified team skill for code review. 3-role pipeline: scanner, reviewer, fixer. Triggers on team-review.
1