/claude-toolkit:project-conventionsfrom claude-toolkit
Automatically updates CLAUDE.md when users correct mistakes, express preferences, or discover patterns/gotchas during implementation. Ensures conventions persist across sessions.
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.
CLAUDE.md is a living document. Claude must update it immediately whenever something
worth remembering is discovered — corrections, preferences, patterns, or gotchas.
The rule: A slightly redundant note is better than repeating a mistake.
Update immediately when any of these occur:
| Trigger | Example |
|---|---|
| User corrects a mistake | "jangan guna MySQL, kita pakai PostgreSQL" |
| User expresses a preference | "aku tak suka pattern ni, guna cara lain" |
| Better pattern discovered during implementation | Realising a cleaner approach mid-task |
| Gotcha or edge case found | A library behaves unexpectedly, an assumption was wrong |
| Architectural decision made | "kita guna UUIDs, bukan auto-increment" |
| Naming or style preference | "method names in camelCase, not snake_case" |
| Tool or stack choice confirmed | "pakai Pest, bukan PHPUnit" |
| Testing preference confirmed | "pakai Pest describe blocks", "PHPStan level 8" |
| Deployment preference confirmed | "deploy via GitHub Actions", "Docker for staging" |
Do not wait until the end of the session. Update CLAUDE.md as soon as the
correction or preference is identified — then continue with the task.
When a trigger is detected:
CLAUDE.md to find the right section## Preferences or relevant stack section## DO / DON'T> **Gotcha:** callout> **Gotcha:** PostgreSQL `uuid-ossp` extension must be enabled before using
> `DB::raw('uuid_generate_v4()')`. Prefer letting Laravel handle UUID generation
> from PHP side via `InteractsWithUuid` trait instead.
Use > **Gotcha:** for any surprise, trap, or non-obvious behaviour that could cause
a future mistake if forgotten.
## DO / DON'T
- ✅ DO use `InteractsWithUuid` trait for UUID generation
- ❌ DON'T use `DB::raw('uuid_generate_v4()')` directly
- ✅ DO write tests with Pest
- ❌ DON'T use PHPUnit syntax in this project
State preferences as facts, not opinions:
## Preferences
- Database: PostgreSQL (not MySQL)
- ORM: Eloquent — no raw query builders unless necessary
- Tests: Pest — BDD-style `it()` and `describe()` blocks
- Migrations: always reversible — implement `down()` properly
When the user confirms testing preferences, record under ## Testing in CLAUDE.md:
## Testing
- Framework: Pest (BDD-style `it()` and `describe()` blocks)
- PHPStan Level: 8 (with Larastan)
- Pint Preset: laravel
- Rector: PHP 8.2 set enabled
- Coverage: minimum 80% on critical paths
- Arch Tests: strict types enforced, no `dd()` in src/
Common triggers:
describe/it vs flat test() preferenceWhen deployment patterns are confirmed, record under ## Deployment in CLAUDE.md:
## Deployment
- CI: GitHub Actions (Pint → PHPStan → Rector → Pest)
- CD: SSH deploy to VPS via `/bin/deploy.sh`
- Docker: Laravel Sail for dev, custom Dockerfile for prod
- Staging: auto-deploy on push to `staging` branch
- Production: manual trigger after staging verification
- Backup: daily via `/bin/backup.sh`
Common triggers:
| Skip | Reason |
|---|---|
| One-off task decisions | Don't affect future work |
| Things in Laravel / package docs | Already discoverable |
| Obvious conventions | Noise without value |
| Temporary workarounds | Mark clearly as temporary if recorded |
If no CLAUDE.md exists in the project, create one using this structure.
Read references/claude-md-template.md for the full starter template.
Minimum sections for any project:
# CLAUDE.md — [Project Name]
## Project Overview
## Stack
## Architecture
## DO / DON'T
## Preferences
## Gotchas
## Changelog (of this file)
Lessons go in CLAUDE.md. Plans and tracking go on GitHub. Neither goes in a local file.
| Thing | Home | Why not a local file |
|---|---|---|
| A correction, preference, gotcha | CLAUDE.md | It is read at the start of every session in every clone; tasks/lessons.md is read by nobody |
| A plan with checkable items | A GitHub issue (- [ ] list in the body, gh issue edit to tick) | Visible to the team, survives a fresh clone, links to the commits |
| The result of a piece of work | A comment on that issue, then close it | Keeps the decision next to the change |
Do not create a tasks/ directory, a todo.md, or a lessons.md inside a repository. If
you find one, migrate its live content — gotchas into CLAUDE.md, outstanding items into
issues — and delete it.
The exception is a multi-repo workspace that keeps design and planning documents of its own (see below): long-form plan documents belong there, one file per feature. Even then, the tracking is still GitHub issues; the document holds the reasoning, not the checkboxes of record.
When a product folder is a thin wrapper around one or more application repositories, put a
short CLAUDE.md at the workspace root whose main job is to point at the real one:
product/
├── CLAUDE.md # thin: layout, where to cd, pointer to the app's CLAUDE.md
├── documentation/ # product-level docs, by context
│ ├── 01-requirements/
│ ├── 02-design/
│ └── 03-planning/ # MVP scope + tasks/ (one plan document per feature)
└── platform/
└── product-app/ # the real application — its own git repo
└── CLAUDE.md # authoritative: conventions, architecture, gotchas
The workspace file states four things and stops:
cd required before any composer/artisan command.platform/product-app/CLAUDE.md is the authoritative guide. Read it before
making changes. Do not duplicate or contradict it here — when app conventions change, update
that file."Gotcha: The failure mode is a workspace file that grows into a second, competing conventions guide. Two files that both claim authority drift within weeks, and the reader has no way to tell which is current. Keep the workspace file under a screen; if a rule is about code, it belongs in the app's file.
.gitignore must exclude /.claude/worktrees/. Agent worktrees are transient nested
checkouts; left untracked they accumulate silently. One working project was found carrying
over 100,000 files there..claude/settings.local.json is where an allowlist converges over time. Committing it
saves every future session the same permission prompts..claude/skills/
— Laravel Boost's boost:install --skills does, with the names pest-testing,
laravel-best-practices, livewire-development, fluxui-development,
tailwindcss-development and configuring-horizon — then a skill of your own sharing a name
is overwritten with nothing to say so. Prefix yours (kickoff-pest-testing) rather than
relying on copy order.When the user says "buat CLAUDE.md" or starts a new project without one:
Ask 3 questions max — don't over-interview:
Generate the file using references/claude-md-template.md
Tell the user: "CLAUDE.md dah buat. Aku akan update automatically bila ada corrections, preferences, atau gotchas sepanjang kita kerja."
| File | Read When |
|---|---|
references/claude-md-template.md | Creating a new CLAUDE.md from scratch |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-md, living-document, conventions, preferences, self-update
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.
Other plugins' skills for the same job