init-architect
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInit Architect
Init Architect
Purpose
用途
Run once after installing skills (and rerun when architecture drifts) to create or refresh architecture-folder artifacts used by . Also supports scoped updates when invoked from for architecture-impacting PR changes.
architect-agentpr-review-agent在安装Skill后运行一次(当架构发生偏移时重新运行),以创建或刷新供使用的架构目录工件。当被调用时,还支持针对影响架构的PR变更进行范围化更新。
architect-agentpr-review-agentRuntime Configuration
运行时配置
- Read from the repository root before starting.
/orchestra-config.json - If is missing, create it at repository root with:
/orchestra-config.json { "issue_tracker": "linear" }- Read and use it for any generated tracker-facing instructions.
issue_tracker - Allowed values:
issue_tracker,linear.jira - For tracker comments in workflow-scoped mode, include: .
Skill-Version: init-architect@2.0.0
- 启动前从仓库根目录读取文件。
/orchestra-config.json - 如果不存在,在仓库根目录创建该文件,内容为:
/orchestra-config.json { "issue_tracker": "linear" }- 读取配置,并将其用于所有生成的面向问题追踪工具的指令中。
issue_tracker - 允许的取值:
issue_tracker、linear。jira - 在工作流范围模式下,追踪工具的评论中需包含:。
Skill-Version: init-architect@2.0.0
When to Invoke
调用时机
- Immediately after skill installation, before running .
architect-agent - When architecture artifacts are stale after major system changes.
- When flags architecture-impacting changes and provides scoped PR context.
pr-review-agent
- 安装Skill后立即运行,在启动之前执行。
architect-agent - 当架构工件因系统重大变更而过期时。
- 当标记出影响架构的变更并提供PR范围上下文时。
pr-review-agent
Required Inputs
必填输入
- Repository root path.
- Invocation mode:
- (default): repository analysis and full architecture refresh.
full - : targeted update using PR-derived scope.
scoped - For mode:
scoped - parent issue ID.
- PR identifier/link.
- changed files list.
- concise diff summary.
- matched architecture-impact cases.
- suggested architecture sections.
- Optional existing .
/architecture/architecture.md - Optional existing .
/architecture/docs/*.md - Optional existing template.
skills/init-architect/ARCHITECTURE.md - Most recent prior handoff comment in format when running in workflow-scoped mode.
<!-- OPEN-ORCHESTRA-HANDOFF -->
- 仓库根目录路径。
- 调用模式:
- (默认):仓库分析与完整架构刷新。
full - :使用PR衍生的范围进行针对性更新。
scoped - 对于模式:
scoped - 父问题ID。
- PR标识符/链接。
- 变更文件列表。
- 简洁的差异摘要。
- 匹配的架构影响案例。
- 建议的架构章节。
- 可选的现有文件。
/architecture/architecture.md - 可选的现有文件。
/architecture/docs/*.md - 可选的现有模板。
skills/init-architect/ARCHITECTURE.md - 在工作流范围模式下运行时,最近的、格式为的历史交接评论。
<!-- OPEN-ORCHESTRA-HANDOFF -->
Outputs
输出
- in repository root (created only if missing).
/orchestra-config.json - populated as the architecture index.
/architecture/architecture.md - populated for complex domains.
/architecture/docs/*.md - In mode: only impacted sections/documents are updated; unaffected sections remain unchanged.
scoped - Optional targeted updates to reference tables so runtime guidance matches generated docs.
skills/architect-agent/SKILL.md - For workflow-scoped mode, a handoff comment wrapped exactly as:
JSON
{
"execution_trace": "Execution-Trace:\nActions:\n1. <action>\n2. <action>\nDecisions:\n- <architecture update decision + reason>\nReferences:\n- <changed files or architecture docs>\nAssumptions:\n- <assumption>\nOpen-Questions: none|<question list>\nSkill-Version: init-architect@2.0.0",
"handoff_summary": {
"from_skill": "init-architect",
"to_skill": "architect-agent|pr-review-agent",
"status": "ready|blocked|completed",
"delta": ["<what changed in architecture artifacts>"],
"key_decisions": [{"decision": "<decision>", "reason": "<reason>"}],
"relevant_artifacts": [
{
"artifact": "architecture-index-or-doc",
"hash": "sha256:<hash>",
"last_modified": "<ISO-8601>",
"summary": "<updated sections and rationale>"
}
],
"open_blockers": [{"blocker": "<text>", "owner": "<owner>", "next_action": "<action>"}],
"next_guidance": {
"need_full": ["architecture/architecture.md"],
"focus": ["<sections downstream agents must re-check>"]
}
}
}- must be <= 600 tokens.
handoff_summary
- 仓库根目录下的文件(仅在缺失时创建)。
/orchestra-config.json - 已填充内容的作为架构索引。
/architecture/architecture.md - 为复杂领域填充的文件。
/architecture/docs/*.md - 在模式下:仅更新受影响的章节/文档;未受影响的章节保持不变。
scoped - 可选地针对性更新中的参考表格,使运行时指南与生成的文档保持一致。
skills/architect-agent/SKILL.md - 在工作流范围模式下,输出格式严格如下的交接评论:
JSON
{
"execution_trace": "Execution-Trace:\nActions:\n1. <action>\n2. <action>\nDecisions:\n- <architecture update decision + reason>\nReferences:\n- <changed files or architecture docs>\nAssumptions:\n- <assumption>\nOpen-Questions: none|<question list>\nSkill-Version: init-architect@2.0.0",
"handoff_summary": {
"from_skill": "init-architect",
"to_skill": "architect-agent|pr-review-agent",
"status": "ready|blocked|completed",
"delta": ["<what changed in architecture artifacts>"],
"key_decisions": [{"decision": "<decision>", "reason": "<reason>"}],
"relevant_artifacts": [
{
"artifact": "architecture-index-or-doc",
"hash": "sha256:<hash>",
"last_modified": "<ISO-8601>",
"summary": "<updated sections and rationale>"
}
],
"open_blockers": [{"blocker": "<text>", "owner": "<owner>", "next_action": "<action>"}],
"next_guidance": {
"need_full": ["architecture/architecture.md"],
"focus": ["<sections downstream agents must re-check>"]
}
}
}- 的内容长度必须≤600个token。
handoff_summary
Context Gathering Order (Strict)
上下文收集顺序(严格执行)
- Locate the most recent comment containing from the previous skill.
<!-- OPEN-ORCHESTRA-HANDOFF --> - Parse the JSON inside it. This is your primary context.
- Look at its list and hashes.
relevant_artifacts - Declare exactly which artifacts you need via .
need_full - Only then read full content if hash changed or you explicitly require it.
- In non-workflow bootstrap mode with no prior handoff, continue with repository artifacts only.
- 定位上一个Skill生成的、包含的最新评论。
<!-- OPEN-ORCHESTRA-HANDOFF --> - 解析其中的JSON内容,这将作为你的主要上下文。
- 查看其列表及哈希值。
relevant_artifacts - 通过明确声明你需要的工件。
need_full - 仅当哈希值变更或你明确需要时,才读取完整内容。
- 在无历史交接记录的非工作流引导模式下,仅基于仓库工件继续执行。
Procedure
执行流程
- Ensure exists and has key
/orchestra-config.json.issue_tracker - Execute the strict context gathering order above when in workflow-scoped mode.
- Ensure scaffold exists:
- .
skills/init-architect/ARCHITECTURE.md
- Ensure generated artifact paths exist:
- .
/architecture/architecture.md - .
/architecture/docs/
- If architecture content currently lives under or
/ARCHITECTURE.md, migrate relevant content into/docs/and stop updating legacy root-level copies./architecture/ - Determine mode:
- If scoped payload is present, run mode.
scoped - Otherwise run mode.
full
- In mode, analyze repository structure (do not read every source file):
full
- stack, entry points, boundaries, data layer, integrations, auth, sensitive areas, conventions.
- In mode, write/update
fullas a concise index:/architecture/architecture.md
- system overview.
- component map.
- sensitive areas.
- conventions.
- reference docs table.
- In mode, create/update
fullonly for domains that need detail beyond the index./architecture/docs/*.md - In mode, use provided PR scope first and update only impacted architecture artifacts:
scoped
- map changed files and matched cases to existing sections in .
/architecture/architecture.md - update only relevant sections in .
/architecture/architecture.md - update or create only the necessary files tied to those sections.
/architecture/docs/*.md - keep unrelated sections/documents untouched.
- In mode, preserve current architecture structure and terminology unless the PR clearly introduces a new boundary or domain.
scoped - Keep index shallow; move depth to domain docs.
- If generated docs change domain/sensitive-area mapping, update relevant sections in .
skills/architect-agent/SKILL.md - In workflow-scoped mode, post handoff JSON with or
status: completed.status: blocked
- 确保存在且包含
/orchestra-config.json键。issue_tracker - 在工作流范围模式下,严格执行上述上下文收集顺序。
- 确保模板文件存在:
- 。
skills/init-architect/ARCHITECTURE.md
- 确保生成的工件路径存在:
- 。
/architecture/architecture.md - 目录。
/architecture/docs/
- 如果架构内容当前存储在或
/ARCHITECTURE.md目录下,将相关内容迁移至/docs/目录,并停止更新根目录下的旧版本文件。/architecture/ - 确定运行模式:
- 如果存在范围化负载,运行模式。
scoped - 否则运行模式。
full
- 在模式下,分析仓库结构(无需读取所有源文件):
full
- 技术栈、入口点、边界、数据层、集成组件、认证机制、敏感区域、编码规范。
- 在模式下,编写/更新
full作为简洁的索引:/architecture/architecture.md
- 系统概述、组件映射、敏感区域、编码规范、参考文档表格。
- 在模式下,仅为需要超出索引详细内容的领域创建/更新
full文件。/architecture/docs/*.md - 在模式下,优先使用提供的PR范围,仅更新受影响的架构工件:
scoped
- 将变更文件和匹配的案例映射到中的现有章节。
/architecture/architecture.md - 仅更新中的相关章节。
/architecture/architecture.md - 更新或创建与这些章节关联的必要文件。
/architecture/docs/*.md - 保持无关章节/文档不变。
- 在模式下,除非PR明确引入了新的边界或领域,否则保留现有架构的结构和术语。
scoped - 保持索引简洁;将详细内容放在领域文档中。
- 如果生成的文档改变了领域/敏感区域的映射,更新中的相关章节。
skills/architect-agent/SKILL.md - 在工作流范围模式下,发布状态为或
completed的交接JSON。blocked
Guardrails
约束规则
- This skill owns architecture artifact generation; must not regenerate architecture docs.
architect-agent - Do not overwrite template files.
skills/init-architect/ARCHITECTURE.md - Keep generated architecture artifacts under (
/architecture/,/architecture/architecture.md)./architecture/docs/*.md - Prefer clarity over coverage; do not scan the full codebase unnecessarily.
- In mode, do not perform a full repository rescan unless scoped context is insufficient.
scoped - In mode, prioritize consistency with existing architecture docs and produce minimal diffs.
scoped
- 本Skill负责架构工件的生成;不得重新生成架构文档。
architect-agent - 不得覆盖模板文件。
skills/init-architect/ARCHITECTURE.md - 将生成的架构工件保存在目录下(
/architecture/、/architecture/architecture.md)。/architecture/docs/*.md - 优先保证清晰度而非覆盖范围;无需不必要地扫描整个代码库。
- 在模式下,除非范围化上下文不足,否则不得执行完整的仓库重新扫描。
scoped - 在模式下,优先保证与现有架构文档的一致性,并生成最小化的差异。
scoped
Handoff
交接对象
Primary consumers: , (scoped invocation).
architect-agentpr-review-agent主要使用者:、(范围化调用场景)。
architect-agentpr-review-agent