publish-project-to-github
できること
このスキルは、完成したローカルプロジェクトをGitHubに載せる作業をエージェントに案内します。READMEやプレビュー画像、適している場合は公開Webサイトまで含みます。小さなWebプロジェクトを共有したい人向けです。
使う場面
- ✓ローカルのWebプロジェクトをGitHubに公開したいとき。
- ✓READMEとプレビュー画像のある、文書化されたリポジトリが欲しいとき。
- ✓小さなサイトをGitHub Pagesで公開し、公開後に確認したいとき。
スキルのリンク
https://github.com/MengTo/Skills/blob/main/agent-skills/codex/publish-project-to-github/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ローカルのHTMLプロジェクトを、READMEとライブのGitHub Pagesサイト付きでGitHubに公開してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、まずプロジェクトとリポジトリを確認し、ファイルをまとめ、READMEを書いて、変更を送信します。そのあと、デプロイされた公開サイトが正しく動くかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Publish Project to GitHub
Turn a finished local project into a clean public artifact. Treat repository creation, public visibility, and deployment as separate gates; a successful push is not proof that the public site works.
Deliverables
Produce the applicable items:
- a narrowly scoped Git repository
- an intentional public or private GitHub repository
- a project-specific
README.md - a real preview image when the project is visual
- a portable build or remix prompt when it adds value
- a configured GitHub Pages site for compatible web projects
- post-push and post-deploy read-back
1. Resolve scope and authority
Inspect the local project, repository state, remotes, and local instructions before writing.
Confirm or safely infer:
- the exact project directory and intended files
- repository name and owner
- whether the target should be public or private
- whether an existing repository must be updated or a new one created
- whether the user wants a live website, source hosting only, or both
Creating a public repository is authorized only when the user explicitly asks for public sharing, a public URL, open source, or equivalent. Otherwise ask for visibility before creating it.
Never force-push, overwrite an existing remote, change repository visibility, or replace an existing Pages configuration without exact authorization.
2. Audit before packaging
Run the bundled audit from the project root:
bash /path/to/publish-project-to-github/scripts/audit_public_project.sh .
Then inspect findings rather than treating the script as a substitute for judgment.
Block publication on:
- API keys, tokens, private keys, passwords, or
.envfiles - personal data or private client information
- absolute local filesystem paths required at runtime
- unlicensed or private assets
- missing runtime files
- unclear ownership of a repository name that already exists
Review all external runtime URLs and generated assets. State any required network dependency in the README.
Inspect the existing license before publishing. If the user explicitly wants others to reuse or modify the project and no license exists, ask which license to add rather than inventing one. If the goal is only public viewing, a missing license does not block deployment, but report that reuse rights are not granted explicitly.
3. Choose the packaging model
Clean existing repository
Use the existing checkout when its remote, history, and tracked files match the intended public project. Stage only the requested files.
Mixed or unrelated workspace
Create a clean project directory or sibling checkout when the source workspace contains unrelated experiments, deletions, private files, or history. Copy only the intended runtime files. Do not publish an entire mixed folder for convenience.
Existing public repository
Inspect its default branch, Pages source, README, license, and remote state before changing it. Pull or reconcile deliberately; never hide divergence with a force push.
For a static one-file experiment, prefer this minimal shape:
project-name/
├── index.html
├── README.md
├── PROMPT.md # optional
├── assets/ # optional previews or runtime assets
└── .gitignore
4. Build the repository presentation
Write the README from the real project. Use assets/README-template.md as a starting structure, not as final copy.
Include:
- project name and one concrete sentence explaining the experience
- a live demo link near the top and, when useful outside GitHub, a repository source link
- a screenshot or short GIF captured from the actual running project
- key interactions or features
- a concise explanation of the architecture and unusual implementation choices
- accurate local run instructions
- project structure
- runtime dependencies and network requirements
- originality, attribution, or non-affiliation notes when references inspired the work
For agent-built projects, optionally add official links and a portable prompt showing how to rebuild or remix the project with relevant coding agents. Verify current official URLs before publishing.
Avoid generic claims such as “cutting-edge,” “stunning,” or “production-ready.” Prefer specific craft and behavior.
5. Verify locally
Use the project's real runtime rather than opening module-based sites directly from disk.
For static sites:
python3 -m http.server 4173 --bind 127.0.0.1
Check:
- initial render
- the primary in
よくある質問
頼んでいないのにリポジトリを公開しますか?
いいえ。このスキルでは、公開には明示的な依頼が必要です。それ以外の場合は公開範囲を確認します。
既存のリモートを上書きしますか?
いいえ。正式な許可がない限り、強制プッシュやリモートの置き換えは行わないとスキルで定められています。
送信が成功すればサイトも動くのですか?
いいえ。送信後に、公開された結果を別に確認します。
詳細
作者による元の説明
Package a finished local project into an intentional GitHub repository, create a strong README and visual preview, push it safely, configure a public GitHub Pages URL when the project is compatible, and verify the deployed result. Use when a user asks to upload, publish, open-source, share, or turn a local HTML/CSS/JavaScript experiment or small web project into a documented GitHub repository with a live demo.
repo: MengTo/Skills
人気
- GitHubのスター
- 7.2k
- ランキング
- #13341
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
3d-cloth-material
7.2kThree.js で、糸の織り、柔らかい光沢、自然な襞、裾、縫い目を持つ、本物の織物らしい布を作るようエージェントを支援します。
3d-falling-leaves
7.2k3D のシーンに、回転し、風に流され、カメラの動きに合わせて再利用される、本物らしい落ち葉を加えるようエージェントを支援します。
3d-four-seasons
7.2k3D のシーンに、春、夏、秋、冬の見た目を加え、シーン全体を作り直さずに、茂み、光、空、雪を変えるようエージェントを支援します。
3d-high-poly-models
7.2k滑らかな形と自然な縁をもつ、詳細な3Dモデルを作り、その後、Web で快適に動く軽いバージョンを準備するようエージェントを支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。