realign

realign is a skill for Claude Code, Codex from melodic-software/claude-code-plugins. It costs 193 tokens per session (2,396 once invoked), scanned A, original, MIT.

An assisted editor for moving repository instructions to the folders and files where an agent will load them. Each proposed move is shown for human approval before it changes the repository.

In plain words
What is it for?
Use it to apply the findings of an instruction-placement audit one item at a time and create path-specific rule files.
Why use it?
It reduces the risk that narrowly scoped rules are placed in always-loaded instructions, or that important guidance is hidden where the agent will not see it.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the instruction-placement plugin — 3 skills shipped together

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/melodic-software/claude-code-plugins/realign
Any agent
npx skills add melodic-software/claude-code-plugins --skill realign
Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code, Codex.

Or install instruction-placement, the plugin that ships this one along with the rest of its 3 skills.

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 realign

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/realign.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/realign)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/realign"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/realign.svg" alt="Measured on agentmods" height="20"></a>
Per session 193 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,396 The whole file, excluding the scripts and references it only reads on demand.
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.00193 $0.02396
Opus 5 $0.00097 $0.01198
Sonnet 5 $0.00039 $0.00479
Haiku 4.5 $0.00019 $0.00240

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

Security

Grade A, and why

realign 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.

plugins/instruction-placement/skills/realign/SKILL.md · 171 lines

How it starts

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

Pre-computed context

!"${CLAUDE_PLUGIN_ROOT}/scripts/precompute.sh" realign 2>/dev/null || echo "- Orientation unavailable"

Purpose

Execute what the audit found, one finding at a time, with the operator deciding each one. This is the only mutating surface in this plugin, and the per-item gate below is the entire reason it is safe to point at a repository nobody has reviewed.

What makes these edits unusual is their target: every file this skill touches is a file that steers the agent's own behavior. A bad code edit fails a test. A bad instruction edit quietly changes what the agent does in every future session, and nothing goes red.

Read these before executing anything

Not restated here. A paraphrase inside a proposal is a drift seed.

Read For
../../context/findings-artifact.md The artifact's location, fields, status vocabulary, merge rules
../../context/routing-rubric.md The hard-deny classes and what each destination means
../../context/verified-mechanics.md Why the shim is mandatory and why the index exists
context/apply-recipes.md The exact edit sequence per destination, and the verification each one owes

The per-item gate

Nothing mutates without an explicit acceptance of that finding, from the operator, at the moment it is presented. Say so in the run's opening line, then hold it literally.

  • One finding, one acceptance. Accepting IP-003 authorizes IP-003 and nothing else, not its neighbours, not the rest of its file, not the obvious next one.
  • Blanket approval is not the gate. "Approve everything", "do whatever the audit says", and a standing authorization from earlier in the session are all declined, out loud, with an offer to walk the findings one at a time. This is not pedantry: the whole value of the gate is that a human looked at each destination, and a blanket yes means nobody did.
  • Present before asking. The source and its line range, the destination, the exact paths: glob with its validated match count, what leaves the always-loaded budget, and the cost: subagent invisibility, and post-compaction behavior for that destination.
  • A decline is recorded, not argued. Write declined into the artifact and move on. A declined finding is not re-proposed by a later audit.

Read the full file on GitHub · 171 lines

Files

What ships with it

2 files 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. yesterday First seen · 171 lines · 193 tokens per session scan A cdb9ca569ba7

Subscribe to this mod's changes

realign is a skill published in the GitHub repository melodic-software/claude-code-plugins (14 stars, last pushed yesterday), licensed MIT. It adds 193 tokens to every session and 2,396 once invoked, about $0.0010 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-09-03.

Related

Other skills, from other repositories

parallel-orchestrator

Manage parallel Claude Code workstreams using git worktrees. Use when: splitting large tasks across multiple workers, coordinating parallel development, monitoring worker progress, integrating completed work, analyzing work item documents (code reviews, issue lists). Triggers: parallel, orchestrator, worktrees…

jimmc414/claude-code-plugin-marketplace · 78 tokens

kanban-dev-lane

Use when a Hermes Kanban worker wants to run an autonomous implementation delegation lane with a 3-tier fallback chain across claudy -> codex (--yolo) -> agyd (agy --dangerously-skip-permissions) -> Hermes direct on quota exhaustion.

epicsagas/plugins · 58 tokens

survey

プロジェクト文脈を把握し .claude/context.md を作成する.新しいプロジェクトを始めるときに使う.context.md が既にある場合は /groundwork:theory を使う..

tomoking2004/claude-plugins · 55 tokens

implementation-spec

Master orchestrator that generates all implementation specs (PRD, Architecture, UX, Implementation, Test, Release) from product plan. Use when generating complete specification package.

rshankras/claude-code-apple-skills · 36 tokens

monorepo

Monorepo management (Nx, Turborepo, pnpm workspaces) — task orchestration, caching, code sharing. Use when setting up monorepo, optimizing builds, or managing multi-package projects.

TheBeardedBearSAS/claude-craft · 48 tokens

work-summary

Generates a project dashboard from MCP work items. Default is a lean, attention-first view: what's in flight, what's blocked, what to do next, what's queued. Use when the user says: project status, what's active, show me the dashboard, work summary, what should I work on, project health, what's blocked, where did I…

jpicklyk/task-orchestrator · 110 tokens