Skip to content
Back to skills

Pin

ASecurity

Pin an item verbatim for this session, so it survives compaction and /clear: the operator writes \"закрепи: ...\" or types /pin <text>. The text is appended word for word to this session's pins file by scripts/pin.py, and from there it reaches every handoff and the injection after /clear, compact and resume. Do NOT use for \"запомни\" (that creates a Lific issue), for Odin's \"remember\", or for a durable cross-session fact (auto-memory).

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentspythongoshellbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add HEADING-OS-Official/heading-os --skill pin --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pin?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pin
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/heading-os-official-pin/badge)](https://www.skillsdirectory.com/skills/heading-os-official-pin)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pin
# Russian on purpose: the description names the Russian pin trigger.
description: "Pin an item verbatim for this session, so it survives compaction and /clear: the operator writes \"закрепи: ...\" or types /pin <text>. The text is appended word for word to this session's pins file by scripts/pin.py, and from there it reaches every handoff and the injection after /clear, compact and resume. Do NOT use for \"запомни\" (that creates a Lific issue), for Odin's \"remember\", or for a durable cross-session fact (auto-memory)."
argument-hint: "<text to pin>"
allowed-tools: "Bash(.venv/bin/python scripts/pin.py:*)"
metadata:
  author: Misha Hanin
  email: misha.hanin@headingos.com
  version: "1.0"
x-heading-capability:
  what: >
    Stores one item the operator pinned, verbatim, in this session's pins file,
    so compaction and /clear cannot lose or reword it.
  # Russian on purpose: the Russian pin trigger the operator types.
  how: >
    Write "закрепи: <text>" or type /pin <text>. The skill runs scripts/pin.py,
    which writes the text under a lock and atomically. /pin with no text lists
    this session's pins.
  # Russian on purpose: the Russian remember word, which creates a Lific issue instead.
  when: >
    Use for a constraint or a fact that must stay word for word until the work
    ends. For a task to do later use Lific ("запомни"); for a fact that outlives
    the work use auto-memory.
x-heading-routing:
  category: Operations
  label: /pin <text>
  # Russian on purpose: the Russian pin trigger the router matches.
  triggers:
    - "закрепи: <text>"
    - "/pin <text>"
  # Russian on purpose: the Russian remember word, routed to a Lific issue.
  exclusions:
    - "запомни -> Lific issue (.claude/rules/lific.md item 2)"
    - "Odin remember -> /odin"
    - "a fact that outlives the work -> auto-memory"
  router: auto
---

# /pin

Pin one item verbatim for this session. The item then reaches two places:

- every handoff this session writes (`/handover`, `/clear-handover`,
  `/second-wind` and the post-compact handoff);
- what the session start injects after `/clear`, compact and resume.

<!-- Russian on purpose: the Russian remember word, which creates a Lific issue. -->
A pin lasts for the work. After `/clear` the next session inherits the pins.
For a task to do later, "запомни" creates a Lific issue. For a fact that
outlives the work, write an auto-memory record.

## Procedure

### Step 1 - Take the text exactly

<!-- Russian on purpose: the Russian pin trigger the operator types. -->
The text is everything after `закрепи:` or after `/pin`, as the operator wrote
it. Do not reword, shorten, correct or translate it. Line breaks become spaces;
the script does that.

If there is no text, run `.venv/bin/python scripts/pin.py --list` and report its output.
Then stop.

### Step 2 - Write the pin

Pass the text through a quoted heredoc, never as a double-quoted argument. A
double-quoted argument lets the shell run every backtick span in it.

```bash
.venv/bin/python scripts/pin.py <<'PIN'
{the text, exactly as the operator wrote it}
PIN
```

### Step 3 - Report

Reply with the script's first line, which quotes the stored pin. If the script
refused, report its reason in one line and store nothing else. A refusal names
the fix: an item over 500 characters goes in shorter parts, and an item that
looks like a credential stays in `.env`.

## NEVER

<!-- Russian on purpose: the Russian remember word, which creates a Lific issue. -->
- Never reword, shorten, correct or translate a pin
- Never write the pins file yourself; `scripts/pin.py` is the only writer
- Never pin on "запомни": that phrase creates a Lific issue
- Never pin text the operator did not ask to pin

Files in this skill

  • SKILL.md3.7 KB
  • triggers.json939 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.