Skip to main content
ClaudeWave
ES, Spanish
Slash Command5.9k estrellas del repoactualizado 9d ago

update-github

The update-github command stages uncommitted changes, creates a commit using Conventional Commits format by analyzing file modifications to determine type and scope, and pushes to the GitHub remote repository. Use this when ready to save and upload work to GitHub, with optional flags to amend previous commits, skip hooks, or specify custom commit messages.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Galaxy-Dawn/claude-scholar/HEAD/commands/update-github.md -o ~/.claude/commands/update-github.md
Después abre una sesión nueva de Claude Code; el slash command carga automáticamente.

update-github.md

# Update GitHub

Commit uncommitted changes and push to remote GitHub repository.

## Instructions

1. **Check Git Status**
   - Run `git status`
   - Show all uncommitted changes

2. **Analyze Changes**
   - Review changed files
   - Determine commit type (feat/fix/docs/refactor/test/chore)
   - Determine scope (affected module/component)

3. **Create Commit Message**
   Follow Conventional Commits format:
   ```
   <type>(<scope>): <subject>

   <body>

   <footer>
   ```

   Types:
   - `feat`: 新功能
   - `fix`: Bug 修复
   - `docs`: 文档更新
   - `refactor`: 代码重构
   - `perf`: 性能优化
   - `test`: 测试相关
   - `chore`: 其他修改

4. **Stage and Commit**
   - Run `git add` for affected files
   - Create commit with formatted message
   - Do not include `Co-Authored-By` footers unless the user explicitly asks for them

5. **Push to Remote**
   - Run `git push`
   - If rejected, pull with rebase first:
     ```bash
     git pull --rebase origin $(git branch --show-current)
     git push
     ```

6. **Verify Success**
   - Show commit SHA
   - Show remote branch status

## Example Usage

```
User: /update-github

1. Checking git status...
   Modified: src/utils/helpers.py
   Modified: README.md

2. Analyzing changes...
   - src/utils/helpers.py: Refactored helper functions
   - README.md: Updated documentation

3. Proposed commit:
   docs(readme): 更新项目文档

   - 添加使用示例
   - 更新依赖说明

4. Proceed? (yes/no/modify)

5. Staging files...
   git add src/utils/helpers.py README.md

6. Creating commit...
   [main abc1234] docs(readme): 更新项目文档

7. Pushing to remote...
   git push
   To github.com:user/repo.git
      abc1234..def5678  main -> main

✅ Successfully pushed to GitHub!
```

## Arguments

$ARGUMENTS can be:
- `--amend` - Amend last commit instead of creating new one
- `--no-verify` - Skip pre-commit hooks
- `<type>(<scope>): <message>` - Use custom commit message

## Integration

This command uses the same Conventional Commits format as the `/commit` skill but focuses on the complete flow: stage → commit → push.
agent-identifierSkill

Use when creating or configuring Claude Code agents and their frontmatter.

analyze-resultsSlash Command

Run a blocker-first post-experiment workflow: validate evidence, produce strict statistical analysis when possible, and generate a decision-oriented results report only when the analysis bundle is sufficient. Uses results-analysis + results-report as a gated two-stage workflow.

architecture-designSkill

Use only when creating new registrable ML components that require Factory or Registry patterns.

bug-detectiveSkill

This skill should be used when the user asks to "debug this", "fix this error", "investigate this bug", "troubleshoot this issue", "find the problem", "something is broken", "this isn't working", "why is this failing", or reports errors/exceptions/bugs. Provides systematic debugging workflow and common error patterns.

citation-verificationSkill

This skill provides reference guidance for citation verification in academic writing. Use when the user asks about "citation verification best practices", "how to verify references", "preventing fake citations", or needs guidance on citation accuracy. This skill supports ml-paper-writing by providing detailed verification principles and common error patterns.

code-review-excellenceSkill

This skill should be used when the user asks to review a diff or pull request, write review comments, audit code quality, establish review standards, or improve how a team performs code review.

code-reviewerSubagent

Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code. MUST BE USED for all code changes.

command-developmentSkill

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.