Skip to content

Cline

Target id Package Ship with
cline @oiap/exporter-cline install-agent-plugin
Terminal window
npx oiap build oiap.plugin.ts --target cline --out dist/cline
npx install-agent-plugin <owner>/<repo> --plugin <plugin-id> --agent cline

Cline target exporter for Open Interoperable Agent Plugins.

This package renders OIAP plugin definitions into project-local Cline assets:

  • Rules in .clinerules/ with Cline conditional paths frontmatter.
  • Skills in .cline/skills/<name>/SKILL.md.
  • Commands as user-invocable Cline skills.
  • Agents in .cline/agents/<name>.yaml frontmatter files.
  • Hook files in .cline/hooks/*.cjs backed by the generated OIAP runtime.
  • MCP servers in .cline/mcp.json.
  • OIAP capability reports, source maps, and policy evidence under .oiap/.

Use it directly from TypeScript:

import { exportCline } from "@oiap/exporter-cline";
const bundle = exportCline(pluginDefinition);

Or through the CLI:

Terminal window
bun run oiap build ./oiap.plugin.ts --target cline --out ./build/cline

Cline command and policy surfaces do not map one-to-one with OIAP. Commands are lowered as skills so users can invoke them with slash skill commands, and policy rules are emitted as reviewable evidence instead of enforced host settings. Generated hook files also preserve unsupported hook result decisions as advisory context where Cline file hooks do not expose an equivalent control.

Where install-agent-plugin and installPlugin() write the bundle, from the target profile. --out <dir> overrides them.

Scope Path
Local (default) ./.cline/plugins/<plugin-id>
Global (--global) ~/.cline/plugins/<plugin-id>

From the platform support matrix (see its legend).

Profile Package Rules Skills Commands Hooks Agents MCP Runtime Policy
core P Y P F Y P Y R P

Project config target. Cline documents .clinerules/ project rules, .cline/skills Agent Skills, .cline/hooks file hooks, .cline/mcp.json, project agent config files, and SDK plugin packages for Cline SDK, CLI, and Kanban workflows. OIAP exports project-local assets for those documented surfaces and records degradations for command-as-skill lowering, policy evidence, agent tool validation, and OIAP hook result controls that Cline file hooks cannot apply directly.