CLAUDE.md is gitignored by many project templates - you may need to git add -f CLAUDE.md
CLAUDE.local.md is intentionally not committed to git (private developer overrides)
Skills support frontmatter fields: name, description, plus newer fields like model, allowedTools, disallowedTools, permissionMode, specModel, specReasoningEffort
A local SKILL.md keeps its own frontmatter, except params: parameters are filled in at compile time, so the generated skill does not carry them (Factory drops them too)
Skill and agent bodies are normalized for Prettier (aligned tables, a blank line between a paragraph and a list), without changing their meaning: table cells, code spans, list nesting and tight lists stay as written
Agent files support: description, content, tools, disallowedTools, model, permissionMode, skills, maxTurns, memory, mcpServers, background, isolation. Fields other targets own (reasoningEffort, specModel, specReasoningEffort, sandboxMode, nicknameCandidates, handoffs) are reported with PS4003 and omitted
Agent and skill model values keep floating aliases (opus, sonnet, haiku, fable) and inherit as written; pinned Claude releases become API ids such as claude-sonnet-4-5-20250929, and models from other providers are omitted with PS4004 (see Model Catalog)
Agent-level lifecycle hooks are not part of @agents; define them through @hooks
The @local block content goes to CLAUDE.local.md with an import statement added to the main CLAUDE.md
Settings
In full mode the target settings option writes project settings to
.claude/settings.json, next to the @hooks entries:
targets:
- claude:
version: full
settings:
model: claude-sonnet-4-5
permissions:
allow:
- 'Bash(npm run test:*)'
deny:
- 'Read(./.env)'
env:
NODE_ENV: development
enabledPlugins:
code-standards@acme-plugins: true
Supported keys are model, permissions (allow, deny, ask), env and
enabledPlugins. PromptScript merges them into an existing
.claude/settings.json. Keys it does not generate stay as they are. For object
keys only the generated sub-keys are replaced: your permissions.defaultMode or
own env variables survive, while a generated permissions.allow replaces the
old allow list. A key removed from the config is not removed from the file.
Example Output
project-root/
├── CLAUDE.md # Main instructions
├── CLAUDE.local.md # Local overrides (gitignored)