Skip to content

feat: support Agent Skills progressive disclosure - #234

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/agent-skills-progressive-disclosure
Aug 4, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/agent-skills-progressive-disclosure

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Parses SKILL.md YAML frontmatter (name, description, metadata, compatibility, license) into a structured SkillManifest (forge-context::discover_skills), replacing the old Vec<(String, String)> eager-content model.
  • System prompt now injects only name + description for skills with frontmatter (discovery stage), instead of the full SKILL.md body — cutting unnecessary context usage. Skills without frontmatter still get their full body inlined eagerly (backward compatible).
  • Adds a load_skill tool (forge-tools) for the activation stage (load a skill's full instructions by name) and execution stage (read a bundled references/, scripts/, or assets/ file from that skill's own directory, including global skills that live outside the workspace).
  • Updates system_prompt.md to explain the load_skill workflow to the model.

Closes #226.

Test plan

  • cargo test -p forge-context — new frontmatter-parsing tests pass
  • cargo test -p forge-tools — new load_skill tool tests pass (activation, bundled-file read, unknown skill, path-escape refusal)
  • cargo test -p forge-core — discovery-only vs. eager-fallback system prompt tests pass
  • cargo test --workspace — all green except a pre-existing, unrelated forge-config permissions-test failure on this dev machine
  • cargo fmt --all -- --check

Parse SKILL.md YAML frontmatter (name/description/metadata/compatibility/
license) into a structured SkillManifest, and only inject name+description
into the system prompt (discovery stage) instead of full skill bodies.
Add a load_skill tool so the model can pull a matching skill's full
instructions on demand (activation stage), or read a bundled
references/scripts/assets file from its directory (execution stage).
Skills without frontmatter still get their full body inlined eagerly,
preserving the old behavior.
@github-actions
github-actions Bot enabled auto-merge (squash) August 4, 2026 08:05
@github-actions
github-actions Bot merged commit 0995c94 into main Aug 4, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
Parse SKILL.md YAML frontmatter (name/description/metadata/compatibility/
license) into a structured SkillManifest, and only inject name+description
into the system prompt (discovery stage) instead of full skill bodies.
Add a load_skill tool so the model can pull a matching skill's full
instructions on demand (activation stage), or read a bundled
references/scripts/assets file from its directory (execution stage).
Skills without frontmatter still get their full body inlined eagerly,
preserving the old behavior.
mohitranka added a commit that referenced this pull request Sep 11, 2026
Parse SKILL.md YAML frontmatter (name/description/metadata/compatibility/
license) into a structured SkillManifest, and only inject name+description
into the system prompt (discovery stage) instead of full skill bodies.
Add a load_skill tool so the model can pull a matching skill's full
instructions on demand (activation stage), or read a bundled
references/scripts/assets file from its directory (execution stage).
Skills without frontmatter still get their full body inlined eagerly,
preserving the old behavior.
mohitranka added a commit that referenced this pull request Sep 11, 2026
Parse SKILL.md YAML frontmatter (name/description/metadata/compatibility/
license) into a structured SkillManifest, and only inject name+description
into the system prompt (discovery stage) instead of full skill bodies.
Add a load_skill tool so the model can pull a matching skill's full
instructions on demand (activation stage), or read a bundled
references/scripts/assets file from its directory (execution stage).
Skills without frontmatter still get their full body inlined eagerly,
preserving the old behavior.
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.

feat: Support Agent Skills open standard (progressive disclosure & skill packages)

1 participant