Repository navigation
feat: support Agent Skills progressive disclosure - #234
Merged
github-actions[bot] merged 1 commit intoAug 4, 2026
Merged
Conversation
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SKILL.mdYAML frontmatter (name,description,metadata,compatibility,license) into a structuredSkillManifest(forge-context::discover_skills), replacing the oldVec<(String, String)>eager-content model.name+descriptionfor skills with frontmatter (discovery stage), instead of the fullSKILL.mdbody — cutting unnecessary context usage. Skills without frontmatter still get their full body inlined eagerly (backward compatible).load_skilltool (forge-tools) for the activation stage (load a skill's full instructions by name) and execution stage (read a bundledreferences/,scripts/, orassets/file from that skill's own directory, including global skills that live outside the workspace).system_prompt.mdto explain theload_skillworkflow to the model.Closes #226.
Test plan
cargo test -p forge-context— new frontmatter-parsing tests passcargo test -p forge-tools— newload_skilltool tests pass (activation, bundled-file read, unknown skill, path-escape refusal)cargo test -p forge-core— discovery-only vs. eager-fallback system prompt tests passcargo test --workspace— all green except a pre-existing, unrelatedforge-configpermissions-test failure on this dev machinecargo fmt --all -- --check