# Send Instruction Anchor Guard to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "instruction-anchor-guard",
    "name": "Instruction Anchor Guard",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/Dalomeve/instruction-anchor-guard",
    "canonicalUrl": "https://clawhub.ai/Dalomeve/instruction-anchor-guard",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/instruction-anchor-guard",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=instruction-anchor-guard",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/instruction-anchor-guard"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/instruction-anchor-guard",
    "downloadUrl": "https://openagent3.xyz/downloads/instruction-anchor-guard",
    "agentUrl": "https://openagent3.xyz/skills/instruction-anchor-guard/agent",
    "manifestUrl": "https://openagent3.xyz/skills/instruction-anchor-guard/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/instruction-anchor-guard/agent.md"
  }
}
```
## Documentation

### Instruction Anchor Guard

Prevent loss or drift of user-critical constraints during compaction, session restart, or long multi-turn tasks.

### When To Trigger

Trigger when any of these appear:

User marks an instruction as important, critical, must, always, never, highest priority, rule, or constraint
A task has more than 3 steps and spans multiple turns
Compaction happened (or is likely) and the task has non-negotiable requirements
Agent behavior shows possible drift from prior explicit user constraints

### Anchor Ledger Schema

Store anchors in first available path:

memory/anchors.md
memory/instruction-anchors.md
.anchors.md (workspace root fallback only)

Entry schema (append-only, one section per anchor):

## Anchor: <id>
- **source**: <session-id|message-id|user>
- **instruction**: <canonical instruction text>
- **verbatim**: <short quote from user>
- **priority**: P0 | P1 | P2
- **scope**: global | session | task:<id> | channel:<id>
- **createdAt**: <ISO-8601 timestamp>
- **expiresAt**: <ISO-8601 timestamp or "never">
- **status**: active | paused | expired | superseded
- **signature**: <stable hash of canonical instruction>
- **supersedes**: <anchor-id or none>

### 1) Capture

Parse latest user message for candidate anchor statements
Keep only instruction/constraint content; remove examples/chatter
Assign default values:

priority: P1 (unless user says critical/highest -> P0)
scope: session (unless user explicitly asks global/task scope)
expiresAt: session end (unless user explicitly sets never/date)

### 2) Confirm for Broad Anchors

If scope is global or priority is P0, ask a one-line confirmation before persisting
Do not auto-promote P2/P1 to P0 without explicit user intent

### 3) Persist

Append anchor entry to ledger
If new anchor conflicts with old same-scope anchor, mark old one superseded
Never rewrite history silently; keep audit trail

### 4) Rehydrate (each turn and after compaction)

Load active anchors (status=active and not expired)
Build an in-memory ANCHOR_SET sorted by priority and recency
Inject ANCHOR_SET into planning phase before tool execution

### 5) Drift Check (before final answer and before destructive actions)

Compare current plan against active anchors
On conflict:

P0 conflict: stop and correct plan immediately
P1 conflict: auto-correct and note adjustment
P2 conflict: continue only if no user-level contradiction


Emit DRIFT_CHECK block in response

### Conflict Resolution

Priority order:

System and safety policy
User anchors (P0 > P1 > P2)
Current-turn temporary preferences

Tie-breakers:

More specific scope wins (task > session > global) if same priority
Newer anchor wins if same priority and same scope
Explicit user override wins only when safety is not violated

### Output Template

When anchors exist, include this compact block:

ANCHORS_ACTIVE
| ID | P | Scope | Expires | Instruction |
|----|---|-------|---------|-------------|
| anchor-001 | P0 | global | never | Never perform destructive data deletion without confirmation |

PLAN_GUARD
- Current action: <action>
- Conflicts: none | <anchor ids>
- Decision: clear | corrected | paused-awaiting-user

DRIFT_CHECK
- Last anchor sync: <timestamp>
- Drift: no | yes
- Fix applied: <none|what changed>

### Safety Boundaries

Never store tokens, API keys, passwords, cookies, or auth headers
Never store raw personal data unless strictly required by user instruction
Redact sensitive literals as [REDACTED]
Store constraints, not datasets
Do not execute destructive commands solely because an anchor exists; still require explicit confirmation for destructive actions

### Expiry and Maintenance

Mark expired when expiresAt < now
Support control intents:

/anchors list
/anchors pause <id>
/anchors resume <id>
/anchors delete <id>
/anchors pin <id> never


Rotate ledger when > 200 entries into memory/anchors-archive-YYYY-MM.md

### Integration Notes

Pair with memory-self-heal for retry/fallback after drift correction
Pair with task-execution-guard to enforce anchor checks at each milestone
Keep this skill deterministic and concise; avoid free-form interpretation when conflict exists
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Dalomeve
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/instruction-anchor-guard)
- [Send to Agent page](https://openagent3.xyz/skills/instruction-anchor-guard/agent)
- [JSON manifest](https://openagent3.xyz/skills/instruction-anchor-guard/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/instruction-anchor-guard/agent.md)
- [Download page](https://openagent3.xyz/downloads/instruction-anchor-guard)