Frontmatter
| id | 9701 |
| title | Implement Progressive Disclosure for Agent Skills Context Assembly |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Apr 4, 2026, 7:09 PM |
| updatedAt | Apr 4, 2026, 7:12 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9701 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 9672 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 4, 2026, 7:12 PM |
Implement Progressive Disclosure for Agent Skills Context Assembly
Closedenhancementai
tobiu added parent issue #9672 on Apr 4, 2026, 7:09 PM
tobiu assigned to @tobiu on Apr 4, 2026, 7:09 PM

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
Background
Currently,
Neo.ai.context.Assemblerloads the entirety of all.agent/skills/*/SKILL.mdfiles into the system prompt unconditionally for every session. As we build massive instructional frameworks (like the 87-lineunit-testguide), 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():SKILL.mdto extractname,description, and explicittriggers.<agent_skills>block of the overarching continuous system prompt.SKILL.mdmarkdown body..agent/workflows/unit-test.mdinto a self-contained.agent/skills/unit-test/folder (where theSKILL.mdacts 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.