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:
| Area | Skill | Purpose |
|---|---|---|
| Data pipelines & Airflow | backfill-planner | Plan a data backfill |
dag-migration-compare | Convert or compare Airflow DAGs between platforms (for example Redshift to Oracle ADW) | |
dag-review | Review an Airflow DAG | |
dag-run-diagnose | Walk a failed DAG run to root cause | |
pipeline-triage | Triage a failed pipeline run from Airflow task logs | |
stored-proc-review | Compare two stored procedures and report differences | |
| Insurance operations | claims-file-prep | Assemble a claims file from inbound documents |
insurance-intake | Extract policy terms from broker submission documents | |
policy-comparison | Compare policy documents | |
| Documents & email | document-ocr | OCR a scanned document and extract its structure |
email-draft-reply | Draft a reply in the user's style | |
email-style-learn | Sample sent emails and describe the user's writing style | |
| Software engineering | code-review | Review a code change |
git-workflow | Git conventions for the project | |
project-setup | Set 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
| Field | Description |
|---|---|
name | Skill name. Defaults to the folder name. |
description | Shown by /skills; its words also count toward matching. |
triggers | Keywords 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
- Be explicit about steps. A numbered procedure works better than general guidance.
- Include acceptance criteria. They give the agent something to check its output against.
- Name failure modes. "If JIRA returns 401, stop and report" — otherwise the agent may retry until the loop detector stops it.
- Keep skills single-purpose. Two small skills are easier to debug than one that gathers data and writes the report.
- Choose distinctive triggers. Matching is by substring, so a trigger like
reviewwill fire on many unrelated messages.
Versioning
Skills are markdown — keep your skills folder in git and review changes like code.
See also
- Playbooks — knowledge files (vs procedures)
- Daemon mode — running prompts on a schedule
- Loop detector