Skip to content
Contexta

How-to Guide

How to Create an AI Skill

Most AI skills that disappoint fail for one of two reasons. They try to cover too much, or they describe the job so loosely that the AI fills the gaps itself. A good first skill is narrow, specific about its inputs and output, and tested against real examples before anyone relies on it.

This guide walks through writing one from scratch, using a proposal as the example. The same method works for a weekly report, a client handover or a month-end check.

Quick Answer

To create an AI skill, pick one job you repeat and write down its inputs, steps and output. Say what the AI should do when information is missing, and write a short description that tells it when to use the skill. Save it as a SKILL.md file, test it with three cases, and fix whichever part caused a failure.

What a Good Skill Contains

A skill is a job card for your AI. A new starter given a vague job card guesses; one given a clear card does the job your way. The same is true of an AI. A useful skill has seven parts:

  • One job. A skill that writes proposals shouldn't also chase invoices.
  • A description that tells the AI when to use the skill, in the words people actually use.
  • Inputs, including which ones the AI must never guess, such as prices, dates and names.
  • Steps and decisions, including what to do when sources conflict or something is missing.
  • An output with named sections, a length and a reader in mind.
  • Pointers to supporting material, such as the template and price list, rather than copies of them.
  • Checks the AI runs before it says the work is finished.

Focus pays off. A narrow skill is easier to test, easier to fix and less likely to pick up requests it wasn't written for.

How to Write Each Part

Choose one job. Write one sentence that names the task and its result, such as "Turn discovery meeting notes into a first-draft proposal with scope, pricing and next steps." If the sentence needs an "and also", you probably have two skills.

List the inputs. Name the source material and the decisions the AI must not make up. If the notes don't give a quantity or a date, the skill should ask or mark the gap. It should never invent a value to complete the format.

Describe the output. Name each section and what goes in it. Say how long it should be and who reads it. A reviewer should be able to tell at a glance whether the result meets the brief.

Write the steps and decisions. Keep the steps short. Spend your words on the judgement calls: what counts as agreed, how to handle two conflicting notes, when to stop and ask.

Point to supporting material. Templates, rate cards and past examples change more often than the method. Keep them in your knowledge base and name them in the skill, so updating a price list doesn't mean rewriting the skill. If the job already has an SOP, How to Turn an SOP Into an AI Skill shows how to build the skill around it.

Add the checks. End with a short list the AI runs before finishing, such as "every price matches the rate card".

Write the description last. The description is how the AI decides whether to use the skill, so lead with the main use and the words people type. OpenAI's guidance says to front-load the key use case and trigger words (OpenAI: Build skills). The open standard allows up to 1,024 characters (Agent Skills specification), but Claude's custom skill guide sets 200 (Anthropic: How to create custom skills), so keep it short.

Worked Example: A Commercial Proposal

Riverstone Electrical, a fictional contractor, quotes commercial fit-outs. Each estimator writes proposals differently, and prices sometimes go out that aren't on the current rate card. Their first skill looks like this:

  • Name: commercial-proposal
  • Description: Drafts a commercial fit-out proposal from discovery notes, using the proposal template and current rate card. Use when asked for a proposal, quote document or pricing summary.
  • Inputs: discovery notes, the client's name and site address, the rate card and the proposal template.
  • Steps: summarise the client's goals, list the scope items, price each item from the rate card and set out next steps.
  • Decisions: if the notes don't give a floor area, ask for it. Never estimate a price that isn't on the rate card. Mark anything the client hasn't confirmed as "to confirm".
  • Output: summary, scope, pricing table, assumptions and next steps, in under two pages.
  • Checks: every price matches the rate card, every scope item appears in the notes and each next step has an owner.

The first test showed the AI adding a "contingency" line nobody asked for. The fix was one sentence: "Only include line items from the notes or the rate card." The second test passed.

Try It: Create Your First Skill

  • Pick a job you do at least weekly, with a result you can judge.
  • Write the one-sentence task and result.
  • List the inputs and mark the ones the AI must never guess.
  • Name the output sections and the reader.
  • Write the decisions for missing or conflicting information.
  • Name the templates and reference documents the skill should use.
  • Add three to five checks for the end of the job.
  • Write the description last, then save the skill as a folder containing SKILL.md.
  • Or open the skill builder, describe the task, answer its questions and download the result.

Test It: Three Cases

  • A normal request. Use a real, complete example. Check every fact against the source, not just the tone.
  • Incomplete input. Remove one critical detail, such as the floor area. The skill should ask or flag it, not fill it in.
  • An unrelated request. Ask for something close but different, such as an invoice. The skill shouldn't trigger. If it does, narrow the description.

If you use more than one AI tool, run the same three cases in each.

Improve It Without Making It Worse

When a test fails, find the instruction that was missing or unclear and change only that. Run the same examples again and compare. Asking an AI to "improve" a whole skill tends to make it longer and vaguer until it stops working. Keep the earlier version so you can go back to it. Once a skill works, you can link it with others into a workflow.

Where Contexta Fits

A skill tells your AI what to do. Your knowledge base shows it how, in detail. Your company context tells it who it's for. The Contexta harness brings them together, in every AI.

With Contexta, your skill doesn't need to repeat who your company is. Company context, covering your terminology, naming and formats, sits under every skill, set for the company and adjusted for each team. The rate card, template and past proposals stay in your knowledge base, in your own SharePoint or Google Drive, and the skill points to them. Spaces give the estimating team its own home and rules.

New versions stay in draft until you publish them. Version history shows who changed what and when, and you can compare with the current version and restore in one step. Connected AIs fetch the published version on next use, while a downloaded copy stays as it was. See Product for the details.

Frequently Asked Questions

How long should a skill be?

Long enough to cover the job, the inputs, the decisions and the checks, and no longer. Most business skills fit on a page or two. The open standard suggests keeping `SKILL.md` under 500 lines and moving detailed reference material into separate files that the AI opens only when the task needs them.

What should I put in a skill's description?

Say what the skill does and when to use it, leading with the main task and the words people actually type. "Drafts a commercial proposal from discovery notes" works better than "helps with sales". A description that's too broad makes the skill fire on the wrong requests; one with no trigger words may never fire.

What are the best practices for writing a skill?

Keep each skill to one job. Name the inputs and say what to do when one is missing. Describe the output by section. Point to templates instead of pasting them in. End with checks. Then test with a normal case, an incomplete case and an unrelated request, and change only the part that failed.

Should I include examples in a skill?

Yes, when an example makes a decision or the output format clearer. A short example of a good pricing table can save several paragraphs of description. Use fictional or approved material, keep it relevant to the job, and put longer examples in a separate reference file so the main skill stays readable.

Can I turn an existing SOP into a skill?

Yes, and it's often the best place to start. Keep the SOP in your knowledge base as the detailed reference, and write the skill as the job card that points to it: a description, the inputs, the output and the decisions the SOP leaves to experience. Then test it, because steps written for people often skip things an AI needs spelled out.

How do I know if my skill is working?

Run the same three test cases after every change: a normal request, an incomplete one and an unrelated one. A working skill gets the facts right against the source, flags missing information and stays out of jobs it wasn't written for. Judge the content, not just how polished it sounds.

Make a First Version You Can Test

You don't need a perfect skill to start. Create a skill for one job you know well, review what the builder drafts, and download a `SKILL.md` file to test with your own examples.