Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
Rewrite project-kickoff skill for zero-prompt permission setup
Jeremy Dawes6830fb11a88e
diff --git a/plugins/dev-tools/skills/project-kickoff/SKILL.md b/plugins/dev-tools/skills/project-kickoff/SKILL.mdindex 97cda31b..4150505d 100644--- a/plugins/dev-tools/skills/project-kickoff/SKILL.md+++ b/plugins/dev-tools/skills/project-kickoff/SKILL.md@@ -1,14 +1,14 @@---name: project-kickoff-description: "Bootstrap new projects with curated settings.local.json permissions, CLAUDE.md, and .gitignore. Detects project type (cloudflare-worker, vercel-app, node-generic, python, ops-admin) and generates grouped, commented permission presets. Also tidies existing messy settings files (removes leaked secrets, shell fragments, deprecated MCP refs, duplicate entries). Trigger with 'kickoff', 'new project', 'bootstrap', 'setup claude', 'tidy permissions', 'clean settings', or 'init project'."+description: "Bootstrap new projects with curated settings.local.json permissions, CLAUDE.md, and .gitignore. Detects project type and generates comprehensive permission presets so you never get prompted. Auto-discovers connected MCP servers. Also tidies existing messy settings files. Trigger with 'kickoff', 'new project', 'bootstrap', 'setup claude', 'tidy permissions', 'clean settings', or 'init project'."compatibility: claude-code-only---# Project Kickoff-Bootstrap a new project or clean up an existing one so Claude Code has the right permissions, documentation, and git setup from the start.+Bootstrap a new project so Claude Code has the right permissions from the start. The goal is **zero permission prompts** after setup — every command you'd reasonably use should be pre-approved.-**Problem**: Every new project accumulates dozens of permission approvals one click at a time, resulting in bloated settings files with leaked secrets, shell fragments, and deprecated MCP refs. This skill generates HQ-quality project scaffolding upfront.+**Problem**: Every new project accumulates permission approvals one click at a time. Project `settings.local.json` shadows global settings (does not merge), so each project needs its own complete list. This skill generates that list upfront.**Output**: `settings.local.json`, `CLAUDE.md`, `.gitignore` (and optionally git init + GitHub repo).@@ -38,13 +38,38 @@ Bootstrap a new project or clean up an existing one so Claude Code has the rightIf ambiguous, ask. Types can stack (e.g. cloudflare-worker + javascript-typescript).- Always include **Universal Base** preset. Add language and deployment presets based on detected type. Ask if the user wants MCP blanket (`mcp__*`) or per-server control.-2. **Generate `.claude/settings.local.json`**:- - Read [references/permission-presets.md](references/permission-presets.md) for the preset definitions- - Combine Universal Base + type-specific preset- - Write with `//` comment groups for organisation- - Warn the user: "Project settings.local.json SHADOWS your global settings — it does not merge"++ Read [references/permission-presets.md](references/permission-presets.md) for preset definitions, then:++ a. **Always include Universal Base** — file ops, text processing, network, system, git. These are needed by every project.++ b. **Add detected language presets** — JS/TS, Python, PHP, Go, Rust, Ruby, etc. When in doubt, include more rather than less. Adding `Bash(cargo *)` to a JS project costs nothing if Rust isn't installed.++ c. **Add deployment presets** if detected — Cloudflare Worker, Vercel, Docker, Cloud CLIs.++ d. **Auto-discover MCP servers** — Use `ToolSearch` to find available MCP tools, extract the unique server names from tool names (e.g. `mcp__vault__secret_list` → server is `vault`), and generate `mcp__servername__*` for each. This is necessary because:+ - `mcp__*` (single wildcard) does NOT work — wildcard doesn't cross `__` boundary+ - `mcp__*__*` (double wildcard) also does NOT work+ - Each server must be listed individually: `mcp__vault__*`, `mcp__brain__*`, etc.++ e. **Always include**: `WebSearch`, `WebFetch`++ f. **Always include explicit `gh` subcommands** alongside `Bash(gh *)` — there's a known bug where `Bash(gh *)` doesn't match some subcommands:+ ```+ "Bash(gh *)",+ "Bash(gh repo *)",+ "Bash(gh issue *)",+ "Bash(gh pr *)",+ "Bash(gh api *)",+ "Bash(gh search *)",+ "Bash(gh run *)",+ "Bash(gh release *)",+ ```++ g. Write with `//` comment groups for organisation.++ h. Warn the user: **"Project settings.local.json SHADOWS your global settings — it does not merge. A session restart is needed for changes to take effect."**3. **Generate `CLAUDE.md`**:- Read [references/claude-md-templates.md](references/claude-md-templates.md) for templates@@ -73,10 +98,11 @@ Bootstrap a new project or clean up an existing one so Claude Code has the right2. Review the report. It flags:- **Leaked secrets**: API keys, tokens, hex strings embedded in approval patterns- **Shell fragments**: `Bash(do)`, `Bash(fi)`, `Bash(then)`, `Bash(else)`, `Bash(done)`- - **Deprecated MCP refs**: `mcp__bitwarden__*` and similar- - **Duplicates**: Entries covered by a broader pattern already present+ - **Legacy colon syntax**: `Bash(git:*)` → should be `Bash(git *)`+ - **Duplicates**: Entries covered by a broader pattern already present (e.g. `Bash(git add *)` is redundant if `Bash(git *)` exists)- **One-time entries**: Entire commit messages, hardcoded paths that will never match again- **Consolidation opportunities**: e.g. 5 separate `Bash(git add:*)`, `Bash(git commit:*)` could become `Bash(git *)`+ - **Missing MCP servers**: Compare connected servers vs. what's in the allow list3. Present the cleaned version with a diff showing what changed.@@ -84,7 +110,7 @@ Bootstrap a new project or clean up an existing one so Claude Code has the right### Mode 3: Add Preset-**When**: User says "add wrangler permissions" or "add MCP permissions" to an existing project.+**When**: User says "add python permissions", "add MCP permissions", or "add docker permissions" to an existing project.**Steps**:@@ -92,6 +118,23 @@ Bootstrap a new project or clean up an existing one so Claude Code has the right2. Read the existing `.claude/settings.local.json`3. Merge without duplicating — add new entries, keep existing groups4. Write the updated file+5. Remind user: **session restart required** for changes to take effect++## MCP Server Auto-Discovery++To discover connected MCP servers, run these ToolSearch queries:++```+ToolSearch("+brain")+ToolSearch("+vault")+ToolSearch("+playwright")+ToolSearch("+gmail")+ToolSearch("+xero")+```++Or search broadly: `ToolSearch("mcp")` and extract unique server prefixes from returned tool names.++Each discovered server gets a wildcard entry: `mcp__servername__*`## Permission Syntax Quick Reference@@ -102,21 +145,28 @@ Bootstrap a new project or clean up an existing one so Claude Code has the right| `WebFetch` | Blanket web fetch (all domains) || `WebFetch(domain:x.com)` | Domain-scoped web fetch || `WebSearch` | Blanket web search |-| `mcp__*` | All MCP servers and tools || `mcp__brain__*` | All tools on one server || `mcp__brain__brain_sites` | One specific MCP tool |-**Deprecated**: `Bash(git:*)` colon syntax still works but prefer space syntax.+### What Does NOT Work-**Not hot-reloaded**: Edits to `settings.local.json` require a session restart. The "don't ask again" prompt injects at runtime (no restart needed) using legacy colon format — this is expected and both formats are equivalent.+| Pattern | Why |+|---------|-----|+| `mcp__*` | Wildcard doesn't cross `__` boundary |+| `mcp__*__*` | Still doesn't work — segments aren't glob-expanded |+| `Bash(git:*)` | Deprecated colon syntax (still works but prefer space) |-**Critical**: Project `settings.local.json` **shadows** global settings. It does not merge. If a project has its own allow list, the global allow list is ignored entirely for that project.+### Important Behaviours-Shell operators (`&&`, `||`, `;`) are handled safely — `Bash(git *)` won't match `git add && rm -rf /`.+- **Not hot-reloaded**: Edits to `settings.local.json` require a **session restart**+- **"Don't ask again"** injects at runtime (no restart needed) using legacy colon format — this is normal+- **Shadows, not merges**: Project `settings.local.json` completely replaces global allow list+- **Shell safety**: `Bash(git *)` won't match `git add && rm -rf /` — operators are handled safely+- **`gh` bug**: `Bash(gh *)` sometimes doesn't match subcommands — include explicit `Bash(gh issue *)` etc. as workaround## Autonomy-- **Just do it**: Detect project type, read existing files+- **Just do it**: Detect project type, read existing files, auto-discover MCP servers- **Brief confirmation**: Write settings.local.json, CLAUDE.md, .gitignore (show what will be written)- **Ask first**: git init, GitHub repo creation, overwriting existing files, applying tidy fixes