adapt-materal-enums
Skill1 starsChanged 47 days agoMITView on GitHub
Materal-specific enum adaptation workflow: fetch enum values from provider API, let LLM fill suggested_name, then apply patch with aptx-ft. Use ONLY when: (1) user mentions Materal framework, (2) Materal naming rules are required, or (3) adapting Materal enum semantics. Do NOT use for generic OpenAPI projects.
- Installs packages
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- download-openapiSkill
- generate-artifactsSkill
- generate-barrelsSkill
- generate-modelsSkill
- generate-pythonSkill
- write-pluginSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Apply patch: only after all suggested_name fields are filled
- Very specific: line 77
Cleanup required: Delete enum-patch.json and enum-patch.translated.json after successful apply.
- Distinctive: line 84
Does not validate Materal API availability
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Materal Framework Enum Adapter
Specialized workflow for Materal framework enum adaptation with semantic naming.
Prerequisites
pnpm add -D @aptx-js/frontend-tk-cliStrict Workflow
- Fetch enum patch from provider API
- LLM fills
suggested_namebased oncommentfield (noValue1/Value2style allowed) - Apply patch only after all
suggested_namefields are filled - Cleanup intermediate files in production
Commands
# 1) Fetch Materal enum patch (disable auto-naming, delegate to LLM)
pnpm exec aptx-ft -i <spec-file> materal enum-patch \
--base-url <base-url> \
--output ./tmp/enum-patch.json \
--naming-strategy none
# 2) LLM fills suggested_name in patch
# Rule: Translate comment to semantic PascalCase name, preserve value/comment
# 3) Apply translated patch (requires non-empty suggested_name)
pnpm exec aptx-ft -i <spec-file> model enum-apply \
--patch ./tmp/enum-patch.translated.json \
--output ./generated/models \
--style module \
--conflict-policy patch-first
# 4) Cleanup intermediate files (required in production)
rm -f ./tmp/enum-patch.json ./tmp/enum-patch.translated.jsonAlternative (without pnpm):
npx aptx-ft -i <spec-file> materal enum-patch --base-url <base-url> --output ./tmp/enum-patch.json --naming-strategy none
npx aptx-ft -i <spec-file> model enum-apply --patch ./tmp/enum-patch.translated.json --output ./generated/models --style module --conflict-policy patch-firstAdvanced Options
| Option | Default | Description |
--max-retries <n> | 3 | Max retry attempts on network failure |
--timeout-ms <ms> | 10000 | Request timeout in milliseconds |
pnpm exec aptx-ft -i <spec-file> materal enum-patch \
--base-url <base-url> \
--output ./tmp/enum-patch.json \
--naming-strategy none \
--max-retries 5 \
--timeout-ms 30000Output Files
| File | Description |
enum-patch.json | Raw patch from API (value/suggested_name/comment) |
enum-patch.translated.json | LLM-filled patch |
./generated/models/ | Final TypeScript models with adapted enums |
Cleanup required: Delete enum-patch.json and enum-patch.translated.json after successful apply.
Boundaries
This skill is ONLY for Materal framework adaptation:
- Generic OpenAPI projects → use
generate-artifactsorgenerate-models - Requires access to Materal enum provider API
- Does not validate Materal API availability
Related Skills
- generate-models: Generic model generation
- generate-artifacts: Full artifact generation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

