Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计提醒

github-personal-repo-publisherGitHub personal repo publisher 安全

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

3,016

周安装

122

GitHub Stars

公开资料未说明

下载量

947
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-personal-repo-publisher(GitHub personal repo publisher 安全)
来源仓库:https://github.com/grey0758/github-personal-repo-publisher
安装命令:
openclaw skills install github-personal-repo-publisher
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install github-personal-repo-publisher

简介

用于在个人 GitHub 账户下创建仓库并推送本地项目。

  • 适合将本地历史提交安全迁移至远程仓库。github-personal-repo-publisher 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 通过 clawhub 安装后,自动建库、关联并推送代码。
  • 需有效 token 并具有创建仓库权限。
  • 确保本地 git 配置正确以避免推送失败。

SKILL.md

name
github-personal-repo-publisher
description
Create a repository under your own GitHub account, wire a local project repo to it, and push committed history safely. 为你自己的 GitHub 账户创建仓库,把本地项目仓库接过去,并安全推送已提交历史。
license
CC-BY-4.0
compatibility
OpenClaw, Codex, Claude Code, and ClawHub-style markdown skill runners with bash, git, curl, ssh, network access, and 1Password CLI available.

GitHub Personal Repo Publisher

Use this skill when a local Git project should be published to a new repository under your own GitHub account and the account access is managed through SSH plus a 1Password-stored PAT. 当本地 Git 项目需要发布到你自己 GitHub 账户下的新仓库,且账户访问通过 SSH 和 1Password 中保存的 PAT 管理时,使用这个 skill。

Read First | 先读这些

  • {baseDir}/README.md
  • {baseDir}/WORKFLOW.md
  • {baseDir}/FAQ.md
  • {baseDir}/CHANGELOG.md

Primary Rule | 核心原则

Treat Git history as the publish boundary: only committed local history should be described as pushed. 把 Git 提交历史当作发布边界:只有已提交的本地历史,才能算已经推送。

Workflow | 执行流程

  1. inspect the local repository state

检查本地仓库状态

  1. verify SSH auth to the personal GitHub account

验证到个人 GitHub 账户的 SSH 认证

  1. check whether the target repository already exists

检查目标仓库是否已存在

  1. create the GitHub repository through the API if missing

如果缺失,则通过 API 创建 GitHub 仓库

  1. add or update the local origin

添加或更新本地 origin

  1. push the current branch and set upstream

推送当前分支并建立 upstream

  1. verify remote wiring and pushed commit

校验远端绑定和已推送提交

  1. state clearly what remains local-only

明确说明哪些内容仍只存在于本地

Strong Heuristics | 强判断规则

  • if origin already points to the correct repo, do not recreate the repository
  • if SSH auth fails, do not continue to remote rewiring or push
  • if the GitHub repo does not exist and gh is unavailable, use the REST API with a 1Password-managed PAT
  • default new personal project repositories to private unless the user clearly wants public exposure
  • if the worktree is dirty, say explicitly that uncommitted files were not pushed
  • if origin exists but points elsewhere, update it intentionally rather than assuming it is disposable

中文解释:

  • 如果 origin 已经指向正确仓库,就不要重复建仓库。
  • SSH 认证失败时,不要继续改 remote 或 push。
  • GitHub 仓库不存在且 gh 不可用时,用 1Password 管理的 PAT 调 REST API。
  • 新的个人项目仓库默认建成 private,除非用户明确要求公开。
  • 工作区有脏改动时,要明确说明未提交文件并没有被推送。
  • origin 已存在但指向别处时,要有意识地更新,不要假设它可以随便覆盖。

Safe Commands | 安全命令

git -C /path/to/project status --short
git -C /path/to/project remote -v
git -C /path/to/project log --oneline -3
ssh -T git@github-grey0758
git ls-remote git@github-grey0758:grey0758/your-repo.git HEAD
TOKEN="$(op read 'op://OpenClaw/GitHub Fine-Grained PAT - Repo Admin - grey0758/credential')"
curl -fsSL -X POST -H 'Accept: application/vnd.github+json' -H "Authorization: Bearer $TOKEN" https://api.github.com/user/repos -d '{"name":"your-repo","private":true}'
git -C /path/to/project remote add origin git@github-grey0758:grey0758/your-repo.git
git -C /path/to/project push -u origin main

Response Format | 输出格式

Always return: 始终返回:

  1. current local repo status
  2. GitHub repo existence or creation status
  3. remote wiring status
  4. push status
  5. local-only work that still remains

Constraints | 约束

  • do not reveal PAT values or copy secret material into files
  • do not say a project is fully published when uncommitted changes still exist
  • do not assume gh is installed
  • keep the owner, SSH alias, and target repo name explicit

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

94.64%
按下载量换算896

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills