"Generate frontend (Flutter) and backend (C#) code, workers, and Markdown documentation artifacts from the API specifications. Use when you want to produce generated code and docs from validated specs; runs the project generate scripts and reports each step's outcome."
Install
npx skillscat add specfuse/authoring/generate Install via the SkillsCat registry.
SKILL.md
Generate frontend and backend code artifacts from the API specifications.
Enforces: (general — no single handbook)
Prerequisites — verify before running
specfuseis on PATH (pipx install specfuse, oruv tool install specfuse). The generator itself is not a file in the project — the CLI resolves and checksum-verifies the version pinned ingenerator.lockon demand. On a standalone kit install the deprecated flatspecfuse-authoringcommand still works; drop thespecfuseprefix from the commands below.- The project config file (typically
<project>-project.json) exists in the project root - Specifications are valid — if not recently validated, run
/validatefirst
Steps
Artifact groups are declared in the project config; generate the ones the project defines. specfuse authoring generate passes its arguments through to the generator.
- Generate backend (C#) — Run
specfuse authoring generate --group "<backend group>" <project>-project.json - Generate frontend (Flutter) — Run
specfuse authoring generate --group "<frontend group>" <project>-project.json - Generate workers (C#) — If
asyncSpecificationsis defined in the project config, runspecfuse authoring generate --group "<workers group>" <project>-project.json - Generate documentation (Markdown) — Run
./scripts/specfuse/generate-scenario-docs.sh. It bundles the specs, then calls the CLI for both markdown artifact groups defined in the project config:Documentation - Scenarios→scenarioDocument,scenarioIndex(output:./api/docs)Documentation - Technical References→recipeDocumentation,entityDiagram,eventCatalog,channelTopology,docsIndex(output:./docs/generated)
Report the outcome of each step. If generation fails, analyze the error output and suggest fixes.