Agent Skills: Recommended Capabilities and Engineering Practices

    Agent Skills are gaining attention because they move prompt engineering toward capability engineering. This article defines Agent Skills as task-oriented capability packages, recommends ten high-value skills for enterprise scenarios, and outlines practical engineering constraints such as contracts, least privilege, observability, versioning, and evaluation. It also provides a capability manifest example, an auditable execution flow, directory organization guidance, and an implementation roadmap with evaluation metrics.

    Agent Skills: Recommended Capabilities and Engineering Practices

    Agent Skills are attracting attention not because they introduce another buzzword, but because they move “prompt techniques” toward “capability engineering.” When an agent must reliably complete real tasks, a prompt alone is far from enough. It needs clear inputs and outputs, callable tools, reusable templates, traceable logs, controllable permissions, and versioned regression tests. Only by packaging these elements into task-oriented capability packages can an Agent Skill become something an enterprise can deliver and govern.

    This article does not focus on a specific product. Instead, it answers two questions from a general technical perspective: Which Agent Skills should be built first? How can they be made reusable, auditable, and evolvable?

    1. Clarifying the Scope: An Agent Skill Is More Than a Prompt

    In an enterprise context, an Agent Skill can be understood as a task-oriented capability package. It is not the large model itself, nor is it a single system prompt. It is a modular asset built around a category of tasks. A complete capability package typically includes:

    • Capability description: applicable scenarios, boundaries, prerequisites, and failure handling;
    • Input/output contract: fields, types, required items, validation rules, and error codes;
    • Tool invocation declaration: which external tools or services the capability is allowed to call;
    • Scripts and templates: deterministic processing logic, report templates, and output examples;
    • Reference materials: domain knowledge, terminology, and operating specifications;
    • Permission requirements: the minimum readable, writable, and executable scope;
    • Runtime logs and audit: call chains, key intermediate results, and exception causes;
    • Test and evaluation set: typical samples, boundary samples, and regression cases.

    It is also important to distinguish a Skill from a tool. A tool is closer to a single action, such as reading a file, querying data, or sending a message. A Skill is closer to task-level packaging. It decides when to call tools, how to organize multi-step processes, how to validate results, and how to degrade on failure. Tools provide the “hands,” while Skills provide a reusable way of getting work done.

    The recommended order should follow a principle: build foundational reusable capabilities first, then domain depth, and finally governance safeguards. The following capability packages have high reuse rates and clear benefits in most enterprise scenarios.

    1. Document Parsing and Structured Extraction Skill

    This is one of the foundational capabilities that most deserves priority. In real business, a large amount of information exists in documents, tables, images, and mixed-layout materials. Asking a model directly to “read a file” is often unstable. This Skill should handle file type recognition, content chunking, field extraction, confidence labeling, missing-field prompts, and structured output. Its value lies in converting unstructured materials into verifiable data, not simply generating a summary. Evaluation should focus on field accuracy, missed extraction rate, format compliance rate, and manual review rate.

    2. Knowledge Retrieval and Citation Tracing Skill

    Many agent answers are unreliable not because the model cannot speak, but because it does not “find evidence before answering.” This Skill should encapsulate retrieval strategies, query rewriting, result reranking, snippet citation, and a “refuse when there is no evidence” rule. The output should include cited snippets, source positions, and confidence, avoiding conclusions without evidence. It is suitable for policy Q&A, technical documentation Q&A, customer support assistance, and internal knowledge queries. Key metrics include hit rate, citation traceability rate, unsupported answer rate, and average number of retrieval steps.

    3. Data Query and Analysis Skill

    When an agent needs to access business data, it is not advisable to let the model freely generate query statements and execute them. A more reliable approach is to build a Data Query and Analysis Skill: limit the queryable datasets, field whitelist, aggregation rules, result explanation templates, and anomaly prompts. This Skill should convert “natural language questions” into constrained query plans, then output tables, conclusions, and metric definitions after execution. It must specifically handle permissions, row-level filtering, empty result explanations, and sensitive field masking.

    4. Version Control and Code Repository Operation Skill

    For development scenarios, code repository operations are a high-value capability package. It should not merely “execute commands.” It should include pre-change checks, impact scope analysis, patch generation, static checks, test triggering, change summaries, and rollback suggestions. Permissions should distinguish read-only, branch write, merge request creation, and other levels. Output should include the modified file list, risk notes, and validation results. Evaluation for this type of Skill focuses on patch applicability rate, test pass rate, incorrect modification rate, and rollback executability.

    5. Web and Browser Interaction Skill

    Many tasks require accessing dynamic pages, filling forms, extracting page information, or completing multi-step interactions. This Skill should encapsulate page locating, wait strategies, element validation, screenshot evidence, failure retries, and confirmation for sensitive operations. It must clearly define “which clicks require human confirmation,” such as submission, payment, deletion, and other high-risk actions. Evaluation metrics include task completion rate, element locating success rate, average retry count, and high-risk operation interception rate.

    6. Process Automation and Form Handling Skill

    Approvals, expense reimbursement, onboarding, tickets, and other processes often have fixed fields and state machines. This type of Skill should encapsulate process rules, required-field validation, material checklists, state transitions, and notification templates. The agent should collect information, check completeness, generate to-dos, and explain next steps rather than bypassing the process system and operating directly. It is suitable for working with general cloud capabilities such as message queues, log services, and monitoring alerts to form traceable automation chains.

    7. Quality Inspection and Testing Skill

    If agent outputs have no inspection step, it is difficult to move them into production. A Quality Inspection Skill can cover format validation, factual consistency checks, sensitive information scanning, style compliance checks, link validity checks, and regression sample comparison. It should output an “issue list + severity level + fix suggestions,” rather than only a pass/fail result. This capability can serve as a post-guard for other Skills and significantly reduce manual rework.

    8. Log Diagnosis and Troubleshooting Skill

    In operations and development support scenarios, a Log Diagnosis Skill is highly valuable. It should encapsulate query scope, time windows, key error patterns, correlated metrics, root-cause hypotheses, and verification steps. The output should include an evidence chain, ranked possible causes, and next troubleshooting suggestions. Permissions must limit the log read scope and mask sensitive information. Evaluation should focus on localization accuracy, average troubleshooting steps, and false positive rate.

    9. Permission Audit and Compliance Guard Skill

    This is an easily overlooked but essential capability package. It does not directly complete business tasks. Instead, it checks caller identity, data scope, operation risk, and audit completeness at key points. For example, it intercepts before write, delete, external send, or cross-department access, and records the decision basis. It should support policy versioning, denial reason explanations, and a manual review entry point. Without this type of guard, the stronger the agent capability, the greater the risk.

    10. Template Generation and Delivery Skill

    Reports, plans, emails, ticket replies, and other tasks depend heavily on templates. This Skill should manage template versions, variable filling, format validation, terminology consistency, and pre-delivery checks. It is suitable for upgrading “generate content” to “generate deliverables.” For example, the same inspection report should reliably output fixed sections, metric tables, and anomaly notes instead of drifting in structure each time.

    3. Engineering Design Considerations

    A recommendation list is only a starting point. What truly determines usability is engineering constraints.

    First, define contracts before writing prompts. Input/output fields, error codes, timeouts, and retry strategies should be explicit. Second, minimize permissions. A capability package should only access the minimum resources required to complete the task. Third, ensure idempotency and degradation. Repeated calls must not produce duplicate side effects, and failures should return explainable results. Fourth, version resources. Templates, scripts, and reference materials should all have version numbers and change records. Fifth, make the system observable. Record call chains, summaries of tool inputs and outputs, validation results, and human takeover points. Sixth, establish evaluation sets. A Skill without regression samples should not go directly into production.

    A generic capability manifest example is shown below:

    1. {
    2. "name": "document-to-structured-data",
    3. "version": "1.0.0",
    4. "description": "Convert documents into structured fields and output a validation report",
    5. "inputs": {
    6. "file_uri": "string",
    7. "target_schema": "object"
    8. },
    9. "outputs": {
    10. "records": "array",
    11. "confidence": "number",
    12. "errors": "array"
    13. },
    14. "permissions": [
    15. "read:object_storage",
    16. "write:temp_storage",
    17. "invoke:approved_tools"
    18. ],
    19. "tools": [
    20. "file_reader",
    21. "schema_validator",
    22. "template_renderer"
    23. ],
    24. "resources": [
    25. "prompts/extract_rules.md",
    26. "templates/output.json",
    27. "references/field_dictionary.md"
    28. ],
    29. "runtime": {
    30. "timeout_seconds": 120,
    31. "max_retries": 2
    32. },
    33. "audit": {
    34. "log_level": "info",
    35. "trace_id": true
    36. }
    37. }

    The execution logic should also remain auditable:

    1. function execute(skillInput):
    2. checkPermission(skillInput.caller, skillInput.action)
    3. resource = loadVersionedResource(skillInput.resourceId)
    4. plan = buildPlan(skillInput.task, resource)
    5. for step in plan:
    6. result = callApprovedTool(step.tool, step.args)
    7. recordTrace(step, result)
    8. if result.status != "ok":
    9. return degrade(result, plan.fallback)
    10. return validateOutput(result, resource.outputContract)

    The recommended directory can be organized by “capability name/version”: capability description, manifest file, prompts, scripts, templates, reference materials, test sets, and change records should be stored separately. If the deployment environment is Baidu AI Cloud, object storage can be used to store resource packages and artifacts, log services can be used to record call chains, and monitoring alerts can track general metrics such as success rate, latency, and permission denial rate.

    4. Implementation Roadmap and Evaluation Recommendations

    During implementation, start with a “scenario inventory”: select high-frequency tasks with relatively clear rules and reversible failures. Prioritize four foundational Skills: document extraction, knowledge retrieval, quality inspection, and permission guard. Then use small samples to validate contracts, permissions, and logs before gradually expanding tool invocation and multi-step orchestration. Before release, build an evaluation set covering normal samples, boundary samples, permission-denied samples, and failure-degradation samples.

    Evaluation metrics should include at least: task success rate, first-pass rate, manual takeover rate, average number of steps, P95 latency, cost per task, permission denial rate, audit completeness rate, and regression pass rate. Do not pursue “one Skill that solves every problem.” Instead, insist on small granularity, strong contracts, composability, and governability. The Agent Skills truly worth recommending are not the capability packages with the most impressive names, but those that can be reused reliably, have clear boundaries, produce explainable failures, and keep risks controllable.