Agent Skillsanyproto/anytype-ts › commit-push

commit-push

GitHub

自动化完成Git代码提交与推送流程。检查状态、安全暂存文件、生成符合规范的提交信息(含Co-Authored-By)、执行提交并推送到上游分支,全程禁止强制推送或跳过钩子,确保操作安全合规。

.claude/skills/commit-push/SKILL.md anyproto/anytype-ts

Trigger Scenarios

用户要求一次性提交并推送代码变更 需要遵循特定命名规范和安全规则进行Git操作

Install

npx skills add anyproto/anytype-ts --skill commit-push -g -y
More Options

Non-standard path

npx skills add https://github.com/anyproto/anytype-ts/tree/develop/.claude/skills/commit-push -g -y

Use without installing

npx skills use anyproto/anytype-ts@commit-push

指定 Agent (Claude Code)

npx skills add anyproto/anytype-ts --skill commit-push -a claude-code -g -y

安装 repo 全部 skill

npx skills add anyproto/anytype-ts --all -g -y

预览 repo 内 skill

npx skills add anyproto/anytype-ts --list

SKILL.md

Frontmatter
{
    "name": "commit-push",
    "description": "Commit staged\/unstaged changes and push to the remote branch in one step"
}

Commit & Push Skill

Commit all current changes and push to the remote in a single workflow.

Process

  1. Check state — Run git status (no -uall), git diff (staged + unstaged), and git log --oneline -5 in parallel
  2. Abort if clean — If there are no changes, inform the user and stop
  3. Stage files — Add changed files by name (never use git add -A or git add .). Skip files that look like secrets (.env, credentials, tokens)
  4. Draft commit message — Follow the repo's JS-XXXX: short description convention. Summarize the "why", not the "what"
  5. Commit — Use a HEREDOC for the message. Always append the co-author trailer:
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
  6. Push — Push to the current remote-tracking branch (typically origin/develop). Use git push (never force-push)
  7. Confirm — Show the resulting commit hash and remote status

Rules

  • Never amend existing commits
  • Never force-push
  • Never skip hooks (--no-verify)
  • Never commit files that contain secrets
  • Always create a NEW commit, even after a hook failure
  • Push target is always the current branch's upstream (usually develop)

Version History

  • 10f2692 Current 2026-07-25 08:56

Same Skill Collection

.claude/skills/dark-mode-check/SKILL.md
.claude/skills/qa-engineer/SKILL.md
.claude/skills/release-notes/SKILL.md
.claude/skills/typescript-code-review/SKILL.md
.claude/skills/update-docs/SKILL.md

Metadata

Files
0
Version
1d94e90
Hash
86e8e2c7
Indexed
2026-07-25 08:56

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 14:19
浙ICP备14020137号-1 $방문자$