ai-sdlc-navigator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseai-sdlc-navigator: Context-Aware Workflow Navigation
ai-sdlc-navigator:上下文感知工作流导航
Internal AI SDLC skill, not client-facing by default. Every rule below is important to follow. None of it can be skipped. Before producing the final recommendation, confirm the target repository, explicit feature, user intent, and requested output format when they are unclear. Do not invent missing feature state or installed capabilities.
内部AI SDLC Skill,默认不面向客户。 以下每条规则都必须遵守,不可跳过任何一条。 在生成最终建议前,若目标仓库、明确功能、用户意图和请求的输出格式不清晰,需先进行确认。 不得虚构缺失的功能状态或已安装能力。
0. Skill Card
0. Skill卡片
- Skill name:
ai-sdlc-navigator - Primary audience: PM, BA, QA, Delivery, Dev
- Supporting audience: AI assistants, agent runners, workflow maintainers
- Audience tags: PM, BA, QA, Delivery, Dev
- SDLC stage: Cross-lifecycle navigation
- Purpose: Inspect compact repository control records and recommend one ranked required action plus relevant optional actions with reasons, exact invocations, expected artifacts, and blockers.
- Output: Read-only Markdown or TOON navigation report
- Skill名称:
ai-sdlc-navigator - 主要受众:PM、BA、QA、交付人员、开发人员
- 辅助受众:AI助手、Agent运行器、工作流维护者
- 受众标签:PM、BA、QA、交付、开发
- SDLC阶段:跨生命周期导航
- 用途:检查精简的仓库控制记录,推荐1个排序后的必填操作及相关可选操作,并提供理由、精确调用方式、预期产物和阻塞问题。
- 输出:只读Markdown或TOON导航报告
0.1 Required Inputs
0.1 必填输入
- Target repository root.
- Optional natural-language intent.
- Optional explicit feature slug.
- Requested human-readable Markdown or compact TOON format.
- 目标仓库根目录。
- 可选自然语言意图。
- 可选明确功能标识(slug)。
- 请求的人类可读Markdown格式或精简TOON格式。
0.2 Clarification Rules
0.2 澄清规则
- Ask a concise question only when the repository or explicitly requested feature cannot be identified safely.
- Treat an omitted feature as optional; resolve it from active state, current branch, and recent state records.
- Separate detected evidence from routing inference.
- Report corrupt, missing, blocked, or unavailable context instead of silently selecting a different feature.
- 仅当无法安全识别仓库或明确请求的功能时,才提出简洁的问题。
- 将省略的功能视为可选;从活跃状态、当前分支和近期状态记录中解析。
- 将检测到的证据与路由推理分开。
- 报告损坏、缺失、阻塞或不可用的上下文,而非静默选择其他功能。
0.2.1 Flow Mode Flags
0.2.1 流模式标志
- Support and
--quick-flow; full flow takes precedence when both are supplied.--full-flow - In quick flow, use compact state, branch, installed-skill, and intent signals and avoid broad repository reads.
- In full flow, verify the explicit feature state, selected skill availability, workspace indexes, and reported blockers before recommending handoff.
- Neither mode may mutate lifecycle state or artifacts.
- When neither flag is supplied, perform deterministic default navigation.
- 支持和
--quick-flow;若同时提供,优先使用完整流模式。--full-flow - 在快速流模式下,使用精简的状态、分支、已安装Skill和意图信号,避免广泛读取仓库内容。
- 在完整流模式下,推荐交接前需验证明确的功能状态、所选Skill的可用性、工作区索引和已报告的阻塞问题。
- 两种模式均不得修改生命周期状态或产物。
- 若未提供任何标志,执行确定性默认导航。
0.3 Output Rules
0.3 输出规则
- Lead with the detected feature and next required action.
- Always include detected context, ,
next_required, and blockers.next_optional - For every action include exact skill name, evidence-backed reason, portable invocation guidance, and expected artifact.
- Return the navigation report directly in the Codex response.
- Return progress, blockers, and recommendations directly in the Codex response.
- Before the final response, emit the contract with
ai-sdlc-handoff/v1,result,blockers, andnext_required; every action includesnext_optional,reason, andcommand.expected_artifact - Do not create ,
summary.txt, or a durable navigation artifact.*-summary.txt - Do not imply that an optional action is a lifecycle predecessor.
- 以检测到的功能和下一个必填操作开头。
- 必须包含检测到的上下文、、
next_required和阻塞问题。next_optional - 每个操作需包含精确的Skill名称、有证据支持的理由、可移植的调用指南和预期产物。
- 直接在Codex响应中返回导航报告。
- 直接在Codex响应中返回进度、阻塞问题和建议。
- 在最终响应前,输出包含、
result、blockers和next_required的next_optional契约;每个操作需包含ai-sdlc-handoff/v1、reason和command。expected_artifact - 不得创建、
summary.txt或持久化导航产物。*-summary.txt - 不得暗示可选操作是生命周期的前置步骤。
0.4 Artifact Routing
0.4 产物路由
- This skill is read-only and produces no canonical artifact.
- Read refinement control records from and implementation control records from
specs-refiniment/.specs/ - Do not create or update decision logs, SDD artifacts, refinement artifacts, indexes, or plans.
- Route durable work to the recommended downstream skill.
- 本Skill为只读,不生成标准产物。
- 从读取细化控制记录,从
specs-refiniment/读取实现控制记录。specs/ - 不得创建或更新决策日志、SDD产物、细化产物、索引或计划。
- 将持久化工作路由至推荐的下游Skill。
0.5 Feature State Machine
0.5 功能状态机
- The navigator is a utility and is not a lifecycle transition.
- Read canonical or
specs-refiniment/<feature>/_ai_sdlc/state.toonbefore broad artifacts.specs/<feature>/_ai_sdlc/state.toon - Prefer an explicit feature, then an active skill, then a feature matching the current branch, then the most recently updated state.
- When a feature has an active skill, recommend resuming it before intent-based routing.
- When no skill is active, recommend the first incomplete stage in the selected workspace.
- Never call or
beginfrom this skill.complete
- 导航器是实用工具,不涉及生命周期转换。
- 在读取广泛产物前,先读取标准的或
specs-refiniment/<feature>/_ai_sdlc/state.toon。specs/<feature>/_ai_sdlc/state.toon - 优先选择明确功能,其次是活跃Skill,然后是匹配当前分支的功能,最后是最近更新的状态。
- 当功能有活跃Skill时,优先推荐恢复该Skill,而非基于意图的路由。
- 若无活跃Skill,推荐所选工作区中第一个未完成的阶段。
- 不得从本Skill调用或
begin。complete
0.6 Artifact Metadata And Metatags
0.6 产物元数据与元标签
- Navigation output is ephemeral and does not carry .
artifact_metadata - Navigation output does not create or update artifact .
metatags - Use artifact metadata only as read-only routing evidence when a downstream decision needs artifact status, flow mode, owner, or trace IDs.
- Do not treat metadata as a replacement for state or visible artifact content.
- 导航输出为临时内容,不携带。
artifact_metadata - 导航输出不创建或更新产物。
metatags - 仅当下游决策需要产物状态、流模式、所有者或跟踪ID时,才将产物元数据作为只读路由证据使用。
- 不得将元数据视为状态或可见产物内容的替代。
0.7 Specs Index
0.7 规范索引
- Inspect and
specs-refiniment/_ai_sdlc/specs-index.toonbefore broad feature searches when they exist.specs/_ai_sdlc/specs-index.toon - Use and
specs-refiniment/specs-index.mdonly when a human-readable inventory is needed.specs/specs-index.md - Use feature-local as lifecycle authority.
state.toon - Report a stale or missing index as a blocker only when it prevents safe feature selection in full flow.
- Do not rebuild indexes from this skill.
- 当和
specs-refiniment/_ai_sdlc/specs-index.toon存在时,先检查它们再进行广泛的功能搜索。specs/_ai_sdlc/specs-index.toon - 仅当需要人类可读的清单时,才使用和
specs-refiniment/specs-index.md。specs/specs-index.md - 将功能本地的作为生命周期权威依据。
state.toon - 仅当索引过期或缺失导致完整流模式下无法安全选择功能时,才将其报告为阻塞问题。
- 不得从本Skill重建索引。
References
参考资料
- Use for deterministic repository inspection, feature selection, and Markdown or TOON rendering.
scripts/navigate.py - Read only when changing signal precedence, required output fields, or navigation safety behavior.
references/routing-contract.md
- 使用进行确定性仓库检查、功能选择以及Markdown或TOON格式渲染。
scripts/navigate.py - 仅当更改信号优先级、必填输出字段或导航安全行为时,才阅读。
references/routing-contract.md
Script Usage
脚本使用
-
Default Markdown guidance:bash
python3 skills/ai-sdlc-navigator/scripts/navigate.py \ --intent "<user request>" --format markdown -
Compact agent routing:bash
python3 skills/ai-sdlc-navigator/scripts/navigate.py \ --feature <feature-name> --intent "<user request>" \ --quick-flow --format toon -
Strict feature verification:bash
python3 skills/ai-sdlc-navigator/scripts/navigate.py \ --feature <feature-name> --full-flow --format toon -
A non-zero exit means one or more reported blockers remain; do not discard the report.
-
默认Markdown指导:bash
python3 skills/ai-sdlc-navigator/scripts/navigate.py \ --intent "<user request>" --format markdown -
精简Agent路由:bash
python3 skills/ai-sdlc-navigator/scripts/navigate.py \ --feature <feature-name> --intent "<user request>" \ --quick-flow --format toon -
严格功能验证:bash
python3 skills/ai-sdlc-navigator/scripts/navigate.py \ --feature <feature-name> --full-flow --format toon -
非零退出码表示存在一个或多个已报告的阻塞问题;不得丢弃报告。
Purpose
目的
Give users and AI assistants one reliable entry point into the AI SDLC harness
without requiring them to memorize installed skills, lifecycle order, feature
state, or artifact paths.
为用户和AI助手提供一个可靠的AI SDLC harness入口,无需他们记忆已安装的Skill、生命周期顺序、功能状态或产物路径。
Inputs
输入
- Collect the repository root from the current workspace or .
--root - Collect the user request as when intent should influence fallback routing.
--intent - Collect when the user identifies an exact feature.
--feature - Collect current branch, dirty-tree count, installed skill directories, and feature-local state through the script.
- In full flow, confirm relevant workspace indexes exist when features are expected.
- 从当前工作区或参数收集仓库根目录。
--root - 当意图应影响回退路由时,将用户请求作为收集。
--intent - 当用户指定精确功能时,收集参数。
--feature - 通过脚本收集当前分支、脏树计数、已安装Skill目录和功能本地状态。
- 在完整流模式下,当预期存在功能时,确认相关工作区索引存在。
Steps
步骤
- Run the navigator in TOON format before manually selecting a workflow.
- Inspect detected repository, branch, installed-skill count, discovered features, selected feature, workspace, stage, active skill, and dirty count.
- Stop on an explicit-feature blocker; do not fall back to another feature.
- Prefer the reported active or incomplete lifecycle action.
- When no feature state exists, use intent routing and established-codebase signals to choose discovery, SDD, QA, review, security, or commit prep.
- Confirm the required skill is installed; report a blocker when it is absent.
- Present the required action first and optional actions separately.
- Execute the downstream skill only when the user requested action; for an advisory request, return the report without mutation.
- Rerun navigation after durable downstream completion when the next phase is still unclear.
- 在手动选择工作流前,以TOON格式运行导航器。
- 检查检测到的仓库、分支、已安装Skill数量、发现的功能、所选功能、工作区、阶段、活跃Skill和脏计数。
- 遇到明确功能阻塞时停止;不得回退到其他功能。
- 优先选择已报告的活跃或未完成生命周期操作。
- 当不存在功能状态时,使用意图路由和已建立的代码库信号选择发现、SDD、QA、评审、安全或提交准备阶段。
- 确认必填Skill已安装;若缺失则报告为阻塞问题。
- 先展示必填操作,再单独展示可选操作。
- 仅当用户请求操作时才执行下游Skill;对于咨询请求,返回报告而不进行修改。
- 当后续阶段仍不明确时,在持久化下游操作完成后重新运行导航。
Output Spec
输出规范
Markdown output must contain:
text
Detected Context:
- repository, branch, installed skills, features, selected feature, workspace,
current stage, active skill, dirty count, flow mode
Next Required:
- skill, reason, command, expected artifact
Next Optional:
- zero or more actions with the same fields
Blockers:
- none or explicit blocker messagesTOON output uses schema and arrays:
, , and .
ai-sdlc-navigator/v1next_required[1]next_optional[N]blockers[N]Quality gate:
- Pass when the selected feature follows signal precedence, the required skill is installed, every action contains all contract fields, and blockers are explicit.
- Fail when the navigator silently changes an explicit feature, recommends a missing skill without a blocker, mutates repository state, or mixes optional actions with required predecessors.
Markdown输出必须包含:
text
检测到的上下文:
- 仓库、分支、已安装Skill、功能、所选功能、工作区、当前阶段、活跃Skill、脏计数、流模式
下一个必填操作:
- Skill、理由、命令、预期产物
下一个可选操作:
- 零个或多个带有相同字段的操作
阻塞问题:
- 无或明确的阻塞消息TOON输出使用架构和数组:、和。
ai-sdlc-navigator/v1next_required[1]next_optional[N]blockers[N]质量门:
- 当所选功能遵循信号优先级、必填Skill已安装、每个操作包含所有契约字段且阻塞问题明确时,通过。
- 当导航器静默更改明确功能、推荐缺失Skill却未报告阻塞、修改仓库状态或混淆可选操作与必填前置步骤时,不通过。
Examples
示例
Valid resume request:
text
User: What should I do next for 101-payment-retry?
Navigator: ai-sdlc-validation is required because branching is complete and
validation is the first incomplete implementation stage.Valid empty-project request:
text
User: I have a product idea. Where do I start?
Navigator: ai-sdlc-working-backwards-discovery is required because no active
feature state or established codebase signal exists.Invalid counter-example:
text
The requested feature was not found, so I selected another recent feature.Reject this because explicit feature identity is authoritative.
有效的恢复请求:
text
用户:101-payment-retry功能我下一步该做什么?
导航器:需要调用ai-sdlc-validation,因为分支已完成,验证是第一个未完成的实现阶段。有效的空项目请求:
text
用户:我有一个产品想法,该从哪里开始?
导航器:需要调用ai-sdlc-working-backwards-discovery,因为不存在活跃功能状态或已建立的代码库信号。无效反例:
text
请求的功能未找到,因此我选择了另一个近期功能。拒绝此类情况,因为明确的功能标识具有权威性。
Edge Cases
边缘情况
- When refinement and implementation state exist for the same explicit feature, prefer implementation only when no state has an active skill.
- When multiple features have active skills, select deterministically and make the ambiguity visible in blockers during full flow.
- When Git is unavailable, report and continue with repository-local state.
not-a-git-repository - When state parsing fails, skip the corrupt record in quick flow and report it as a blocker in full flow.
- When no recommended skill is installed, retain the recommendation and add an installation blocker.
- Treat dirty-tree count as context, not automatic authorization to edit or clean files.
- 当同一明确功能同时存在细化和实现状态时,仅当无状态关联活跃Skill时才优先选择实现状态。
- 当多个功能有活跃Skill时,进行确定性选择,并在完整流模式下将歧义性作为阻塞问题展示。
- 当Git不可用时,报告并继续使用仓库本地状态。
not-a-git-repository - 当状态解析失败时,在快速流模式下跳过损坏记录,在完整流模式下将其报告为阻塞问题。
- 当推荐的Skill未安装时,保留推荐并添加安装阻塞问题。
- 将脏树计数视为上下文,而非自动授权编辑或清理文件。
Scope Boundary
范围边界
- Do not perform the recommended workflow; invoke the downstream skill.
- Do not create, repair, or complete lifecycle state.
- Do not generate delivery artifacts, code, tests, reviews, or commits.
- Do not choose validation commands; use .
$ai-sdlc-validation - Do not resolve product or technical decisions; route to the owning skill and decision log.
- 不得执行推荐的工作流;需调用下游Skill。
- 不得创建、修复或完成生命周期状态。
- 不得生成交付产物、代码、测试、评审或提交。
- 不得选择验证命令;需使用。
$ai-sdlc-validation - 不得解决产品或技术决策;需路由至所属Skill和决策日志。