.claude/skills/sync/SKILL.md
Sync updates from upstream agent-kit to this downstream project. Use when the template has new skills or patterns.
npx skillsauth add lucidlabs-hq/agent-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.
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.
development
Deploy invoice-accounting-assistant to HQ server. Runs tests first (TDD), then builds and deploys. Use when ready to push changes to staging/production.
testing
Visual UI verification with agent-browser. Use after implementing UI components to take screenshots, verify interactions, and self-check your work. FASTER than E2E tests.
documentation
Update README with current project status and features. Use after completing features.
tools
--- name: time-report description: Cross-project time report. Aggregates all session data from ~/.claude-time/sessions/. Use to see how much time was spent across all projects. disable-model-invocation: true allowed-tools: Bash, Read argument-hint: [all | this-week | this-month | last-month | {project-name}] --- # Time Report: Cross-Project Session Overview ## Objective Read ALL session files from `~/.claude-time/sessions/*.json` and produce an aggregated time report. Supports filtering by pe