repository-drift-control

repository-drift-control is a skill for Claude Code, Codex from MSiccDev/ai-context-kit. It costs 26 tokens per session (450 once invoked), scanned A, original, MIT.

Um processo para manter alinhados documentos que orientam um projeto, como especificações, modelos, instruções, exemplos e documentação. Evita que diferentes ficheiros passem a dar orientações contraditórias.

In plain words
What is it for?
Serve para auditar alterações em repositórios, atualizar ficheiros dependentes e verificar se políticas e prioridades continuam coerentes depois de uma refatoração.
Why use it?
Remove a necessidade de procurar manualmente todos os documentos afetados por uma mudança. Também ajuda a preservar os termos, caminhos e regras definidos como referência principal.

Skill for Claude CodeCodex

Part of the ai-context-kit plugin — 12 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/msiccdev/ai-context-kit/repository-drift-control
Any agent
npx skills add MSiccDev/ai-context-kit --skill repository-drift-control
Clone the repo
git clone --depth 1 https://github.com/MSiccDev/ai-context-kit

Made for: Claude Code, Codex.

Or install ai-context-kit, the plugin that ships this one along with the rest of its 12 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 repository-drift-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/msiccdev/ai-context-kit/repository-drift-control.svg)](https://agentmods.dev/skills/msiccdev/ai-context-kit/repository-drift-control)
Your own site
<a href="https://agentmods.dev/skills/msiccdev/ai-context-kit/repository-drift-control"><img src="https://agentmods.dev/badge/skills/msiccdev/ai-context-kit/repository-drift-control.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 450 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.00026 $0.00450
Opus 5 $0.00013 $0.00225
Sonnet 5 $0.00005 $0.00090
Haiku 4.5 $0.00003 $0.00045

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

Security

Grade A, and why

repository-drift-control 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 5d 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.

skills/repository-drift-control/SKILL.md · 52 lines

What it actually says

Repository Drift Control

Purpose

Prevent divergence between authoritative specification, operational prompts/templates, and repository-facing documentation.

When To Use

  • Use this skill when specification or governance files change.
  • Use this skill during repo-wide refactors affecting canonical paths or precedence rules.
  • Do not use this skill for isolated content edits without cross-artifact impact.

How to Invoke

Load or attach this file's contents into your AI session to activate the workflow (paste, upload, or reference with #file:skills/repository-drift-control/SKILL.md in VS Code Copilot Chat). In Claude Projects, add it to project knowledge. See Invoking Skills in the README for full platform guidance.

Required Inputs

  • Changed authoritative artifact(s), especially specs/context_aware_ai_session_spec.md.
  • Current canonical path map.
  • List of dependent files expected to be audited.

Workflow

  1. Identify source-of-truth changes and affected dependency set.
  2. Audit templates, prompts, samples, README, and AGENTS for alignment.
  3. Apply consistent terminology and path references.
  4. Verify policy and precedence remain coherent after updates.
  5. Record drift-control outcomes in commit/PR summary.

Output Expectations

  • Aligned artifacts with no stale references.
  • Stable canonical paths and precedence documentation.
  • Clear audit trail of what was updated and why.

Resources

  • Governance contract: ../../AGENTS.md
  • Repository guide: ../../README.md
  • Authoritative model: ../../specs/context_aware_ai_session_spec.md

Constraints And Safety

  • Treat specification as authoritative when conflicts exist.
  • Keep guidance provider-neutral.
  • Preserve canonical path stability unless explicitly migrating.
  • Avoid partial updates that leave dependent artifacts inconsistent.
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. 5d ago First seen · 52 lines · 26 tokens per session scan A 761279a79ba5

Subscribe to this mod's changes

repository-drift-control is a skill published in the GitHub repository MSiccDev/ai-context-kit (12 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 450 once invoked, about $0.0001 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-30.