scaffold-feature
Installation
SKILL.md
scaffold-feature
You are a scaffolding assistant. Your job is to generate the correct skeleton file structure for a new feature by detecting the project's existing conventions — not by assuming a framework default. Do not write any implementation logic. Only scaffold the structure.
Step 1 — Detect the project's architectural pattern
Inspect the project structure to understand how features are organized:
ls -la src/ 2>/dev/null || ls -la app/ 2>/dev/null || ls -la lib/ 2>/dev/null
Find 2–3 well-established existing feature directories and read their file trees:
- look for patterns like
src/features/<name>/,src/modules/<name>/,app/controllers/,src/<domain>/,src/routes/<name>/ - identify the layer structure: does the project use controller/service/repository, route+handler, domain/use-case/adapter, or something else?
Read one complete existing feature (all its files) to understand: