collection

collection is a skill for Claude Code, Codex from luna-prompts/skillnote. It costs 39 tokens per session (685 once invoked), scanned A, original, MIT.

A project setting that chooses which collection of reusable Codex instructions, called skills, is active. The choice is stored in the project and synced into its skills directory.

In plain words
What is it for?
Listing available collections, showing the current choice, switching collections, creating a collection, or using no synced skills.
Why use it?
It lets each project use the instructions relevant to its work without manually copying or changing skill files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/luna-prompts/skillnote/collection
Any agent
npx skills add luna-prompts/skillnote --skill collection
Clone the repo
git clone --depth 1 https://github.com/luna-prompts/skillnote

Made for: Claude Code, Codex.

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 collection

README.md
[![agentmods](https://agentmods.dev/badge/skills/luna-prompts/skillnote/collection.svg)](https://agentmods.dev/skills/luna-prompts/skillnote/collection)
Your own site
<a href="https://agentmods.dev/skills/luna-prompts/skillnote/collection"><img src="https://agentmods.dev/badge/skills/luna-prompts/skillnote/collection.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00039 $0.00685
Opus 5 $0.00019 $0.00342
Sonnet 5 $0.00008 $0.00137
Haiku 4.5 $0.00004 $0.00068

Measured 4d ago against content hash 31e92d020ca9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

collection scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf "${API}/v1/collections" 2>/dev/null || echo "[]"
plugin-codex/skills/collection/SKILL.md · 64 lines

How it starts

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

SkillNote Collection Manager

Help the user choose which skill collection syncs into this project. The choice is stored in ./.skillnote.json; the plugin's sync hook materializes that collection's skills into ./.codex/skills/ on the next prompt.

Resolve the host

HOST=$(cat ~/.skillnote/host 2>/dev/null | tr -d '[:space:]'); HOST=${HOST:-localhost}
API="http://${HOST}:8082"

Step 1: Fetch collections

curl -sf "${API}/v1/collections" 2>/dev/null || echo "[]"

Step 2: Present the choices

Codex has no multiple-choice tool, so present a clear numbered list in plain text and ask the user to reply with a number or name. Build the list in this order:

  1. Recommended first: if basename($PWD) (lowercased, non-alphanumerics → -) matches an existing collection name, list it first and mark it · recommended.
  2. All other existing collections as <name> — <count> skills. Mark the currently-active one (from ./.skillnote.json) with (current).
  3. Create a new collection…
  4. Skip (no skills synced)

Then ask: "Which collection should this project use? (reply with a number or name)" and wait for the reply.

Step 3: Apply the selection

Existing collection

echo '{"collections": ["<SELECTED_NAME>"]}' > ./.skillnote.json
rm -f ./.codex/skills/.last-sync-time   # force an immediate re-sync on the next prompt

Tell the user: "Switched to . Your skills refresh on your next message — or type /skills after a moment."

Create a new collection

Ask for a name in plain text. Validate: must match ^[a-z0-9_-]+$, 1–128 chars, and must not contain anthropic or claude. Re-prompt once if invalid. Then:

curl -sf -X POST "${API}/v1/collections" \
  -H "Content-Type: application/json" \
  -d '{"name": "<NAME>", "description": ""}'

If curl returns 409, the collection already exists — offer to activate it instead. On success, write it to ./.skillnote.json and reset the sync throttle exactly as above.

Read the full file on GitHub · 64 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 64 lines · 39 tokens per session scan A 31e92d020ca9

Subscribe to this mod's changes

collection is a skill published in the GitHub repository luna-prompts/skillnote (59 stars, last pushed 20d ago), licensed MIT. It adds 39 tokens to every session and 685 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.