Request a demo
Docs / Extending / Skills — multi-step composed behaviors

Skills

A skill is a markdown file that describes a procedure — when to use it, the steps, and what a good result looks like. When your message matches a skill, InsightWorker adds that skill's instructions to the agent's context for the run.

If a playbook is "knowledge", a skill is "procedure".

Where they live

Skills are loaded from one directory, SKILLS_DIR. By default this is the skills/ folder inside the installed package:

<skills dir>/<name>/
└── SKILL.md          # the skill definition (required)

To add your own, copy the bundled folder somewhere you control, add your skill folders next to the bundled ones, and point SKILLS_DIR at it in ~/.insightworker/.env. Setting SKILLS_DIR replaces the default folder; it does not add to it.

Bundled skills

15 skills ship with InsightWorker:

AreaSkillPurpose
Data pipelines & Airflowbackfill-plannerPlan a data backfill
dag-migration-compareConvert or compare Airflow DAGs between platforms (for example Redshift to Oracle ADW)
dag-reviewReview an Airflow DAG
dag-run-diagnoseWalk a failed DAG run to root cause
pipeline-triageTriage a failed pipeline run from Airflow task logs
stored-proc-reviewCompare two stored procedures and report differences
Insurance operationsclaims-file-prepAssemble a claims file from inbound documents
insurance-intakeExtract policy terms from broker submission documents
policy-comparisonCompare policy documents
Documents & emaildocument-ocrOCR a scanned document and extract its structure
email-draft-replyDraft a reply in the user's style
email-style-learnSample sent emails and describe the user's writing style
Software engineeringcode-reviewReview a code change
git-workflowGit conventions for the project
project-setupSet up a new project with structure and tooling

List what is installed:

ls $(npm root -g)/@verticalserve/insightworker/skills/
# or, inside the REPL:
/skills

Each SKILL.md is plain markdown you can read and copy.

Anatomy

---
name: sprint-digest
description: Summarise new JIRA issues for a project into a markdown report
triggers: [sprint digest, weekly digest]
---

# Skill — Sprint digest

## When to use
The user asks for a summary of recent issues in a JIRA project.

## Steps
1. Call `jira_search` with JQL `project = <key> AND created >= -7d`
2. For each issue, call `jira_issue` to get the description
3. Group by status; format as a markdown table
4. Write to `reports/<project>-digest-<date>.md`

## Acceptance criteria
- The output file exists at the expected path
- One row per issue, grouped by status

## Failure modes to handle
- Empty result set → write a "No new issues" note, don't fail
- JIRA 401 → stop and report the error; don't retry

Frontmatter fields

FieldDescription
nameSkill name. Defaults to the folder name.
descriptionShown by /skills; its words also count toward matching.
triggersKeywords or phrases that select this skill.

Only these three fields are read. The body of the file is passed to the agent as written.

How a skill is selected

There is no separate command to run a skill. On each message InsightWorker scores every skill against your text — trigger phrases count most, then the skill name, then words from the description (case-insensitive substring match) — and loads up to the three best matches.

> draft a reply to the broker

Here email-draft-reply matches and its instructions are added for that turn. To make sure a particular skill is used, mention its name in your message.

To run a skill-driven task on a timer, put the request in a schedule's prompt: — see Scheduling.

Writing a skill — patterns that work

  1. Be explicit about steps. A numbered procedure works better than general guidance.
  2. Include acceptance criteria. They give the agent something to check its output against.
  3. Name failure modes. "If JIRA returns 401, stop and report" — otherwise the agent may retry until the loop detector stops it.
  4. Keep skills single-purpose. Two small skills are easier to debug than one that gathers data and writes the report.
  5. Choose distinctive triggers. Matching is by substring, so a trigger like review will fire on many unrelated messages.

Versioning

Skills are markdown — keep your skills folder in git and review changes like code.

See also