Agent skill

Ref Audit

by Abilityai in Abilityai/cornelius

Integrity report for a reference scope — the reference-scope analog of /coherence-sweep.

MITAuto-check: notesKnowledge Management

Install Ref Audit

skills CLI
$ npx skills add Abilityai/cornelius --skill ref-audit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Abilityai/cornelius ref-audit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Abilityai/cornelius.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/ref-audit .claude/skills/ref-audit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ref-audit
GitHub stars
109
Token cost
~1.8k tokens
SKILL.md length
501 words
Files
1
Skills in repo
51
Repo updated
First seen
Licence
MIT

At a glance

Integrity report for a reference scope — the reference-scope analog of /coherence-sweep.

  • Works in 3 steps: Collect the family + frontmatter → Run the checks (read-only) → Write the report + summarise
  • Knowledge Management work in your project
  • SKILL.md covers State Dependencies, The contract this audits, Process and Verification, plus 1 more section
  • Calls git

What it does

Ref Audit is an agent skill from Abilityai/cornelius. Integrity report for a reference scope — the reference-scope analog of /coherence-sweep. Scans every entity note for provenance violations (any note not provenance:reference), type/relationship enum violations, missing/invalid asof, status/supersededby integrity, dangling wiki-links, orphan entities, and duplicate-entity candidates. READ-ONLY — it reports, it never fixes (fixes are ref-reconcile). Company is the default scope. Safe to run unattended.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management. The repository describes itself as: AI-powered second brain template for Claude Code + Obsidian. The licence is MIT.

When your agent uses it

  • Knowledge Management work in your project

Example prompts

  • “/ref-audit”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Bash, Glob, Grep

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Collect the family + frontmatter
  2. Run the checks (read-only)
  3. Write the report + summarise

What it can do on your machine

Read from SKILL.md and the folder at commit fd5e9a4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Bash
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ref Audit loads about 1.8k tokens when it runs. Until then it costs about 117 tokens; SKILL.md has 501 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~117
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Bash, Glob, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Abilityai/cornelius at commit fd5e9a4, republished under its MIT licence (© Abilityai). 501 words, ~1,783 tokens.

Download SKILL.mdSave it as .claude/skills/ref-audit/SKILL.md (or your agent's skills folder).
name
ref-audit
description
Integrity report for a reference scope — the reference-scope analog of /coherence-sweep. Scans every entity note for provenance violations (any note not provenance:reference), type/relationship enum violations, missing/invalid as_of, status/superseded_by integrity, dangling wiki-links, orphan entities, and duplicate-entity candidates. READ-ONLY — it reports, it never fixes (fixes are ref-reconcile). Company is the default scope. Safe to run unattended.
allowed-tools
Read, Write, Bash, Glob, Grep
automation
autonomous
user-invocable
true
argument-hint
[scope=Company] [--json]
metadata.version
1.1
metadata.created
2026-07-08
metadata.author
Cornelius
metadata.changelog
1.1: Report template now includes the Freshness (vs SLA) section it already emitted; explicit audit/reconcile boundary note (structural links only…

Ref Audit

ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of metadata.changelog above — e.g. ref-audit v1.0 — recent: initial version. Then proceed.

The integrity health check for a reference scope. It answers "is the source of truth still canonical, well-formed, and honestly stamped?" It is read-only: it produces a report and prints a summary. It never edits (repairs/merges are /ref-reconcile, which is human-gated) — that is exactly what makes it autonomous-safe.

Read first: resources/layered-brains/COMPANY-BRAIN-SCHEMA.md (the enum + temporal contract) and resources/layered-brains/REFERENCE-SCOPE-SCHEMA.md (the reference-kind contract). This skill checks notes against those docs.

State Dependencies

SourceLocationReadWriteDescription
Company familyBrain/Company/{people,orgs,products,engagements,market}/*.md✓Entity notes audited
Reportsresources/company-brain/reports/✓ref-audit-YYYY-MM-DD.md

The contract this audits

  • provenance: every note must be provenance: reference. Anything else = a leak (a cognitive note crept in, or an insight was mis-filed here).
  • type ∈ person · organization · product · agent · engagement · interaction.
  • relationship ∈ (by type) person: self-team·client-contact·counsel·prospect·partner-contact; organization: self·client·prospect·partner·vendor·competitor·investor; product: own·competitor. agent/engagement/interaction carry no relationship.
  • as_of: present + a valid YYYY-MM-DD.
  • status ∈ active · superseded; a superseded note MUST have a superseded_by: "[[...]]" that resolves.
  • partition rule: a relationship: competitor note belongs in market/; a transacted entity does not.
  • links: every [[wiki-link]] resolves to an existing note; every entity has at least one relation (no orphans).

Process

Step 1 — Collect the family + frontmatter
bash
cd $PROJECT_ROOT
SCOPE="${scope:-Company}"
ls Brain/$SCOPE/*/*.md | wc -l          # total entity notes
Step 2 — Run the checks (read-only)

Scan every Brain/$SCOPE/*/*.md. Use grep sweeps as the fast path, then Read the flagged notes to confirm:

bash
cd Brain/Company
# provenance violations
for f in */*.md; do grep -qE '^provenance: reference$' "$f" || echo "PROVENANCE  $f"; done
# type enum violations
grep -rhoE '^type: .*' */*.md | sort -u        # eyeball against the allowed set
# missing as_of / bad date
for f in */*.md; do grep -qE '^as_of: [0-9]{4}-[0-9]{2}-[0-9]{2}$' "$f" || echo "AS_OF       $f"; done
# superseded without a superseded_by
for f in */*.md; do grep -qE '^status: superseded' "$f" && ! grep -qE '^superseded_by:' "$f" && echo "SUPERSEDED  $f"; done
# competitor sitting outside market/
grep -rlE '^relationship: competitor' */*.md | grep -v '^market/' | sed 's/^/PARTITION   /'

For dangling links and orphans, extract [[...]] targets across the family, resolve each against existing note basenames, and list unresolved targets + notes with zero in/out links:

bash
# every wiki-link target used
grep -rhoE '\[\[[^]]+\]\]' */*.md | sed -E 's/\[\[([^]|#]+).*/\1/' | sort -u
# every existing entity basename
for f in */*.md; do basename "$f" .md; done | sort -u
# a target in the first list but not the second = dangling

For duplicate candidates, flag near-identical display names / aliases across sub-scopes (fuzzy) for /ref-reconcile to judge — do NOT merge here.

Show full SKILL.md (214 more words)Show less
Step 3 — Write the report + summarise

Write resources/company-brain/reports/ref-audit-YYYY-MM-DD.md (create the dir if absent):

markdown
# Ref Audit — Company — YYYY-MM-DD
Total entity notes: N  (people · orgs · products · engagements · market)

## Violations
- Provenance: <count> [list]
- Type/relationship enum: <count> [list]
- Missing/invalid as_of: <count> [list]
- Status/superseded integrity: <count> [list]
- Partition (competitor outside market/): <count> [list]

## Link integrity
- Dangling links: <count> [note → missing target]
- Orphan entities (no relations): <count> [list]

## Duplicate candidates (for ref-reconcile)
- [[A]] ↔ [[B]] — same entity?

## Freshness (vs per-type SLA)
- Over SLA: <count> [note — as_of N days old vs Xd SLA]
- Next cohort to stale: <sub-scope> on <date>

## Verdict: CLEAN | N issues (M require ref-reconcile)

Print a one-screen summary + the report path. Do not fix anything.

Scope note (the audit/reconcile boundary): this skill checks structural link integrity only — every [[link]] resolves, no orphan. It deliberately does not flag relational asymmetry (A names [[B]] as client but B doesn't back-link) or conflicts (two notes contradict): most A→B links here are legitimately directional references (built on [[Trinity]], competitor of [[X]]), so a blanket reciprocity check would be almost all false positives. That judgment — relation vs reference — lives in /ref-reconcile Step 1, not here. A CLEAN verdict therefore means "well-formed and canonical," not "every link is mutual."

Verification

  • Run against the live family → the total matches ls Brain/Company/*/*.md | wc -l (expect 53), and on the current data expect 0 provenance violations, 0 enum violations, 0 missing as_of (all 53 are provenance: reference, status: active, as_of-stamped).
  • Any dangling links / orphans it finds are listed with the offending note and target.
  • A report file exists at resources/company-brain/reports/ref-audit-<today>.md; no entity note was modified (git status shows only the new report).

This skill must refuse to

  • Edit, merge, delete, or repair any entity note (report-only; hand fixes to /ref-reconcile).
  • Write anything outside resources/company-brain/reports/.
  • Crystallize, lifecycle-classify, or promote a record into a cognitive insight.

© Abilityai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/ref-audit of Abilityai/cornelius.

Open the folder on GitHubat commit fd5e9a4

Compare with similar skills

Ref Audit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ref Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ref Audit this skillAbilityai/cornelius109—~1.8kAutomated safety check: NotesMIT
Baoyu URL To Markdownsdyckjq-lab/llm-wiki-skill2.5k3 repos~3.2kAutomated safety check: PassNone
Logseq Review Workflow Evallogseq/logseq45k—~1kAutomated safety check: PassAGPL-3.0
Obsidian CLIAtmosphere/atmosphere3.8k13 repos~795Automated safety check: PassApache-2.0
Esm Cjs Risk Scanlogseq/logseq45k—~3.3kAutomated safety check: PassAGPL-3.0
Capture Conversationoutline/outline41k—~474Automated safety check: PassCustom licence

Similar skills

  • Baoyu URL To Markdown

    sdyckjq-lab/llm-wiki-skill

    Fetch any URL and convert to markdown using Chrome CDP. An agent skill from sdyckjq-lab/llm-wiki-skill.

    2.5k GitHub starsUsed in 3 repos~3.2k tokens
    Knowledge ManagementAuto-check passed
  • Compare two revisions of the Logseq logseq-review-workflow skill by running the same review prompt against isolated before and after skill snapshots, collecting both outputs, and producing a…

    45k GitHub stars~1k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Obsidian CLI

    Atmosphere/atmosphere

    Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more.

    3.8k GitHub starsUsed in 13 repos~795 tokens
    Knowledge ManagementAuto-check passed
  • Esm Cjs Risk Scan

    logseq/logseq

    Scan Logseq ClojureScript Node/Electron targets for npm module loading risks, especially ESM-only packages that may fail when loaded through js/require or shadow-cljs require-based shims.

    45k GitHub stars~3.3k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Capture Conversation

    outline/outline

    Save the current conversation, a decision, or a set of notes as a document in an Outline collection; use when the user wants to keep what was discussed in their knowledge base.

    41k GitHub stars~474 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Karpathy LLM Wiki

    Astro-Han/karpathy-llm-wiki

    A skill your agent uses when building or maintaining a personal LLM-powered knowledge base.

    2.4k GitHub stars~3.6k tokensUpdated 2 mo ago
    Knowledge ManagementAuto-check passed

More from Abilityai/cornelius

All 51 skills in this repo
  • Nano Banana Image Generator

    Abilityai/cornelius

    Generate images using Google's Nano Banana (Gemini 2.5 Flash Image).

    109 GitHub stars~1.2k tokensUpdated 15 days ago
    Auto-check: notes
  • Changelog Protocol

    Abilityai/cornelius

    Protocol for creating dated changelog files after significant agent sessions.

    109 GitHub stars~555 tokensUpdated 15 days ago
    Auto-check passed
  • Create Article

    Abilityai/cornelius

    Create long-form articles from knowledge base insights. An agent skill from Abilityai/cornelius.

    109 GitHub stars~2.1k tokensUpdated 15 days ago
    Auto-check: notes
  • Epistemic Classification

    Abilityai/cornelius

    Framework for distinguishing research findings from hypotheses and speculative synthesis.

    109 GitHub stars~1.5k tokensUpdated 15 days ago
    Auto-check passed
  • Get Youtube Transcript

    Abilityai/cornelius

    Extract the transcript from a YouTube video by URL or video ID.

    109 GitHub stars~525 tokensUpdated 15 days ago
    Auto-check: notes
  • Insight Capture Format

    Abilityai/cornelius

    Standard format for capturing and documenting insights in the knowledge base.

    109 GitHub stars~616 tokensUpdated 15 days ago
    Auto-check passed

Questions about Ref Audit

What does Ref Audit do?

Integrity report for a reference scope — the reference-scope analog of /coherence-sweep. Ref Audit is an agent skill from Abilityai/cornelius. Integrity report for a reference scope — the reference-scope analog of /coherence-sweep.

When should I use Ref Audit?

Ref Audit fits situations like: knowledge Management work in your project.

How do I install Ref Audit in Claude Code?

Run `npx skills add Abilityai/cornelius --skill ref-audit -a claude-code`. Or copy the skill folder (.claude/skills/ref-audit in Abilityai/cornelius) into .claude/skills/ref-audit in your project. Claude Code loads it when a task matches its description.

How do I install Ref Audit in Codex?

Run `npx skills add Abilityai/cornelius --skill ref-audit -a codex`. Or copy the skill folder (.claude/skills/ref-audit in Abilityai/cornelius) into .agents/skills/ref-audit in your project. Codex loads it when a task matches its description.

Can I use Ref Audit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Abilityai/cornelius --skill ref-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ref-audit, .gemini/skills/ref-audit, .github/skills/ref-audit and .opencode/skills/ref-audit in your project.

What does Ref Audit need to run?

Going by SKILL.md and its folder, Ref Audit needs the command-line tools its instructions call (git). Its frontmatter pre-approves these tools: Read, Write, Bash, Glob, Grep.

Does Ref Audit access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Ref Audit safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Ref Audit use?

Ref Audit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ref Audit use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ref Audit?

Skills that share tags, products or a category with Ref Audit: Baoyu URL To Markdown (sdyckjq-lab/llm-wiki-skill, 2.5k stars), Logseq Review Workflow Eval (logseq/logseq, 45k stars), Obsidian CLI (Atmosphere/atmosphere, 3.8k stars) and Esm Cjs Risk Scan (logseq/logseq, 45k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ref Audit?

Abilityai (a GitHub organization) maintains it in Abilityai/cornelius, which has 109 GitHub stars. The repository holds 51 skills in this directory. The repository was last updated on September 22, 2026.

Source: Abilityai/cornelius on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.