Skip to content

LOU-Y2: skills (progressive disclosure of instructions) - #44

Merged
LinuxDevil merged 1 commit into
mainfrom
lou-y2-skills
Oct 1, 2026
Merged

LinuxDevil merged 1 commit into
mainfrom
lou-y2-skills

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

Adds src/skills: defineSkill() (validated name/description/content),
loadSkills(dir) (dir/<name>/SKILL.md and dir/<name>.md layouts, YAML
frontmatter, sorted, file-naming errors, duplicate detection) and wiring.

When createAgent({ skills }) or AgentExecutor.execute({ skills }) is used,
a compact "Available skills" block (name + description per skill) is appended
to the system prompt and a load_skill tool (built with defineTool) is
registered; it returns the full body, or a tool error listing valid names for
an unknown skill. Bodies stay out of the prompt until loaded. A user tool
named load_skill is rejected with a clear error. The caller's agent and
ToolRegistry are not mutated.

Docs: docs/skills.md, README bullet + docs link, api-overview section.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@LinuxDevil
LinuxDevil merged commit 376959f into main Oct 1, 2026
1 check passed
LinuxDevil added a commit that referenced this pull request Oct 1, 2026
Adds src/skills: defineSkill() (validated name/description/content),
loadSkills(dir) (dir/<name>/SKILL.md and dir/<name>.md layouts, YAML
frontmatter, sorted, file-naming errors, duplicate detection) and wiring.

When createAgent({ skills }) or AgentExecutor.execute({ skills }) is used,
a compact "Available skills" block (name + description per skill) is appended
to the system prompt and a load_skill tool (built with defineTool) is
registered; it returns the full body, or a tool error listing valid names for
an unknown skill. Bodies stay out of the prompt until loaded. A user tool
named load_skill is rejected with a clear error. The caller's agent and
ToolRegistry are not mutated.

Docs: docs/skills.md, README bullet + docs link, api-overview section.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
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