Agent Skills: A Practical Guide to 11 Core Capabilities
This guide explains why generating code is not the same as delivering it, how Agent Skills work through progressive loading and three scopes, and which 11 skill capabilities are worth building first. It covers installation, governance, common pitfalls, and how to measure the impact of a skill system on software delivery.
1. Why “Generating Code” Is Not the Same as “Delivering Code”
Most teams go through the same phase after adopting AI coding tools: the demo looks impressive, but real adoption keeps running into rework. The reason is not mysterious. Large language models are good at reproducing local syntax and common patterns, but engineering delivery demands complete boundary handling, recoverable exceptions, traceable dependencies, and rollback-safe changes. When a task grows from “write a function” to “change a request path,” the model has to hold business constraints, prior decisions, and validation criteria in a long context at the same time. Attention gets diluted, and omissions are almost inevitable.
Skills are the answer to this structural gap. They decouple expert experience from model weights and turn it into versioned, reviewable, reusable instruction assets. A skill does not replace the model’s brain; it gives the model a work instruction sheet it can pick up whenever needed.
2. How Skills Work: Progressive Loading and Three Scopes
A skill is usually built around a Markdown instruction file, supported by scripts, templates, and reference material. The key runtime design is layered loading:
- Layer 1: only the name and description of every skill are injected, using a very small context budget;
- Layer 2: once a task matches a description, the full instructions for that skill are loaded;
- Layer 3: scripts or long documents referenced in the instructions are read on demand.
This “index first, body second, attachments third” structure makes context cost proportional to the capabilities actually used, with unused parts costing almost nothing. It is one of the most effective ways to control token growth in long tasks.
Skill visibility is determined by scope, commonly divided into user level (available globally to the current account), project level (travels with the repository, shared by the team and included in review), and team or organization level (distributed centrally with compliance constraints). Together they form a progression from personal habits to organizational standards: personal techniques accumulate at user level, engineering conventions are fixed at project level, and security baselines are enforced at organization level.
There are two trigger types: explicit invocation, where the user names the skill, and implicit matching, where task semantics and the description activate it automatically. If a description is vague, implicit triggering will misfire, which is why “the description is the interface” is the first principle of skill design.
3. 11 Skill Capabilities Worth Building First
The list below follows the development lifecycle, with the problem each capability solves and key implementation points.
Requirement clarification and task decomposition. Turn vague requests into an acceptance criteria checklist and implementation steps, and require assumptions and open questions to be stated first, so the model does not fill gaps on its own.
Codebase navigation and impact analysis. Locate entry points, call chains, and data flow before making changes; produce a “change list plus affected tests” to significantly reduce cross-module regressions.
Test-first generation. Add unit tests and failing cases for new logic first, turning “looks correct” into “verifiably correct,” with boundary conditions filled in by the cases.
Code review and defect hunting. Check for null values, concurrency, resource release, injection risk, and swallowed errors from a checklist perspective, and output severity levels with fix suggestions.
Security baseline checks. Make input validation, parameterized queries, least privilege, and no secrets in the repository mandatory steps rather than relying on the model’s judgment.
Performance and cost profiling. Measure before optimizing, focusing on complexity, repeated computation, N+1 access, and serialization overhead, while assessing resource consumption along the call chain.
Refactoring and legacy code governance. Replace code in small steps under the “behavior unchanged” constraint, using characterization tests to lock external behavior and avoid large one-off rewrites.
Database and data changes. Make change scripts rollback-capable and gradually releasable, make index and lock impact explicit, and prohibit implicit full-table updates.
Observability. Standardize log fields, metrics, and trace identifiers so that post-release diagnosis is predictable instead of depending on ad hoc prints.
Documentation and knowledge capture. Generate explanations and change records from code and interfaces automatically, turning one-off conversations into team assets.
Release and rollback orchestration. Split a release into four stages: check, execute, verify, and rollback, each with its own criteria and owner.
4. Installation, Organization, and Governance
Installing a skill means placing its directory under the lookup path the runtime expects. The user-level directory is for personal accumulation, while the project-level directory is distributed with the codebase. For example:
mkdir -p ~/.agents/skillscp -r ./my-skill ~/.agents/skills/my-skill# Project level: put it in the agreed directory inside the repository and review it with the codemkdir -p ./.agents/skills
Three hard constraints are recommended for governance: skill files go through code review with a change trail; descriptions and trigger conditions state the applicable and non-applicable boundaries to reduce misfires; skills that delete, migrate, or send data externally require a second confirmation. If a team already runs a development pipeline on Baidu AI Cloud, the skill directory can be managed as a pipeline asset, giving unified distribution, auditing, and rollback.
5. Common Pitfalls and Measuring Value
Pitfalls cluster in three places: piling up skills until descriptions compete for trigger priority; stuffing entire long documents into instructions, which cancels out the benefit of progressive loading; and writing only “what to do” without “how to verify,” which makes output quality fluctuate randomly.
Value should be measured with verifiable metrics: rework rate and number of review comments, defect escape rate, average interaction turns per task, context and invocation cost, and time for new members to get up to speed. The maturity of a skill system is not measured by count, but by whether new members can directly reuse the organization’s accumulated work standards and produce stable, predictable output.
