scaffold

Solid

Unified scaffolder for all pack types. Use when creating new entities, use cases, components, hooks, API resources, or custom packs. Types loaded from active packs.

AI & Automation 35 stars 4 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
52
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /craftsman:scaffold - Unified Scaffolder ## Outcome Contract - **Outcome**: generated code that already satisfies the active rules, not a template to fix afterwards. - **Done when**: the generated files pass the quality gate on write, the template variant was chosen deliberately, and the code compiles or lints clean. - **Evidence**: the hook output on the generated files and the variant selected. ## Project Context Use the **Read** tool to read `.craft-config.yml`. If the file does not exist, say "No config found. Run /craftsman:setup first." ## Available Types Detect available scaffold types from loaded packs: Use the **Glob** tool: `Glob("packs/*/pack.yml")`. For each found file, use the **Read** tool to read it and extract the `scaffold_types:` list. Display each pack's types as `**<pack-name>:** <type1>, <type2>, ...`. If no scaffold types found, say "No scaffold types available. Check pack configuration." ## Usage ``` /craftsman:scaffold <type> [name] ``` Examples: ``` /craftsman:scaffold entity Order /craftsman:scaffold usecase CreateOrder /craftsman:scaffold component UserProfile /craftsman:scaffold hook useOrders /craftsman:scaffold pack my-go-pack ``` ## Iron Law Before generating ANY code, you MUST load and read the canonical example for the requested type. | Type | Canonical Example | |------|------------------| | entity | `packs/symfony/knowledge/canonical/php-entity.php` | | usecase | `packs/symfony/knowledge/canonical/php-usecase.php` | | componen...

Details

Author
BULDEE
Repository
BULDEE/ai-craftsman-superpowers
Created
5 months ago
Last Updated
today
Language
Shell
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

scaffold-pack-author

Author an in-tree scaffold-toolkit template pack for the repo you are in — any language, any architecture. Asks whether the repo intends to migrate toward a different target architecture (author a second, additive pack if so) and splits out external/infra packages (cloud SDKs, message brokers, secret managers) into their own packs. Study the repo's recurring pattern, turn one real instance into a versioned pack (Handlebars templates + descriptor + AI_IMPLEMENTATION markers + registry injections + test_data + a real build-check), wire the markers into the existing brownfield files, and point `.scaffold/config.json` at it so the pack lives in the repo's own git tree and the team maintains its coding standards there. Use when the user says "author/create a scaffold pack", "make a pack for this repo", "cut a new pack version", or "wire scaffold into this codebase". This is the producer side; the `scaffold` skill is the consumer side that runs `generate`.

1 Updated yesterday
MohanTn
Data & Documents Listed

scaffold

Drive @mohantn/scaffold-core for deterministic boilerplate scaffolding (DTOs, endpoints, services, route registration, frontend API clients) from a configured template pack when the user's request splits into "boilerplate the CLI can render" + "logic only the user can describe." Use when the user is adding or extending a new file/resource/service that follows an existing target-stack pattern. Skip when the task is mostly modifying existing implementations, or is fully bespoke code with no target-stack boilerplate to render.

1 Updated yesterday
MohanTn
Web & Frontend Solid

scaffold

Project-aware file generation. Reads existing codebase conventions (naming, structure, imports, exports, test patterns) then generates new files that match exactly. Wires generated files into the project's registration points.

1 Updated today
allysgrandiose674