Skip to content
Back to skills

Amrules

ASecurity

This skill should be used when the user types "/amrules", "/amrules" followed by a rule, "/amrules remove 2", "/amrules clear", or says "pin this rule", "never forget this rule", "always follow this", "what rules are pinned", or "unpin rule". It keeps a short list of pinned rules that Claude re-reads before every reply, so they cannot drift in a long chat, and carries them into new chats through /amsave and /amload.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agents

Works with

  • claude code

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add Klopyy/active-memory --skill amrules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Amrules?

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

Security grade badge for Amrules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/klopyy-amrules/badge)](https://www.skillsdirectory.com/skills/klopyy-amrules)

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: amrules
description: >
  This skill should be used when the user types "/amrules", "/amrules" followed by a rule,
  "/amrules remove 2", "/amrules clear", or says "pin this rule", "never forget this rule",
  "always follow this", "what rules are pinned", or "unpin rule". It keeps a short list of
  pinned rules that Claude re-reads before every reply, so they cannot drift in a long chat,
  and carries them into new chats through /amsave and /amload.
metadata:
  version: "0.3.0"
---

# Pinned rules

Long chats bury early instructions. A pinned rule is re-read before **every** reply, so it holds at message 5 and at message 80.

## Commands

| Type | Result |
|---|---|
| `/amrules` | Shows the pinned rules as a numbered list |
| `/amrules <rule>` or `/amrules add <rule>` | Pins the rule, word for word |
| `/amrules remove 2` | Unpins rule 2 |
| `/amrules clear` | Unpins all of them |

Up to 15 rules, each one line. Suggest pinning only rules that must never drift (exact prices and formats, "never do X", naming rules), because the list is re-sent with every message.

## How it works

**In Claude Code** the plugin stores the list and adds it to every message as an `[active-memory] Pinned rules` note. Follow every pinned rule in every reply. When a `/amrules` command arrives, the note says what changed: confirm in one line and show the list.

**Elsewhere** (no plugin note), keep the list yourself:
- When a rule is pinned, repeat the full numbered list in your reply.
- Before each reply, check your draft against every pinned rule.
- Repeat the list in every checkpoint, so it stays near the end of the chat.

## Rules

- Never pin something the user did not ask to pin. You may suggest it in one line ("Want me to pin that with /amrules?") when the user states a rule that clearly must last.
- If a new instruction conflicts with a pinned rule, follow the pinned rule and ask once whether to update it.
- `/amsave` saves the list in the pack (`rules.json`) and in section 4 of the handoff. `/amload` pins them again in the new chat.
- If a code word is active, the reply starts with it.

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.