Agent Skills › github/replica › context-templates

context-templates

GitHub

共享上下文模板库,为setup-skills提供研究输入。包含设计、产品、仓库等文档索引,指导如何根据消费方需求选择并读取相关上下文文档,确保研究输入的准确性和边界。

starters/shared/.agents/context-templates/SKILL.md github/replica

Trigger Scenarios

需要发现或选择上下文文档时 配置setup-skills的研究源时

Install

npx skills add github/replica --skill context-templates -g -y
More Options

Non-standard path

npx skills add https://github.com/github/replica/tree/main/starters/shared/.agents/context-templates -g -y

Use without installing

npx skills use github/replica@context-templates

指定 Agent (Claude Code)

npx skills add github/replica --skill context-templates -a claude-code -g -y

安装 repo 全部 skill

npx skills add github/replica --all -g -y

预览 repo 内 skill

npx skills add github/replica --list

SKILL.md

Frontmatter
{
    "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."
}

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.

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.

Version History

  • f19c050 Current 2026-11-07 08:51

Same Skill Collection

.github/extensions/replica-prototype/skills/replica-pick-and-polish/SKILL.md
.github/extensions/replica-prototype/skills/replica-publish-prototype/SKILL.md
.github/extensions/replica-prototype/skills/review-hub-feedback/SKILL.md
.github/skills/code-review/SKILL.md
.github/skills/write-tests/SKILL.md
starters/coreai/.agents/skills/coreai-ds-fluentui-react/SKILL.md
starters/coreai/.agents/skills/css-styling/SKILL.md
starters/coreai/.agents/skills/icons/SKILL.md
starters/coreai/.agents/skills/interpreting-html/SKILL.md
starters/coreai/.agents/skills/lint/SKILL.md
starters/coreai/.agents/skills/new-variant/SKILL.md
starters/coreai/.agents/skills/react-components/SKILL.md
starters/coreai/.agents/skills/routing/SKILL.md
starters/coreai/.agents/skills/start-app/SKILL.md
starters/coreai/.agents/skills/state-management/SKILL.md
starters/shared/.agents/skills/accessibility-audit/SKILL.md
starters/shared/.agents/skills/add-seed-data/SKILL.md
starters/shared/.agents/skills/agent-browser/SKILL.md
starters/shared/.agents/skills/browser-canvas-validation/SKILL.md
starters/shared/.agents/skills/component-design-system-review/SKILL.md
starters/shared/.agents/skills/create-prototype/SKILL.md
starters/shared/.agents/skills/developer-handoff/SKILL.md
starters/shared/.agents/skills/prepare-feedback-proposals/SKILL.md
starters/shared/.agents/skills/product-design/SKILL.md
starters/shared/.agents/skills/prototype-controls/SKILL.md
starters/shared/.agents/skills/responsive-audit/SKILL.md
starters/shared/.agents/skills/review-hub-feedback/SKILL.md
starters/shared/.agents/skills/setup-skills/SKILL.md
starters/shared/.agents/skills/visual-design-review/SKILL.md
starters/coreai/.agents/skills/features-variants/SKILL.md

Metadata

Files
0
Version
f19c050
Hash
c1dc2c05
Indexed
2026-11-07 08:51

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-07 09:45
浙ICP备14020137号-1