# Publish Project To Github

Package a finished local project into an intentional GitHub repository, create a strong...

- Repository: https://github.com/MengTo/Skills (7170 stars)
- Category: Design
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add MengTo/Skills --skill publish-project-to-github -g -a claude-code -y`
Codex: `npx skills add MengTo/Skills --skill publish-project-to-github -g -a codex -y`
Cursor: `npx skills add MengTo/Skills --skill publish-project-to-github -g -a cursor -y`
Gemini CLI: `npx skills add MengTo/Skills --skill publish-project-to-github -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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
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 `.env` files
- 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

The rest: https://github.com/MengTo/Skills/blob/HEAD/agent-skills/codex/publish-project-to-github/SKILL.md
