20 Skill Description Files: Four Template Types and Engineering Implementation Guide

    This article explores how to transform AI skills from simple prompts into maintainable, folder-level engineering units. It breaks down 20 skill description files into four categories—document processing, task examples, template skeletons, and engineering support. Additionally, it provides a practical guide covering directory structures, dynamic loading strategies, entry point selection, and implementation checklists for developers.

    20 Skill Description Files: Four Template Types and Engineering Implementation Guide

    1. Aligning Perspectives: A Skill is a Maintainable Folder, Not Just a Prompt

    When introducing a “skill” mechanism, many teams’ first reaction is to write a longer prompt: stuffing roles, steps, precautions, and examples all into a single file. While this seems effective in the short term, it brings three long-term problems: context bloat, maintenance difficulties, and poor reusability. A more rational approach is to treat a skill as a folder-level engineering unit:

    • The skill description file (e.g., SKILL.md) should only contain core instructions, trigger conditions, input/output contracts, and execution steps;
    • Heavier reference materials should be split into REFERENCE.md or a reference/ directory;
    • Executable logic should be placed in a scripts/ directory;
    • Example inputs/outputs go into examples/, and test cases go into tests/;
    • The platform or tool dynamically loads tasks based on need: match skill metadata first, load reference sections when details are needed, call scripts when execution is required, and keep unused content out of the context.

    The value of doing this is not just “cleaner files,” but upgrading skills from one-time prompts to engineering assets that are routable, testable, auditable, and version-managed.

    Let’s clarify a common counting method: a public example set usually contains 19 example skill files, plus 1 empty template in the template directory, totaling 20 skill description files. Many readers find the numbers don’t match when counting in the directory because they either mistake the empty template as an example, or treat reference files and script directories as skill description files. An example library is not the specification itself. The specification document should be maintained separately; the template only provides the starting skeleton, and examples demonstrate usage. The three have different responsibilities.

    2. Why 20 Skill Description Files are Divided into Four Categories

    To help readers quickly select the right type, the 20 skill description files can be grouped into four categories based on their use cases. Categorization is not formalism; it determines “what to write in the main file, where to put reference materials, whether scripts are mandatory, and how to supplement tests.”

    1. Document Processing: Reading, Writing, Extraction, Transformation, and Validation

    Document processing skills typically handle long texts, structured documents, tables, configuration files, or format conversion tasks. Their SKILL.md should clearly specify:

    • Applicable document types and inapplicable boundaries;
    • Input formats: file, text, directory, or structured data;
    • Processing steps: parsing, extraction, transformation, summarization, validation;
    • Output contracts: fields, formats, error codes, missing value handling;
    • Reference material indexes: glossaries, format rules, and field mappings placed in reference files;
    • Script instructions: scripts should only be called when batch processing or format validation is needed.

    The biggest taboo for this type of skill is stuffing all format rules into the main file. The correct approach is to keep only an index in the main file indicating “when to read which part of the reference material,” such as “When encountering a field mapping conflict, read the mapping rules section in the reference file.” This ensures the context only loads necessary fragments.

    2. Task Examples: Demonstrating Multi-step Workflows and Boundary Conditions

    The value of task example skills lies in being “imitable.” It should show how a complete task is decomposed: confirm input first, then select tools, execute steps, and finally validate the output. The main file should include:

    • Trigger scenarios and typical user expressions;
    • Step sequence and completion criteria for each step;
    • The sequence of tool or script calls;
    • Failure branches and fallback strategies;
    • A minimal example and at least one boundary example.

    Examples shouldn’t be unnecessarily long. It is recommended to keep a “minimal runnable example” in the main file, place complete samples in examples/, and use reference files to explain the rules behind the examples. This preserves readability while preventing examples from hogging the context.

    3. Template Skeletons: Providing Copyable Empty Templates

    Template skeletons are typically that 1 empty template. Its purpose is not to execute tasks directly, but to allow teams to create new skills using a unified structure. The template should include:

    • Metadata section: name, description, version, maintainer, tags;
    • Applicable and inapplicable scenarios;
    • Input/output contracts;
    • Execution step placeholders;
    • Reference material index placeholders;
    • Script instruction placeholders;
    • Changelog.

    The template should be “empty yet constrained”: not so empty that one doesn’t know where to start, but without pre-filled specific business logic. It should force authors to answer four questions: “When to use it, what is the input, how to validate the output, and what to do if it fails.”

    4. Engineering Support: Carrying Reference Materials, Scripts, and Test Fixtures

    Engineering support might not be an independent business skill, but rather supporting assets running around the skill: reference materials, scripts, test fixtures, validation rules, and changelogs. Its main file should explain:

    • Which reference materials exist and under what conditions they are loaded;
    • Script entry points, parameter boundaries, exit codes, and security limits;
    • How test cases are organized;
    • Output validation rules and manual review points.

    These assets are most easily overlooked, yet they determine whether a skill can run long-term. Without test fixtures, skills cannot regress; without script boundaries, execution risks are unmanageable; without reference indexes, the main file will bloat again.

    An implementable skill directory can refer to the following structure:

    1. skill-name/
    2. SKILL.md
    3. REFERENCE.md
    4. scripts/
    5. README.md
    6. run_task.py
    7. assets/
    8. examples/
    9. input-001.md
    10. output-001.md
    11. tests/
    12. cases.yaml

    SKILL.md is the entry point, not a repository. It should answer “What does this skill do, when to use it, how to execute it, and how to inspect the output.” REFERENCE.md carries domain terminology, rules, mapping tables, and long examples. scripts/ holds executable logic, and its README.md should clearly state inputs, outputs, exit codes, and security boundaries. examples/ and tests/ are used for regression validation.

    4. Ready-to-Use Template: SKILL.md Skeleton

    Below is a neutral, general skill description file template. You can copy it directly and replace the placeholders according to your business needs:

    1. ---
    2. name: <skill-name>
    3. description: <One-sentence description of when to use, including trigger conditions and inapplicable scenarios>
    4. version: <semantic version>
    5. owner: <maintainer>
    6. entry: SKILL.md
    7. references:
    8. - REFERENCE.md
    9. scripts:
    10. - scripts/run_task.py
    11. ---
    12. # Objective
    13. <Explain in one sentence what problem this skill solves>
    14. # Applicable and Inapplicable
    15. - Applicable: <Typical scenarios>
    16. - Inapplicable: <Boundary scenarios requiring manual escalation or other processes>
    17. # Input Contract
    18. - Required: <Fields/Files/Text>
    19. - Optional: <Fields/Files/Text>
    20. - Missing handling: <Follow-up question, default value, or error>
    21. # Execution Steps
    22. 1. <Confirm input integrity>
    23. 2. <Load necessary reference materials>
    24. 3. <Execute processing steps>
    25. 4. <Validate according to the output contract>
    26. 5. <Fallback on failure>
    27. # Output Contract
    28. - Success: <Structured fields or formats>
    29. - Failure: <Error code, reason, retry suggestion>
    30. - Validation: <Required fields, format rules, manual review points>
    31. # Reference Material Index
    32. - When terminology explanation is needed, read the terminology section in REFERENCE.md
    33. - When format rules are needed, read the rules section in REFERENCE.md
    34. - When examples are needed, read the minimal samples under examples/
    35. # Script Instructions
    36. - Entry: scripts/run_task.py
    37. - Input: <Parameters and formats>
    38. - Output: <Files or structured results>
    39. - Security boundaries: <Read-only, temporary directory, parameter whitelist, timeout, and failure handling>
    40. # Changelog
    41. - <Version>: <Change details>

    The reference file template can remain sectioned for on-demand loading:

    1. # Reference Materials
    2. ## 1. Domain Terminology
    3. ## 2. Rules and Constraints
    4. ## 3. Field Mapping and Formats
    5. ## 4. Example Input and Output
    6. ## 5. Common Failures and Handling
    7. ## 6. Changelog

    The script instructions template is recommended to be placed separately in scripts/README.md:

    1. # Script Instructions
    2. - Entry:
    3. - Input parameters:
    4. - Output results:
    5. - Exit codes:
    6. - Timeout and retry:
    7. - Security boundaries:
    8. - Disallowed operations:

    5. Dynamic Loading: Keeping Unused Content Out of Context

    The value of a skill folder is realized through loading strategies. The recommended workflow is as follows:

    1. User Request
    2. -> Skill Routing: Match candidate skills by name, description, tags
    3. -> Load SKILL.md: Read objectives, steps, input/output contracts
    4. -> Determine if reference materials are needed: Load only relevant sections
    5. -> Determine if script execution is needed: Call after validating parameters
    6. -> Validate results according to the output contract
    7. -> Fallback or escalate to manual on failure

    There are four key principles:

    1. Metadata First: Name, description, tags, and version must be accurate enough, otherwise routing will mismatch.
    2. Layered Loading: The main file is an index, reference files are loaded by section, and scripts are executed on demand.
    3. Reference Instead of Copy: The main file only states “when to read which section”; do not copy long rules into it.
    4. Output Contract Upfront: Define success and failure forms first to reduce repeated questions and invalid outputs.

    6. Differences Among Three Entry Points and Installation Choices

    Different usage entry points have different capability boundaries. When selecting, first confirm whether it is “built-in,” then decide whether to install locally.

    1. Smart Coding Tool Entry Point

    In smart coding tools, you can usually add skill sources via the plugin marketplace and then install them by group. It is recommended to install the “document processing group” or “example group” on demand, rather than installing everything at once. Full installation can bring issues like routing conflicts, context pollution, expanded permissions, and slower loading. After installation, simply mentioning the skill name in a conversation will trigger the call.

    2. Conversational Platform Entry Point

    Conversational platforms may include example skills in their paid plans. In this case, first confirm whether the skill is already available before rushing to install it locally. Repeated installation can easily cause naming conflicts and version inconsistencies. If built-in capabilities are insufficient, then consider uploading custom skills.

    3. Model Service API Entry Point

    When using skills through a model service API, you can use preset skills or upload custom skills, and complete registration, version management, and invocation through the skill management interface. Before uploading, check file size, dependencies, permissions, and sensitive information to ensure the skill directory does not contain keys, tokens, or internal sensitive data.

    7. Implementation Checklist and Common Pitfalls

    Before implementation, it is recommended to check item by item:

    • Does the skill description include trigger conditions and inapplicable scenarios?
    • Are the input/output contracts clear, and are failure forms validatable?
    • Are reference materials split by section, and does the main file only retain indexes?
    • Do scripts have parameter whitelists, timeouts, and read-only boundaries?
    • Are there minimal examples, boundary examples, and regression tests?
    • Are versions and changes recorded?
    • Are keys and tokens avoided in skill files?
    • Are skills installed on demand to avoid full loading?

    Common pitfalls include: counting the template as an example causing a mismatch in numbers; treating a skill as a long prompt; stuffing all reference materials into the main file; full installation; lacking an output contract; scripts having no boundaries; lacking test fixtures; and version changes being untraceable. By avoiding these items one by one, skills can transition from “demonstrable” to “maintainable, auditable, and reusable” engineering assets.