← 返回 Skills 市场
onlyloveher

Github Push

作者 onlyloveher · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
97
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install github-push-v1
功能描述
Secure GitHub push automation with auto SSH and remote config. Use when git push, automated push, or conflict handling needed.
使用说明 (SKILL.md)

GitHub Push - Secure Auto-Push Tool

Automated GitHub push with:

  • Auto SSH Config: Auto-detect and load SSH keys
  • Auto Remote Config: Auto-add git remote origin
  • Auto Conflict Resolution: Auto pull + rebase + force
  • Anti-Ban Mechanism: Rate limiting + commit batching + smart validation

Installation

No external dependencies required. Uses standard Git CLI (always available).

Usage Examples

# Quick push (auto-configures everything)
python3 scripts/github_upload.py --repo owner/repo --path ./files --message "Update"

# Dry run test (no actual push)
python3 scripts/github_upload.py --repo owner/repo --path ./files --dry-run

# Force push (auto-resolves conflicts)
python3 scripts/github_upload.py --repo owner/repo --path ./files --force

# Show version info
python3 scripts/github_upload.py --version

Configuration

Create config.yaml for persistent settings:

defaults:
  safe_mode: true
  min_delay: 3  # seconds between operations
  max_delay: 5  # seconds between operations
  batch_commits: true
  enable_validation: true
  dry_run: false
  
safety:
  max_commits_per_hour: 100
  max_pushes_per_hour: 50
  min_time_between_pushes: 180  # 3 minutes cooldown

Safety Thresholds

Metric Default Description
Delay between ops 3-5s Randomized delay
Push cooldown 180s Min time between pushes
Max pushes/hour 50 Anti-spam limit
Max commits/hour 100 Anti-automation limit

Troubleshooting

Error: "Too frequent pushes"

Solution: Wait at least 3 minutes before next push.

Error: "Repository not found"

Solution: Check repository exists and you have push access. Verify SSH key is added to GitHub.

Error: "Permission denied (publickey)"

Solution:

# Load SSH key
ssh-add ~/.ssh/id_ed25519

# Verify SSH connection
ssh -T [email protected]

Error: "Merge conflict"

Solution: The script handles this automatically with pull + rebase + force. Check repository state if issue persists.

Error: "Validation failed"

Solution:

  • Check path exists and is accessible
  • Verify files don't exceed 100MB (GitHub limit)
  • Check for suspicious patterns (e.g., .env, id_rsa)

When Not to Use

  • Just viewing GitHub content
  • Creating issues or PRs
  • Code review

References

  • references/ - Detailed config and API docs
  • scripts/ - Full code examples

MIT License - OpenClaw Skill Standard

安全使用建议
This skill mostly does what a Git push helper promises, but exercise caution before installing or running it on important repositories. Specific red flags: (1) The script forcibly removes and re-initializes .git directories — back up repos first. (2) It auto-loads private SSH keys into the agent (ssh-add) — review this behavior if you keep passphrase-protected keys or do not want keys loaded automatically. (3) It will attempt automated pull/rebase and force-push flows which can overwrite remote history; test with --dry-run and on a disposable repo first. (4) The README claims 'auto-create repo' but no GitHub API token or network endpoint is declared; verify how remote creation is supposed to work. Recommended steps: review the full scripts/github_upload.py source locally, run in a safe/test environment, keep backups of any repo before use, and prefer dry-run mode until you confirm behavior.
能力评估
Purpose & Capability
Name/description match a GitHub push helper and included code performs push-related actions, but some capabilities are disproportionate or unclear: the code explicitly removes an existing .git directory and re-initializes repositories (destructive), and README claims it can 'auto-create repo if doesn't exist' without any GitHub API credentials or network code shown — that claim is inconsistent with the visible implementation.
Instruction Scope
SKILL.md/README direct running scripts that will read ~/.ssh, attempt to load private keys via ssh-add, modify git config, initialize repos, stage/commit files, and perform pull/rebase/force-push flows. Those operations modify local repository state and SSH agent state; deleting .git and automatic force-push behavior are particularly intrusive and are not clearly called out in warnings.
Install Mechanism
No install spec or external downloads are used; the skill is delivered as code files and uses only local system commands (git, ssh-add). This lowers supply-chain risk compared to remote downloads.
Credentials
No environment variables or external credentials are requested, which is consistent with SSH-based pushes. However the code inspects and attempts to load private SSH keys from the user's ~/.ssh and will change git global config if missing — access to private keys and global git config is significant and should be explicitly justified to users.
Persistence & Privilege
Skill is not marked always:true and has no special install persistence. It does perform persistent changes to the user's filesystem (removing/rewriting .git, setting git user/email) and to the SSH agent (ssh-add), which are privileges worth noting though not platform-level privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-push-v1
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-push-v1 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release—automated, secure GitHub push tool with smart configuration and safety features. - Auto-configures SSH and git remotes for easy, secure setup. - Handles conflicts with automatic pull, rebase, and force-push. - Built-in rate limiting, batching, and validation to prevent bans and accidental misuse. - Highly configurable via YAML for safety thresholds and operation modes. - No external dependencies; uses the standard Git CLI.
元数据
Slug github-push-v1
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Github Push 是什么?

Secure GitHub push automation with auto SSH and remote config. Use when git push, automated push, or conflict handling needed. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 97 次。

如何安装 Github Push?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-push-v1」即可一键安装,无需额外配置。

Github Push 是免费的吗?

是的,Github Push 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Github Push 支持哪些平台?

Github Push 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Github Push?

由 onlyloveher(@onlyloveher)开发并维护,当前版本 v1.0.0。

💬 留言讨论