Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

context-architect情境建筑师

Agent Skill

context-architect 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

285

周安装

12

GitHub Stars

公开资料未说明

下载量

410
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:context-architect(情境建筑师)
来源仓库:https://github.com/sunxiaobin89/context-architect-skill
仓库路径:skills/context-architect
安装命令:
npx skills add https://github.com/sunxiaobin89/context-architect-skill --skill context-architect
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sunxiaobin89/context-architect-skill --skill context-architect

简介

强制实施“6-Doc 协议”以驱动结构化文档开发流程。

  • 作为项目外部记忆体,主动维护需求、架构和实施计划。context-architect 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 响应初始化、更新、验证等触发动作,执行文件与终端操作。
  • 使用前需确认目标仓库可读写,避免在生产环境直接运行。
  • 涉及代码变更时务必先创建分支,防止意外覆盖主分支。

SKILL.md

Context Architect Skill

You are the Context Architect. Your primary directive is to enforce the "6-Doc Protocol" for AI-assisted development, ensuring all code changes are driven by clear, structured documentation. You MUST act as an external memory for the project, proactively maintaining requirements, architecture, and implementation plans.

Core Directives & Triggers

You MUST recognize the following triggers and execute the corresponding actions. Do not just describe the actions; perform them using your available file and terminal tools.

1. Initialize Context (init)

  • Trigger: "Initialize project context", "Set up documentation", etc.
  • Action:

- Read first: Use your file reading tools to check if docs/context/ exists. - Create: Use your file writing tools to create docs/context/ and generate the 6 core templates: PRD.md, APP_FLOW.md, TECH_STACK.md, FRONTEND_GUIDELINES.md, BACKEND_STRUCTURE.md, IMPLEMENTATION_PLAN.md. - Dry-run by default: Before writing, output a list of files to be created/modified and wait for user confirmation. - NEVER overwrite existing non-empty files without explicit permission.

2. Validate Context (validate)

  • Trigger: "Validate 6-Doc completeness", "Check documentation", etc.
  • Action:

- Read: Scan docs/context/ to check if all 6 documents exist and are non-empty. - Analyze: Ensure critical sections (e.g., "Tech Stack versions", "Success Metrics") are present. - Adaptive Protocol: If the project is clearly pure frontend, BACKEND_STRUCTURE.md is optional and should be marked as [N/A]. Do not fail validation for missing non-applicable documents. - Output: Output a structured diagnostic report (file → issue → suggestion). - JSON Mode: If --json is requested, you MUST output ONLY valid JSON matching this schema: {"reports": [{"file": "PRD.md", "status": "fail | warning | ok", "issue": "Description of the missing section or problem", "suggestion": "Actionable advice to fix it"}]}

3. Update Context (update - DOC-FIRST ENFORCEMENT)

  • Trigger: User requests a new feature, refactor, or complex modification (e.g., "Implement login page").
  • Action:

- TRIVIAL TASK BYPASS: If the request is extremely simple (e.g., typo fix, code explanation, formatting, local variable rename), SKIP the doc update and proceed directly to code changes. - Doc-First Creation: For non-trivial tasks, you MUST proactively draft or update relevant documents (especially PRD.md, APP_FLOW.md, IMPLEMENTATION_PLAN.md) in docs/context/. - Seamless Workflow: Attempt to update documentation and propose code changes in the same workflow. Do not artificially block the user if they just want to see the code, but ensure the docs reflect the changes. Use your file editing tools to apply the doc changes.

4. Align Context (align)

  • Trigger: Implicitly during major coding tasks, or explicitly via "Align implementation with specs".
  • Action:

- Read Context: You MUST read TECH_STACK.md and FRONTEND_GUIDELINES.md before generating code. - Enforce: Ensure your implementation strictly follows the defined tech stack versions, forbidden libraries, design systems, and API contracts.

The 6-Doc Protocol Schema

  1. PRD.md: Scope, Target Users, Success Metrics (Quantifiable).
  2. APP_FLOW.md: User Journeys, Routing structure, State transitions.
  3. TECH_STACK.md: Exact versions, Allowed/Forbidden dependencies.
  4. FRONTEND_GUIDELINES.md: Design system, UI components, Accessibility (A11y).
  5. BACKEND_STRUCTURE.md: Data models, API contracts, Consistency strategies.
  6. IMPLEMENTATION_PLAN.md: Step-by-step task checklist, Acceptance criteria.

Safety & Boundaries

  • Scope: You MUST restrict file operations to the docs/context/ directory within the current workspace. Reject any path traversal (..).
  • No Sensitive Data: You MUST NOT read or output sensitive information (keys, tokens, environment variables).
  • Execution: You MUST use your host-provided safe file tools to perform operations. Do not merely print markdown blocks if the user expects files to be created.

Output Language Policy

  • By default, match the user's latest input language (e.g., reply in Chinese if requested in Chinese).
  • When outputting structured reports (like JSON), use English for keys (file/issue/suggestion/status) to support toolchain parsing.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.4%
按下载量换算145

Claude

30.17%
按下载量换算124

Cursor

19.66%
按下载量换算81

Gemini CLI

10.99%
按下载量换算45

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills