plugins/clade/skills/sync/SKILL.md
End-of-session documentation sync — updates TODO.md and PROGRESS.md only (run /commit after to commit everything)
npx skillsauth add shenxingy/claude-code-kit syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This workflow runs directly in Codex. Do not launch the claude CLI or
delegate the workflow to Clade's MCP bridge.
Codex compatibility rules:
AGENTS.md files for repository instructions. If a project
has only CLAUDE.md, treat it as legacy project guidance and read it too..clade/ (or ~/.clade/ for personal
state). Existing legacy Claude state may be read for migration, but do not
create new vendor-specific state./skill-name reference means the corresponding Codex $skill-name skill,
or the same workflow invoked naturally when explicit skill invocation is not
available.<plugin-root>/... are relative to the installed Clade plugin
containing this SKILL.md; resolve that root before invoking a helper.You are the Sync skill. You automate the end-of-session documentation ritual.
This skill only updates documentation files (TODO.md, PROGRESS.md). It does NOT commit.
After /sync, the user runs /commit to commit all changes (code + docs) split by module.
Find what was done in this session:
git log --since="8 hours ago" --oneline
git log --since="8 hours ago" --stat
git status --short.Build a mental model of: what features were added, what bugs were fixed, what was refactored.
TODO.md- [ ] item, determine if the recent commits implemented it:
- [ ] → - [x]TODO.md updated:
✓ Checked off: "Add project_repos table" (verified: schema exists)
✓ Checked off: "GitHub API client" (verified: lib/github-client.ts exists)
? Skipped: "OAuth integration" (no matching commits found)
Append a session summary to PROGRESS.md. Follow this format:
### YYYY-MM-DD — [Brief session description]
**What was done:**
- [Feature/fix 1]: [one-line description of what and why]
- [Feature/fix 2]: [one-line description]
**What worked:**
- [Pattern or approach that was effective]
**What didn't work / lessons:**
- [Issue encountered and how it was resolved, or pitfall to avoid]
**Open items:**
- [Anything left unfinished that the next session should pick up]
Guidelines:
If PROGRESS.md exceeds 100 lines:
### YYYY-MM-DD headers)[ACTIVE], move it to docs/progress-archive/YYYY-MM.md (create the file if needed, append to it)Archived 3 old entries to docs/progress-archive/2026-01.md
Run the session scorecard generator to log quality metrics:
bash ~/.clade/scripts/session-scorecard.sh
This appends a JSON entry to ~/.clade/corrections/scorecards.jsonl with correction counts, commits, and a quality score. If the script doesn't exist, skip this step silently.
Check for 3-tier issue handling files from autonomous loop runs:
ls .clade/decisions.md .clade/skipped.md .clade/blockers.md 2>/dev/null
For each file that exists:
.clade/{name}-archive.md (create if needed)If none exist, skip silently.
Always end with a summary:
Sync complete:
📋 TODO.md: 3 items checked off, 1 new sub-task added
📝 PROGRESS.md: Session summary appended
Run /commit to commit all changes (pushes by default; use --no-push to skip).
.clade/blockers.md3-strike rule: If the same approach fails 3 times, switch to BLOCKED — do not retry indefinitely.
End-of-session documentation ritual. Reviews what was done and updates project docs — no commit. Run /commit after to commit everything (docs + code) split by module.
/sync # Update TODO.md + PROGRESS.md
/commit # Commit all changes (code + docs) split by module + push
/commit --no-push # Commit only, skip push
development
Orchestrate a fleet of parallel `codex exec` workers with you (Claude Code) as the supervisor — spawn one per isolated git worktree, dispatch headless, verify each INDEPENDENTLY, PR/merge. The manual "codex-ultracode" pattern for fanning out real implementation, research, or review work onto Codex. Bakes in the hard gotchas (stdin blocking, background tracking, don't-trust-self-reports, writer isolation). Triggers on — orchestrate codex, codex workers, codex fleet, spawn codex, delegate to codex in parallel, manual ultracode, 开 codex 小弟, 派 codex worker — NOT for a single cross-vendor opinion (use the `second-opinion-codex` agent), NOT for web-UI worker decomposition (use `/orchestrate`).
development
Create and manage git worktrees for parallel Codex sessions
development
Verify project behavior anchors — compilation, tests, and interaction checks after autonomous runs. NOT the Codex built-in /verify (which runs the app to observe a single change working) — this one walks the AGENTS.md "Features (Behavior Anchors)" list.
development
Clade coverage-driven project review — walks every VERIFY.md checkpoint, fixes failures in-session, converges when all checkpoints pass. NOT the Codex built-in /review (which reviews a single pull request diff) — if the user wants a PR review, route to /review-pr (Clade's PR reviewer) or the CC built-in.