上下文模板库
context-templates
setup-skills 的共享上下文模板库。在发现上下文文档或其所有权时阅读。该库提供研究输入,而非活动产品上下文或独立的创作工作流。
- License 许可
- MIT
- 所属仓库
- github/replica
- 最近更新
- 2026-11-15
- Stars
- ★ 273
- Forks
- 35
01 前言 Front Matter
- name
- context-templates
- description
- Shared context template library for setup-skills. Read when discovering context documents or their ownership. This library supplies research inputs, not active product context or a separate authoring workflow.
02 资源文件 7
- 参考文档ACCESSIBILITY.md1.9 KB
- 参考文档BROWSER-VALIDATION.md7.4 KB
- 参考文档DESIGN-SYSTEM.md5.9 KB
- 参考文档PRODUCT-DESIGN.md8.2 KB
- 参考文档REPOSITORY.md3.9 KB
- 参考文档RESPONSIVE-DESIGN.md1.7 KB
- 参考文档SEED-DATA.md2.3 KB
03 SKILL.md 正文
Shared context templates
This directory is the only editable template library. It is copied with the
starter beside .agents/skills/. Do not duplicate templates inside individual
skills or infer approved context from templates themselves. The one exception
is Minimal's create-prototype-from-production skill, which ships fixed Minimal
defaults with the same document names for fresh repositories.
Documents and research sources
Plain setup selects every document below once. For a named consumer, read its required-context declaration, including any linked reference that owns that declaration, and select its required and conditional documents once. Do not maintain a second consumer dependency map here. Users can also name documents directly. This entrypoint is not itself a context document.
| Document | Source groups |
|---|---|
| DESIGN-SYSTEM.md | design-system |
| PRODUCT-DESIGN.md | product |
| REPOSITORY.md | repository |
| SEED-DATA.md | product, repository |
| RESPONSIVE-DESIGN.md | product |
| ACCESSIBILITY.md | product, repository |
| BROWSER-VALIDATION.md | repository |
Source groups identify research ownership. design-system and product select
the six shared intake questions in setup-skills' references/source-workflow.md.
The repository group selects automatic, bounded, read-only research of the
current consumer checkout under that workflow, not a source/permission question.
Repository-only selection needs no intake answers. Missing repository answers or
file registrations do not block this local scope. Other groups' research is not
automatically authorized by a file being local.
Collect each applicable question once across selected documents. Preserve all
restrictions and explicit skips, including legacy repository opt-outs, and honor
content exclusions. Volunteered docs add leads, not a new required question.
Bounded proposals live in PRODUCT-DESIGN.md and apply only
where permitted, never as researched product policy.
An empty source registry does not disable automatic local research. Excluded,
missing or inaccessible evidence must produce specific limitations, not fictional
facts or replacement research against a skip.
Optional owner topics
Keep all seven root identities. Authors may keep a document whole or move
task-specific detail into directly linked owner topics when supported tasks can
skip genuinely irrelevant detail. Choose boundaries by task applicability and
cohesion: keep a decision's requirements, conditions, exceptions, examples and
citations together. Keep short, cohesive guidance whole when splitting would
only add navigation. Check evidenced consumer constraints, such as incoming
anchors or a parser that requires a particular structure, before moving content;
do not assume one consumer's constraints apply to others.
Observed oversized or truncated reads can motivate review, but file size,
consistency with other owners or a fixed topic count does not justify a split.
Splitting alone does not establish faster discovery or better task outcomes.
Preserve correct existing text and its authority and historical qualifications;
relocation is not permission to rewrite policy or claim fresh verification.
Do not physically split every template or add new owners, intake or authors.
Roots retain authority, common rules, universal obligations, known gaps and
direct links to every topic with concrete applicability conditions. New topics
use the owner's exclusive topics/<DOCUMENT-STEM>/ directory within active
context; existing linked paths need preservation and explicit inventory.
Each trigger covers normal successful work and readiness as well as relevant failure/recovery work. For example, supported component selection, opening and checking an ordinary preview, and adding valid fixtures must select their applicable details before a failure occurs. Avoid read-all lists and topic chains. Each topic keeps complete usable rules, examples, conditions, exceptions and citations. Shared-owner links transfer ownership, not duplicate policy.
Apply setup's complete-set authoring, preservation and approval contract to roots and topics together. Library templates are research prompts, not approved consumer guidance or permission to activate extra files.
Location
Setup reads this library from .agents/context-templates/ in the current
prototype repository. It does not fetch or install another copy. Context
documents become active only after separate explicit approval.
04 同仓库更多 Skills
create-prototype-from-production
Use when asked to copy, clone, replicate or recreate a live production website or web app as a Replica prototype from its URL, such as "create a prototype from https://example.com" or "replicate this site for a demo". Do not use for building a new design from a brief, or for changing an existing prototype.
页面视觉设计评审
visual-design-review
依据使用方自有的产品与设计系统指南,审查页面层级、分组、密度、操作及状态设计。当用户要求视觉设计评审、页面点评,或询问新页面是否清晰传达其任务时使用。
技能共享源配置与上下文起草
setup-skills
配置共享源,并使用独立的 writer 起草上下文。普通/全新设置会提供用户指定包的安装,并复用内置浏览器能力,仅在确有证据表明必要检查存在缺口时才添加浏览器工具。适用于设置、源修复、编写上下文或刷新草稿。仅配置模式会跳过工具安装和编写;安装和激活需要单独批准。
Hub 反馈设计主题提炼
review-hub-feedback
通过发现、独立判断和综合归纳,审查 Hub 反馈以提炼可复用的设计主题。不进行诊断或优化。
UI 响应式布局审计
responsive-audit
使用使用者上下文和浏览器工具,跨产品定义的视口审查 UI 布局、溢出和导航。当用户要求检查响应式、测试移动端布局或审查断点行为时使用。
Replica 原型控件创建与绑定
prototype-controls
创建并连接 Replica 原型控件。当用户要求添加或修改下拉框、滑块、输入框、切换开关或操作按钮(用于配置变体、场景、可见 UI、应用状态或数据源)时使用,即使未使用画布术语也一样。涵盖声明、类型化绑定、默认值、条件、重置和动作。仅涉及产品 UI 表单字段和筛选器时,应使用 create-prototype。