Skip to content

Commit ce51843

Browse files
committed
feat(genomic): add skills field to BoilerplateConfig
Add BoilerplateSkill interface and optional skills[] field to the base BoilerplateConfig type, enabling any CLI built on genomic to declare agent skills for post-scaffold installation via the agentskills.io CLI. Callers read result.config.skills after scaffold/inspect and handle the actual npx skills add invocations themselves.
1 parent 3d61e4c commit ce51843

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

packages/genomic/src/scaffolder/types.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,17 @@ export interface BoilerplatesConfig {
139139
dir?: string;
140140
}
141141

142+
/**
143+
* Declares a skill to install after scaffolding completes.
144+
* Used with the agentskills.io CLI (`npx skills add <source> --skill <name>`).
145+
*/
146+
export interface BoilerplateSkill {
147+
/** GitHub repository in org/repo format, or a full URL */
148+
source: string;
149+
/** Skill name(s) to install from the source */
150+
skills: string[];
151+
}
152+
142153
/**
143154
* Configuration for a single boilerplate template.
144155
* Stored in `.boilerplate.json` within each template directory.
@@ -153,6 +164,13 @@ export interface BoilerplateConfig {
153164
* Questions to prompt the user during scaffolding
154165
*/
155166
questions?: Question[];
167+
168+
/**
169+
* Skills to install after scaffolding completes.
170+
* Each entry specifies a source repository and skill names to install.
171+
* Non-fatal: callers should handle install failures gracefully.
172+
*/
173+
skills?: BoilerplateSkill[];
156174
}
157175

158176
/**

0 commit comments

Comments
 (0)