From ce51843e6d8f81ac56c9412664aa92117ecc1514 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Sat, 6 Jun 2026 20:01:16 +0000 Subject: [PATCH] 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. --- packages/genomic/src/scaffolder/types.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/genomic/src/scaffolder/types.ts b/packages/genomic/src/scaffolder/types.ts index 0b4d8b0..2e29a38 100644 --- a/packages/genomic/src/scaffolder/types.ts +++ b/packages/genomic/src/scaffolder/types.ts @@ -139,6 +139,17 @@ export interface BoilerplatesConfig { dir?: string; } +/** + * Declares a skill to install after scaffolding completes. + * Used with the agentskills.io CLI (`npx skills add --skill `). + */ +export interface BoilerplateSkill { + /** GitHub repository in org/repo format, or a full URL */ + source: string; + /** Skill name(s) to install from the source */ + skills: string[]; +} + /** * Configuration for a single boilerplate template. * Stored in `.boilerplate.json` within each template directory. @@ -153,6 +164,13 @@ export interface BoilerplateConfig { * Questions to prompt the user during scaffolding */ questions?: Question[]; + + /** + * Skills to install after scaffolding completes. + * Each entry specifies a source repository and skill names to install. + * Non-fatal: callers should handle install failures gracefully. + */ + skills?: BoilerplateSkill[]; } /**