Agent Skills: Generate and Publish Illustrated Articles from a Single Prompt

    This article explains how Agent Skills turn tacit content-production standards into reusable, versionable assets. It covers why traditional automation approaches fall short, how skills are triggered on demand to preserve context, how they differ from tool connectors and orchestration engines, how to declare a skill in natural language, and how to design long pipelines for reliability with idempotency, structured intermediate outputs, human approval gates, observability, and cost limits. It also lists common pitfalls and criteria for evaluating ready-made skills.

    1. Why Content Pipelines Are Hard to Automate

    Producing illustrated articles for a publishing account looks like “writing one article,” but it is actually a multi-stage pipeline: topic selection and research, structure design and drafting, cover and illustration generation, rich-text formatting, uploading to the content backend, preview validation, and final publication. Every stage carries implicit rules: title length and tone, paragraph rhythm, font size and line spacing, image dimensions and whitespace, and the placement of QR codes and calls to action.

    Past automation attempts usually followed one of three paths, each with clear weaknesses:

    • Prompt stacking: cramming every requirement into one very long prompt. Context stays occupied for the entire run, costs rise, and as rules accumulate they interfere with one another, making output unstable.
    • Visual workflow orchestration: chaining each step with a node-based tool. The capability ceiling is high, but setup and debugging are difficult, business users cannot modify it, and maintenance costs spike whenever requirements change.
    • Hard-coded scripts: deterministic but brittle. Any interface or field change requires code changes, and vague knowledge such as “writing style” cannot be absorbed.

    The real pain point is not whether automation is possible, but how standards are captured and reused. A team’s best writing and formatting experience usually stays in a few people’s heads and never becomes an executable, portable, version-controlled asset.

    2. What a Skill Is: An On-Demand Manual for the Model

    Think of a large language model as a highly capable intern who lacks your organization’s business memory. A Skill is the operations manual you hand over: it stays packed in the “backpack” and does not occupy working memory; only when the task’s semantics match the manual’s applicability description does the model load it into context and execute the steps, constraints, and scripts it defines.

    It has three key properties:

    1. On-demand triggering. Each skill carries a name and an applicability description, and the model uses them to decide whether to load it, with no verbal reminder needed from the user each time.
    2. Context economy. Inactive skills consume no context window, a sharp contrast to keeping all rules resident in the prompt, and a prerequisite for long pipelines to run stably.
    3. Reusability and distribution. A manual is a directory of plain text plus optional scripts, so it can go into version control, go through code review, and be shared across a team.

    A minimal viable directory layout typically looks like this (illustrative):

    1. content-pipeline/
    2. ├── SKILL.md # name, applicability description, steps and constraints
    3. ├── templates/
    4. │ └── article.md # title, summary and body skeleton template
    5. ├── scripts/
    6. │ ├── render.py # rich-text formatting conversion
    7. │ └── validate.py # pre-publish field and dimension checks
    8. └── assets/
    9. └── style.json # font size, line spacing, color scheme and other layout parameters

    The header metadata in SKILL.md determines “when it is loaded,” while the body determines “what to do after loading.” The recommended style is to write the process as verifiable steps and to state prohibitions explicitly:

    1. ---
    2. name: content-pipeline
    3. description: Use when the user asks to research a topic and produce illustrated content that needs images and formatting
    4. ---
    5. ## Steps
    6. 1. Research: collect at least 5 sources around the topic, record titles and links, and remove duplicates and low-relevance items.
    7. 2. Write: organize with templates/article.md, split the body into 3-5 sections, and give the conclusion before the evidence in each one.
    8. 3. Illustrate: generate 1 image each for the cover and every section, keep a consistent aspect ratio, and write output to the assets directory.
    9. 4. Format: call scripts/render.py to convert Markdown into the target rich text, injecting parameters from style.json.
    10. 5. Validate: call scripts/validate.py to check image dimensions, external links and missing fields.
    11. 6. Deliver: output preview artifacts and a publishing checklist, and wait for human confirmation before publishing.
    12. ## Constraints
    13. - Do not fabricate facts or data that do not appear in the research results.
    14. - Keep each paragraph to no more than 5 lines and avoid long blocks of text.
    15. - Every image must have alternative text.

    3. How Skills Differ From Workflow Integration Approaches

    Automation approaches in the industry fall into two broad categories: one exposes the capabilities of external systems to the model through standardized interfaces for it to call as needed; the other hard-codes the process in an orchestration engine that drives the model. Skills are not a replacement for either, but a division of labor:

    • Interface integration solves “can the model reach external systems at all,” emphasizing permissions, authentication and standardized invocation;
    • Orchestration engines solve “in what order steps run,” emphasizing nodes, branches and retries;
    • Skills solve “according to what standards the work is done,” emphasizing the capture and reuse of domain knowledge.

    The more sensible combination is therefore: skills own the knowledge and standards layer, interface integration owns the capability exposure layer, and lightweight orchestration or scripts handle deterministic steps when necessary. Conflating the three is a direct cause of many automation project failures — using the knowledge layer for authentication, or the orchestration layer to carry writing style, leaves you with a system that is both expensive and hard to maintain.

    4. Building Skills Declaratively With Natural Language

    The most transferable method in the original approach is “describe the goal in one sentence and let the model generate the skill skeleton.” In engineering terms this is a pattern of declarative definition plus model-generated scaffolding plus human review. A sound requirement statement contains four elements: inputs, action sequence, outputs and acceptance criteria.

    Example requirement:

    1. I want a skill: the input is a topic; the actions are, in order, research the topic,
    2. write the article, generate illustrations, convert to rich text and upload to the
    3. content backend; the output is a previewable draft and a publishing checklist;
    4. the acceptance criteria are uniform image dimensions, no broken external links,
    5. and no data in the body without a cited source.

    The first draft the model produces from this usually already includes the directory structure, the steps and a validation script skeleton, but three things must be filled in manually: first, authentication and rate-limit handling for external systems; second, failure rollback and idempotency strategy; third, content compliance and fact-checking rules. Skipping review and going straight to production is the most common way this kind of approach fails.

    5. Reliability Design for Long Pipelines

    The more stages a pipeline has, the higher the cumulative probability of failure. Engineering hardening should cover these dimensions:

    • Idempotency and resume-from-checkpoint. Assign an identifier to each run, persist completed artifacts for reuse, and have reruns fill in only the unfinished steps.
    • Structured intermediate artifacts. Have each step emit JSON rather than natural language, with fixed fields that are easy to validate and to review in diffs.
    1. {
    2. "run_id": "20260812-001",
    3. "topic": "Agent Skills in practice",
    4. "sources": [{"title": "...", "url": "..."}],
    5. "assets": [{"name": "cover", "w": 900, "h": 383}],
    6. "status": {"search": "ok", "write": "ok", "render": "pending"}
    7. }
    • Push deterministic steps down into scripts. Formatting conversion and dimension checks require no creativity, so hand them to scripts and let the model only make decisions and generate content.
    • Human confirmation gates. Publishing is irreversible, so keep a preview and an explicit confirmation step to prevent accidental releases.
    • Observability. Record the duration, failure reason and artifact version of each step, and use logs plus monitoring alerts to locate problems.
    • Cost limits. Set upper bounds on the number of sources retrieved, images generated and maximum retries.

    6. Common Pitfalls and Reuse Advice

    • Pitfall one: treating a skill as a universal prompt and stuffing every rule into it. The result is context bloat and inaccurate triggering. Keep a single responsibility, with one skill covering one pipeline.
    • Pitfall two: pursuing fully unattended automation. Content production involves factual accuracy and compliance, so the optimal answer is “automate 80%, keep human review on the critical 20%.”
    • Pitfall three: neglecting version management. Standards evolve, and skills must be traceable so you can identify which change degraded the results.

    As for ready-made skills, three points indicate whether one is reliable: whether the applicability description is clear and unambiguous; whether deterministic steps are handed to scripts rather than left to model improvisation; and whether validation and failure handling are built in. Only when all three are present is it worth adopting directly.

    7. Conclusion

    The value of skills lies not in replacing a particular tool, but in turning a team’s writing standards, formatting specifications and process constraints into digital assets that can be loaded, reused and reviewed. If an organization wants to run this kind of pipeline in its own cloud environment, it can compose general-purpose capabilities: object storage to hold skills and artifacts, a container platform to run rendering and validation scripts, a message queue to decouple steps and handle retries, and a logging service with monitoring alerts for observability. Capture the standards first, then talk about automation — only then are efficiency gains sustainable.