supex: Skill for Claude Code

.claude/skills/commit-vendor/SKILL.md

commit-vendor is a skill for Claude Code from darwin/supex. It costs 11 tokens per session (756 once invoked), scanned A, original, MIT.

A workflow that commits changed Git submodule pointers in the supex repository. A submodule pointer is the commit recorded by the parent repository for an embedded repository.

In plain words
What is it for?
It helps detect changed vendored submodules, verify their commits come from the upstream repository, and commit the pointer changes.
Why use it?
It keeps the commit step separate from fetching, reviewing, and testing, and helps avoid committing invalid or unintended dependency references.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is darwin/supex's own configuration. It tells Claude Code how to work on supex 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 supex configures →

View source ↗ darwin/supex
Reuse

Borrowing it

Nothing to install: this file belongs to darwin/supex. 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/darwin/supex/main/.claude/skills/commit-vendor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/darwin/supex

Made for: Claude Code.

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 commit-vendor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/darwin/supex/commit-vendor"><img src="https://agentmods.dev/badge/skills/darwin/supex/commit-vendor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 756 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.00011 $0.00756
Opus 5 $0.00005 $0.00378
Sonnet 5 $0.00002 $0.00151
Haiku 4.5 $0.00001 $0.00076

Measured 2d ago against content hash 8a02fc59e6db, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

commit-vendor 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 2d 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.

.claude/skills/commit-vendor/SKILL.md · 90 lines

How it starts

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

Commit updated vendored submodule pointers in the supex repo. This command handles ONLY the commit step — fetching, reviewing, and testing are done by review-vendor.

All paths below are relative to the supex repo root.

Submodules

All vendored submodules (vcad/vendor/tang, vcad/vendor/loon, vcad/vendor/vcad) track upstream origin/main directly — no fork, no local patches. A pointer is always an upstream commit, so nothing has to be pushed before committing.

Step 1: Detect changed pointers

Check which submodules have changed pointers relative to the last supex commit:

git diff --submodule=short -- vcad/vendor/
git diff --cached --submodule=short -- vcad/vendor/

If no submodule pointers changed, report "nothing to commit" and stop.

Step 2: Compute upstream ranges

For each submodule with a changed pointer:

# SHA stored in supex repo (last commit)
old_upstream=$(git rev-parse HEAD:vcad/vendor/<name>)
# SHA currently in worktree
new_upstream=$(git -C vcad/vendor/<name> rev-parse HEAD)

Validate reachability

The new pointer MUST be reachable from the upstream remote, otherwise git clone --recurse-submodules breaks:

git -C vcad/vendor/<name> branch -r --contains $new_upstream | grep -q origin/ || echo "NOT ON UPSTREAM"

If a pointer is not on upstream (e.g. a local experiment), STOP and report — do not commit it.

Step 3: Show summary

Before committing, display a summary to the user:

For each changed submodule:

  • Repo name
  • Old upstream → new upstream (short SHAs)
  • GitHub compare link: https://github.com/ecto/<name>/compare/<old_upstream>...<new_upstream>
  • Number of new upstream commits: git -C vcad/vendor/<name> rev-list --count $old_upstream..$new_upstream (a rollback shows 0 — say so)

Ask the user to confirm before proceeding.

Step 4: Commit

Create a single atomic commit with all changed submodule pointers and any modified build artifacts.

Stage all changes

# Stage all changed submodule pointers
git add vcad/vendor/tang vcad/vendor/loon vcad/vendor/vcad  # only those that changed

# Stage Cargo.lock if modified by the rebuild
git diff --quiet -- vcad/sidecar/Cargo.lock || git add vcad/sidecar/Cargo.lock

Read the full file on GitHub · 90 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. 2d ago First seen · 90 lines · 11 tokens per session scan A 8a02fc59e6db

Subscribe to this mod's changes

commit-vendor is a skill published in the GitHub repository darwin/supex (45 stars, last pushed 2d ago), licensed MIT. It adds 11 tokens to every session and 756 once invoked, about $0.0001 per session on Opus 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-09-07.