repo-pii-audit

repo-pii-audit is a skill for Claude Code, Codex from navikt/copilot. It costs 60 tokens per session (2,667 once invoked), scanned A, original, MIT.

A procedure for finding personal information in repository files and Git history, then planning safe cleanup. Personal information includes data such as national identification numbers and sensitive log entries; Git history is the record of earlier project versions and changes.

In plain words
What is it for?
Use it to audit a repository for personal information, sensitive test data, or logs, and to prepare an approved cleanup using tools such as BFG Repo-Cleaner or git-filter-repo.
Why use it?
It separates auditing from deleting or rewriting evidence, reducing the risk of damaging history, losing signatures, or exposing more data during cleanup. It also checks related places such as branches, pull requests, logs, backups, and deployed artifacts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git-filter-repo --sensitive-data-removal --replace-text ../restricted-replacements.txt.

Good fit Use it to audit a repository for personal information, sensitive test data, or logs, and to prepare an approved cleanup using tools such as BFG Repo-Cleaner or git-filter-repo.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/navikt/copilot
agentmods
npx agentmods add skills/navikt/copilot/repo-pii-audit

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 repo-pii-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/navikt/copilot/repo-pii-audit/github.svg)](https://agentmods.dev/skills/navikt/copilot/repo-pii-audit)
Your own site
<a href="https://agentmods.dev/skills/navikt/copilot/repo-pii-audit"><img src="https://agentmods.dev/badge/skills/navikt/copilot/repo-pii-audit/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 repo-pii-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/navikt/copilot/repo-pii-audit"><img src="https://agentmods.dev/badge/skills/navikt/copilot/repo-pii-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,667 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.
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.00060 $0.02667
Opus 5.5 $0.00024 $0.01067
Sonnet 5.5 $0.00012 $0.00533
Haiku 4.5 $0.00006 $0.00267

Measured 25d ago against content hash 00654a5dc73b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

repo-pii-audit 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 25d 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/repo-pii-audit/SKILL.md · 99 lines

How it starts

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

Repository PII audit and cleanup

Audit first. Do not rewrite history, delete evidence, force-push, change protections, or contact third parties without explicit approval for that action. A request to audit is not permission to clean up.

History rewriting is rød sone — forstå dette grundig: explain the affected refs, lost signatures, changed SHAs, dependent systems, and recovery limits before asking for approval. Follow repository rules even if a generic cleanup guide suggests bypassing protections.

1. Establish scope and contain exposure

  • Read AGENTS.md, security policy, and incident procedures. Confirm repository, owner, visibility, approved local workspace, audit time, and whether the clone is shallow or partial. Never execute repository code or hooks to inspect it.
  • Identify current tracked, staged, unstaged, untracked and ignored files; all available branches and tags; commit/tag messages and author/committer identities; filenames; submodules and Git LFS. A mirror is not a copy of every server-side object.
  • Include forks, other clones, PR refs/diffs/comments, issues, wikis, releases, Actions logs/artifacts/caches, packages, deployed images, backups and external indexes as separate surfaces. Establish which are accessible and who owns them.
  • Treat real personal data as a potential incident. Notify the repository owner and use the approved security/privacy channel; involve the privacy officer for notification and retention decisions. Do not make legal breach-reporting decisions yourself. Rotate/revoke exposed credentials immediately through the owner; PII cannot be rotated.
  • Keep raw data out of prompts, tool output, terminal scrollback, CI logs, tickets and PRs. Use an approved local-only scanner with network/telemetry disabled or verified absent. Do not send suspected data to an external model or online validator.
  • Store reports, replacement maps and any necessary original copy outside the repo in approved restricted storage. Use restrictive permissions (umask 077), minimal access, an owner and a deletion deadline. Backups preserve the exposure: make them only if incident policy permits. Do not assume deleting a local file securely erases SSDs or backups.

Read the full file on GitHub · 99 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. 25d ago First seen · 99 lines · 60 tokens per session scan A 00654a5dc73b

Subscribe to this mod's changes

repo-pii-audit is a skill published in the GitHub repository navikt/copilot (65 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 2,667 once invoked, about $0.0002 per session on Opus 5.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-11-05.

Related

repo-pii-audit compared with skills from other repositories

repo-pii-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-pii-auditnavikt/copilotSkill65yesterdayMITA60Claude Code, Codex
artifactscloudflare/skillsSkill3.5k4d agoApache-2.0A66Claude Code
skill-upstream-prluongnv89/asmSkill976todayMITA56Claude Code
skill-changelogluongnv89/asmSkill976todayMITA53Claude Code
github-review-prfeiskyer/claude-code-settingsSkill1.7k25d agoMITA90Claude Code
meanest-editorelvisun/newsjackSkill1.7k4d agoMITA33Claude Code
ai-visibility-writingelvisun/newsjackSkill1.7k4d agoMITA137Claude Code