cap-commit-push

A shortcut for committing the current repository changes and pushing them to the remote Git repository. Git is a version-control system that records code changes and shares them with a remote copy.

In plain words
What is it for?
Use it when you explicitly want the current changes committed and pushed, including checking the worktree and setting an upstream branch when necessary.
Why use it?
It combines the routine checks, staging, commit, and upload steps needed to save and publish the current work.

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/rexleimo/aios/cap-commit-push
Any agent
npx skills add rexleimo/aios --skill cap-commit-push
Clone the repo
git clone --depth 1 https://github.com/rexleimo/aios

Made for: Claude Code, Codex.

Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 366 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.00029 $0.00366
Opus 5 $0.00015 $0.00183
Sonnet 5 $0.00006 $0.00073
Haiku 4.5 $0.00003 $0.00037

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

Security

Grade A, and why

cap-commit-push 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 yesterday.

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.

skill-sources/cap-commit-push/SKILL.md · 45 lines

What it actually says

Cap Commit Push

Overview

cap is a shorthand command that means: commit current changes and push to remote.

Trigger

  • User message is exactly cap.
  • Or user explicitly asks for "commit + push".

Required Workflow

  1. Preflight
    • Run git status --short.
    • If there are no changes, report no-op and stop.
  2. Sync Gate
    • If this task changes behavior/commands/workflow, update impacted skills first.
    • Keep .codex/skills/* and .claude/skills/* in sync for shared skills.
  3. Stage
    • Run git add -A.
  4. Commit
    • Prefer a Conventional Commit message based on current task context.
    • Fallback message: chore: cap snapshot <YYYY-MM-DD>.
  5. Push
    • Run git push.
    • If upstream is missing, run git push --set-upstream origin <current-branch>.
  6. Report
    • Return commit hash, branch, and push result.

Safety Rules

  • Do not amend commits unless the user explicitly asks.
  • Do not run destructive git commands (reset --hard, forced checkout).
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. yesterday First seen · 45 lines · 29 tokens per session scan A a9023d77c55c

Subscribe to this mod's changes

cap-commit-push is a skill published in the GitHub repository rexleimo/aios (52 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 366 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.