Skip to Content
DocsPluginsComparisonChangelog
0
DocsChangelog

More

Discussionsllms.txtllms-full.txt
Getting startedWhat is concivComparisonRequirementsPlaygroundExamplesAPI reference

Engine and widgetSessionsHarnessesTools and code modeAgents and permissionsSkills

Use conciv
Bundlers
Agents
PluginsBuild your first plugin
Add a toolAsk for permissionAdd a skillShare an RPC methodCall from a terminalAdd a panelSlot or pillAdd settingsTest your plugin
Plugin API reference
PluginsGuides

Add a skill

Ship instructions with your plugin, so the agent knows when and how to use its tools.

A skill is a page of instructions the agent reads when a task needs it. Ship one with your plugin when its tools need a how-to: which tool to call first, what the results mean, what to avoid. If you only need the instructions, with no new code, a skill file in your project is enough. See Skills.

This guide also imports @conciv/protocol, which the tutorial installed only for the Effect style.

npm install -D @conciv/protocol
pnpm add -D @conciv/protocol
yarn add --dev @conciv/protocol
bun add --dev @conciv/protocol

Ship a skill file

Keep the instructions in a Markdown file in your plugin folder:

conciv/plugins/tickets/skill/SKILL.md
# Tickets

Read a ticket with ticket_read before you change it.
Never close a ticket whose id starts with SEC-: the security team closes those.

The engine does not find this file on its own. Your engine part reads it and adds it inside ctx.skill.transform:

conciv/plugins/tickets/server.ts
import {} from 'node:fs/promises'
import {} from 'node:url'
import {Plugin, } from '@conciv/backend-plugin-api'
import {} from '@conciv/protocol/schema/schema'

const  = (new 

export default Plugin.({
  : 'tickets',
  async () {
    const  = await 
    await ..(() =>
      .({
        : ..
        : ..
        : 'Read and close tickets in the team tracker. Load it before your first ticket tool call.',
        : .
        , // <- what the agent reads when it loads the skill
      }),
    )
  },
})
conciv/plugins/tickets/server.ts
import {






















A few things to notice:

  • Skill.Id, Skill.Name and AbsolutePath are branded strings. .make turns a plain string into one. An id then cannot go where a name belongs.
  • description is what the agent always sees. The agent decides from this line when to load the skill.
  • The agent sees the files next to SKILL.md and can read them, such as a reference/ folder.
  • In both tabs, a missing file stops the plugin from loading.

The agent gets the skill's name and description in every turn. When it starts a ticket task, it loads the content. Then it follows it.

A skill with no file

Write the content in code, and give the skill a skill:// path. That path names the skill without pointing at a folder, so the agent sees no files beside it:

conciv/plugins/tickets/server.ts
import {Plugin, } from '@conciv/backend-plugin-api'
import {} from '@conciv/protocol/schema/schema'

export default Plugin.({
  : 'tickets',
  async () {
    await ..(() =>
      .({








Next steps

  • Add a tool: the tools your skill teaches.
  • Skills: skills written as files in your project.

Ask for permission

Make the user approve a tool call before it does something they would want to check.

Share an RPC method

Let your plugin's browser part, a terminal or another plugin call methods on its engine part, and follow its events.

On this page

Ship a skill fileA skill with no fileNext steps
Edit on GitHubView .mdOpen in ClaudeOpen in ChatGPT
: ..
: ..
: 'Read and close tickets in the team tracker. Load it before your first ticket tool call.',
: .
: 'Read a ticket with ticket_read before you change it.',
}),
)
},
})
conciv/plugins/tickets/server.ts
import {Plugin, } from '@conciv/backend-plugin-api/effect'
import {













(
'./skill/SKILL.md'
,
import
.
.
))
(
,
'utf8'
)
(
'tickets'
),
(
'Tickets'
),
(
),
// <- the skill's folder is the one this file is in
}
from
'node:fs/promises'
import {} from 'node:url'
import {} from 'effect'
import {Plugin, } from '@conciv/backend-plugin-api/effect'
import {} from '@conciv/protocol/schema/schema'
const = (new
export default Plugin.({
: 'tickets',
: () =>
.
const = yield* .
yield* ..(() =>
.({
: ..
: ..
: 'Read and close tickets in the team tracker. Load it before your first ticket tool call.',
: .
, // <- what the agent reads when it loads the skill
}),
)
}),
})
(
'tickets'
),
(
'Tickets'
),
(
'skill://tickets/SKILL.md'
),
}
from
'@conciv/protocol/schema/schema'
export default Plugin.({
: 'tickets',
: () =>
..(() =>
.({
: ..
: ..
: 'Read and close tickets in the team tracker. Load it before your first ticket tool call.',
: .
: 'Read a ticket with ticket_read before you change it.',
}),
),
})
(
'./skill/SKILL.md'
,
import
.
.
))
(
function*
() {
(()
=>
(
,
'utf8'
))
(
'tickets'
),
(
'Tickets'
),
(
),
// <- the skill's folder is the one this file is in
(
'tickets'
),
(
'Tickets'
),
(
'skill://tickets/SKILL.md'
),