GitHub Pages Personal Website
Transform user-provided information step by step into a maintainable static personal website. This skill is distilled from the complete initial build and 29 commits of peppaoinks/peppaoinks.github.io, covering content, design, assets, interactivity, publishing, and feedback revisions.
First, Locate the Project and Requirements
- Check the current directory, applicable
AGENTS.md, actual Git root, remote, and uncommitted changes. Desktop folders with the same name may be empty; locate the real source from an existing project or site build record. - Distinguish between new construction, maintenance, component addition, asset processing, and production issue resolution; only execute the required parts for this task. Use the existing tech stack; do not migrate frameworks for small changes. By default, new sites of this kind use the vanilla static trio.
- Obtain the user's name (if willing to share publicly), identity, languages, projects, and contact information. When content is missing, first build an extensible layout. Do not repeat questions already answered; hide or use a concise empty state for modules without content.
- Only ask about URLs, file-to-location mappings, and account sources when they cannot be determined; continue completing tasks that do not depend on the answers.
Read On Demand
| Current Task | Reference |
|---|---|
| Full history from initial to final version of the original site | references/build-history.md |
| Information gathering, typography, fonts, branding, bilingual, themes | references/design-and-content.md |
| Albums, HEIC/JPEG/MOV, dates, compression, QR codes | references/media-and-qr.md |
| Header animations, campus map, bookshelf, music sliding cards | references/interactive-components.md |
| Repository, Pages, acceptance, caching, commits & deployment | references/release-and-qa.md |
Implementation Process
- Build a usable first version. Create a hero section, about, real public projects, and contact entry; ensure small screen readability and keyboard accessibility. Determine content hierarchy first, then adjust fonts and spacing based on screenshots.
- Gradually supplement real content. Add education, hobbies, albums, recent updates, articles, and photography based on user-provided information; hide the resume PDF entry when not provided.
- Unify across the site. Use CSS variables for theme management; synchronize language switching for body text, buttons, alt text, page titles, descriptions, and map text; default HTML should match the translation dictionary.
- Confirm assets before processing. Keep original images read-only; first read dates and orientation, then generate web copies; process photos, covers, and QR codes separately.
- Progressive enhancement for interactivity. Use native horizontal scrolling for bookshelves; support buttons, keyboard, and gestures for albums; load maps lazily when near the viewport; play videos on demand; respect reduced motion preferences for animations.
- Local acceptance testing. Check all four combinations of Chinese/English and light/dark themes, desktop/mobile, and real interactions; build a preview directory using the published file whitelist and confirm all new assets are included.
- Authorize publishing per task and verify. The permission to create, push, and publish comes from the user's request; the skill itself does not grant authorization. Locate the deployment corresponding to the target commit, then verify online files and key behaviors.
User feedback takes precedence over old designs. When deleting, renaming, moving, or removing contact information, synchronously update default HTML, translations, navigation, accessibility labels, and project documentation. Do not force the original site's green color, logo, column order, or seven songs onto other people's homepages.
Reusable Assets
- assets/pages.yml: A working sample static Pages workflow from the original site; copy to the target site's
.github/workflows/pages.ymland adjust the branch and file list. It will not self-deploy in the skill repository. - scripts/optimize_images.py: Uses Pillow to generate WebP copies, records source EXIF dates, orientation, and file sizes; does not overwrite by default. HEIC requires optional pillow-heif or a system tool for conversion.
- scripts/check_site.py: Uses Python standard library to check local resources, HTML anchors, and JSON; can byte-compare against online static files. Does not replace browser-based acceptance.
Replace the following paths with actual locations:
python3 /path/to/skill/scripts/optimize_images.py photo.jpg --output-dir /site/assets/gallery --report /tmp/media-report.json
python3 /path/to/skill/scripts/check_site.py /path/to/site
python3 /path/to/skill/scripts/check_site.py /path/to/site --base-url https://OWNER.github.io/ --cache-tag COMMIT_SHA
Completion Criteria
- Do not treat a successful push as a successful deployment; do not treat file consistency as a substitute for visual and interactive acceptance.
- Do not fabricate photo dates, personal experiences, reading status, or play history; clearly distinguish candidate playlists from actual recent plays.
- Empty articles/photography modules do not equal a completed content management system; a resume entry being ready does not mean the PDF is connected.
- Deliver the production URL or local preview, source code/commit link, verification results, and actual limitations; record the source and maintenance entry for new assets.