Skip to content

Break the skill file to smaller markdown file to save token #1045

Closed

Description

@nguyen-vo

At the moment the skill.md file is large and it contains many scripts. Large skill file get loaded into agent context which make the agent to consume more token for stuffs it does not need

Suggestions

  • Implement progressive discovery. Create smaller markdown files and reference in the main skill
  • Move scripts out to deciate folders and reference in markdown file accordingly

This should allow the agent to navigate and only load the needed markdown file for specific task which reserve the context window for other task

Activity

  1. safishamsi commented on May 27, 2026

    @safishamsi
    Member

    Feel free to send a pr for this!

  2. safishamsi commented on Jun 2, 2026

    @safishamsi
    Member

    Done in 0.8.29 (#1121). SKILL.md is now a lean core plus an on-demand references/ sidecar, about 47% less always-loaded context, with the moved content shipped as byte-identical slices of the old file. Tracked in #1106. Closing as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions