From claude-ecosystem
Exports Claude Code's full system prompt (tools, instructions, CLAUDE.md, memory, session context) to console or markdown file with --output flag.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-ecosystem:export-system-promptThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Export Claude Code's complete system prompt (all instructions, tool definitions, CLAUDE.md content, memory imports, and session context) to the console or a markdown file.
Export Claude Code's complete system prompt (all instructions, tool definitions, CLAUDE.md content, memory imports, and session context) to the console or a markdown file.
--output: Write to auto-generated path in .claude/temp/--output <path>: Write to specified path (.md extension added if missing)--output flag is present in $ARGUMENTS--output present, check if a path follows itconsole (no flag)file_auto (flag without path)file_custom (flag with path)Run: date -u +"%Y-%m-%dT%H:%M:%SZ" to get UTC timestamp for metadata.
The "system prompt" includes everything Claude sees as instructions at the start of each turn:
<system-reminder> tags)Important: Output the COMPLETE system prompt without truncation. This is the entire context Claude operates under.
Format as markdown with metadata header:
# System Prompt Export
**Exported:** {UTC timestamp}
**Working Directory:** {cwd from environment}
**Model:** {model name from system context}
---
## Complete System Prompt
{Everything from the system context - tools, instructions, CLAUDE.md, memory, hooks, etc.}
---
*Exported by `/claude-ecosystem:export-system-prompt`*
Console Mode (default):
Output the formatted markdown directly. The user will see the complete system prompt in the conversation.
File Mode (--output):
Determine output path:
.md if missing).claude/temp/YYYY-MM-DD_HHmmss-system-prompt-export.mdWrite formatted output to file using Write tool
Report success: Saved system prompt to: {path}
# System Prompt Export
**Exported:** {timestamp}
**Working Directory:** {cwd}
**Model:** {model}
---
## Complete System Prompt
### Tool Definitions
{List all available tools with their descriptions}
### System Instructions
{Base Claude Code instructions}
### Project Instructions (CLAUDE.md)
{Contents of CLAUDE.md and imported memory files}
### Session Context
{gitStatus, environment info, hook-injected reminders}
---
*Exported by `/claude-ecosystem:export-system-prompt`*
Before reporting completion, verify:
--output to save to a file.npx claudepluginhub melodic-software/claude-code-plugins --plugin claude-ecosystemExports Claude Code session JSONL files to human-readable markdown with role markers and timestamps. Use to save, review, share transcripts, or feed dev-diary pipelines.
Guides CLAUDE.md setup including hierarchy, syntax, content for project instructions/conventions, and .claude/rules for global/path-scoped rules in Claude Code.
CLAUDE.md instruction quality: writing effective project instructions, diagnosing why Claude ignores rules, routing content to the right layer, and systematic improvement. Invoke whenever task involves any interaction with CLAUDE.md files — writing, reviewing, auditing, improving, or debugging instruction compliance.