stage

stage is a skill for Claude Code, Codex from Brad-Edwards/aptl. It costs 16 tokens per session (242 once invoked), scanned A, original, MIT.

A workflow for preparing changed files for a commit. It identifies relevant files, excludes secrets and unsuitable files, runs pre-commit checks, fixes failures, and reports what is staged.

In plain words
What is it for?
Use it to inspect changes, stage safe files, run pre-commit, correct failures, and confirm the staged file list is clean.
Why use it?
It reduces the chance of committing credentials or other unwanted files and catches formatting or validation problems before the commit. It repeats the checks when fixes are needed.

Skill for Claude CodeCodex

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/brad-edwards/aptl/stage
Any agent
npx skills add Brad-Edwards/aptl --skill stage
Clone the repo
git clone --depth 1 https://github.com/Brad-Edwards/aptl

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 stage

README.md
[![agentmods](https://agentmods.dev/badge/skills/brad-edwards/aptl/stage.svg)](https://agentmods.dev/skills/brad-edwards/aptl/stage)
Your own site
<a href="https://agentmods.dev/skills/brad-edwards/aptl/stage"><img src="https://agentmods.dev/badge/skills/brad-edwards/aptl/stage.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 242 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00016 $0.00242
Opus 5 $0.00008 $0.00121
Sonnet 5 $0.00003 $0.00048
Haiku 4.5 $0.00002 $0.00024

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

Security

Grade A, and why

stage 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 4d 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/stage/SKILL.md · 36 lines

What it actually says

Stage Changes

Step 1: Identify Changed Files

  1. Run git status to see all changed and untracked files.
  2. Exclude from staging: .env files, credentials, secrets, large binaries.

Step 2: Stage Files

  1. git add all relevant changed files.

Step 3: Pre-commit Loop

Run up to 5 iterations:

  1. Run pre-commit run --all-files.
  2. If it passes, proceed to Step 4.
  3. If it fails:
    • Read the failure output.
    • Fix the issues.
    • Re-stage any modified files with git add.
    • Go back to step 1.
  4. If still failing after 5 attempts, report the failure details to the user and stop.

Step 4: Report

  • List what is staged: git diff --cached --name-only
  • Confirm pre-commit passes.
  • "All files staged and pre-commit clean. Ready for commit."
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. 4d ago First seen · 36 lines · 16 tokens per session scan A fad2a69469aa

Subscribe to this mod's changes

stage is a skill published in the GitHub repository Brad-Edwards/aptl (24 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 242 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-08-30.

Related

Other skills, from other repositories

Blue Team Defense & Hardening

System hardening, detection engineering, security baseline monitoring, patch management, defense-in-depth architecture, and security posture improvement.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens

create-huntable-agent

Add a new extraction sub-agent to Huntable CTI Studio as a first-class peer of CmdlineExtract, ProcTreeExtract, HuntQueriesExtract, RegistryExtract, ServicesExtract, and ScheduledTasksExtract. Use this skill whenever the user asks to "add a new agent", "create a sub-agent", "wire up a new extractor", "add a new…

dfirtnt/Huntable-CTI-Studio · 129 tokens

codebase-test-trueup

Audit test coverage gaps and generate unit tests to close them. Use when the user says "test trueup", "coverage gaps", "test coverage audit", "fill coverage", "write missing tests", "backfill tests", "scope tests", "test what I changed", or any request to identify and fill test gaps. Three modes: audit (report only)…

dfirtnt/Huntable-CTI-Studio · 96 tokens

mdu

Update all Markdown documentation to reflect code and session changes. Use this skill whenever the user says "mdu", asks to "update docs", "sync documentation", "refresh changelog", "update the changelog", "docs are stale", "add this to the changelog", or any request to align documentation with recent code changes.…

dfirtnt/Huntable-CTI-Studio · 203 tokens

cut-release

Interactive walkthrough for cutting a new release of Huntable CTI Studio. Use this skill whenever the user says "cut a release", "ship a release", "tag a version", "bump the version", "new release", "do the release", "release vX.Y.Z", "ship v5.4.0", "time to release", or otherwise signals they want to move code from…

dfirtnt/Huntable-CTI-Studio · 136 tokens

source-healing

Diagnose and repair troubled CTI intelligence sources in Huntable CTI Studio — sources that ingest 0 articles or rack up recurring fetch failures. Use this skill whenever the user says "heal a source", "fix a broken/failing source", "this source has 0 articles", "why isn't collecting", "diagnose troubled sources"…

dfirtnt/Huntable-CTI-Studio · 155 tokens