repo-baseline-audit

repo-baseline-audit is a skill for Claude Code, Codex from navikt/copilot. It costs 122 tokens per session (1,227 once invoked), scanned A, original, MIT.

A read-only audit of a GitHub repository against Nav's baseline rules, security guidance, and ordinary repository hygiene. It reports what is met, missing, or unverifiable without changing the repository.

In plain words
What is it for?
Use it to inspect workflows, lockfiles, Docker configuration, deployment files, visibility, README requirements, and accidentally committed environment files, then identify the smallest fix for each gap.
Why use it?
It gives a team a concrete checklist of setup and practice gaps without confusing configuration review with a search for bugs or application vulnerabilities.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect workflows, lockfiles, Docker configuration, deployment files, visibility, README requirements, and accidentally committed environment files, then identify the smallest fix for each gap.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/navikt/copilot/repo-baseline-audit
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.

Any agent
npx skills add navikt/copilot --skill repo-baseline-audit
Clone the repo
git clone --depth 1 https://github.com/navikt/copilot

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-baseline-audit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/navikt/copilot/repo-baseline-audit"><img src="https://agentmods.dev/badge/skills/navikt/copilot/repo-baseline-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,227 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.00122 $0.01227
Opus 5.5 $0.00049 $0.00491
Sonnet 5.5 $0.00024 $0.00245
Haiku 4.5 $0.00012 $0.00123

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

Security

Grade A, and why

repo-baseline-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 13d 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-baseline-audit/SKILL.md · 97 lines

How it starts

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

Repo baseline audit

Audit one repository against Nav's baseline and return a checklist report: what is met, what is missing, what could not be verified, and the smallest fix for each gap. This is a read-only configuration and practice audit, not a hunt for vulnerabilities in application logic.

Establish scope

  1. Resolve the target: the current git checkout by default, plus its owner/repo slug for GitHub settings. Work from the repository root.
  2. Detect what the repository contains — ecosystems and lockfiles, Dockerfile, .nais/ or nais.yaml, workflows, frontend code. A rule applies only when its Applies when condition holds; otherwise it is N/A.
  3. Note visibility. Public repositories have stricter README contact requirements; non-public repositories must justify being closed.

Collect evidence

Load the rule catalogue and the evidence commands. Each rule names the evidence [section] it needs. Collect those sections from the repository root. The commands never change the repository or its settings, run in bash, zsh and PowerShell, and never print secret values. A 403 or 404 from GitHub, or a missing tool, makes the rules that depend on it Not verifiable.

Then assess every applicable rule. For rules marked judgment, sample the code directly and cite file:line.

Judge the evidence

  • A scanner hit is a lead, not a verdict. Apply the playbook's own exceptions before reporting. GitHub-owned actions (actions/*, github/*) may use tags, so zizmor's unpinned-uses on them is not a gap.
  • Missing access means Not verifiable, never Gap. Branch protection, collaborators, deploy keys and alert lists often need admin rights.
  • Triage secret hits. Public client keys, test fixtures and examples are common false positives. Report rule, file and short commit SHA only, never the value. Treat anything plausibly real as compromised: it is a Must gap whose fix is rotation, because history rewrites do not undo exposure.
  • Use the effective setting. Org defaults, ecosystem defaults (pnpm, Nais) and settings inherited from rulesets count as met when the evidence shows they apply.
  • Leave out rules that do not exist. A per-repo SECURITY.md is not required; the org-wide policy in navikt/.github covers every repository.

Read the full file on GitHub · 97 lines

Files

What ships with it

3 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. 13d ago First seen · 97 lines · 122 tokens per session scan A f14cdce7b12b

Subscribe to this mod's changes

repo-baseline-audit is a skill published in the GitHub repository navikt/copilot (65 stars, last pushed yesterday), licensed MIT. It adds 122 tokens to every session and 1,227 once invoked, about $0.0005 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-17.

Related

repo-baseline-audit compared with skills from other repositories

repo-baseline-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-baseline-auditnavikt/copilotSkill65yesterdayMITA122Claude 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