<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Ai-Methodology on KnightLi Blog</title>
        <link>https://knightli.com/en/tags/ai-methodology/</link>
        <description>Recent content in Ai-Methodology on KnightLi Blog</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Sat, 28 Mar 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://knightli.com/en/tags/ai-methodology/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>What Is Agent Skills: From Design Principles to Context Optimization</title>
        <link>https://knightli.com/en/2026/03/28/what-is-agent-skills/</link>
        <pubDate>Sat, 28 Mar 2026 00:00:00 +0000</pubDate>
        
        <guid>https://knightli.com/en/2026/03/28/what-is-agent-skills/</guid>
        <description>&lt;p&gt;Agent Skills is a standardized way to package procedural knowledge. In short, it answers not only &amp;ldquo;whether tools exist&amp;rdquo; but &amp;ldquo;how to use them correctly and effectively.&amp;rdquo;&lt;/p&gt;
&lt;h2 id=&#34;1-core-design-principles&#34;&gt;1. Core Design Principles
&lt;/h2&gt;&lt;p&gt;The core value of Agent Skills is that it captures reusable methodology:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It provides domain knowledge to guide how agents combine and invoke tools in specific scenarios.&lt;/li&gt;
&lt;li&gt;It constrains execution paths, reducing trial-and-error and improving consistency.&lt;/li&gt;
&lt;li&gt;It makes complex workflows reusable and iterative, forming stable SOPs over time.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If tool capability is like a hardware interface, Skills is closer to an operations manual plus best-practice playbook, defining what should be done and how.&lt;/p&gt;
&lt;h2 id=&#34;2-progressive-disclosure-solving-the-context-bottleneck&#34;&gt;2. Progressive Disclosure: Solving the Context Bottleneck
&lt;/h2&gt;&lt;p&gt;The key innovation in Agent Skills is Progressive Disclosure: load information only when needed, instead of pushing everything into the context window at once.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://knightli.com/2026/03/28/%E4%BB%80%E4%B9%88%E6%98%AF-agent-skills/1.png&#34;
	width=&#34;1080&#34;
	height=&#34;589&#34;
	srcset=&#34;https://knightli.com/2026/03/28/%E4%BB%80%E4%B9%88%E6%98%AF-agent-skills/1_hu_3f15e8771443e908.png 480w, https://knightli.com/2026/03/28/%E4%BB%80%E4%B9%88%E6%98%AF-agent-skills/1_hu_74352dc275951faa.png 1024w&#34;
	loading=&#34;lazy&#34;
	
	
		class=&#34;gallery-image&#34; 
		data-flex-grow=&#34;183&#34;
		data-flex-basis=&#34;440px&#34;
	
&gt;&lt;/p&gt;
&lt;h3 id=&#34;21-layer-1-metadata&#34;&gt;2.1 Layer 1: Metadata
&lt;/h3&gt;&lt;p&gt;Each skill is usually stored in its own folder, with &lt;code&gt;SKILL.md&lt;/code&gt; as the core file. This file starts with YAML front matter that defines basic skill information.&lt;/p&gt;
&lt;p&gt;At startup, the agent reads only the front matter of all skills and injects that metadata into the system prompt. In practice:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Metadata for one skill costs about &lt;code&gt;100 tokens&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;50 skills cost about &lt;code&gt;5,000 tokens&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;22-layer-2-instructions&#34;&gt;2.2 Layer 2: Instructions
&lt;/h3&gt;&lt;p&gt;When a skill is judged highly relevant to the current task, the agent then reads the full &lt;code&gt;SKILL.md&lt;/code&gt;, loading detailed instructions, notes, and examples.&lt;/p&gt;
&lt;p&gt;Token usage at this layer depends on instruction complexity, typically:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;1,000&lt;/code&gt; to &lt;code&gt;5,000 tokens&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;23-layer-3-additional-resources-scripts--references&#34;&gt;2.3 Layer 3: Additional Resources (Scripts &amp;amp; References)
&lt;/h3&gt;&lt;p&gt;For more complex skills, &lt;code&gt;SKILL.md&lt;/code&gt; can reference scripts, config files, and docs, which are loaded only when needed.&lt;/p&gt;
&lt;p&gt;Example directory structure:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;7
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;skills/pdf-processing/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── SKILL.md                 # Main skill file
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── parse_pdf.py             # PDF parsing script
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── forms.md                 # Form-filling guide (loaded only for form tasks)
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└── templates/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ├── invoice.pdf
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    └── report.pdf
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Typical invocation pattern:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;parse_pdf.py&lt;/code&gt; when PDF parsing is required&lt;/li&gt;
&lt;li&gt;Load &lt;code&gt;forms.md&lt;/code&gt; only for form-filling tasks&lt;/li&gt;
&lt;li&gt;Access template files only when generating specific output formats&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;3-why-this-design-works&#34;&gt;3. Why This Design Works
&lt;/h2&gt;&lt;h3 id=&#34;31-scalable-knowledge-capacity&#34;&gt;3.1 Scalable Knowledge Capacity
&lt;/h3&gt;&lt;p&gt;With scripts and external files, a skill can carry knowledge far beyond context-window limits.
For example, a data-analysis skill can include a &lt;code&gt;1GB&lt;/code&gt; dataset plus query scripts, and the agent can access data through execution instead of loading the whole dataset into context.&lt;/p&gt;
&lt;h3 id=&#34;32-stronger-determinism&#34;&gt;3.2 Stronger Determinism
&lt;/h3&gt;&lt;p&gt;Delegating complex computation, data transformation, and format parsing to code significantly reduces uncertainty and hallucination risk in pure text generation.&lt;/p&gt;
&lt;h2 id=&#34;4-practical-impact-from-16k-to-500-tokens&#34;&gt;4. Practical Impact: From 16k to 500 Tokens
&lt;/h2&gt;&lt;p&gt;Community practice shows that Progressive Disclosure can drastically reduce initial context overhead:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Traditional MCP approach: directly connect to an MCP server with many tool definitions, around &lt;code&gt;16,000 tokens&lt;/code&gt; at initialization&lt;/li&gt;
&lt;li&gt;With Skills packaging: use a lightweight gateway skill described mainly in front matter, around &lt;code&gt;500 tokens&lt;/code&gt; at initialization&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Detailed instructions and additional resources are loaded only when the task truly requires them. This lowers initial cost and improves context management precision during the conversation.&lt;/p&gt;
&lt;h2 id=&#34;summary&#34;&gt;Summary
&lt;/h2&gt;&lt;p&gt;The key value of Agent Skills is upgrading from &amp;ldquo;tools are available&amp;rdquo; to &amp;ldquo;capabilities are reusable.&amp;rdquo; With Progressive Disclosure, systems can preserve capability depth while significantly optimizing token cost and execution stability.&lt;/p&gt;
</description>
        </item>
        
    </channel>
</rss>
