원클릭으로
sync
Sync updates from upstream agent-kit to this downstream project. Use when the template has new skills or patterns.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Sync updates from upstream agent-kit to this downstream project. Use when the template has new skills or patterns.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Cross-project audit and sync. Backs up, bootstraps, promotes, syncs, and verifies all downstream projects.
Structured pre-planning research. Explores codebase, asks clarifying questions, and produces a brainstorm output file for /plan-feature input.
Capture knowledge from development sessions. Debug patterns, architecture decisions, framework gotchas, and integration learnings compound over time.
Load project context and show current status. Use at the start of a session or when context is needed.
Run parallel code reviews using specialized agents (security, performance, simplicity, nextjs-react). Produces a structured report.
Initialize a new project from Agent Kit boilerplate. Use when creating a new downstream project.
| name | sync |
| description | Sync updates from upstream agent-kit to this downstream project. Use when the template has new skills or patterns. |
| disable-model-invocation | true |
| allowed-tools | Bash, Read |
| argument-hint | ["--dry-run"] |
Pull updates from the upstream agent-kit template into this downstream project.
If scripts/sync-upstream.sh does not exist in this project, bootstrap first:
# 1. Detect upstream path
UPSTREAM="../../lucidlabs-agent-kit"
# 2. Verify upstream exists
if [ ! -f "$UPSTREAM/CLAUDE.md" ]; then
echo "ERROR: Upstream agent-kit not found at $UPSTREAM"
echo "Expected structure: lucidlabs/lucidlabs-agent-kit/ alongside lucidlabs/projects/"
exit 1
fi
# 3. Create scripts directory
mkdir -p scripts
# 4. Copy sync scripts
cp "$UPSTREAM/scripts/sync-upstream.sh" scripts/sync-upstream.sh
chmod +x scripts/sync-upstream.sh
cp "$UPSTREAM/scripts/promote.sh" scripts/promote.sh
chmod +x scripts/promote.sh
# 5. Create version tracking file
UPSTREAM_HEAD=$(cd "$UPSTREAM" && git rev-parse --short HEAD 2>/dev/null || echo "unknown")
cat > .upstream-sync.json << EOF
{
"upstream_repo": "lucidlabs-hq/agent-kit",
"last_sync_commit": "$UPSTREAM_HEAD",
"last_sync_date": "$(date +%Y-%m-%d)",
"synced_files": {}
}
EOF
echo "Bootstrapped sync infrastructure. Now running sync..."
After bootstrap, proceed with normal sync below.
lucidlabs/
├── lucidlabs-agent-kit/ # Upstream template
└── projects/
└── [this-project]/ # You are here (downstream)
# Preview what can be synced (dry run)
./scripts/sync-upstream.sh --dry-run
# Run sync (default path: ../../lucidlabs-agent-kit)
./scripts/sync-upstream.sh
# Custom upstream path (if different structure)
./scripts/sync-upstream.sh --upstream /path/to/agent-kit
# Sync all without selection
./scripts/sync-upstream.sh --all
| Syncable | Description |
|---|---|
.claude/skills/* | Claude Code skills |
.claude/reference/* | Best practice documentation |
frontend/components/ui/* | Generic UI components |
frontend/lib/utils.ts | Utility functions |
frontend/lib/hooks/* | Generic React hooks |
scripts/* | Utility scripts |
CLAUDE.md | Development rules (respects zone marker) |
WORKFLOW.md | Workflow documentation |
| Not Synced | Reason |
|---|---|
.claude/PRD.md | Project-specific requirements |
frontend/app/* | Project-specific pages |
mastra/src/agents/* | Domain-specific agents |
convex/* | Project-specific database |
CLAUDE.md has a zone marker that divides upstream content from project-specific content:
<!-- UPSTREAM-SYNC-END -->
After syncing, the script automatically updates .upstream-sync.json with:
No manual update needed.
After sync completes, a summary report is shown:
SYNC SUMMARY
Synced: 5 files
New: 2
Updated: 3
New files:
+ .claude/skills/new-skill/SKILL.md
+ .claude/reference/new-doc.md
Updated files:
~ CLAUDE.md
~ scripts/promote.sh
~ .claude/settings.json
Upstream: abc1234 → def5678
Suggested commit:
git add .
git commit -m "chore: sync upstream agent-kit (def5678)"
| Option | Description |
|---|---|
--upstream PATH | Path to agent-kit (default: ../../lucidlabs-agent-kit) |
--dry-run | Preview without changes |
--all | Sync all without selection |
--help | Show help |
Sync from upstream when:
| Direction | Command | Description |
|---|---|---|
| Upstream → Downstream | /sync | This skill |
| Downstream → Upstream | /promote | Promote patterns to template |
If you prefer manual control:
# Add upstream as git remote (one-time)
git remote add template ../../lucidlabs-agent-kit
# Fetch latest
git fetch template
# See what changed
git log template/main --oneline -10
# Cherry-pick specific commits
git cherry-pick <commit-hash>
# Or diff and copy manually
diff -r ../../lucidlabs-agent-kit/.claude/skills .claude/skills
See .claude/reference/promote-sync.md for the full architecture documentation.