# Skills

> A skill is a written procedure an AI agent loads when it needs it. Vigil has built-in skills for patrols and sign-ins, and your organization can write its own.

Source: https://vigilsecure.net/docs/concepts/skills/

A skill is a set of written instructions for one kind of work, with a short description of
when to use it. An [agent](https://vigilsecure.net/docs/concepts/agents.md) sees only the description until the work
calls for it, then loads the full instructions. This keeps an agent focused and lets you
teach it your company's way of doing things without rewriting its instructions.

There are three kinds of skill around Vigil.

| Kind                               | Who writes it     | Who uses it                                                |
| ---------------------------------- | ----------------- | ---------------------------------------------------------- |
| **Core skills**                    | Vigil             | Every agent inside Vigil                                   |
| **Organization skills**            | Your organization | Your organization's agents                                 |
| **Vigil skills for AI assistants** | Vigil             | Your own assistant, such as Claude or Codex, outside Vigil |

## Core skills

Every agent in Vigil has these built in. Their names start with `vigil-`.

| Skill                    | What it teaches an agent                                                                                    |
| ------------------------ | ----------------------------------------------------------------------------------------------------------- |
| `vigil-communication`    | How to talk to people: when to answer by text, voice note, photo or file, and which chat to post in.        |
| `vigil-graphql-api`      | How to look things up and make changes in Vigil.                                                            |
| `vigil-patrol-requests`  | How to ask the guard at a site to patrol it, and how to follow the scans until the patrol is done or late.  |
| `vigil-sign-in-requests` | How to check whether somebody is signed in on a site's devices, and how to make a device ask for a sign-in. |
| `vigil-sign-outs`        | How to sign a user out of a device when their shift is over, without signing out whoever relieved them.     |
| `vigil-default-chats`    | How to read and change the chat a user's beacon scans and push-to-talk go to.                               |
| `vigil-triggers`         | How to be woken when something changes in the organization.                                                 |
| `vigil-sandbox`          | How the agent's private workspace works: files, commands and limits.                                        |

You do not need to switch these on. When you tell an agent in its instructions to "patrol
Rosebank every three hours", it loads `vigil-patrol-requests` by itself.

## Organization skills

An organization skill is a procedure your company writes, such as how a shift is handed
over, what counts as an incident or how a client likes its weekly report.

You find them under **Directory → Skills**. The manager, admin and owner roles can write
them; every role can read them.

### Write a skill

1. Choose **Directory → Skills**, then **Add skill**.
2. Fill in the three fields:

   | Field              | Limit             | Notes                                                                                                        |
   | ------------------ | ----------------- | ------------------------------------------------------------------------------------------------------------ |
   | **Name**           | 64 characters     | Lowercase letters, numbers and hyphens, such as `shift-handover`. Names starting with `vigil-` are reserved. |
   | **When to use it** | 1,024 characters  | Agents see only this until they load the skill, so say exactly when it applies.                              |
   | **Instructions**   | 20,000 characters | The procedure itself. Keep it under 500 lines. Vigil's own rules still come first.                           |

3. Save the skill.

A skill belongs to one organization. An agent never carries one company's skills into
another.

> **Rolling out:** You can write and edit organization skills today. Choosing which agents load each skill is
> being rolled out, so agents do not use organization skills yet. Until then, put a procedure
> an agent must follow in that agent's **Instructions**.

### Archive a skill

Open the skill and archive it. Agents stop using it, and its name becomes free for a new
skill. Archived skills stay listed for reference when you turn on **Include archived**.

## Vigil skills for your own AI assistant

Vigil also publishes a skill for AI assistants that run outside Vigil, on your own
computer. With it, an assistant such as Claude Code or Codex knows how to work with your
organization: how to find a site, read last night's scans, request a patrol or post in a
chat.

See [Use Vigil with AI](https://vigilsecure.net/docs/setup/use-vigil-with-ai.md#connect-your-own-ai-assistant).

## Related

- [Agents](https://vigilsecure.net/docs/concepts/agents.md)
- [Frequently asked questions](https://vigilsecure.net/docs/faq.md#ai-agents-and-skills)
