Skip to content

Claude Code Formatter

PropertyValue
TierCustom
Main outputCLAUDE.md
Dot directory.claude/
SkillsYes (.claude/skills/<name>/SKILL.md)
AgentsYes (.claude/agents/<name>.md)
CommandsYes (.claude/commands/<name>.md)
Local filesYes (CLAUDE.local.md)

Output Files

FilePathPurpose
Main instructionsCLAUDE.mdPrimary rule file
Lifecycle hooks.claude/settings.jsonProject hooks in full mode
Local overridesCLAUDE.local.mdPrivate instructions (gitignored)
Skills.claude/skills/<name>/SKILL.mdReusable skill definitions in full mode
Commands.claude/commands/<name>.mdSlash commands
Agents.claude/agents/<name>.mdAgent configurations
MCP servers.mcp.jsonMCP server config in full mode

Supported Features

FeatureSupported
Markdown OutputYes
MDC FormatNo
Code BlocksYes
Mermaid DiagramsYes
Single File OutputYes
Multiple Rule FilesYes
Workflow FilesYes
Nested Directory StructureNo
YAML FrontmatterYes
Description in FrontmatterNo
Globs in FrontmatterYes
Activation TypeNo
Glob Pattern TargetingYes
Always Apply RulesYes
Manual ActivationNo
Auto/Model ActivationNo
Structured ExamplesYes
Character Limit ValidationNo
Content Section SplittingYes
Guard DependenciesYes
Context File InclusionPlanned
@-MentionsNo
Tool IntegrationYes
Path-Specific RulesYes
Prompt FilesNo
Slash CommandsYes
SkillsYes
Agent InstructionsYes
Local MemoryPartial
Nested MemoryPlanned

Limitations & Quirks

  • 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)
└── .claude/
├── skills/
│ └── my-skill/
│ └── SKILL.md # Skill with YAML frontmatter
└── agents/
└── reviewer.md # Agent config with frontmatter

Official Documentation