TopRank Skills

Official OpenClaw rules 36%

pref0

Learn user preferences from conversations and personalize responses automatically. Preferences compound over time — corrections like "use TypeScript, not JavaScript" are captured and injected into future sessions.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 pref0 技能。 若已安装,则直接安装 pref0 技能。

Overview

Skill Key
fliellerjulian/pref0
Author
fliellerjulian
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/fliellerjulian/pref0
Latest Commit SHA
0fb5c046213e771a3a38167a9db7a3351f60e7ef

Extracted Content

SKILL.md excerpt

# pref0 — Preference Learning for AI Agents

You have access to the pref0 API. It learns user preferences from conversations and serves them back at inference time. The more conversations you track, the better it gets.

## When to use this skill

### After a conversation ends → Track it

After finishing a conversation (or at natural breakpoints), send the messages to pref0 so it can extract preferences. This is especially valuable when the user **corrects** you (e.g., "use pnpm, not npm") or states explicit preferences (e.g., "always use metric units").

### Before responding to a user → Fetch their preferences

Before generating a response, fetch the user's learned preferences and follow them. This prevents the user from having to repeat themselves across sessions.

## API Reference

**Base URL:** `https://api.pref0.com`
**Auth:** `Authorization: Bearer $PREF0_API_KEY`

### Track a conversation (POST /v1/track)

Send a conversation so pref0 can learn from it. It extracts corrections, explicit preferences, and behavioral patterns automatically.

```bash
curl -X POST https://api.pref0.com/v1/track \
  -H "Authorization: Bearer $PREF0_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "<user-id>",
    "messages": [
      { "role": "user", "content": "Help me set up a new project" },
      { "role": "assistant", "content": "Here is a project using npm and JavaScript..." },
      { "role": "user", "content": "Use pnpm, not npm. And TypeScript." },
      { "role": "assistant", "content": "Updated to pnpm and TypeScript..." }
    ]
  }'
```

**Response:**
```json
{
  "messagesAnalyzed": 4,
  "preferences": { "created": 2, "reinforced": 0, "decreased": 0, "removed": 0 },
  "patterns": { "created": 1, "reinforced": 0 }
}
```

The response tells you how many messages were processed (`messagesAnalyzed`) and exactly what changed: `created` (new preference learned), `reinforced` (existing preference seen again, confidence increased), `decreased` (user retr...

Related Claw Skills