export_platform
Convert rule-level patterns to a target platform’s config format, like .cursorrules or .windsurfrules, without manual translation.
Instructions
Render rule-level patterns in a target editor's config format.
Use this when you want rules in a specific platform's rules file —
e.g. Cursor's .cursorrules, Windsurf's .windsurfrules, or Codex's
AGENTS.md — without hand-translating the output of export_rules().
Use fmt="claude-md" for the same Markdown renderer as
export_claude_md(); prefer export_claude_md() when you only need
Claude's CLAUDE.md shape.
For Anthropic-specific outputs (CLAUDE.md, SKILL.md), the dedicated
export_claude_md() and export_skill() tools keep the intent explicit.
Prefer this tool for non-Claude targets like .cursorrules,
.windsurfrules, or AGENTS.md.
Args:
fmt: Target platform. One of: "claude-md" (default),
"cursorrules", "windsurfrules", "codex". Unknown values are
rejected by validation instead of silently guessing.
Returns:
Dict with keys: "content" (str — formatted text ready to write
to disk; empty string when no rules exist), "format" (str —
echoed), "rule_count" (int).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | claude-md |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||