Imported from zlliang/zlliang (
AGENTS.md). Install upstream withnpx skills add zlliang/zlliang. Copyright stays with the author.
Repository Guide
This repository contains Zilong's personal websites, shared packages, and a small set of root workspace commands. Use this file as the high-level map; load the local skills for task-specific workflow.
What lives here
Websites (all built with Astro, deployed on Vercel):
websites/home: bilingual landing site forzlliang.me; consumes the theme without route injectionwebsites/mesh: English site for technical notes and posts; full theme route injectionwebsites/muse: Chinese site for musing notes and posts; full theme route injection
Shared packages:
@zlliang/data: site, author, and brand data consumed by all websites@zlliang/theme: Astro integration that ships shared routes, middleware, content schemas, layout, components, and styles@zlliang/toolkit: CLI for the shared note and post workflow
Content model
homedefines afragmentscollection insrc/content.config.tsfor reusable localized fragments undercontent/fragments/*.md.meshandmuseshare the same note/post model:- Notes live under
content/notes/YYYY/MM/DD/slug.md. - Post drafts live under
content/posts/drafts/slug.md. - Published posts live under
content/posts/YYYY/MM/DD/slug.md.
- Notes live under
- The shared
notes,posts, andseriesschemas are defined inpackages/theme/src/schemas/content.ts;meshandmusere-export them through their ownsrc/content.config.ts.
Skills
developing-websites: website code, shared packages, thetoolkitCLI, builds, and validationauthoring-blogs: note/post workflow, schema, style, and publishing readiness formeshandmuse(including the optional bilingual English-writing practice loop)reviewing-english: English prose review, comparison, synthesis, and voice coaching
How to combine:
- Pair
authoring-blogswithreviewing-englishfor English notes and posts. - Use
developing-websitesalongside content skills only when the task changes site behavior, shared code, or build output. - For
homefragment or copy edits, usedeveloping-websitesfor file ownership andreviewing-englishwhen prose quality matters;authoring-blogsdoes not coverhome.
Repo conventions
- Run commands from the repository root. See the
developing-websitesskill for the command surface. - A pre-commit hook runs
toolkit optimize-imageon staged image files (*.{jpg,jpeg,png,webp,avif}). - Treat
Deploy,发布, and similar short commands as a request to write a Conventional Commit message, commit the current work, and push to GitHub so Vercel can deploy automatically.
Working principles
- Keep authorial ownership explicit. AI may help review, compare, structure, and implement, but it should not replace the author's thinking.
- Prefer existing shared packages and site conventions over per-site duplication.
- When docs summarize behavior, code wins if there is a conflict.
- Preserve the repo's update note convention and language-specific style when editing content.