# Export

> Extract your persona into CLAUDE.md or AGENTS.md for use in any AI agent

- Skill: `lilmgenius/export` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lilmgenius/export`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lilmgenius/export/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: lilmgenius (https://skillmd.com/u/lilmgenius)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lilmgenius/export

---


!`ACTIVE=$(cat personas/_active.md 2>/dev/null || echo "default"); cat "personas/$ACTIVE/persona.md" 2>/dev/null && cat "personas/$ACTIVE/nuance.md" 2>/dev/null || echo "No persona. Run /interview first."`

# Export Skill Protocol

`$ARGUMENTS`:
- `target` — `claude`, `agents`, or `both`

Parse `target` first:
- `claude` → write only `personas/{active}/generated/CLAUDE.generated.md`
- `agents` → write only `personas/{active}/generated/AGENTS.generated.md`
- `both` or empty → write both generated files

## Export to CLAUDE.md template (target=claude or both)

Build `personas/{active}/generated/CLAUDE.generated.md` from persona + nuance sources:
- Work philosophy section: infer priority, approach, and risk stance from `persona.md`
- Decision-making priorities: infer ordering + energy bias from `persona.md`
- Tone rules: map `nuance.md` voice into register rules and avoid-list
- Context loading protocol: derive startup context from `persona.md` core tags
- Anti-patterns to avoid: convert `persona.md` anti field into explicit do-not rules
- Add a header note that this file was generated and should be reviewed before copying into a project root.

## Export to AGENTS.md template (target=agents or both)

Build Codex/OpenCode-compatible agent definitions:
- Include agent name, description, and invocation method
- Ground role split in persona domain expertise from `persona.md` core tags
- Keep entries portable across Codex/OpenCode style `AGENTS.md`
- Write the result to `personas/{active}/generated/AGENTS.generated.md` and add a generated-file header note.

## Output

Write generated files to `personas/{active}/generated/`:
- `CLAUDE.generated.md`
- `AGENTS.generated.md`
- Create the directory first if it does not exist.
- Re-read the saved file(s) and return the confirmed generated path(s).

Note: This persona is now portable. Drop it into any project.

