Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)7.2k · #13341

publish-project-to-github

Ce qu’il fait

Cette compétence guide l'agent pour mettre un projet local terminé sur GitHub, avec le README, une image d'aperçu et un site public quand c'est pertinent. Elle s'adresse aux personnes qui veulent partager ou publier en open source un petit projet web.

Quand l’utiliser

  • ✓Quand vous voulez publier sur GitHub un projet web local.
  • ✓Quand vous voulez un dépôt documenté avec une image d'aperçu.
  • ✓Quand vous voulez un petit site hébergé sur GitHub Pages et vérifié après sa mise en ligne.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/MengTo/Skills/blob/main/agent-skills/codex/publish-project-to-github/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Publie mon projet HTML local sur GitHub avec un README et un site GitHub Pages en ligne.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent vérifie d'abord le projet et le dépôt, puis prépare les fichiers, rédige le README et envoie le travail. Il confirme ensuite que le site public fonctionne après son déploiement.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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 .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

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
Questions fréquentes

Rendra-t-elle mon dépôt public sans demander ?

Non. La compétence indique que le partage public exige votre demande explicite, et elle pose la question de la visibilité sinon.

Écrase-t-elle un dépôt distant existant ?

Non. La compétence indique de ne jamais forcer un envoi ni remplacer un dépôt distant sans autorisation exacte.

Un envoi réussi signifie-t-il que le site fonctionne ?

Non. La compétence vérifie séparément le résultat déployé après l'envoi.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
7.2k
Position au classement
#13341
Licence
MIT
Mis à jour
01/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires