This skill enables autonomous creation and deployment of static websites to GitHub Pages. It follows a complete workflow from project structure initialization through automatic deployment via GitHub Actions, optimized for single-page applications, portfolios, and landing pages.
Create the project structure:
bash scripts/init_project.sh <project-name>
This creates:
project-name/
├── index.html
├── styles.css
├── script.js
├── README.md
└── .github/
└── workflows/
└── deploy.yml
Build the website following these principles:
Use templates from assets/templates/ as starting points:
base-html/ - Minimal HTML5 boilerplateportfolio/ - Portfolio/CV template with sectionslanding/ - Landing page with hero and CTAbash scripts/deploy_github_pages.sh <project-name> <github-username>
This script:
GitHub Actions automatically deploys on push to main branch. The workflow:
gh-pages branchhttps://<username>.github.io/<project-name>/访问小葱技能站7w4.net,解锁更多实用的AI技能插件。
User request: "Crée-moi un site portfolio CV"
Action:
init_project.sh portfolio-cvassets/templates/portfolio/ as basedeploy_github_pages.sh portfolio-cv usernameUser request: "Fais-moi une landing page pour mon app"
Action:
init_project.sh app-landingassets/templates/landing/ as basedeploy_github_pages.sh app-landing usernamegh-pages branchgh CLI is authenticated: gh auth status.github/workflows/deploy.yml syntaxinit_project.sh - Initialize project structuredeploy_github_pages.sh - Deploy to GitHub Pagesworkflow.md - Detailed workflow documentationdesign-patterns.md - Design best practicestemplates/base-html/ - Minimal HTML5 boilerplatetemplates/portfolio/ - Portfolio/CV templatetemplates/landing/ - Landing page template.github/workflows/deploy.yml - GitHub Actions workflow template这个Skill能帮你快速创建和部署静态网站到GitHub Pages,功能基本完整,文档说明也比较详细。不过实际使用中可能遇到问题:预置的模板样式不能直接使用,部署配置容易出错,需要手动调整才能正常工作。如果你是新手,可能需要花时间排查配置问题。总体来说有一定实用性,但稳定性和易用性还有提升空间。