LearnNewsExamplesServices
Frontmatter
id9701
titleImplement Progressive Disclosure for Agent Skills Context Assembly
stateClosed
labels
enhancementai
assigneestobiu
createdAtApr 4, 2026, 7:09 PM
updatedAtApr 4, 2026, 7:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/9701
authortobiu
commentsCount1
parentIssue9672
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 4, 2026, 7:12 PM

Implement Progressive Disclosure for Agent Skills Context Assembly

Closedenhancementai
tobiu
tobiu commented on Apr 4, 2026, 7:09 PM

Background

Currently, Neo.ai.context.Assembler loads the entirety of all .agent/skills/*/SKILL.md files into the system prompt unconditionally for every session. As we build massive instructional frameworks (like the 87-line unit-test guide), this causes severe context window bloat and distracts the background LLM during unrelated tasks.

Proposed Solution

Implement the Anthropic "Progressive Disclosure" strategy within ContextAssembler.loadSkillsSync():

  1. Parse the YAML Frontmatter of each SKILL.md to extract name, description, and explicit triggers.
  2. Inject only these lightweight triggers into the <agent_skills> block of the overarching continuous system prompt.
  3. Remove the injection of the full SKILL.md markdown body.
  4. Refactor .agent/workflows/unit-test.md into a self-contained .agent/skills/unit-test/ folder (where the SKILL.md acts purely as the routing trigger, and the heavy Markdown is kept in a /references/ subfolder).

Note: This will be linked as a sub-task of Epic #9672.

tobiu added the enhancement label on Apr 4, 2026, 7:09 PM
tobiu added the ai label on Apr 4, 2026, 7:09 PM
tobiu added parent issue #9672 on Apr 4, 2026, 7:09 PM
tobiu assigned to @tobiu on Apr 4, 2026, 7:09 PM
tobiu
tobiu Apr 4, 2026, 7:12 PM

Progressive Disclosure logic implemented successfully. ContextAssembler now natively strips the YAML frontmatter for all .agent/skills/*/SKILL.md files instead of injecting their entire body, drastically reducing unnecessary prompting overhead. The unit-test.md file was restructured into this new pattern mapping to the /references/ sub-directory folder.

tobiu closed this issue on Apr 4, 2026, 7:12 PM
tobiu referenced in commit d7cd447 - "feat: implement progressive disclosure for agent skills (#9701)" on Apr 4, 2026, 7:12 PM
tobiu referenced in commit 6d9c97a - "test: utilize assembler.ready() lifecycle in tests (#9701)" on Apr 4, 2026, 7:14 PM