migration-guide

migration-guide is a skill for Claude Code, Codex from sbom-tool/gh-guard. It costs 17 tokens per session (1,835 once invoked), scanned B, original, MIT.

A guide for moving a Rust project between three supply-chain security levels: Minimal, Standard, and Hardened. It explains how to detect the current level, add only the missing files, and roll back components.

In plain words
What is it for?
Use it to plan upgrades for CI, dependency checks, publishing, code analysis, fuzzing, vulnerability scanning, and SLSA provenance.
Why use it?
It shows what changes are needed for each upgrade instead of making you compare every configuration file manually. It also identifies required setup steps and review points.

Skill for Claude CodeCodex

Part of the gh-guard plugin — 14 skills, 5 commands 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/sbom-tool/gh-guard/migration-guide
Any agent
npx skills add sbom-tool/gh-guard --skill migration-guide
Clone the repo
git clone --depth 1 https://github.com/sbom-tool/gh-guard

Made for: Claude Code, Codex.

Or install gh-guard, the plugin that ships this one along with the rest of its 14 skills, 5 commands.

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 migration-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/sbom-tool/gh-guard/migration-guide.svg)](https://agentmods.dev/skills/sbom-tool/gh-guard/migration-guide)
Your own site
<a href="https://agentmods.dev/skills/sbom-tool/gh-guard/migration-guide"><img src="https://agentmods.dev/badge/skills/sbom-tool/gh-guard/migration-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,835 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00017 $0.01835
Opus 5 $0.00009 $0.00918
Sonnet 5 $0.00003 $0.00367
Haiku 4.5 $0.00002 $0.00184

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

Security

Grade B, and why

migration-guide scanned grade B with 1 finding 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.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

5. **Signing key** — `git config --global gpg.format ssh && git config --global user.signingkey ~/.ssh/id_ed25519.pub`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/migration-guide/SKILL.md · 122 lines

How it starts

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

Hardening Level Migration Guide

This guide covers upgrading between gh-guard hardening levels (Minimal → Standard → Hardened), including detecting your current level, generating only the delta files, and rolling back individual components.

Level Summary

Upgrade New Files New Manual Steps
None → Minimal CI workflow, deny.toml, dependabot.yml, SECURITY.md, rust-toolchain.toml Verify CI passes, review deny allowlist
Minimal → Standard Publish workflow, CodeQL workflow, Scorecard workflow, release script Create crates-io env, configure Trusted Publishing, disable CodeQL default, set up signing key, branch protection
Standard → Hardened Fuzz workflow, osv-scanner.toml + modify publish workflow (add SLSA jobs) Init fuzz targets, register CII badge, review osv-scanner overrides

Detecting Current Level

Use the hardening-detection skill for the full marker list and classification algorithm. It is the single source of truth for level detection, shared by /audit, /harden, and this guide.

In brief: check for marker files across three tiers (Minimal: 4 markers, Standard: +4, Hardened: +3). The effective level is the highest tier where ALL markers are present. "Custom" means partial coverage — recommend filling gaps before upgrading.

Minimal → Standard Upgrade

Prerequisites

  • CI workflow is passing on main
  • At least one version published to crates.io (for Trusted Publishing setup)
  • gh CLI installed and authenticated
  • Git signing key configured

Files to Add

  1. Publish workflow.github/workflows/publish.yml (from templates/workflows/publish.yml)
  2. CodeQL workflow.github/workflows/codeql.yml (from templates/workflows/codeql.yml)
  3. Scorecard workflow.github/workflows/scorecard.yml (from templates/workflows/scorecard.yml)
  4. Release scriptscripts/release.sh (from templates/release.sh)

Manual Steps

  1. Create crates-io environment — repo Settings > Environments > New environment > name it crates-io
  2. Configure Trusted Publishing — visit crates.io/crates/<name>/settings, add publisher: repo, workflow publish.yml, environment crates-io
  3. Disable CodeQL default setup — repo Settings > Code Security > Code scanning > disable "Default setup" (required before custom workflow works)
  4. Branch protection — Settings > Branches > Add rule for main: require status check "CI", require PR reviews
  5. Signing keygit config --global gpg.format ssh && git config --global user.signingkey ~/.ssh/id_ed25519.pub

Read the full file on GitHub · 122 lines

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 · 122 lines · 17 tokens per session scan B 995c5fc0644a

Subscribe to this mod's changes

migration-guide is a skill published in the GitHub repository sbom-tool/gh-guard (15 stars, last pushed 5mo ago), licensed MIT. It adds 17 tokens to every session and 1,835 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories