@cleocode/skills

中文文档
2026.11.2发布于 2026/11/12TypeScriptCommonJS零依赖构建来源已验证近 30 天下载 1.3万

CLEO skill definitions - bundled with CLEO monorepo

原始使用文档
文档目录31 节
  1. Overview
  2. What are CLEO Skills?
  3. Installation
  4. Included Skills
  5. Core (installed to every harness, always relevant)
  6. On demand (installed; loaded by description or by stage gui…
  7. Internal (CLEO development only; never installed to a harne…
  8. Skill Structure
  9. Using Skills
  10. From CLI
  11. From Code
  12. From Agents
  13. Skill Definition Format
  14. Example 2: Advanced Usage
  15. References
  16. 2. Create SKILL.md
  17. 3. Register the Skill
  18. Skill Validation
  19. Skill Categories
  20. Development Skills
  21. Research Skills
  22. Orchestration Skills
  23. Quality Skills
  24. Domain Skills
  25. Skill Dependencies
  26. Skill Chaining
  27. Skill Profiles
  28. Shared Resources
  29. Integration with Agents
  30. Dependencies
  31. License

@cleocode/skills

Part of CLEO. Start with the root README; run cleo <command> --help for any command.

CLEO skill definitions - bundled capabilities for AI agents.

Overview

This package contains pre-built skills and capabilities that extend CLEO agents with specialized functionality. Skills define what an agent can do and how it should do it.

What are CLEO Skills?

Skills are modular capability packages that:

  • Define specific tasks an agent can perform
  • Provide detailed instructions and workflows
  • Include constraints and best practices
  • Extend the base agent protocols
  • Are injected at spawn time by orchestrators

Installation

npm install @cleocode/skills
pnpm add @cleocode/skills
yarn add @cleocode/skills

Included Skills

Tiers and install behaviour come from each SKILL.md's metadata (owner decision D11157). packages/skills/skills/manifest.json is generated from them by node scripts/skills/generate-manifest.mjs; gates 29-31 keep the manifest, installability and every documented cleo command honest.

Core (installed to every harness, always relevant)

SkillPurpose
ct-cleoCLEO task management protocol - session, task, and workflow guidance.
ct-dev-workflowDevelopment workflow orchestration for task-driven development with atomic commits, conventional commit messag…
ct-documentorDocumentation coordinator with CLEO style guide compliance.
ct-leanLean change discipline for CLEO work: the smallest change that fully solves the task, and a reply a busy …
ct-leadPhase Lead orchestration playbook for spawning and supervising a parallel worker swarm in one wave.
ct-orchestratorPipeline-aware orchestration skill for managing complex workflows through subagent delegation.
ct-task-executorGeneral implementation task execution for completing assigned CLEO tasks by following instructions and produci…

On demand (installed; loaded by description or by stage guidance)

SkillPurpose
ct-adr-recorderRecords Architecture Decision Records from accepted consensus verdicts.
ct-artifact-publisherBuilds and publishes artifacts to registries (npm, PyPI, cargo, docker, GitHub releases, generic tarballs) fol…
ct-codebase-mapperOrient in an unfamiliar or large codebase with CLEO's code-intelligence graph (cleo nexus) and project map (cl…
ct-consensus-voterRuns structured multi-agent voting for decision tasks with confidence scores, conflict detection, and HITL esc…
ct-contributionGuided workflow for multi-agent consensus contributions.
ct-councilConvene "The Council" — a 5-advisor, shuffled gate-based peer-review, chairman-synthesis workflow for reviewin…
ct-epic-architectEpic planning and task decomposition for breaking down large initiatives into atomic, executable tasks.
ct-provenance-keeperGenerates in-toto v1 attestations, SLSA-level provenance records, SBOMs (CycloneDX or SPDX), and sigstore/cosi…
ct-release-orchestratorOrchestrates CLEO releases: cleo release cut <version> tags the newest main commit with green CI, and release.yml writes the CHANGELOG from changesets and publishes.
ct-research-agentMulti-source research and investigation combining web search, documentation lookup via Context7, and codebase …
ct-spec-writerTechnical specification writing using RFC 2119 language for clear, unambiguous requirements.
ct-validatorCompliance validation for verifying systems, documents, or code against requirements, schemas, or standards.

Internal (CLEO development only; never installed to a harness)

SkillPurpose
ct-gradeCLEO session grading and A/B behavioral analysis with token tracking.
ct-skill-authorCreate, improve and validate CLEO skills.

Merged or retired in T12649: ct-docs-write and ct-docs-review are references of ct-documentor; ct-memory and ct-stickynote are references of ct-cleo; ct-skill-creator and ct-skill-validator became ct-skill-author; ct-docs-lookup (use the Context7 MCP) and ct-master-tac were retired; signaldock-connect moved to the SignalDock repository.

Skill Structure

Each skill follows a standardized structure:

skills/
├── <skill-name>/
│   ├── SKILL.md              # Main skill definition (required)
│   ├── README.md             # User documentation (optional)
│   ├── INSTALL.md            # Installation guide (optional)
│   ├── agents/               # Specialized agent definitions
│   │   ├── analyzer.md
│   │   └── executor.md
│   ├── references/           # Reference documentation
│   │   ├── patterns.md
│   │   └── examples.md
│   └── assets/               # Assets and templates
│       └── template.md

Using Skills

From CLI

# Load a skill
cleo skills load ct-research-agent

# Use skill with a task
cleo skills apply ct-research-agent --task T1234

# List available skills
cleo skills list

# Show skill details
cleo skills show ct-research-agent

From Code

import { skills } from '@cleocode/core';

// Load a skill
const skill = await skills.load('ct-research-agent');

// Apply skill to a task
await skills.apply({
  skill: 'ct-research-agent',
  taskId: 'T1234',
  context: { topic: 'API design patterns' }
});

// Get skill information
const info = await skills.get('ct-codebase-mapper');
console.log(info.description);
console.log(info.capabilities);

From Agents

Skills are automatically injected when spawning agents:

import { orchestration } from '@cleocode/core';

// Skill is injected based on task context
await orchestration.spawn({
  agent: 'cleo-subagent',
  taskId: 'T1234',
  skill: 'ct-implementation' // Injected at spawn
});

Skill Definition Format

Skills are defined in SKILL.md files with YAML frontmatter:

---
id: ct-example-skill
name: Example Skill
description: |
  Multi-line description of what this skill does
  and when to use it.
version: 1.0.0
author: CLEO Team
tags:
  - development
  - example
dependencies:
  - ct-cleo
allowed_tools:
  - Read
  - Write
  - Bash
  - Glob
  - Grep
  - WebFetch
  - WebSearch
---

# Example Skill

## Overview

Detailed explanation of the skill's purpose and usage.

## Capabilities

- **Capability 1**: Description
- **Capability 2**: Description

## Workflow

1. **Step 1**: Description
2. **Step 2**: Description
3. **Step 3**: Description

## Constraints

| ID | Rule | Enforcement |
|----|------|-------------|
| EX-001 | **MUST** follow constraint | Required |
| EX-002 | **SHOULD** consider guideline | Recommended |

## Examples

### Example 1: Basic Usage

```bash
# Command example

Example 2: Advanced Usage

# Advanced command example

References


## Creating Custom Skills

### 1. Create Skill Directory

```bash
mkdir -p skills/my-custom-skill

2. Create SKILL.md

---
id: my-custom-skill
name: My Custom Skill
description: |
  Description of what this skill does.
version: 1.0.0
author: Your Name
tags:
  - custom
  - specialized
allowed_tools:
  - Read
  - Write
  - Bash
---

# My Custom Skill

## Purpose

Explain what this skill does and when to use it.

## Workflow

1. Analyze the task
2. Execute the work
3. Validate the output

## Output Format

Describe expected output format.

3. Register the Skill

import { skills } from '@cleocode/core';

skills.register({
  id: 'my-custom-skill',
  path: './skills/my-custom-skill',
  version: '1.0.0'
});

Skill Validation

Validate skills before distribution:

# Validate a skill
cleo skills validate my-custom-skill

# Or programmatically
import { skills } from '@cleocode/core';

const result = await skills.validate('my-custom-skill');
if (result.valid) {
  console.log('Skill is valid ✓');
} else {
  console.log('Issues:', result.issues);
}

Skill Categories

Skills are organized by category:

Development Skills

  • Codebase mapping and analysis
  • Implementation guidance
  • Testing strategies

Research Skills

  • Information gathering
  • Documentation lookup
  • Multi-source synthesis

Orchestration Skills

  • Multi-agent coordination
  • Workflow management
  • Consensus building

Quality Skills

  • Code review
  • Documentation review
  • Compliance checking

Domain Skills

  • Framework-specific guidance
  • Platform integration
  • Tool expertise

Skill Dependencies

Skills can depend on other skills:

# In SKILL.md frontmatter
dependencies:
  - ct-cleo          # Base CLEO operations
  - ct-research-agent # Research capabilities
  - ct-validator     # Validation support

Dependencies are automatically loaded when a skill is applied.

Skill Chaining

Skills can be chained together:

import { skills } from '@cleocode/core';

// Chain multiple skills
await skills.chain([
  { skill: 'ct-research-agent', taskId: 'T1234' },
  { skill: 'ct-spec-writer', taskId: 'T1235' },
  { skill: 'ct-epic-architect', taskId: 'T1236' }
]);

Skill Profiles

Group skills into profiles for different roles:

# profiles/backend-developer.yaml
name: Backend Developer
skills:
  - ct-codebase-mapper
  - ct-research-agent
  - ct-spec-writer
  - drizzle-orm
  - ct-dev-workflow

Use profiles:

cleo skills apply-profile backend-developer --task T1234

Shared Resources

Common patterns and utilities in skills/_shared/:

  • manifest-operations.md - Working with pipeline_manifest via cleo manifest CLI
  • subagent-protocol-base.md - Base subagent protocols
  • skill-chaining-patterns.md - Chaining best practices
  • testing-framework-config.md - Test configuration
  • task-system-integration.md - Task system integration
  • cleo-style-guide.md - CLEO documentation style

Integration with Agents

Skills and agents work together:

  1. Orchestrator identifies task requirements
  2. Selects appropriate skill based on task type
  3. Spawns agent with skill injected
  4. Agent follows skill instructions
  5. Skill guides execution within agent framework

Example:

Task: "Research authentication patterns"
  ↓
Orchestrator selects: ct-research-agent skill
  ↓
Spawns: cleo-subagent with ct-research-agent injected
  ↓
Agent follows LOOM protocol
  ↓
Skill guides research methodology
  ↓
Output: Research report written to file

Dependencies

This package has no runtime dependencies. It contains:

  • Skill definitions (markdown files)
  • Reference documentation
  • Configuration templates
  • Example outputs

License

MIT License - see LICENSE for details.

版本与发布记录

@cleocode/skills 共发布 415 个版本,首次发布于 2026/03/19;过去 12 个月发布了 415 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2026.11.2latest2026/11/12今天
2026.11.2-rc.ci.714canary2026/11/12今天
2026.11.2-canary.22026/11/12今天
2026.11.2-canary.12026/11/12今天
2026.11.12026/11/12今天
2026.11.1-rc.ci.7112026/11/12今天

关于 @cleocode/skills 的常见问题

@cleocode/skills 是什么?

CLEO skill definitions - bundled with CLEO monorepo

如何安装 @cleocode/skills?

在项目目录运行 npm install @cleocode/skills,或使用 pnpm add / yarn add / bun add。

@cleocode/skills 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cleocode/skills 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@cleocode/skills 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.16.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cleocode/skills 可以商用吗?

@cleocode/skills 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@cleocode/skills 的下载量有多少?

根据 npm 官方下载统计,@cleocode/skills 在 2026/10/10 – 2026/11/08 这 30 天内被下载 12,906 次,日均约 430 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cleocode/skills 还在维护吗?

最新版本 2026.11.2 发布于 2026/11/12(今天);至今共发布 415 个版本,其中过去 12 个月发布了 415 个;首次发布于 2026/03/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。