| name | cowork-guide |
| description | CRITICAL: Comprehensive guide for CoWork Skills CLI tool. Triggers on: cowork, Skills.toml, skill management, plugin configuration, cowork init, cowork install, cowork config, cowork generate, cowork audit, cowork verify, cowork test |
CoWork Guide
Complete reference for the CoWork Skills CLI tool
Overview
CoWork Skills (cowork / co) is a CLI tool for managing Claude Code skills and plugins across 16+ AI coding agents:
- Install skills from GitHub repositories
- Generate skills from source code (Rust, TypeScript, Python)
- Manage project-level skill configuration via Skills.toml
- Security auditing and checksum verification
- Search GitHub for skill repositories
Installation
First, check if cowork is installed:
cowork --version
If not installed, install via one of these methods:
cargo install cowork
git clone https://github.com/ZhangHanDong/cowork-skills
cd cowork-skills/cli
cargo install --path .
Then initialize built-in skills:
cowork init
Note: If you installed cowork-skills via npx @anthropic-ai/claude-code add,
you still need to install the cowork CLI separately using the commands above.
Command Alias
cowork = co
Commands by Category
๐ Quick Start (ๅๅงๅ)
| Command | Description |
|---|
co init | ๅฎ่ฃ
ๅ
็ฝฎ skills ๅฐๅ
จๅฑ/้กน็ฎ |
co init --list | ๅๅบๅฏ็จ็ๅ
็ฝฎ skills |
co init --local | ๅฎ่ฃ
ๅฐ้กน็ฎ .claude/skills/ |
co init -r <name> | ๅ ้คๆๅฎ skill |
๐ฆ Install & Uninstall (ๅฎ่ฃ
)
| Command | Description |
|---|
co install user/repo | ไป GitHub ๅฎ่ฃ
|
co install user/repo -s skill1 | ๅฎ่ฃ
ๆๅฎ skills |
co install user/repo --plugin | ไฝไธบๆไปถๅฎ่ฃ
|
co install user/repo -l | ๅฎ่ฃ
ๅฐ้กน็ฎๆฌๅฐ |
co install user/repo --update | ๆดๆฐๅฐๆๆฐ็ๆฌ |
co install --list | ๅๅบๅทฒๅฎ่ฃ
ไปๅบ |
co install --uninstall repo | ๅธ่ฝฝไปๅบ |
โ๏ธ Configuration (้
็ฝฎ)
| Command | Description |
|---|
co config init | ๅๅปบ Skills.toml |
co config show | ๆพ็คบๅฝๅ้
็ฝฎ |
co config add name repo | ๆทปๅ ไพ่ต |
co config add name path --dev | ๆทปๅ ๅผๅ้พๆฅ |
co config install | ๅฎ่ฃ
Skills.toml ไธญ็ไพ่ต |
co config sync | ๅๆญฅ้ๆไปถ็ถๆ |
co config enable/disable | ๅฏ็จ/็ฆ็จ skills |
co config priority | ่ฎพ็ฝฎ่งฆๅไผๅ
็บง |
co config router | ็ๆๅจๆ่ทฏ็ฑ |
co config router --analyze | AI ๅๆ็ๆๆบ่ฝ่ทฏ็ฑ |
๐ Discovery (ๅ็ฐ)
| Command | Description |
|---|
co list | ๅๅบๆๆๅฏ็จ skills |
co search query | ๆ็ดข GitHub ไปๅบ |
co search topic --topic | ๆ topic ๆ็ดข |
co generate user/repo | ไปๆบ็ ็ๆ skills |
๐ Plugin Management (ๆไปถ)
| Command | Description |
|---|
co plugins list | ๅๅบๅทฒๅฎ่ฃ
ๆไปถ |
co plugins status | ๆไปถ็ณป็ป็ถๆ |
co plugins enable/disable | ๅฏ็จ/็ฆ็จๆไปถ |
co plugins uninstall | ๅธ่ฝฝๆไปถ |
๐ก๏ธ Security & Testing (ๅฎๅ
จ)
| Command | Description |
|---|
co audit | ๅฎๅ
จๅฎก่ฎก |
co verify | ๆ ก้ช checksums |
co test | ็ๆ่งฆๅๆต่ฏ |
co test --run | ่ฟ่กๅฎ้
ๆต่ฏ |
co test --check-conflicts | ๆฃๆฅ่งฆๅๅฒ็ช |
๐ Status & Debug (็ถๆ)
| Command | Description |
|---|
co status | ๆพ็คบๅฝๅ็ถๆ |
co doctor | ๆฃๆฅ้
็ฝฎ้ฎ้ข |
Workflow ๅทฅไฝๆต
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CoWork ๅทฅไฝๆต โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. ๅๅงๅ
co init # ๅฎ่ฃ
ๅ
็ฝฎ skills
2. ๅฎ่ฃ
ๅค้จ skills
co install user/repo # ไป GitHub ๅฎ่ฃ
co install user/repo --plugin # ไฝไธบๆไปถๅฎ่ฃ
3. ้กน็ฎ้
็ฝฎ (ๅฏ้)
co config init # ๅๅปบ Skills.toml
co config add rust ZhangHanDong/rust-skills
co config install # ๅฎ่ฃ
ไพ่ต
4. ็ๆ่ทฏ็ฑ
co config router --analyze # AI ๅๆ็ๆๆบ่ฝ่ทฏ็ฑ
5. ๆต่ฏ & ้ช่ฏ
co test --check-conflicts # ๆฃๆฅ่งฆๅๅฒ็ช
co audit # ๅฎๅ
จๅฎก่ฎก
6. ๆฅๅธธไฝฟ็จ
co list # ๆฅ็ๆๆ skills
co status # ๆฅ็็ถๆ
co doctor # ่ฏๆญ้ฎ้ข
cowork init
Initialize built-in skills to ~/.claude/skills/.
cowork init
cowork init --list
cowork init -s memory-skills -s cowork-guide
cowork init --force
cowork init --local
cowork init --remove memory-skills
Built-in Skills:
memory-skills - CoALA-based memory system (remember, recall, reflect)
cowork-guide - Complete CoWork CLI usage guide
cowork-router - Unified router for installed plugins/skills
code-review - Code review assistant with best practices
github-generate - Generate skills from GitHub repositories
github-search - Search GitHub for skill repositories
cowork install
Install skills from GitHub or local repositories.
Basic Usage
cowork install ZhangHanDong/rust-skills
cowork install https://github.com/user/repo
cowork install
cowork install --list
Installation Options
cowork install user/repo -s skill1 -s skill2
cowork install user/repo -a claude-code -a cursor
cowork install user/repo --plugin
cowork install user/repo --local
cowork install user/repo --reinstall
cowork install user/repo --update
cowork install user/repo --include-dir docs --include-dir examples
cowork install user/repo --no-symlink
cowork install user/repo --use-add-skill
cowork install user/repo -y
Uninstall
cowork install --uninstall repo-name
Supported Agents
Install skills to 16+ coding agents:
| Agent | Flag | Agent | Flag |
|---|
| Claude Code | -a claude-code | Amp | -a amp |
| Cursor | -a cursor | Antigravity | -a antigravity |
| Codex | -a codex | Clawdbot | -a clawdbot |
| GitHub Copilot | -a github-copilot | Droid | -a droid |
| Windsurf | -a windsurf | Gemini CLI | -a gemini-cli |
| Goose | -a goose | Kilo | -a kilo |
| Kiro CLI | -a kiro-cli | OpenCode | -a opencode |
| Roo | -a roo | Trae | -a trae |
cowork config
Manage project-level skill configuration via Skills.toml.
Initialize Configuration
cowork config init
cowork config init --no-detect
cowork config init --force
Auto-detection scans:
~/.claude/ for global plugins
~/.claude/skills/ for global skills
.claude/ for project plugins
.claude/skills/ for project skills
View Configuration
cowork config show
cowork config groups
Add Dependencies
cowork config add rust-skills ZhangHanDong/rust-skills
cowork config add my-skills user/skills --local
cowork config add tokio user/tokio-skills -s tokio-runtime -s tokio-sync
cowork config add makepad user/makepad-skills --plugin
cowork config add old-lib user/old --disabled
cowork config add pinned user/repo --ref v1.0.0
cowork config add dora-dev /path/to/dora-skills --dev
Install Dependencies
cowork config install
Sync Configuration
cowork config sync
cowork config sync --update
Enable/Disable
cowork config enable rust-core makepad
cowork config enable memory-filesystem
cowork config disable rust-domains
Trigger Configuration
cowork config priority dora-router rust-router makepad-router
cowork config override "async" rust-router
cowork config override "widget" makepad-router
Generate Output
cowork config apply
cowork config apply -o ./docs/SKILLS.md
cowork config router
cowork config router --hooks
cowork config router --analyze
cowork config router --no-cache
Skills.toml
Project-level configuration file stored at .cowork/Skills.toml.
Basic Structure
[project]
name = "my-project"
description = "Project description"
[skills.global]
enabled = ["memory-filesystem"]
disabled = []
[skills.install]
rust-skills = "ZhangHanDong/rust-skills"
[skills.groups]
enabled = ["rust-core"]
disabled = []
[triggers]
priority = ["dora-router", "rust-router"]
[triggers.overrides]
"async" = "rust-router"
Dependency Forms
Simple form:
[skills.install]
rust-skills = "ZhangHanDong/rust-skills"
Detailed form:
[skills.install]
tokio = { repo = "user/tokio-skills", skills = ["tokio-runtime", "tokio-sync"] }
local = { path = "../my-local-skills" }
pinned = { repo = "user/repo", ref = "v1.0.0" }
makepad = { repo = "user/makepad-skills", plugin = true }
my-project = { repo = "user/skills", local = true }
old-lib = { repo = "user/old", enabled = false }
Dev Links
Development symlinks for testing local skills:
[skills.dev]
my-skill = "/path/to/my-skill-project"
dora-dev = { path = "/path/to/dora-skills" }
dora-plugin = { path = "/path/to/dora-skills", plugin = true }
Skill Groups
| Group | Skills | Description |
|---|
rust-core | 8 | Basic Rust (ownership, concurrency, error handling) |
rust-patterns | 7 | Design patterns (domain modeling, performance) |
rust-domains | 7 | Domain-specific (web, CLI, fintech, embedded) |
makepad | 11 | Makepad UI framework |
dora | 8 | Dora-rs robotics framework |
dora-hubs | 9 | Dora hub integrations |
cowork generate
Generate skills from source code of any GitHub repository.
cowork generate user/repo
cowork generate tokio-rs/tokio --lang rust
cowork generate vercel/next.js --lang typescript
cowork generate user/repo --llms-only -o ./output
cowork generate --from-llms ./llms.txt
cowork generate user/repo --ref v1.0.0
Supported Languages
| Language | Parser | Extracts |
|---|
| Rust | syn | pub fn, struct, enum, trait, impl |
| TypeScript | tree-sitter | export function, class, interface, type |
| Python | tree-sitter | def, class (excluding _ private items) |
Output
- llms.txt - API documentation following llms.txt specification
- SKILL.md - Generated skill files with triggers and references
cowork search
Search GitHub for skill repositories.
cowork search tokio
cowork search agent-skill --topic
cowork search rust-skills --limit 5
cowork search rust-skills --verbose
cowork plugins
Manage Claude Code marketplace plugins.
cowork plugins list
cowork plugins status
cowork plugins uninstall rust-skills
cowork plugins enable rust-skills
cowork plugins disable rust-skills
cowork plugins marketplaces
cowork plugins remove-marketplace rust-skills
cowork test
Generate and run trigger tests for skills.
Generate Test Reports
cowork test
cowork test triggers
cowork test --check-conflicts
cowork test -o triggers.json --format json
cowork test -o triggers.yaml --format yaml
cowork test -o triggers.md --format markdown
Run Actual Tests
cowork test --run
cowork test --filter "rust-*" --run
cowork test --run -n 5
cowork test --global
cowork test --path ./skills
cowork test --plugins
cowork test --all
cowork audit
Security audit of installed skills.
Basic Usage
cowork audit
cowork audit --verbose
cowork audit --fix
Scan Locations
cowork audit --global
cowork audit --project
cowork audit --plugins
Output Formats
cowork audit -o report.txt --format text
cowork audit -o report.json --format json
cowork audit -o report.md --format markdown
Detection Capabilities
- Dangerous patterns:
rm -rf, eval(), curl|sh, sudo
- Prompt injection: Attempts to override system prompts
- Credential leaks:
API_KEY, PRIVATE KEY, password
- Risk levels: SAFE, LOW, MEDIUM, HIGH, CRITICAL
cowork verify
Verify checksums of installed skills against Skills.lock.
cowork verify
cowork verify rust-skills
cowork verify --update
cowork verify --verbose
Security Configuration
Add to Skills.toml:
[security]
trusted_authors = ["ZhangHanDong", "anthropics"]
blocked_patterns = ["dangerous-pattern"]
skip_paths = [
"**/docs/**",
"**/examples/**",
"**/tests/**",
]
trusted_marketplaces = ["hookify", "rust-skills"]
auto_reject_high_risk = false
Storage Locations
| Location | Purpose |
|---|
~/.cowork/repos/ | Cloned GitHub repositories |
~/.claude/skills/ | Global skills directory |
~/.claude/<plugin>/ | Global plugins |
.claude/skills/ | Project-local skills |
.claude/<plugin>/ | Project-local plugins |
.cowork/Skills.toml | Project configuration |
.cowork/Skills.lock | Installed packages lock |
Environment Variables
| Variable | Description |
|---|
GITHUB_TOKEN | Required for generate/search commands |
Troubleshooting
Check Configuration
cowork doctor
cowork status
Common Issues
Skills not loading:
- Check if skill exists:
cowork list
- Verify enabled status:
cowork config show
- Ensure triggers match:
cowork test triggers
Installation fails:
- Check GitHub token:
echo $GITHUB_TOKEN
- Verify repo exists:
gh repo view user/repo
- Try with verbose:
cowork install user/repo --reinstall
Plugin conflicts:
- Set trigger priority:
cowork config priority router1 router2
- Override specific triggers:
cowork config override "keyword" skill-name
- Check for conflicts:
cowork test --check-conflicts