Agent SkillsFradSer/dotclaude › commit-and-push

commit-and-push

GitHub

使用git-agent执行原子化符合规范的Git提交并推送到远程仓库。支持自动意图识别、Co-author指定及401认证重试,若工具缺失则报错提示安装或手动操作。

git-agent/skills/commit-and-push/SKILL.md FradSer/dotclaude

Trigger Scenarios

用户要求提交代码更改 用户要求推送代码到远程

Install

npx skills add FradSer/dotclaude --skill commit-and-push -g -y
More Options

Non-standard path

npx skills add https://github.com/FradSer/dotclaude/tree/main/git-agent/skills/commit-and-push -g -y

Use without installing

npx skills use FradSer/dotclaude@commit-and-push

指定 Agent (Claude Code)

npx skills add FradSer/dotclaude --skill commit-and-push -a claude-code -g -y

安装 repo 全部 skill

npx skills add FradSer/dotclaude --all -g -y

预览 repo 内 skill

npx skills add FradSer/dotclaude --list

SKILL.md

Frontmatter
{
    "name": "commit-and-push",
    "description": "Creates atomic conventional git commits using git-agent and pushes changes to the remote repository.",
    "allowed-tools": [
        "Bash(git-agent:*)",
        "Bash(git:*)"
    ],
    "argument-hint": "[intent or --co-author]",
    "user-invocable": true
}

CRITICAL:

  • Do NOT run git status, git diff, git log, or any other read commands before git-agent commit.
  • Execute git-agent commit directly. git-agent (v0.7.0+) automatically detects active model attribution from session environment variables (PI_MODEL, etc.).

Execution

  1. Derive a concise one-sentence intent from the conversation or $ARGUMENTS.
  2. Pass --co-author "<co-author>" if explicitly specified in $ARGUMENTS or user instructions.
  3. Run primary commit command:
    git-agent commit --intent "<intent>"
    
  4. If specific files are already staged, pass --no-stage:
    git-agent commit --no-stage --intent "<intent>"
    
  5. On auth error (401), retry with --free:
    git-agent commit --free --intent "<intent>"
    
  6. Fallback (if git-agent binary is not found): report the error and ask the user to install git-agent or run git commands manually.
  7. Push to remote repository:
    git push
    
    (If upstream is not set, use git push -u origin <branch>).

CLI Reference: ../../references/cli.md

Deterministic messages: When an exact commit message is required (e.g. version bump chore: bump version to 0.11.0), pass the full conventional message as the --intent value. The intent is used as the commit subject verbatim.

Version History

  • 6f2a0b2 Current 2026-08-20 10:58

Same Skill Collection

.claude/skills/reflect-skills-from-memory/SKILL.md
acpx/skills/use-acpx/SKILL.md
antigravity/skills/delegate/SKILL.md
antigravity/skills/research/SKILL.md
code-context/skills/code-context/SKILL.md
code-context/skills/get-context/SKILL.md
git-agent/skills/commit/SKILL.md
git-agent/skills/init/SKILL.md
git-agent/skills/related/SKILL.md
git/skills/commit-and-push/SKILL.md
git/skills/commit/SKILL.md
git/skills/finish-feature/SKILL.md
git/skills/finish-hotfix/SKILL.md
git/skills/finish-release/SKILL.md
git/skills/start-feature/SKILL.md
git/skills/start-hotfix/SKILL.md
git/skills/start-release/SKILL.md
github/skills/create-issues/SKILL.md
github/skills/create-pr/SKILL.md
github/skills/resolve-issues/SKILL.md
github/skills/review-pr/SKILL.md
hardware/skills/use-kicad-cli/SKILL.md
hardware/skills/use-openscad/SKILL.md
interfaces/skills/better-interface/SKILL.md
lark/skills/SKILL.md
marketing/skills/SKILL.md
mattpocock/skills/deprecated/design-an-interface/SKILL.md
mattpocock/skills/deprecated/qa/SKILL.md
mattpocock/skills/deprecated/request-refactor-plan/SKILL.md
mattpocock/skills/deprecated/ubiquitous-language/SKILL.md
mattpocock/skills/engineering/ask-matt/SKILL.md
mattpocock/skills/engineering/bdd/SKILL.md
mattpocock/skills/engineering/code-review/SKILL.md
mattpocock/skills/engineering/codebase-design/SKILL.md
mattpocock/skills/engineering/diagnosing-bugs/SKILL.md
mattpocock/skills/engineering/domain-modeling/SKILL.md
mattpocock/skills/engineering/grill-with-docs/SKILL.md
mattpocock/skills/engineering/implement/SKILL.md
mattpocock/skills/engineering/improve-codebase-architecture/SKILL.md
mattpocock/skills/engineering/prototype/SKILL.md
mattpocock/skills/engineering/research/SKILL.md
mattpocock/skills/engineering/resolving-merge-conflicts/SKILL.md
mattpocock/skills/engineering/setup-matt-pocock-skills/SKILL.md
mattpocock/skills/engineering/tdd/SKILL.md
mattpocock/skills/engineering/to-spec/SKILL.md
mattpocock/skills/engineering/to-tickets/SKILL.md
mattpocock/skills/engineering/triage/SKILL.md
mattpocock/skills/engineering/wayfinder/SKILL.md
mattpocock/skills/engineering/wizard/SKILL.md

Metadata

Files
0
Version
6f2a0b2
Hash
35b48d8d
Indexed
2026-08-20 10:58

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 04:27
浙ICP备14020137号-1 $mapa de visitantes$