/claude-toolkit:project-syncfrom claude-toolkit
Syncs CLAUDE.md conventions across multiple Kickoff-based Laravel projects by merging shared conventions while preserving project-specific content. Scans local directories or GitHub accounts.
Ships in claude-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Intelligently syncs CLAUDE.md across Kickoff-based Laravel projects. Merges shared conventions from a configurable source while preserving project-specific content (overview, commands, packages, environment variables, custom sections).
| Command | Purpose |
|---|---|
/project-sync scan [dir|gh:account] [--since=YYYY] [--until=YYYY] | Scan local directory or GitHub account for Kickoff Laravel projects |
/project-sync status | Show which projects have outdated CLAUDE.md |
/project-sync diff <project> | Dry-run merge — show what would change |
/project-sync update [project|all] [--source=path] | Sync CLAUDE.md, commit each project |
/project-sync report [latest|YYYYMMDD.HHmm] | View a sync report |
/project-sync scanDiscover Kickoff Laravel projects in a local directory or GitHub account and save them to the project registry.
/project-sync scan <target> [--since=YYYY] [--until=YYYY]
<target>: Local directory path (e.g., ~/Projects) or gh:<account> (e.g., gh:cleaniquecoders)--since: Only include projects with activity from this year onward (default: current year)--until: Only include projects with activity up to this yearFind Laravel projects — recursively search for directories containing an artisan file
under the given path
Filter by date — for each candidate, check last commit date via git log -1 --format=%ci:
--since--untilCheck detection markers — verify at least one Kickoff marker exists.
See references/detection-markers.md for the full list:
app/Models/Base.php existscomposer.json requires cleaniquecoders/traitifysupport/helpers.php in composer autoload filesCLAUDE.md mentions "Kickoff" or "CleaniqueCoders"Extract metadata for each confirmed project:
{
"name": "project-name",
"path": "/absolute/path/to/project",
"url": "https://github.com/owner/repo",
"description": "From composer.json description or CLAUDE.md first paragraph",
"framework": "laravel",
"php_version": "8.4",
"has_claude_md": true,
"claude_md_size": 22450,
"last_synced": null,
"source": "local"
}
url: Extract from git remote get-url origin (null if no remote)description: From composer.json > description field, or first non-heading paragraph of CLAUDE.mdphp_version: From composer.json > require > php field (parse version constraint)claude_md_size: File size in bytes (0 if no CLAUDE.md)last_synced: null on first scan — set when /project-sync update runsSave to registry — write/update ~/.claude/projects/.project-sync.json.
See references/registry-schema.md for the full schema.
path for local, url for GitHub)last_scanned timestampReport results:
Scanned: ~/Projects
Found: 12 Kickoff Laravel projects (filtered: --since=2025)
~/Projects/2025/ — 8 projects
✓ project-alpha CLAUDE.md: 18.2 KB
✓ project-beta CLAUDE.md: 22.1 KB
✗ project-gamma No CLAUDE.md
~/Projects/2026/ — 4 projects
✓ project-delta CLAUDE.md: 19.8 KB
...
List repos via GitHub CLI:
gh repo list <account> --json name,pushedAt,url,description --limit 1000
Filter by date — parse pushedAt field, apply --since/--until year filter
Check detection markers — for each candidate repo, use GitHub API to check for Kickoff markers without cloning:
# Check if artisan exists
gh api repos/<owner>/<repo>/contents/artisan --silent 2>/dev/null
# Check if Base.php exists
gh api repos/<owner>/<repo>/contents/app/Models/Base.php --silent 2>/dev/null
# Check composer.json for traitify
gh api repos/<owner>/<repo>/contents/composer.json --jq '.content' | base64 -d | grep -q traitify
Rate limiting: Add 1-second delay between repos. If rate-limited, pause and retry.
Extract metadata — same as local scan, with "source": "github" and url from the API.
If the repo also exists locally (matching URL), merge entries and prefer local path.
Save to registry and report results (same as local scan)
/project-sync statusShow which registered projects have outdated CLAUDE.md compared to the source.
Read registry — load ~/.claude/projects/.project-sync.json
Fetch source CLAUDE.md — from the configured source URL (default:
https://raw.githubusercontent.com/cleaniquecoders/kickoff/refs/heads/main/stubs/CLAUDE.md)
For each project with has_claude_md: true:
references/section-classification.md)up-to-date, outdated, missingDisplay status table:
Source: kickoff/stubs/CLAUDE.md (fetched from GitHub)
Project Status Size Last Synced
─────────────────────────────────────────────────────────
project-alpha ✓ current 18.2 KB 2026-03-10
project-beta ✗ outdated 22.1 KB 2026-02-15
project-gamma ⚠ missing — never
project-delta ✗ outdated 19.8 KB 2026-03-01
Summary: 1 current, 2 outdated, 1 missing CLAUDE.md
Suggest next step: "Run /project-sync diff <project> to preview changes, or
/project-sync update all to sync everything."
/project-sync diffDry-run merge showing what would change in a project's CLAUDE.md.
/project-sync diff <project-name> [--source=path]
Resolve project — find in registry by name. If ambiguous, show matching entries and ask user to specify.
Fetch source CLAUDE.md — from configured source or --source override.
--source is a file path → read local file--source is a URL → fetch via WebFetch--source is neither → treat as inline instructions to mergeRead target CLAUDE.md — from the project's path
Run merge algorithm (dry-run) — see references/merge-algorithm.md:
Display diff:
Project: project-beta (/path/to/project-beta)
Source: kickoff/stubs/CLAUDE.md
## Sections to UPDATE (from source):
- Architecture & Key Concepts > Models - CRITICAL [changed]
- Architecture & Key Concepts > Enums [changed]
- Testing with Pest [unchanged]
- Livewire Patterns > Toast Notifications [changed]
- Code Quality Checklist [unchanged]
## Sections to MERGE (combine items):
- DO list: +2 new items from source, 3 project-only preserved
- DON'T list: +1 new item from source, 1 project-only preserved
## Sections PRESERVED (project-specific):
- Project Overview
- Common Commands
- Packages
- Docker Services
- Environment Variables
- Quick Reference
## Size estimate:
Current: 22,100 bytes
After merge: ~23,400 bytes (within 40 KB limit)
Ask for confirmation if any concerns (e.g., large size increase, unexpected section classification)
/project-sync updateApply the merge and commit changes.
/project-sync update [project-name|all] [--source=path]
project-name: Update a single projectall: Update all outdated projects in the registry--source: Override the source CLAUDE.md (path, URL, or inline text)Resolve targets — single project by name, or all projects with outdated or
missing status
Fetch source CLAUDE.md — same resolution as /project-sync diff
For each target project:
a. Read target CLAUDE.md (or create from template if missing — use
references/section-classification.md for structure)
b. Run merge algorithm — see references/merge-algorithm.md:
c. Validate size — check merged file is under 40 KB (40,960 bytes):
d. Write the file — save merged CLAUDE.md to the project directory
e. Commit — if file actually changed (diff is non-empty):
cd /path/to/project
git add CLAUDE.md
git commit -m "docs: sync CLAUDE.md with kickoff conventions"
f. Update registry — set last_synced to current date, update claude_md_size
Generate sync report — save to ~/.claude/projects/reports/<YYYYMMDD.HHmm>/:
report.json — machine-readable resultsreport.md — human-readable Markdown summary
See report format below.Display summary:
Sync complete:
✓ Updated: 8 projects
— Skipped: 2 projects (already current)
✗ Failed: 1 project (git working tree dirty)
Report saved: ~/.claude/projects/reports/20260314.0600/
Each update run generates a report directory at ~/.claude/projects/reports/<YYYYMMDD.HHmm>/.
report.json:
{
"timestamp": "2026-03-14T06:00:00Z",
"source": "https://raw.githubusercontent.com/cleaniquecoders/kickoff/refs/heads/main/stubs/CLAUDE.md",
"total_projects": 12,
"results": [
{
"name": "project-alpha",
"path": "/path/to/project-alpha",
"status": "updated",
"before_size": 18200,
"after_size": 19400,
"sections_changed": ["Models - CRITICAL", "Enums", "DO", "DON'T"],
"commit_sha": "abc1234"
},
{
"name": "project-beta",
"path": "/path/to/project-beta",
"status": "skipped",
"reason": "already current"
}
],
"summary": {
"updated": 8,
"skipped": 2,
"failed": 1
}
}
report.md:
# Project Sync Report — 2026-03-14 06:00
**Source**: kickoff/stubs/CLAUDE.md (GitHub)
**Projects processed**: 12
## Results
| # | Project | Status | Size Change | Sections Changed |
|---|---------|--------|-------------|------------------|
| 1 | project-alpha | ✓ Updated | 18.2 → 19.4 KB | Models, Enums, DO, DON'T |
| 2 | project-beta | — Skipped | 22.1 KB | (already current) |
| 3 | project-gamma | ✗ Failed | — | (git working tree dirty) |
## Summary
- **Updated**: 8 projects
- **Skipped**: 2 projects
- **Failed**: 1 project
/project-sync reportView a previously generated sync report.
/project-sync report [latest|YYYYMMDD.HHmm]
latest (default): Show the most recent reportYYYYMMDD.HHmm: Show a specific report by directory nameList report directories — scan ~/.claude/projects/reports/ and sort by name
(lexicographic = chronological)
Resolve target:
latest: Pick the last directoryRead and display report.md — render the Markdown content directly
If no reports exist, inform the user: "No sync reports found. Run
/project-sync update to generate one."
The default source of truth is fetched from GitHub:
https://raw.githubusercontent.com/cleaniquecoders/kickoff/refs/heads/main/stubs/CLAUDE.md
This ensures every sync uses the latest published conventions. The URL is stored in the
registry config and can be changed by editing ~/.claude/projects/.project-sync.json:
{
"config": {
"source": "https://raw.githubusercontent.com/cleaniquecoders/kickoff/refs/heads/main/stubs/CLAUDE.md"
}
}
--sourceThe --source flag accepts:
| Input Type | Example | Behavior |
|---|---|---|
| Local file path | --source=~/kickoff/stubs/CLAUDE.md | Read file directly |
| URL | --source=https://example.com/CLAUDE.md | Fetch via WebFetch |
| Inline text | --source="Add rule: always use UUIDs" | Treat as additional instructions to merge |
When using a non-kickoff source, Claude analyzes the source structure dynamically and
classifies sections as shared vs project-specific based on content analysis rather than
the static map in references/section-classification.md.
CLAUDE.md files have clear H2/H3 section boundaries. The merge operates at section
level — not line-by-line diff. See references/section-classification.md for the
complete section map and references/merge-algorithm.md for the step-by-step procedure.
| Section Type | Merge Action |
|---|---|
| Shared | Replace entirely from source |
| Project-specific | Preserve verbatim — never touch |
| DO/DON'T lists | Merge: source items + project-only items (deduplicate) |
| Gotchas (shared) | Replace shared gotchas, preserve project-specific gotchas |
| Custom H2 sections | Preserve — any section not in source is project-specific |
Final CLAUDE.md must be under 40 KB (40,960 bytes). If exceeded:
The project registry is stored at ~/.claude/projects/.project-sync.json. It is only
modified by /project-sync scan and /project-sync update.
See references/registry-schema.md for the complete schema.
Key behaviors:
scan creates/updates entries — never deletesupdate sets last_synced and claude_md_size after successful mergestatus, diff read-only — they never modify the registrypath (local) or url (GitHub) for deduplicationA project is classified as a Kickoff Laravel project if it has an artisan file
plus at least one of the Kickoff-specific markers. See references/detection-markers.md
for the complete list.
If a project has no CLAUDE.md, /project-sync update creates one using the source as
a base, with project-specific sections populated from composer.json metadata:
If the target project has uncommitted changes, /project-sync update skips that project
and reports it as failed with reason "git working tree dirty". The user must commit or
stash changes first.
If .project-sync.json doesn't exist when running status, diff, or update,
inform the user: "No project registry found. Run /project-sync scan first."
If the source URL fetch fails, check for a cached version in the registry. If no cache,
fail with a clear error and suggest using --source with a local file.
CLAUDE.md in each project — no other files are touched| File | Read When |
|---|---|
references/section-classification.md | Classifying sections during merge |
references/merge-algorithm.md | Executing the merge procedure |
references/detection-markers.md | Identifying Kickoff Laravel projects |
references/registry-schema.md | Reading/writing the project registry |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-md, sync, conventions, multi-project, kickoff, laravel
npx claudepluginhub nasrulhazim/claude --plugin claude-toolkit43 skills in this plugin
/business-cardSVG business card designer that takes contact details and brand preferences, then produces 12 front design concepts with optional back designs, interactive HTML preview galleries, individual card showcases with front/back flip animation, and print-ready SVG exports with bleed area and crop marks. Supports horizontal and vertical orientations, six layout styles (minimal, corporate, creative, elegant, bold, tech), multiple color schemes, QR code placeholders, social media icons, and logo integration. Use this skill whenever the user asks to design a business card, create a name card, make visiting cards, or says "design business card", "buat kad bisnes", "create name card", "reka kad perniagaan", "design kad nama", "I need a business card for X".
/ci-cd-pipelineCI/CD pipeline builder for Laravel projects — extends Kickoff's existing GitHub Actions CI with continuous deployment pipelines (staging/production), Docker containerisation, secret management, and failure notifications. Generates Dockerfiles, docker-compose.yml, deployment configs for VPS via SSH, container registry push workflows, and leverages Kickoff's /bin scripts (deploy.sh, backup.sh, setup.sh) in automated workflows. Use this skill whenever the user asks to set up deployment pipelines, containerise a Laravel app, configure CD for staging or production, push Docker images to a registry, manage deployment secrets, add failure notifications to CI, or integrate /bin scripts with GitHub Actions. Triggers for requests like "set up CD pipeline", "deploy to staging automatically", "dockerise my Laravel app", "add Docker to my project", "push image to registry", "manage secrets in CI", "notify on failure", "extend CI with deployment", "setup deploy pipeline", "nak deploy guna GitHub Actions", "tambah Docker dalam project", "setup CD untuk staging", "nak auto deploy ke production", "dockerise Laravel app aku", "tambah notification kalau CI fail", "macam mana nak manage secrets dalam GitHub Actions", or "integrate bin scripts dengan CI". Assumes Laravel Kickoff as the baseline — GitHub Actions CI (Pint, PHPStan, Rector, Pest) and /bin scripts (deploy.sh, backup.sh) are already configured. This skill extends that baseline with CD, Docker, and deployment automation.
/code-qualityPHP and Laravel code quality toolchain — static analysis with Larastan/PHPStan, code style enforcement with Pint, automated refactoring with Rector, baseline management for legacy codebases, and CI pipeline integration via GitHub Actions. Use this skill whenever the user asks to check code quality, fix linting errors, run static analysis, modernise PHP code, set up CI quality gates, manage PHPStan baselines, configure Pint presets, or apply Rector rules. Triggers for requests like "run quality check", "fix my code style", "analyse with larastan", "update phpstan baseline", "modernise my PHP code", "set up CI for quality", "check code quality", "pint tak jalan", "nak fix phpstan error", "setup rector", "betulkan code style", "tambah quality gate dalam CI", or "baseline phpstan untuk legacy code". Assumes Laravel Kickoff as the baseline — PHPStan, Pint, Rector, and GitHub Actions CI are already configured. This skill extends and customises that baseline.
/courseware-builderInteractive HTML courseware builder — turns any technical topic, flow, or process into a CD-Courseware-style interactive slide deck with animated diagrams, step-by-step simulation, syntax-highlighted code examples, and key points panels. Use this skill whenever the user wants to create teaching materials, interactive slides, animated flow diagrams, or step-by-step technical walkthroughs — even if they say "buatkan slides untuk topik X", "jadikan courseware", "buat interactive tutorial", or "create a lesson on X". Also triggers for "convert my diagram to interactive slides" or "build a visual walkthrough for my training".
/debuggingSystematic debugging and error recovery for Laravel and PHP projects — a five-step triage that goes reproduce, localise, reduce, fix, guard. Covers reading a stack trace properly, bisecting with git, isolating a failure to the smallest reproducer, telling a symptom apart from a root cause, and closing every fix with a regression test. Includes Laravel-specific traps: N+1 masked as a timeout, queue jobs failing silently on the wrong connection, cache and config caches serving stale values, Livewire state desync, and eloquent/model events firing in unexpected order. Use this skill whenever the user reports something broken, failing, flaky, slow-then-erroring, or behaving differently in production than locally — including "this test is flaky", "why is this failing", "debug this error", "it works locally but not on staging", "find the root cause", "this exception makes no sense", "the queue job never runs", "bisect this regression", "kenapa error ni", "tolong debug", "test ni kejap pass kejap fail", "cari punca sebenar", "jalan kat local tapi tak jalan kat production", or "job queue tak jalan". Pairs with kickoff-pest-testing for the regression test and log-monitor for production-log-driven investigations.
/deploy-appDeploys a Kickoff-based Laravel application to its host by running `bin/deploy` over SSH, then verifies the release and knows what each way it can stop means. Use this skill whenever the user asks to deploy an app, push the latest code to production, check what commit production is running, bring a site back up after a failed deploy, or roll back — "deploy latest", "deploy the app", "tolong deploy", "deploy latest dulu", "push to production", "apa commit dekat production", "site down after deploy", "keluarkan maintenance mode", "rollback production", "kenapa 503". Covers the deploy command and its flags, the post-deploy verification checklist, the recovery path for each failure mode, and the production traps that have already cost time. Does NOT cover provisioning a new host from bare metal (`bin/provision-host`), CI/CD pipeline design (`ci-cd-pipeline`), or writing deploy operations.
Other plugins' skills for the same job