Skip to content

feat(pgpm): install skills from .boilerplate.json after scaffold#1271

Merged
pyramation merged 1 commit into
mainfrom
feat/skill-install-on-scaffold
Jun 6, 2026
Merged

feat(pgpm): install skills from .boilerplate.json after scaffold#1271
pyramation merged 1 commit into
mainfrom
feat/skill-install-on-scaffold

Conversation

@pyramation
Copy link
Copy Markdown
Contributor

Summary

Adds automatic skill installation to pgpm init workspace and pgpm init (module) flows. Templates can now declare agent skills in .boilerplate.json:

{
  "skills": [
    { "source": "constructive-io/constructive", "skills": ["pgpm"] },
    { "source": "constructive-io/constructive-skills", "skills": ["constructive-data-modeling"] }
  ]
}

After scaffoldTemplate completes, inspectTemplate reads the config and runs npx --yes skills add <source> --skill <name> --yes for each entry. Spawns with stdio: ['pipe', 'inherit', 'inherit'] to avoid readline conflicts with Inquirerer while still showing progress output.

Non-fatal on failure — prints the manual commands the user can run themselves:

⚠️  Some skills could not be installed automatically.
Run the following commands manually:

  npx skills add https://github.com/constructive-io/constructive --skill pgpm

New types in @pgpmjs/core:

interface BoilerplateSkill {
  source: string;   // "org/repo" or full URL
  skills: string[]; // skill names to install
}

Companion PR: constructive-io/pgpm-boilerplates#32 adds the skills field to the workspace template's .boilerplate.json.

Link to Devin session: https://app.devin.ai/sessions/8a70e4bc95b947faa41db21e02ed818e
Requested by: @pyramation

Add BoilerplateSkill type and skills field to BoilerplateConfig so
templates can declare agent skills to install post-scaffold.

After scaffoldTemplate completes, inspectTemplate reads the config and
runs 'npx skills add' for each declared skill. On failure, prints
manual install commands instead of aborting.

Wired into both workspace init and module init flows.
@devin-ai-integration
Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation pyramation merged commit 4ba32ea into main Jun 6, 2026
68 checks passed
@pyramation pyramation deleted the feat/skill-install-on-scaffold branch June 6, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant