codesage: Skill for Codex

.agents/skills/sync-refs/SKILL.md

sync-refs is a skill for Codex from iliaal/codesage. It costs 43 tokens per session (2,126 once invoked), scanned A, original, MIT.

A workflow for refreshing CodeSage reference copies and reviewing changes from their upstream sources. It also creates or updates recommendation entries in the project's ledger, a tracked list of work items.

In plain words
What is it for?
Use it to run a reference sweep, optionally from a specified date, and deliver findings and checkpoints through the CodeSage ledger.
Why use it?
It provides a controlled way to compare references and record follow-up work without directly implementing recommendations or changing unrelated files.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions Codex; $skill-name invocation.

This is iliaal/codesage's own configuration. It tells Codex how to work on codesage itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codesage configures →

Reuse

Borrowing it

Nothing to install: this file belongs to iliaal/codesage. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/iliaal/codesage/master/.agents/skills/sync-refs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/iliaal/codesage

Made for: 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 sync-refs

README.md
[![agentmods](https://agentmods.dev/badge/skills/iliaal/codesage/sync-refs/github.svg)](https://agentmods.dev/skills/iliaal/codesage/sync-refs)
Your own site
<a href="https://agentmods.dev/skills/iliaal/codesage/sync-refs"><img src="https://agentmods.dev/badge/skills/iliaal/codesage/sync-refs/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 sync-refs

Your own site · 80×15
<a href="https://agentmods.dev/skills/iliaal/codesage/sync-refs"><img src="https://agentmods.dev/badge/skills/iliaal/codesage/sync-refs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,126 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.00043 $0.02126
Opus 5.5 $0.00017 $0.00850
Sonnet 5.5 $0.00009 $0.00425
Haiku 4.5 $0.00004 $0.00213

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

Security

Grade A, and why

sync-refs 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 17d 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.

.agents/skills/sync-refs/SKILL.md · 161 lines

How it starts

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

Reference sweep

This is the canonical workflow for Codex $sync-refs and Claude /sync-refs. Ledger labels keep their historical sweep names (source:sweep-refs, sweep:*, sweep-key:*); do not rename them. The Claude command only links here. Work from the CodeSage repository root; mirrors live in ~/ai/codesage_ref/. Accept no argument, YYYY-MM-DD, or since YYYY-MM-DD; validate the calendar date and reject malformed or future dates before mutations. Arguments are prompt input, not environment variables.

Deliver recommendations and sweep checkpoints through CodeSage's central br ledger. Do not create, update, or stage landscape/recommendations Markdown. Existing notes are read-only bootstrap history. Do not implement recommended changes, delete legacy notes, commit, push, or post externally without separate authorization. Preserve unrelated work. Use the writing skill for bead prose; prefix shell commands with rtk, using rtk proxy for raw/machine-parsed data.

Baseline and migration

  1. Read the repository's beads protocol and, if available, the CLI-contract sections of the beads review-ledger protocol. Run rtk proxy br info --json from CodeSage and confirm its central store. Never create .beads in this repo or bypass the wrapper. Capture initial Git status, CodeSage HEAD, and UTC start time. Verify mutation flags against current br <command> --help.
  2. Read rtk proxy br list --status all --deferred --limit 0 --json; check has_more and paginate if needed, including closed/deferred records. Lists return an object with issues; br show ID --json returns a one-element array with comments. Missing labels means none. Search beyond sweep-labeled records.
  3. Reuse the tracking task labeled source:sweep-refs and sweep:tracker. Create a P2 task Reference sweep: checkpoint and next review only if none exists. If several exist, reconcile their histories before selecting one. Keep it open: it stores inventory, migration mapping, and the next due date.
  4. Use its latest complete sweep checkpoint as the baseline. Partial runs, migration-only audits, generic updated_at, and recommendation edit dates are not completed upstream sweeps. A supplied date overrides the comparison floor, not the carried-item audit. If migration is complete but no full sweep has run yet, use the historical floor preserved in the migration record. Its locally observed mirror HEADs are inventory evidence, not analyzed baselines.

Read the full file on GitHub · 161 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. 17d ago First seen · 161 lines · 43 tokens per session scan A 3a687bc34e95

Subscribe to this mod's changes

sync-refs is a skill published in the GitHub repository iliaal/codesage (22 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 2,126 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-15.

Related

sync-refs compared with skills from other repositories

sync-refs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync-refsiliaal/codesageSkill22todayMITA43Codex
graphbartolli/codannaSkill7659d agoApache-2.0A131Claude Code
x-raybartolli/codannaSkill7659d agoApache-2.0A25Claude Code
codebase-searchHelweg/open-codebase-indexSkill235todayMITA38Claude Code
gnogmickel/gnoSkill1174d agoMITA86Claude Code
codebase-searchHelweg/open-codebase-indexSkill235todayMITA43Claude Code
cocosearch-review-prVioletCranberry/coco-searchSkill37todayMITA68Claude Code