Agent Skills: Installation, Manifests, and Writing Practices

    This article explores the engineering practices for Agent Skills, covering directory configuration, one-click installation, a recommended skill category checklist, usage techniques, skill manifest templates, and security governance. It aims to help developers encapsulate procedural knowledge into reusable, verifiable skill packages, transforming AI coding tools from code generators into reliable agents that execute professional workflows.

    Agent Skills: Installation, Manifests, and Writing Practices

    1. Background: Why We Need Agent Skills

    AI coding tools have gradually evolved from “code completion” to “task execution.” However, as tasks become more complex, relying solely on a single prompt often fails to yield stable, reproducible results. Tasks like code reviews, test generation, dependency upgrades, and log troubleshooting require repeatedly defining the context, constraints, and acceptance criteria. This wastes context window space and often leads to output drift.

    The core concept of Agent Skills is to encapsulate the procedural knowledge, operational steps, template resources, permission boundaries, and validation methods required for a specific category of tasks into a reusable, versioned skill package. It does not aim to replace the model’s capabilities but rather to precipitate the “how-to” from one-off prompts, allowing AI coding tools to act like agents equipped with professional workflows in specific domains. A skill package typically includes a skill manifest file, scripts or templates, sample inputs and outputs, constraints, and acceptance checks. Its value is reflected in three aspects: first, reducing repetitive communication costs; second, making the task execution process auditable and regressive; third, enabling team experience to spread as engineering assets.

    2. Skill Package Directory and Configuration Paths

    Different AI coding tools have varying conventions for skill directories, but they generally fall into three categories: project-level, user-level, and enterprise-level. Project-level skills travel with the code repository, making them suitable for team sharing and code reviews. User-level skills follow the personal environment, fitting individual habits and ad-hoc experiments. Enterprise-level skills are distributed uniformly by the platform, suitable for managed compliance scenarios.

    A general representation is as follows:

    1. # Project-level: committed with the repository, shared with the team
    2. <project>/.agent-skills/<skill-name>/SKILL.md
    3. <project>/.agent-skills/<skill-name>/scripts/
    4. <project>/.agent-skills/<skill-name>/templates/
    5. # User-level: personal environment, enabled on demand
    6. ~/.config/agent-skills/<skill-name>/SKILL.md
    7. # Enterprise-level: distributed via managed directory or internal registry
    8. /opt/agent-skills/managed/<skill-name>/SKILL.md

    During implementation, you should follow the discovery rules of your specific tool rather than hardcoding a fixed path. More importantly, define the priority clearly: project-level skills should generally override user-level skills of the same type, and enterprise-level managed skills should carry higher binding constraints. Skills with the same name must include a version number and source identifier to track which version is installed. The skill discovery mechanism should also support explicit enabling and disabling to prevent unreviewed skills from being auto-loaded.

    3. Engineering One-Click Installation and Distribution

    The essence of “one-click installation” is not simply copying a folder; it involves dependency resolution, source verification, scope selection, directory writing, lock file generation, and post-installation validation. It is recommended to maintain a manifest file for the skill package, recording its name, version, source, dependencies, checksum, and permission declarations. The installation process can be abstracted as:

    1. <skill-manager> install <skill-package> --scope project --lock

    The above command is merely a process representation and does not represent any specific tool’s interface. A reliable installer should at least: verify package integrity and signature; select the target directory based on project-level or user-level scope; write a lock file to pin the version; perform a minimal self-check post-installation (e.g., verifying the manifest file exists, sample commands are parseable, and permission declarations do not exceed expectations); and support rollback upon failure.

    While one-click installation lowers the adoption barrier, the risks are equally apparent. Skill packages may carry scripts, templates, or external dependencies. Without proper review, this introduces supply chain risks. Therefore, in enterprise scenarios, prioritize using internal registries or controlled repositories, and prohibit installing directly from untrusted sources. For skills involving file writes, network access, or command execution, implement least-privilege policies and mandatory human confirmation checkpoints.

    A skill checklist should not pursue “the more, the better,” but rather be selected based on gaps in the development workflow. Below is a general checklist that teams can use as a starting point:

    Skill Category Goal Acceptance Criteria
    Code Review Check style, boundary conditions, exception handling Outputs locatable issues and modification suggestions
    Test Generation Add unit or integration tests for changes Covers key branches, runs locally
    Documentation Maintenance Sync interface descriptions, changelogs Consistent with code diffs, no outdated descriptions
    Dependency Upgrade Identify outdated dependencies and compatibility risks Provides upgrade scope, rollback plan
    Log Troubleshooting Locate exception chains from logs and metrics Outputs hypotheses, evidence, and next steps
    Security Scanning Check for sensitive information and common vulnerabilities False positives explainable, fixes executable
    Release Check Verify version, configuration, rollback items Forms a pre-release checklist
    Performance Profiling Analyze hotspots and resource consumption Has baseline, comparison, and reproduction steps

    Prioritize covering frequent, repetitive, and verifiable tasks. Tasks that are highly creative or lack clear responsibility boundaries should not be skill-ified too early.

    5. Best Practices for Using Skills: Ensuring Stable Value

    First, encapsulate in small steps. A single skill should only solve one category of problems. Avoid mixing review, fix, and release into a single skill, as it makes constraining inputs and outputs difficult. Second, contract inputs and outputs. Clearly define what context is needed, which files can be modified, what format the output should take, and when to stop. Third, use them in combination. Review then fix; test then release. Form workflows through skill chains, but ensure there is a validation checkpoint at each step. Fourth, version locking and regression evaluation. After updating a skill, compare output differences using a fixed sample set to prevent “fixing one thing and breaking another.” Fifth, auditing and least privilege. Record skill sources, invocation times, read/write scopes, and human confirmation records. Desensitize data first when sensitive information is involved.

    6. Writing Best Practices: Skill Manifest Template

    The skill manifest should answer “when to use, how to use, what not to do, and how to validate.” Below is a general template representation, which does not correspond to any specific tool’s field specification:

    1. name: dependency-audit
    2. description: Check dependency risks and provide upgrade suggestions
    3. version: 1.0.0
    4. when_to_use:
    5. - Dependency manifest changes
    6. - Risk check needed before release
    7. inputs:
    8. - Dependency manifest
    9. - Current version and target version
    10. permissions:
    11. filesystem: read
    12. network: none
    13. steps:
    14. - Parse dependencies and version constraints
    15. - Flag high-risk and incompatible items
    16. - Output upgrade order and rollback suggestions
    17. checks:
    18. - Each suggestion must have a basis
    19. - Do not modify files automatically
    20. outputs:
    21. - Risk list
    22. - Upgrade plan
    23. - Validation commands

    When writing, note: descriptions should be specific, avoiding vague goals like “optimize code”; steps should be executable, avoiding reliance on implicit context; permission declarations should be minimized; failure handling should be clear (e.g., if information is insufficient, ask questions rather than guess); examples should cover both normal and abnormal inputs; and acceptance criteria must be checkable by humans or scripts. Skill packages should also include a changelog explaining version differences and compatibility impacts.

    7. Security Governance and Implementation Path

    Skill packages are essentially executable knowledge assets and require governance. It is recommended to start with a pilot: select a high-frequency workflow, build two or three skills, and observe time saved, rework rates, and number of review issues. Then, establish an internal registry, naming conventions, versioning standards, and evaluation samples. Finally, expand to multiple teams. In cloud-based CI/CD pipelines, skill packages can be integrated with code repositories, artifact registries, logging services, and monitoring alerts, but permission isolation and operational auditing must be maintained.

    In summary, the key to implementing Agent Skills lies not in quantity, but in reusability, verifiability, and governability. First define directories and scopes, then establish one-click installation and version-locking mechanisms, followed by using the category checklist to filter high-value scenarios, and finally ensure long-term stability with writing standards and security auditing. Only then can AI coding tools evolve from “capable of generating” to “reliably executing according to professional workflows.”