hp-shared
Shared conventions for every homepage-plugin agent and skill — stack, code conventions, state-file writes, check commands and how to report them. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- hp-shared
- description
- Shared conventions for every homepage-plugin agent and skill — stack, code conventions, state-file writes, check commands and how to report them. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
- user-invocable
- false
03 SKILL.md 正文
Shared conventions (homepage-plugin)
Agents receive this skill through skills: [hp-shared]. The plugin-root CLAUDE.md is maintainer notes and reaches no agent.
Stack
- Node.js 22.12+, pnpm, TypeScript strict, Astro 5 (static output by default, SSR through adapters)
- Tailwind CSS with shadcn/ui, or Figma-derived custom components when
docs/design-system/design-tokens.jsonexists - Lucide icons; React 19 for interactive islands only
- Content Collections with Zod, MDX, and an optional headless CMS per
contentStrategy - Translations in
src/i18n/{locale}.json; dates throughIntl.DateTimeFormatandIntl.RelativeTimeFormat - Playwright, Lighthouse CI (90+ in every category) and axe-core (WCAG 2.1 AA) for testing
These sites are static and public, so they use no Zustand, Axios, MSW, CRUD stores, auth or RBAC.
Code conventions
- 2-space indentation
.astrofor static sections, React.tsxonly for interactive islands- User-facing text goes through the i18n translation functions
- Images use
<Image />fromastro:assetswith explicitwidth,heightandalt - Mobile-first responsive design with Tailwind breakpoints
sm:,md:,lg:,xl: - One
<h1>per page and a logical heading order aria-labelon icon-only buttons and proper focus managementtruncateorline-clamp-*on variable-length text- Every page defines
<title>,<meta name="description">, Open Graph tags, a canonical URL and JSON-LD
State files
When updating a state JSON file, read its latest content immediately before writing, change only the fields you own, and write the whole merged object. The .lock file belongs to the skill that started the run; agents leave it alone.
Checks
- TypeScript:
tsc --noEmit, ortsc -bwhentsconfig.jsonhas areferencesarray - Build:
astro build, zero errors
Run these through npx. Report a check's result from its output in this run. A check that did not run is reported as not run.
04 同仓库更多 Skills
fe-shared
Shared conventions for every frontend-react-plugin agent and skill — code conventions, state files and locks, accepted deviations, design principles, build working directory, router-mode command matrix, TypeScript check. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
be-spring-shared
Shared conventions for every backend-springboot-plugin agent and skill — tech stack, CQRS architecture, naming, coding standards, TDD, commit and build rules, state files. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
pp-translate
Use after directly editing the working language spec to sync changes to other supported languages.
pp-sync-stitch
Use when wireframes were manually edited on the Stitch website and need to be re-fetched to the local project.
pp-sync-notion
Use when a specification needs to be published or re-synced to Notion after finalization or manual edits.
pp-spec
Use when starting a new feature or project that needs a functional specification before implementation.