Building a Private Vertical Skill for AI Agents: A Practical Guide

    This guide explains how to build a private vertical Skill for an AI agent that can be automatically selected, follow a fixed workflow, and run with only the permissions it needs. It covers the three-layer loading model, how to write trigger conditions into the description, how to encode a standard operating procedure in the body, where to place brand and compliance constraints, how to define a tool allowlist, and how to validate and iterate before and after release.

    1. Define the Deliverable: A Skill, Not a Longer Prompt

    When teams connect a generative content production workflow to an AI coding tool, the first instinct is often to keep expanding the conversational prompt. But a prompt is a temporary instruction scoped to a single session, while a private vertical Skill is a reusable, versionable capability unit that can be selected automatically. The difference comes down to four things: whether there is a stable trigger boundary, whether a validated workflow is fixed in place, whether external tools are actually driven to execute, and whether brand and taboo rules are treated as long-term constraints rather than a byproduct of one lucky run.

    So the goal should be stated this way: build a vertical capability package that activates automatically when the user says a certain kind of verbal command, advances through a predefined sequence of work steps, and holds only the permissions it genuinely needs.

    2. Layered Loading: Why Metadata Stays Resident and the Body Is Deferred

    Mainstream agent frameworks generally load a Skill in three layers, and understanding this structure is key to whether the design succeeds.

    The first layer is the metadata layer. The name and description stay in context as lightweight metadata over the long term, usually kept to roughly a hundred words, and they serve one purpose: letting the model decide whether the current task should activate this capability.

    The second layer is the body layer, meaning the structured work-instruction file. It enters context only after the Skill is triggered, and the common industry recommendation is to keep it under five thousand words so it does not crowd out reasoning space.

    The third layer is the resource layer, which includes the script directory, the reference directory, and the static asset directory. These are read on demand, loaded only when the workflow reaches the specific step that needs them.

    This leads to one hard conclusion: the trigger words must be written into the description. Do not expect the model to read through the entire standard operating procedure first and then decide whether to use it. That is neither economical nor reliable.

    3. Writing the Description: Make “When to Activate” a Decidable Condition

    The description handles routing. It should state what the capability is, which verbal commands it covers, and where the input and output boundaries lie. For example:

    1. ---
    2. name: article-to-shortvideo
    3. description: A fixed pipeline that turns a long article into a 60-second vertical short video. Use when the user says "turn this article into a short video," "convert the article into a storyboard," or "produce the final cut the usual way"; not for livestream clipping or long-form video editing.
    4. allowed-tools: Read, Grep, Bash(./scripts/render.sh:*)
    5. ---

    Three points matter here. First, enumerate synonymous verbal commands so you cover how people actually speak, not the written phrasing. Second, state where the capability does not apply to reduce false triggers. Third, do not pile workflow details into the description; details belong in the body.

    4. Encode the SOP in the Body: Order Is Quality

    The body should contain only the sequence that has already run smoothly, not an encyclopedia of knowledge. A recommended skeleton:

    1. Constraint retrieval: first pull the brand guidelines, style baseline, banned expressions, and compliance red lines;
    2. Material parsing: extract the topic, core arguments, citable data, and the tone of the original text;
    3. Structure planning: decide the number of shots, the duration of each shot, and the word limit for the narration;
    4. Tool invocation: generate visuals, voiceover, and subtitles through the wrapped scripts;
    5. Validation and output: check duration, subtitle alignment, and hits against banned words;
    6. Archiving: write to the output directory and record the parameters for reproducibility.

    The order cannot be rearranged, and the reasons are practical: putting constraints first avoids “generate now, rework later,” and putting validation last keeps non-compliant content out of the publishing stage.

    5. Constraints and Knowledge: Where Brand, Style, and Taboos Go

    Brand templates, color specifications, font lists, and legal banned-word lists are large and do not need to stay in context the whole time, so they belong in the resource layer: long manuals and case collections go in the reference directory, templates and materials go in the static asset directory, and the body keeps only an index of which file to read and when. This keeps the constraints in effect while controlling context cost.

    6. Least Privilege: The Allowlist Is the Security Boundary

    The tool allowlist declares which operations the capability is permitted to use, and it is an optional metadata field. A common pattern is to open up only reading, searching, and wrapped execution scripts, for example:

    1. allowed-tools: Read, Grep, Bash(./scripts/*:*)

    Two general principles need emphasis. First, do not grant unrestricted command execution; once you do, prompt injection can escalate into arbitrary command execution. Second, if the capability needs to access an external service, declare it through a controlled interface call and include it in the allowlist rather than bypassing the permission system. For a pipeline that creates nodes and runs render commands, the allowlist should precisely cover “search plus wrapped scripts,” while the terminal as a whole stays disabled.

    7. Validation and Iteration

    Before release, run three kinds of regression tests: trigger tests (whether synonymous commands hit and whether unrelated tasks trigger falsely), workflow tests (fallback paths when materials are missing, text is too long, or banned words are hit), and permission tests (whether unauthorized calls are rejected). After release, iterate on the description and body using three metrics: false trigger rate, rework rate, and number of manual interventions. Write each new pitfall into the constraints instead of relying on someone to remember it.

    8. Conclusion

    The value of a private vertical Skill lies not in the length of its text but in turning a validated workflow into a deterministic capability that can be selected automatically. Layered loading determines cost, the description determines routing, the body determines quality, and the allowlist determines security. When all four are aligned, a dedicated agent becomes truly reusable, auditable, and able to evolve over time.