Claude Code CatchAdmin export for Excel module classes
Create an Excel export class for a CatchAdmin module with ordered fields and headers and a fallback value for missing relations.
中文Install in Claude Code
Open CatchAdmin in Claude Code with the project’s PHP and Composer dependencies, and have a model or fixture data available for verification.
- Review `.claude/skills/07-export/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/07-export/` in your project and save the reviewed file as `.claude/skills/07-export/SKILL.md`.
- Start Claude Code from that project's root, then select `/export` in the slash menu or type the directory command `/07-export`.
Example task
Prepare product-09 as {id: 9, name: 'Paper tray', categoryName: null}. Request the headers ID, Name, and Category in that order.What to check
Use the headers ID, Name, and Category. This record exports as [9, 'Paper tray', '-'], with a dash when the category relation is absent.
Original SKILL.md on GitHub · Updated
Frequently asked question
What happens if a row has no category?
Eager-load the relation and use a dash when mapping a record with no category name.