Agent Skills as an Open Standard: A Five-Dimension Comparison and Spec Validation in Practice
This article examines why skills are becoming a distinct layer of abstraction as AI agents move from chatting to executing real work. It introduces a five-dimension evaluation model covering directory conventions, metadata quality, progressive disclosure, execution and permission boundaries, and distribution governance, then compares five implementation routes without naming specific vendors. It also offers actionable recommendations, a dependency-free Python script for validating SKILL.md files in CI, common anti-patterns, and a phased adoption plan.
1. Why “Skills” Are Becoming a Separate Layer of Abstraction
As agents evolve from “being able to chat” to “being able to get work done,” teams tend to hit the same bottleneck: prompts keep growing, tool-calling logic is scattered across the codebase, and every new runtime environment forces a rewrite. The value of the skill layer is that it extracts “how a certain class of task should be done” from the conversation context and turns it into a versionable, reviewable, reusable engineering asset.
A mature skill usually contains three parts. First, the task methodology: the steps, constraints, and judgment criteria for completing a class of work. Second, a resource bundle: templates, reference docs, validation rules, and example inputs and outputs. Third, optional deterministic code for the parts that should not be left to the model’s free improvisation. Package these three into a conventional directory, add a structured description file, and you have the skill package format widely discussed in the industry.
It is worth stressing that skills are not a cure-all. They fit scenarios where the process is relatively stable and the judgment criteria can be described, such as code review checklists, preliminary log attribution, structured document extraction, and test case generation. For tasks that require long-lived state, strongly consistent transactions, or high real-time responsiveness, backend services and workflow engines should still carry the load; the skill only handles the cognitive and orchestration parts.
2. A Five-Dimension Model: Deciding Whether a Skill Approach Is Worth Betting On
Dimension 1: Directory and File Conventions
The prerequisite for openness is a shared convention for “where things go and what they are called.” Evaluate three points: whether the skill root directory is configurable, whether multiple directories can be layered (project-level taking precedence over user-level), and whether same-named skills have explicit override and priority rules. An implementation without priority rules produces “it runs on my machine but has no effect on yours” problems in team collaboration.
Dimension 2: Metadata and Description Quality
The description file generally carries identity and routing responsibilities: name, version, applicable scenarios, trigger conditions, and dependency declarations. What really separates implementations is whether the wording can be correctly retrieved by the model. Too broad a description causes false triggers; too narrow a one never matches. The recommendation is to state both “when to use” and “when not to use,” which is the lowest-cost way to reduce the cost of mistaken invocations.
Dimension 3: Progressive Disclosure and Context Budget
A skill description should expose only the minimum necessary information in the first turn and load details on demand; this is the core mechanism for controlling context bloat. Key evaluation points: whether layered references are supported, whether there is a resource loading limit, and whether oversized content can be truncated without breaking the structure. Context is a finite budget, and the first principle of skill design is to “express the most necessary constraints with the fewest tokens.”
Dimension 4: Execution Environment and Permission Boundaries
Once a skill can execute code, it must answer the isolation question: is there a separate working directory, is network access restricted, is the scope of file writes constrained, and can required permissions be declared rather than granted in full by default? Skill distribution without a sandbox and least privilege essentially spreads supply chain risk to every user’s machine.
Dimension 5: Distribution, Versioning, and Governance
Enterprise scenarios cannot avoid governance: where skills come from, how versions are pinned, how changes are audited, and how failures are rolled back. The mature practice is to treat skills as dependency management: pin versions, retain provenance, run spec validation in continuous integration, and require human review for high-risk skills.
3. Side-by-Side Comparison: Common Ground and Differences Across Five Implementation Routes
To avoid pointing at specific products, the comparison below is abstracted by “route” rather than by “vendor,” covering common practices in current mainstream AI coding tools and agent runtimes.
| Evaluation axis | Route A: Conventional directory + description file | Route B: Description file + executable scripts | Route C: Plugin-style package management | Route D: Documentation-driven (no code execution) | Route E: Centralized registry and distribution |
|---|---|---|---|---|---|
| Directory convention | Fixed hierarchy, supports layering | Fixed hierarchy, scripts in the same directory | Manifest described inside the package | Plain documentation directory | Pushed by the platform |
| Metadata richness | Medium | Medium-high | High | Low | High |
| Progressive disclosure | Supported | Supported | Supported | Naturally limited | Depends on the client |
| Code execution | Restricted | Supported | Supported | Not supported | Implementation-dependent |
| Isolation and permissions | Medium | Requires your own hardening | Relatively strong | No risk | Managed by the platform |
| Portability | High | High | Medium | High | Low |
| Governance and audit | Build your own | Build your own | Fairly complete | Simple | Complete |
The conclusion is not complicated: the closer a route is to “conventional directory + description file,” the better its portability; the closer it is to “centralized registry,” the stronger its governance but the higher the lock-in risk. The best engineering answer is usually a compromise: carry content with open conventions and fill the governance gap with an external pipeline.
4. Actionable Betting Recommendations
First, bet on open conventions at the content layer. Write the skill body as a generic description file bound to no proprietary fields; keep proprietary extensions in separate optional files and degrade gracefully when they are missing.
Second, build governance yourself rather than outsourcing it. Manage skills in a version repository, pin version numbers, run spec validation in continuous integration, and turn “is this skill compliant” into a gate that can block automatically.
Third, keep the execution layer off by default. Unless it is truly necessary, a skill should not carry executable code; when it must, restrict the working directory and network access and require permissions to be declared explicitly.
Fourth, write descriptions in both directions. Every skill must state applicable and non-applicable scenarios, and real failure samples should be used for periodic regression to observe the false trigger rate.
Fifth, keep an exit path. Once a quarter, run a portability drill: migrate skills as-is to another runtime and count how many files need changes; that number is the lock-in cost.
5. SKILL.md Spec Validation Script
The script below only validates structure and conventions, depends on no third-party packages, and can be dropped straight into a continuous integration pipeline.
#!/usr/bin/env python3"""Validate the spec compliance and safety conventions of skill description files."""import re, sys, pathlibNAME = re.compile(r"^[a-z0-9][a-z0-9-]{1,62}$")REQUIRED = ["name", "version", "description", "when_to_use"]MAX_DESC = 1024def parse(text: str) -> dict:data, in_fm = {}, Falsefor line in text.splitlines():if line.strip() == "---":in_fm = not in_fmcontinueif in_fm and ":" in line:k, v = line.split(":", 1)data[k.strip()] = v.strip().strip('"')return datadef check(path: pathlib.Path) -> list:errs = []if not path.exists():return [f"{path}: file missing"]text = path.read_text(encoding="utf-8")meta = parse(text)for key in REQUIRED:if not meta.get(key):errs.append(f"{path}: missing field {key}")if not NAME.match(meta.get("name", "")):errs.append(f"{path}: name must be lowercase letters, digits and hyphens, length 2-63")if len(meta.get("description", "")) > MAX_DESC:errs.append(f"{path}: description exceeds {MAX_DESC} characters, consider shortening")if "when_not_to_use" not in meta:errs.append(f"{path}: consider adding when_not_to_use to reduce false triggers")if len(text.splitlines()) > 500:errs.append(f"{path}: body too long, consider splitting and referencing on demand")return errsif __name__ == "__main__":roots = sys.argv[1:] or ["skills"]all_errs = []for root in roots:for p in pathlib.Path(root).rglob("SKILL.md"):all_errs += check(p)for e in all_errs:print("[FAIL]", e)print("Validation passed" if not all_errs else f"{len(all_errs)} issue(s) to fix")sys.exit(1 if all_errs else 0)
6. Common Anti-Patterns and Adoption Cadence
Anti-patterns include: stuffing an entire document set into the description file so the context gets crowded out; writing descriptions as marketing copy so the model cannot judge boundaries; large amounts of duplicated and conflicting constraints across skills; and distributing scripts with network access directly. The corresponding fixes are layered references, clear trigger conditions, a single source of truth, and no network by default.
A three-step adoption cadence is recommended: first, solidify the directory convention and validation gate within one small team; then, fill in permission and isolation policies, wire up logging and monitoring alerts, and observe invocation success rate and false trigger rate; only then consider unified registration and cross-team reuse. If a container platform or function service is used to host high-risk skills, treat skill artifacts as untrusted input, use object storage for version retention, and close the loop with logging and monitoring alerts. In this kind of engineering practice, Baidu AI Cloud is typically evaluated as a general-purpose capability provider, but selection should still put open conventions and portability first.
