The skill structure that stops wasting tokens in Copilot @DevLeonardo
The skill structure that stops wasting tokens in Copilot  @DevLeonardo
Uploaded March 2026 | Updated November 2026, 1 day ago
Progressive disclosure lets your agent skills load only the files they actually need — saving tokens and keeping the context window clean. I walk you through how to split a skill into multiple files, where each part is loaded only when the model detects a relevant keyword, and I also demo how a skill can run scripts for more complex validation. Quick heads up: be careful when downloading skills with scripts from untrusted sources.

#GitHubCopilot #AgentSkills #VSCode
_______________________________
Subscribe to my newsletter: https://leonardomontini.dev/newsletter
Support my work: github.com/sponsors/Balastrong ❤️

Hit like and subscribe for more content! :D

You can also follow me on the other platforms:
Discord Community: discord.gg/bqwyEa6We6
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
GitHub: github.com/Balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
Instagram: instagram.com/devbalastrong

_______________________________
TIMESTAMPS

0:00 What is progressive disclosure
0:21 Structuring a skill definition
0:49 Splitting skills into files
1:03 Declare keyword validation
2:04 Loading files conditionally
3:15 Seeing it in the debug view
3:43 Running scripts from skills
5:08 Downloading skills safely
The skill structure that stops wasting tokens in CopilotGitHub Copilot can Brainstorm on ANY RepositoryCode Confidence: Why Writing Tests MattersA 3D Viewer for Any WebsiteReact.js new documentation!Reference Issues and Pull Request on GitHubUnit Tests with GitHub Copilot ChatGitHub / Slash Commands / Part 2Friendly and Effective Code Reviews on GitHubTanStack Start Login FormWhen Unit Testing goes wrong...SSR, Preloading, Caching and more with TanStack Start + Query
Dev Leonardo |

The skill structure that stops wasting tokens in Copilot

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER