搜索

PythonReactSEOPDF
OpenClaw

Chitin Core

chitin core

adroidian0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install adroidian/chitin-core

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

chitin-core

Route tasks to the cheapest capable model. Never crash on rate limits.

Activation

When spawning sub-agents or delegating tasks, use ModelRouter to select the optimal model.

Trigger phrases: "route this", "spawn a sub-agent", "delegate", or any time you need to choose a model for a task.

Usage

Route a Task
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js route "task description here"

Returns JSON:

{"tier":"MEDIUM","model":"google-antigravity/gemini-3.1-pro","confidence":0.85,"estimatedCost":0.005,"signals":["codeSignals:2×1.2=2.4"]}

Use the returned model value in sessions_spawn.

Handle Failures

If a spawned session fails with a rate limit or error:

node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js fail "provider/model" "error message"

Then re-route — the failed model will be skipped:

node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js route "same task"
Check Health
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js health
View Costs
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js costs
Validate Config
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js validate

Workflow

  1. Receive task from user
  2. Run router.js route "<task>" to get optimal model
  3. sessions_spawn with returned model
  4. If spawn fails → router.js fail "<model>" "<error>" → retry route
  5. Return result to user

Tiers

Tier Use Case Models
LIGHT Greetings, simple Q&A, status checks Flash, DeepSeek, gpt-5-mini, Groq, Ollama
MEDIUM Code, summaries, standard tasks Gemini Pro, gpt-5.2, DeepSeek Reasoner
HEAVY Architecture, complex reasoning, agentic gpt-5.2-pro, o3, Codex

Override Tags

Include in task text to force a tier:

  • @light — force cheapest model
  • @medium — force mid-tier
  • @heavy — force...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/adroidian/chitin-core
Version
—
Commit
5be7a1877d8fe7404ba20e673bfeb4ede5c7e938
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# chitin-core

Route tasks to the cheapest capable model. Never crash on rate limits.

## Activation

When spawning sub-agents or delegating tasks, use ModelRouter to select the optimal model.

**Trigger phrases:** "route this", "spawn a sub-agent", "delegate", or any time you need to choose a model for a task.

## Usage

### Route a Task
```bash
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js route "task description here"
```

Returns JSON:
```json
{"tier":"MEDIUM","model":"google-antigravity/gemini-3.1-pro","confidence":0.85,"estimatedCost":0.005,"signals":["codeSignals:2×1.2=2.4"]}
```

Use the returned `model` value in `sessions_spawn`.

### Handle Failures
If a spawned session fails with a rate limit or error:
```bash
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js fail "provider/model" "error message"
```

Then re-route — the failed model will be skipped:
```bash
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js route "same task"
```

### Check Health
```bash
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js health
```

### View Costs
```bash
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js costs
```

### Validate Config
```bash
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js validate
```

## Workflow

1. Receive task from user
2. Run `router.js route "<task>"` to get optimal model
3. `sessions_spawn` with returned model
4. If spawn fails → `router.js fail "<model>" "<error>"` → retry route
5. Return result to user

## Tiers

| Tier | Use Case | Models |
|------|----------|--------|
| LIGHT | Greetings, simple Q&A, status checks | Flash, DeepSeek, gpt-5-mini, Groq, Ollama |
| MEDIUM | Code, summaries, standard tasks | Gemini Pro, gpt-5.2, DeepSeek Reasoner |
| HEAVY | Architecture, complex reasoning, agentic | gpt-5.2-pro, o3, Codex |

## Override Tags

Include in task text to force a tier:
- `@light` — force cheapest model
- `@medium` — force mid-tier
- `@heavy` — force...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.