Claude-Mind: Skill for Claude Code

.claude/skills/prime/SKILL.md

prime is a skill for Claude Code from zkysar1/Claude-Mind. It costs 119 tokens per session (7,189 once invoked), scanned A, original, MIT.

A skill that loads an AI agent's stored identity, shared purpose, recent reasoning, goals, and safeguards into its active context. It is a context-loading step for an agent with persistent knowledge.

In plain words
What is it for?
Use it when starting or resuming an agent session, either broadly or for a particular category of stored knowledge.
Why use it?
It helps the agent begin work with relevant accumulated information instead of relying only on the current conversation.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is zkysar1/Claude-Mind's own configuration. It tells Claude Code how to work on Claude-Mind itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Claude-Mind configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Bash: state=$(bash core/scripts/session-state-get.sh); echo "state=$state".

Reuse

Borrowing it

Nothing to install: this file belongs to zkysar1/Claude-Mind. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zkysar1/Claude-Mind/main/.claude/skills/prime/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zkysar1/Claude-Mind

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prime

README.md
[![agentmods](https://agentmods.dev/badge/skills/zkysar1/claude-mind/prime/github.svg)](https://agentmods.dev/skills/zkysar1/claude-mind/prime)
Your own site
<a href="https://agentmods.dev/skills/zkysar1/claude-mind/prime"><img src="https://agentmods.dev/badge/skills/zkysar1/claude-mind/prime/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prime

Your own site · 80×15
<a href="https://agentmods.dev/skills/zkysar1/claude-mind/prime"><img src="https://agentmods.dev/badge/skills/zkysar1/claude-mind/prime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 220
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 220
    Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
    Fix: Limit tool chaining depth and validate the output of each tool before passing it to the next. Require explicit user approval for multi-step chains.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.07189
Opus 5 $0.00060 $0.03594
Sonnet 5 $0.00024 $0.01438
Haiku 4.5 $0.00012 $0.00719

Measured 8d ago against content hash f4e981aab01e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

prime scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/prime/SKILL.md · 505 lines

How it starts

The opening of the file, as written. The whole thing — 505 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/prime — Context Priming Engine

Loads the agent's accumulated knowledge into active context so that conversations and goal execution start with domain awareness rather than amnesia.

Internal skill: called by boot (RUNNING state) and session start protocol (any mode). Not user-invocable — users enter persona to prime automatically.

Key design: Boot loads the MAP (indexes, summaries). Prime loads the TERRITORY (actual tree node content, reasoning bank entries, guardrail details). Together they give the agent full domain awareness.

Sub-commands

/prime                    — Auto-detect context and prime broadly
/prime --category <cat>   — Prime a single category at deep depth

Phase 0: Load Conventions

Step 0: Load ConventionsBash: load-conventions.sh with each name from the conventions: front matter. Read only the paths returned (files not yet in context). If output is empty, all conventions already loaded — proceed to next step.

Phase 0.5: Agent Mode Detection

# Capture the state check's output FIRST so the IF clause below
# unambiguously refers to it (G3, 2026-05-20). The validate-paths.sh
# call between this and the IF emits multi-line "L3 PATH VALIDATOR"
# text — without naming the variable, a future editor could misread
# the IF as checking validate-paths' output.
Bash: state=$(bash core/scripts/session-state-get.sh); echo "state=$state"
# The trailing echo (H1, 2026-05-20) makes the captured value visible to the
# LLM in the Bash tool's stdout. Without it, the assignment writes to a bash
# subshell variable that dies when bash exits — zero stdout — and the IF
# clause below has no value to compare. Sibling skills use bare `var=$(cmd)`
# as pseudocode convention; /prime's NO_AGENT branch is critical enough to
# warrant explicit echo.

# L3 PATH DEFENSE (g-115-35) — verify local-paths.conf points at paths that
# exist and are writable BEFORE any tree/meta read or write. Fail-open:
# prints WARN on mismatch but never blocks loop entry. Enforcement belongs
# to L1 (write-time hook) and L2 (permission gate).
Bash: validate-paths.sh

# LANE-PIN REVIEW SURFACE (g-115-5901) — sibling of the L3 defense above: a
# fail-open startup advisory that prints and never blocks. A lane pin is a
# durable USER-DIRECTED restriction on this agent's entire work surface; its
# `review_by` column says when a human should LOOK at it again, not when it
# stops binding. Past that date this prints "still enforced — confirm or
# retire" and keeps printing every startup until a human edits the registry row.
#
# The pin is NOT weakened by a lapsed date and the claim gate never consults
# this — a hard expiry would silently hand the agent back a surface the user
# deliberately took away. Before this existed the `expires` column was parsed
# into a field NO caller anywhere in the tree ever read, so a pin could sit
# unexamined forever and the dead field terminated the audit that would have
# found it. Silent when no pin covers this agent, or when none is past due.
Bash: lane-pin-review.sh

IF state == "NO_AGENT":
  → World-only priming mode. Skip all agent-specific steps.
  → Bash: world-cat.sh program.md  # The Program — shared purpose
  → Bash: world-cat.sh knowledge/tree/_tree.yaml  # collective knowledge overview
  → Bash: guardrail-manifest.sh (shared safety rules — id manifest, 100%
    coverage; same budget + expansion rules as Phase 2 item 3)
  → Bash: reasoning-bank-read.sh --recent (shared lessons — bounded; see Phase 2 item 4)
  → Display:
    ═══ WORLD PRIME (no agent) ═══
    PROGRAM: [contents of world/program.md]
    KNOWLEDGE: [tree summary]
    GUARDRAILS: [count] active
    REASONING: [count] active
    ════════════════════════════════
  → Output: "Primed in world-only mode. No agent identity active."
  → DONE (skip all remaining phases)

Read the full file on GitHub · 505 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 505 lines · 119 tokens per session scan A f4e981aab01e

Subscribe to this mod's changes

prime is a skill published in the GitHub repository zkysar1/Claude-Mind (5 stars, last pushed today), licensed MIT. It adds 119 tokens to every session and 7,189 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.