generate-feature-package
Generate feature package
Scaffolds a new feature domain package under features/<name>/ matching the structure defined in
this skill's references/feature-architecture.md: one folder per zone, with the files that zone
always needs — a barrel (index) where the zone re-exports its public API (components/,
types/, server/db/, test/builders/), a ready-to-fill stub where it doesn't
(schemas/<name>-schema.ts, server/db/schema.ts, server/permissions.ts, etc.). A bundled
script does the deterministic file creation — invoke it, don't hand-create the files, so every
feature comes out identical.
Paths in this skill are relative to the skill's own directory (provided to you when the skill is
invoked), not to the target project. The skill operates on whatever project the user is in: the
script finds that project's root by walking up to the nearest package.json.