publish-project-to-github
Skill này làm gì
Skill này hướng dẫn agent đưa một dự án cục bộ đã hoàn thành lên GitHub, gồm README, ảnh xem trước và một trang web công khai khi phù hợp. Nó dành cho người muốn chia sẻ hoặc mở mã nguồn một dự án web nhỏ.
Khi nào nên dùng
- ✓Khi bạn muốn đưa một dự án web cục bộ lên GitHub.
- ✓Khi bạn muốn một kho mã có tài liệu và ảnh xem trước.
- ✓Khi bạn muốn một trang nhỏ được lưu trên GitHub Pages và được kiểm tra sau khi đưa lên mạng.
Liên kết skill
https://github.com/MengTo/Skills/blob/main/agent-skills/codex/publish-project-to-github/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Đưa dự án HTML cục bộ của tôi lên GitHub với README và một trang GitHub Pages đang hoạt động.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra dự án và kho mã trước, rồi đóng gói file, viết README và đẩy công việc lên. Sau đó nó xác nhận trang công khai hoạt động sau khi được triển khai.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có tự công khai kho mã mà không hỏi không?
Không. Skill nói việc chia sẻ công khai cần yêu cầu rõ ràng của bạn, nếu không nó sẽ hỏi về quyền hiển thị.
Nó có ghi đè remote đang có không?
Không. Skill nói không bao giờ force-push hay thay remote nếu không có sự cho phép chính xác.
Push thành công có nghĩa là trang hoạt động không?
Không. Skill kiểm tra kết quả đã triển khai một cách riêng sau khi push.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 7.2k
- Vị trí xếp hạng
- #13341
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
3d-cloth-material
7.2kGiúp agent của bạn tạo vải dệt 3D trông thật trong Three.js, với sợi dệt, ánh bóng nhẹ, nếp gấp tự nhiên, viền gấu và đường may.
3d-falling-leaves
7.2kGiúp agent của bạn thêm lá rơi chân thực vào cảnh 3D, với lá xoay tròn, trôi theo gió và được tái sử dụng khi máy quay di chuyển.
3d-four-seasons
7.2kGiúp agent của bạn thêm diện mạo xuân, hạ, thu, đông vào cảnh 3D, thay đổi cây cối, ánh sáng, bầu trời và tuyết mà không cần dựng lại cảnh.
3d-high-poly-models
7.2kGiúp agent của bạn dựng mô hình 3D chi tiết với hình dạng mượt và cạnh trông thật, rồi tạo các phiên bản nhẹ hơn chạy tốt trên web.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.