github-repo-publish

仓库创建 2026年7月27日最近提交 19 小时前SkillHot 收录 8 小时前
▸ 精选理由

简化从本地到 GitHub 的常见发布流程,节省重复操作时间。

▸ 风险提示

需提供 GitHub 凭证,注意令牌权限与秘密信息不被提交。

这个 Skill 做什么

一键将本地文件夹创建为新 GitHub 仓库并推送全部内容。

把本地文件夹一键变成 GitHub 上的新仓库并推送全部内容:会定位并调用 gh CLI、检查授权、初始化 git、首次提交、创建远程仓库并 push,默认建为 PRIVATE 仓库。适合你想把某个目录“放到 GitHub 上”或“创建仓库并推送”时用。还能处理 Windows 上 gh 不在 PATH 的常见位置,省去环境配置烦恼。

▸ 展开 SKILL.md 英文原文

Create a brand-new GitHub repository from a local folder and push its contents in one step. Use this whenever the user wants to "create a GitHub repo for this folder", "put this on GitHub", "publish/push this directory to GitHub", "make a repo out of X", or otherwise turn a local folder into a hosted GitHub repo — even if they don't say the words "git" or "repository". Handles locating the gh CLI when it isn't on PATH, checking auth, initializing git, the first commit, repo creation, and the push. Defaults to a PRIVATE repo. On Windows gh is commonly off PATH at "C:\Program Files\GitHub CLI\gh.exe"; the script finds it and checks auth rather than assuming any particular account.

开发编程GitHub仓库发布自动化推送脚本通用
0
Stars
0
Forks
4
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/jgobuilds/ai-standards-public/main/skills/github-repo-publish/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/jgobuilds/ai-standards-public/main/skills/github-repo-publish/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Publish a folder to GitHub

Turn a local folder into a new GitHub repository and push it, in one shot.

## When to use

The user wants a local folder to become a new repo on GitHub. Phrases: "create a
repo for this folder", "publish this to GitHub", "push this directory up", "make a
GitHub repo out of X". This is for **creating a new repo**, not pushing to one that
already exists on GitHub.

## The fast path (do this first)

Run the bundled script — it does everything (locate gh, verify auth, `git init`,
first commit, `gh repo create … --push`) and is safe to re-run:

```powershell
& "$env:USERPROFILE\.claude\skills\github-repo-publish\scripts\publish.ps1" -Path '<folder>'
```

Options:
- 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有