---
name: fulcra-prefs
description: "Load the user's cross-platform preferences at session start and capture new ones the moment they're expressed. Trigger when the user says 'remember that I…', 'from now on…', 'I always/never want…', corrects a preference you applied, or confirms a pattern you noticed — and at the start of any session where user preferences would change your behavior."
homepage: "https://github.com/fulcradynamics/agent-skills/tree/main/skills/fulcra-prefs"
license: "MIT"
user-invocable: true
metadata: { "openclaw": { "emoji": "⚙️" } }
title: fulcra-prefs
canonical_url: https://skilld.dev/gh/fulcradynamics/agent-skills/fulcra-prefs
last_updated: 2026-10-08T15:30:18.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install fulcradynamics/agent-skills/fulcra-prefs`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/fulcra-prefs`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/fulcradynamics/agent-skills/fulcra-prefs) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/fulcra-prefs`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/fulcra-prefs --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/fulcra-prefs --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# fulcra-prefs

The user's preferences and facts live in their Fulcra account as typed, decaying signals. Your job is to **LOAD** them at session start, **APPLY** them, and **CAPTURE** new ones as they are expressed.

We use the base `fulcra-api` CLI and standard Fulcra Custom Annotations (specifically a `MomentAnnotation` named "User Preference") to manage this cross-platform preference system natively.

## Bootstrapping (First Time Setup)

If you have never set up the preference system before, you must create the schema.

1. Check if the schema exists:
   ```bash
   uv tool run fulcra-api catalog --user-only | jq '[.[] | select(.name == "User Preference")]'
   ```
2. If it does not exist, create it:
   ```bash
   uv tool run fulcra-api data-type create MomentAnnotation "User Preference" --description "Cross-platform user preferences and facts"
   ```
   **Capture the returned `"id"`** (e.g., `com.fulcradynamics.annotation.xyz`). You will need this ID for loading and capturing preferences.

## Load Preferences

Run this early in any session where you need context about the user's preferences:

1. Retrieve all recorded preferences using the schema ID:
   ```bash
   uv tool run fulcra-api get-records MomentAnnotation "10 years" | jq '[.[] | select(.source_id == "<USER_PREFERENCE_ID>")]'
   ```
2. The output will contain JSON payloads in the `data` field representing individual preference signals.
3. Review these signals and **synthesize** them into your working context. If there are conflicting signals for the same "key" (e.g., an older preference vs. a newer correction), always honor the most recent one.

## Capture Preferences

Capture creates durable records on the user's Fulcra timeline. Be conservative: capture what the user SAID or CONFIRMED, not silent inferences.

**When to Capture:**
- **Explicit asks:** "remember that I…", "from now on…", "I always/never want…"
- **Corrections:** "no, I prefer X"
- **Confirmed patterns:** A pattern you observed and the user confirmed when asked.

**DO NOT capture:**
- Unconfirmed inferences, one-off task context, credentials, health details the user didn't ask to store, or another person's preferences.

### How to Capture (Recording)

When capturing a preference, you must construct a single stringified JSON object for the `data` field that conforms to the `MomentAnnotation` spec. Because the spec expects a single `note` field, you must serialize your entire preference structure into a string and store it inside the `note` property. 

The inner serialized string should represent the preference logically (e.g., `key`, `value`, `scope`, `strength`).

Record the preference using the Fulcra Ingest API (injecting the token securely):

```bash
curl -i -X POST \
  -H "Authorization: Bearer $(uv tool run fulcra-api auth print-access-token)" \
  -H "Content-Type: application/json" \
  -d '{
    "metadata": {
      "data_type": "MomentAnnotation",
      "tags": [],
      "recorded_at": "<CURRENT_ISO_8601_UTC_TIMESTAMP>",
      "content_type": "application/json",
      "source": [
        "<USER_PREFERENCE_ID>"
      ]
    },
    "data": "{\"note\": \"{\\\"key\\\": \\\"comms.tone.concise\\\", \\\"value\\\": true, \\\"scope\\\": \\\"global\\\", \\\"strength\\\": 1.0}\"}"
  }' \
  https://api.fulcradynamics.com/ingest/v1/record
```

## Rules

- NEVER print or store the user's access token.
- Respect scopes: per-platform overrides beat global.
- Negative strength = aversion (don't suggest what they dislike; do not use `.not` keys).
- Capture is consent-adjacent: only capture what the user said or explicitly confirmed.
