publish-project-to-github
Qué hace
Esta skill guía al agente para subir a GitHub un proyecto local terminado, incluidos el README, una imagen de vista previa y una web pública cuando encaja. Está pensada para quien quiere compartir o publicar como código abierto un proyecto web pequeño.
Cuándo usarla
- ✓Cuando quieres publicar en GitHub un proyecto web local.
- ✓Cuando quieres un repositorio documentado con una imagen de vista previa.
- ✓Cuando quieres un sitio pequeño alojado en GitHub Pages y comprobado después de publicarse.
Link de la skill
https://github.com/MengTo/Skills/blob/main/agent-skills/codex/publish-project-to-github/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Publica mi proyecto HTML local en GitHub con un README y un sitio de GitHub Pages en línea.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente comprueba primero el proyecto y el repositorio, luego empaqueta los archivos, escribe el README y sube los cambios. Después confirma que el sitio público funciona tras el despliegue.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Hará público mi repositorio sin preguntar?
No. La skill indica que compartir en público necesita tu petición explícita, y si no, pregunta por la visibilidad.
¿Sobrescribe un remoto existente?
No. La skill indica no hacer nunca force-push ni reemplazar un remoto sin autorización exacta.
¿Significa una subida correcta que el sitio funciona?
No. La skill comprueba el resultado desplegado por separado, después de la subida.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 7,2 mil
- Posición en el ranking
- #13341
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
3d-cloth-material
7,2 milAyuda a tu agente a crear tela tejida realista en Three.js, con el entramado del hilo, un brillo suave, pliegues naturales, dobladillos y costuras.
3d-falling-leaves
7,2 milAyuda a tu agente a añadir hojas que caen de forma realista a una escena 3D, con hojas que giran, se dejan llevar por el viento y se reciclan al moverse la cámara.
3d-four-seasons
7,2 milAyuda a tu agente a añadir los aspectos de primavera, verano, otoño e invierno a una escena 3D, cambiando la vegetación, la luz, el cielo y la nieve sin reconstruirla.
3d-high-poly-models
7,2 milAyuda a tu agente a construir modelos 3D detallados con formas suaves y bordes creíbles, y después preparar versiones más ligeras que funcionen bien en la web.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.