Skip to content

feat: support inline skills in agent YAML config#2946

Merged
dgageot merged 3 commits into
docker:mainfrom
dgageot:board/266bcd99a349586c
Jun 1, 2026
Merged

feat: support inline skills in agent YAML config#2946
dgageot merged 3 commits into
docker:mainfrom
dgageot:board/266bcd99a349586c

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Jun 1, 2026

Adds support for defining "inline skills" directly in the agent YAML skills: field, enabling users to express skills without maintaining separate files or requiring external sources. Inline skills are defined as YAML mappings mixed with existing string sources and name filters, and support the YAML-expressible subset of the skill definition format.

An inline skill specifies a name, description, and instructions (all required), plus optional fields for context (only "fork" allowed), model, and allowed_tools. They cannot bundle files or use command expansion. Inline skills are always exposed to the agent, work in sandbox mode since they travel inside the agent YAML, and enable skills independently without needing to pull in local sources.

The implementation includes schema updates, validation (required fields, duplicate-name detection, context restrictions), a new InlineSkill type with mixed YAML/JSON parsing, and updates to the skills toolset and TUI to handle inline skill retrieval and display.

Also includes a fix for test hermeticity: pkg/worktree/worktree_test.go now disables commit signing in the test bootstrap repo to prevent leakage from the developer's global 1Password SSH commit-signing config, which was flaky in tests.

@dgageot dgageot requested a review from a team as a code owner June 1, 2026 11:36
@dgageot dgageot merged commit 2705ec2 into docker:main Jun 1, 2026
8 checks passed
@docker-agent
Copy link
Copy Markdown

PR Review Failed — The review agent encountered an error and could not complete the review. View logs.

@aheritier aheritier added area/skills Skills system and custom slash commands kind/feat PR adds a new feature (maps to feat: commit prefix) labels Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/skills Skills system and custom slash commands kind/feat PR adds a new feature (maps to feat: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants