feat(ai): add additive Agent Skills scaffolding to ai init#260
Conversation
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/e6e4ac20-17ad-4983-8f7f-08734c394b8a Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/e6e4ac20-17ad-4983-8f7f-08734c394b8a Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/plugboard-dev/plugboard/sessions/e6e4ac20-17ad-4983-8f7f-08734c394b8a Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
toby-coleman
left a comment
There was a problem hiding this comment.
@copilot Modify the CLI command so that it takes a --style option, which may be claude, github or agents, and place the skills in one of these directories according to it:
.github/skills/
.agents/skills/
.claude/skills/
Default to agents.
Read https://agentskills.io/specification and make sure the skill files follow the standard, e.g. they should be named SKILL.md, include frontmatter etc.
Implemented in 8e1acf8. |
toby-coleman
left a comment
There was a problem hiding this comment.
@copilot two modifications:
- Allow the
plugboard ai initcommand to add skills to an existing skills directory. For example if a skills directory exists with other skills in it, the command currently fails withCannot initialise AI files - Make sure that the skills related to YAML configs validate the YAML they create against the appropriate schema from plugboard-schemas. Examine the codebase to determine which schema to specify in the skill.
Implemented in 4d75932. |
toby-coleman
left a comment
There was a problem hiding this comment.
@copilot - modify so that missing AGENTS.md or individual skills can be added without complete failure. e.g. if AGENTS.md exists but one or more skill is missing, then report the existing files as is currently the case but add the missing skill.
Addressed in 46a2d74. |
|
@copilot resolve the merge conflicts in this pull request |
|
Benchmark comparison for |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@copilot fix the CI errors: xenon and codecov |
|
Benchmark comparison for |
Summary
Refines the packaged AI guidance for Plugboard model creation so agents favor YAML-friendly component arguments and decompose processes into components that mirror the real system. Extends
plugboard ai initto scaffoldAGENTS.mdplus Agent Skills-compliant task-specific skills, with a--styleoption that installs them into the appropriate directory for Agents, GitHub, or Claude workflows, supports adding Plugboard skills into an existing skills directory when unrelated skills are already present, and now performs additive initialisation so missingAGENTS.mdfiles or individual packaged skills can be installed without failing when other packaged AI files already exist. Includes a small follow-up refactor of theai initCLI flow plus additional CLI coverage to keep the implementation within CI complexity limits and exercise the conflict/error-handling paths added by the feature work.Changes
AGENTS guidance
plugboard/cli/ai/AGENTS.mdaround a clearer workflow: plan → implement → assemble → export/run.SKILL.mdmanifests.Packaged skills
SKILL.mdtemplates with YAML frontmatter for:plugboard process diagramplugboard process runtunesection after eliciting tunable parameters from the userplugboard_schemas.ConfigSpec, which matches the schema used by the Plugboard CLI when loading configuration files.CLI scaffolding
plugboard ai initto accept--stylewith:agents→.agents/skills/(default)github→.github/skills/claude→.claude/skills/AGENTS.mdalongside the selected skills directory.AGENTS.mdfile or packaged Plugboard skill directories are added instead of causing complete failure.plugboard.cli.aiinitialisation helpers without changing behaviour so the CLI implementation remains under the repository's xenon complexity thresholds.Docs and coverage
AGENTS.mdand.agents/skills/by default.github/skills/with--style githubAGENTS.mdalready existsSKILL.mdAGENTS.mdexists as a directory