Sync to Github

Inspect, stage, commit, and push Git repository changes safely within authorized scope. Use when committing code, pushing to GitHub, inspecting staged diffs, creating commits, or drafting commit messages.

9 stars 1 forksGit & Code Review

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add lingengyuan/my-skills --skill sync-to-github
Manual install
git clone --depth 1 https://github.com/lingengyuan/my-skills.git /tmp/my-skills
mkdir -p ~/.claude/skills
cp -r /tmp/my-skills/.claude/skills/sync-to-github ~/.claude/skills/sync-to-github

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Sync to GitHub Skill

Inspect, stage, commit, and push Git changes according to explicit user authorization. Standard Git commands and concepts are assumed knowledge.

## Authorization Scopes

- **Inspect / Preview**: Read-only operations. Do not stage files or create commits.
- **Commit**: Authorized to stage task-related files and create local commits.
- **Push / Sync**: Authorized to create local commits and push to the configured upstream remote.

## Workflow

1. **Inspect repository state**: Inspect `git status`, current branch, and tracking remotes. Inspect both staged and unstaged diffs.
2. **Stage task-related changes**: Verify that changes do not contain API keys, credentials, or unintended build artifacts. Stage only files related to the task. Never use blanket staging (`git add .` or `git add -A`) when unrelated modifications exist.
3. **Draft commit message**: Create a concise commit message following Conventional Commits (`feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`). Describe the specific change and motivation. Do not add assistant co-author trailers unless explicitly requested.
4. **Create commit**: Run the bundled `tools/git_sync.py` or standard `git commit`. Preview the staged diff before finalizing.
5. **Push to remote (if authorized)**:
   - If changes were just committed, push to the configured upstream remote.
Read the full skill on GitHub

Details

Skill name
sync-to-github
Path
.claude/skills/sync-to-github/SKILL.md
License
MIT
Repo updated
14 November 2026

FAQ

What does the Sync to Github skill do?

Inspect, stage, commit, and push Git repository changes safely within authorized scope. Use when committing code, pushing to GitHub, inspecting staged diffs, creating commits, or drafting commit messages.

How do I install the Sync to Github skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add lingengyuan/my-skills --skill sync-to-github. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Sync to Github popular?

It lives in lingengyuan/my-skills, which has 9 GitHub stars and 1 forks.

Related skills

Brief Output

9

lingengyuan/my-skills

精简回答、技术说明与工程文档,删除冗余信息与 AI 味表达,只保留完成任务所需的必要事实与技术决策。适用于精简输出、压缩改写、去除 AI 腔调以及全文一致性修订。

AI, LLMs & Agents

Google Go Style

9

lingengyuan/my-skills

按 Google Go Style 编写、重构或审查 Go 代码。用于命名、注释、接口、错误处理、并发、包组织与可维护性决策。

Software Development

Insight Collector

9

lingengyuan/my-skills

Analyze URLs, source code, images, technical documents, or notes, and archive reusable insights, code snippets, and architecture patterns into a knowledge base. Use when collecting knowledge, archiving technical articles, saving reusable code, or recording insights (收录, 记录一下).

Software Development

Wonder Pill

10

thatmike1/claude-skills

Turns open-ended requests into things to think WITH instead of answers to accept. Audits the hidden assumptions inside a topic, inverts them into sharp "what if" provocations, branches each one outward, and delivers an interactive mind map (a standalone html file opened locally) plus the written wonderings. Use this whenever someone wants ideas, brainstorming, exploration, inspiration, or a direction to head in — "give me ideas for X", "help me brainstorm", "I'm stuck on what to do for my science fair / project / story / thesis", "what are some angles on X" — and especially when they seem to w

Git & Code Review

Readout

10

thatmike1/claude-skills

Generate, update, and publish a "readout" — an MDX-authored, themed session document (walkthrough, plan, comparison, investigation, changelog) compiled to HTML and published to readout.ssscribe.app, where teammates leave anchored comments the agent reads back into the session. Successor to the artifact skill, built for sharing. Use when the user asks to "make/create/publish a readout", wants session output as a shareable link, asks to update an existing readout, or asks to read/check comments on a readout.

Git & Code Review

Git Guardrails Claude Code

5

GAGAA-HUE/ASHUO-claude-skills

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

Git & Code ReviewIn 2 lists

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.