AGENT SKILL

cap-commit-push

Use when the user sends `cap` or asks for a fast commit-and-push shortcut for current repository changes.

License 许可
MIT
所属仓库
rexleimo/aios
最近更新
2026-11-07
Stars
★ 62
Forks
11

01 前言 Front Matter

name
cap-commit-push
tags
[ "aios", "git", "essential" ]
scopes
[ "global", "project" ]
clients
[ "codex", "claude", "hermes", "workbuddy", "pi", "zcode", "qoder" ]
description
Use when the user sends `cap` or asks for a fast commit-and-push shortcut for current repository changes.
repoTargets
[ "codex", "claude", "gemini", "opencode", "hermes", "workbuddy", "pi", "zcode", "qoder" ]
defaultInstall
{ "global": true, "project": false }
installCatalogName
cap-commit-push

03 SKILL.md 正文

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).

04 同仓库更多 Skills

rexleimo
rexleimo/aios

versioning-by-impact

Use when completing a task and deciding whether repository changes require a semantic version bump and changelog entry before commit/push.

★ 62
rexleimo
rexleimo/aios

verification-loop

Evidence-before-assertions workflow. Use before claiming work is done, before release, and after any behavior change in scripts/skills/MCP.

★ 62
rexleimo
rexleimo/aios

typesafe-ai

Build AI-powered software with TypeSafe: small units of AI intelligence you can use like programming primitives. Its System One models, including Jev, turn natural language and application state into typed judgments and probabilities that code can combine. Use when a feature needs programmable common sense, when brainstorming what AI could make possible in an app, or when an LLM prompt-and-parse step could become a structured decision. Applications include routing, ranking, extraction, verification, and interactive experiences; these are starting points, not the limits. Read live docs and cookbooks to find useful patterns and discover new combinations.

★ 62
rexleimo
rexleimo/aios

skill-opt-lite

Train and optimize skill documents using the SkillOpt methodology — the agent acts as both target and optimizer, running tasks, reflecting on failures, proposing edits, and validating improvements in a self-contained training loop. TRIGGER: optimize skill, train skill, improve skill, skill training, skill optimization, SkillOpt, skill evolution, skill iteration loop, skill feedback loop, skill tuning.

★ 62
rexleimo
rexleimo/aios

skill-constraints

Enforce browser automation safety constraints — tool usage order, anti-detection rules, screenshot discipline, and human-in-the-loop checks. Use when setting up or verifying browser/MCP tool operations, NOT for every skill execution.

★ 62
rexleimo
rexleimo/aios

seo-geo-page-optimization

Use when improving a single page for SEO and AI answer-engine visibility (GEO), especially when you need faster first-screen conversion and clearer traffic funnels.

★ 62