Lorekeeper scripts.instructions.md

Instructions for reviewing scripts in a repository's scripts/ folder. They focus on safe reruns, clear failures, destructive operations, and consistency with project setup conventions.

In plain words
What is it for?
Use them when reviewing setup, migration, or workflow scripts for idempotence, quoting, exit codes, rollback or dry-run options, and unsafe file operations.
Why use it?
They help catch scripts that could duplicate work, corrupt data, hide failures, or perform risky file changes.

Instructions file for GitHub Copilot

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 instructions/jessinra/lorekeeper/scripts
Clone the repo
git clone --depth 1 https://github.com/Jessinra/Lorekeeper

Made for: GitHub Copilot.

Per session 244 This file is loaded in full into every session.
When invoked 244 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00244 $0.00244
Opus 5 $0.00122 $0.00122
Sonnet 5 $0.00049 $0.00049
Haiku 4.5 $0.00024 $0.00024

Measured yesterday against content hash 1f80b207a715, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Lorekeeper scripts.instructions.md 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 yesterday.

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.

.github/instructions/scripts.instructions.md · 31 lines

What it actually says

Scripts Guidelines

Scope

Apply these rules to repo scripts in scripts/.

Review focus

  • Scripts should be safe to rerun unless they are explicitly one-shot migrations.
  • Prefer idempotent behavior and clear exit codes.
  • Be careful with destructive actions: deletes, overwrites, resets, and bulk rewrites.
  • Keep setup scripts and migration scripts aligned with the current repo conventions.

Repo conventions

  • scripts/setup.sh is the main onboarding / sync script.
  • If a script installs hooks, skills, or config, make sure it still works on a fresh clone.
  • If a script changes persisted data, verify there is a rollback or dry-run path when practical.
  • If a script touches agent workflow, confirm it does not conflict with CLAUDE.md.

Review style

  • Favor explicitness over clever shell tricks.
  • Flag unchecked variables, unquoted expansions, and risky rm / mv / cp usage.
  • Prefer small helper functions over long inline command chains.
  • If the script is expected to be re-run, confirm it does not duplicate work or corrupt state.
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. yesterday First seen · 31 lines · 244 tokens per session scan A 1f80b207a715

Subscribe to this mod's changes

Lorekeeper scripts.instructions.md is an instructions file published in the GitHub repository Jessinra/Lorekeeper (4 stars, last pushed 29d ago), licensed Apache-2.0. It adds 244 tokens to every session, about $0.0012 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.