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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/fliellerjulian/pref0pref0 — 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.
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:
{
"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 retracted, confidence lowered), removed (fully retracted and deleted).
Get learned preferences (GET /v1/profiles/:userId)
Retrieve the user's learned preference profile. Use ?minConfidence=0.5 to only get well-learned preferences suitable for system prompt injection.
curl https://api.pref0.com/v1/profiles/<user-id>?minConfidence=0.5 \
-H "Authorization: Bearer $PREF0_API_KEY"
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-fliellerjulian-pref0": {
"enabled": true,
"auto_update": true
}
}
}