vision

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/vision

/vision

You are running the vision skill. Produce a VISION.md the author can approve: an acceptance policy for the project's future, grounded in what they actually build, and sharpened by hypotheticals they answer on an interactive review board.
This is not a writing exercise. Follow this file top to bottom.
你正在运行vision技能。生成一份可供作者批准的VISION.md文档:这是一份针对项目未来的验收准则,基于作者实际构建的内容,并通过作者在交互式评审板上回答的假设场景来完善。
这不是单纯的写作练习,请自上而下遵循本文件的要求。

Host requirement

主机要求

You need read access to the target repository and its real history:
  • Prefer merged-PR history via a GitHub-class CLI (gh, gh-axi).
  • If PRs are not accessible, fall back to git commit history on the default branch (git log): titles and messages still reveal what the author builds.
  • Only if no real history is readable at all, stop and say so. Never fabricate the author's values, PR titles, or evidence. A vision built on invented evidence is worse than no vision.
The review loop runs on lavish-axi, executed directly through
npx -y lavish-axi
- no install requirement. Simply try to launch it, and report a blocker only if the launch itself fails.
你需要拥有目标代码仓库及其真实历史的读取权限:
  • 优先通过GitHub类CLI工具(gh、gh-axi)获取已合并PR的历史记录。
  • 如果无法访问PR记录,则退而求其次,使用默认分支的git提交历史(git log):提交标题和信息仍能反映作者的实际构建内容。
  • 只有在完全无法读取真实历史记录的情况下,停止操作并告知用户。绝对不得编造作者的价值观、PR标题或相关证据。基于虚构证据构建的愿景比没有愿景更糟糕。
评审循环通过lavish-axi运行,直接执行
npx -y lavish-axi
即可——无需提前安装。只需尝试启动该工具,仅在启动失败时才报告阻塞问题。

Hard rules

硬性规则

  1. Evidence over vibes. Every principle in the draft must be traceable to concrete evidence: named PRs or commits, files, docs, or the author's recorded answers. Generic engineering virtues ("we value quality") are banned unless the history demonstrates them specifically.
  2. Check for an existing VISION.md first. If one exists on the default branch, switch to delta mode: treat it as the approved baseline, propose line-level candidate changes from evidence newer than it, and never write a competing document.
  3. The author owns the vision. You draft, stress-test, and fold in their verdicts; you never approve, never soften a hypothetical to please, and never fold in a principle they did not state or demonstrate.
  4. A vision is an acceptance policy. Write testable accept/resist criteria in declarative present tense, with explicit non-goals, so a future reader, human or agent, can apply them to a concrete change.
  5. No softball hypotheticals. Each one must sit on a genuine fault line where yes and no are both defensible, with both sides steelmanned. If you can predict the author's answer, replace the hypothetical.
  6. The review loop runs on lavish-axi, from the shipped template. Draft and hypotheticals are presented as one board built from
    assets/review-template.html
    +
    assets/review.css
    , used as-is: black ink on white paper set like literature, full draft always fully visible, one hypothetical at a time in a card stack. Fill the template's slots; never restyle or restructure it, and never substitute another review surface.
  7. Iterate in batches, trace every edit. Each author verdict maps to a named edit in a changelog; the author must be able to see exactly how their answer changed the text.
  8. Formatting. One sentence per line. Plain hyphens, never em dashes. No roadmap, no feature list, no marketing voice.
  1. 证据优先,拒绝主观感受。草稿中的每一条原则都必须可追溯到具体证据:已命名的PR或提交记录、文件、文档,或作者已记录的回答。除非历史记录明确体现了通用工程美德(如“我们重视质量”),否则禁止使用此类表述。
  2. 首先检查是否存在现有VISION.md。如果默认分支上已有VISION.md,则切换至增量模式:将其视为已批准的基线,基于比它更新的证据提出逐行候选修改,绝对不得编写竞争性文档。
  3. 愿景归作者所有。你负责起草、压力测试,并整合作者的评审意见;你无权批准文档,不得为了迎合作者而弱化假设场景,也不得加入作者未声明或未通过实际行动体现的原则。
  4. 愿景是验收准则。以陈述式现在时态编写可测试的接受/拒绝标准,并明确列出非目标,以便未来的读者(人类或Agent)能够将其应用于具体的变更。
  5. 杜绝“软”假设场景。每个假设场景都必须处于合理的争议点上,即“是”与“否”都有充分的依据,且双方观点都经过严谨论证。如果你能预测作者的答案,请替换该假设场景。
  6. 评审循环基于lavish-axi及官方模板运行。草稿和假设场景需整合到一个基于
    assets/review-template.html
    +
    assets/review.css
    构建的评审板中,且必须原样使用:白底黑字,排版类似文献,完整草稿始终完全可见,假设场景以卡片堆叠形式逐一展示。只需填充模板的预留位置;不得重新设计样式或结构,也不得替换为其他评审界面。
  7. 批量迭代,追踪每一处修改。作者的每一条评审意见都对应变更日志中的一项命名修改;作者必须能够清晰看到他们的回答如何改变了文档内容。
  8. 格式要求。每行一句话。使用普通连字符,不得使用破折号。不得包含路线图、功能列表或营销话术。

Pipeline

流程

Step 0 - Parse target and author

步骤0 - 解析目标仓库与作者

  • Target repo: current working directory by default, or an explicit owner/repo.
  • Author: the person whose vision this is; default to the repo owner. Their merged work is the evidence base.
  • Ask one short question if the target or author is genuinely ambiguous.
  • 目标仓库:默认为当前工作目录,或明确指定的owner/repo。
  • 作者:该愿景的归属者;默认为仓库所有者。其已合并的工作内容为证据基础。
  • 如果目标仓库或作者存在明确歧义,可提出一个简短问题确认。

Step 1 - Learn the pattern

步骤1 - 了解文档结构

A VISION.md has a stable anatomy; hold the draft to it:
  • Identity opener: "X exists so that ...", who it serves, and "It owns exactly one thing: ...".
  • 3-6 principle sections with short declarative headings, each a set of testable present-tense commitments and refusals.
  • Explicit non-goals, named concretely ("it is not a CI system, not a ...").
  • A closing pair of tests: "A change aligns when ..." and "A change should be resisted when ...", concrete enough to apply to a real PR.
  • Voice: declarative, present tense, zero marketing; length 40-70 lines.
If the author names exemplar visions, read them; note shape, voice, length.
VISION.md有固定的结构;草稿需遵循该结构:
  • 身份开篇:“X存在的目的是……”,服务对象,以及“它只专注于一件事:……”。
  • 3-6个原则章节,每个章节有简短的陈述式标题,包含一组可测试的现在时态承诺与拒绝条款。
  • 明确的非目标,具体命名(如“它不是CI系统,不是……”)。
  • 结尾的两组测试标准:“当……时,变更符合愿景”和“当……时,应拒绝变更”,内容需足够具体,可应用于真实PR。
  • 语气:陈述式、现在时态,无营销话术;篇幅为40-70行。
如果作者提及了范例愿景文档,请阅读这些文档;注意其结构、语气和篇幅。

Step 2 - Existing-vision check

步骤2 - 检查现有愿景文档

  • If the default branch has a VISION.md: delta mode (hard rule 2). Diff its age against the history and propose only evidence-backed candidate additions or edits, each independently acceptable.
  • If not: from-scratch mode.
  • 如果默认分支上存在VISION.md:启用增量模式(硬性规则2)。对比文档创建时间与历史记录,仅提出基于证据的候选添加或修改内容,每项修改需独立可接受。
  • 如果不存在:启用从头创建模式。

Step 3 - Mine the evidence

步骤3 - 挖掘证据

  • Repo analysis: README identity claims, architecture, stated non-goals, refusal paths, test discipline.
  • History mining: list the author's merged PRs, aim for 30-100 titles, and read 8-15 full bodies spread across the range (for example
    gh pr list --author <owner> --state merged --limit 100
    , or the gh-axi equivalent). If PRs are inaccessible, walk default-branch commit history instead (
    git log --author=<owner>
    ), reading messages for the same signal.
  • Extract recurring revealed values: what gets built, what gets refused, what class of bug gets fixed at the root, what the author writes in intent statements.
  • Produce a private evidence sheet: value -> supporting PRs, commits, or files. This sheet is the source of truth for every drafted line.
  • 仓库分析:README中的身份声明、架构、已声明的非目标、拒绝的变更路径、测试规范。
  • 历史记录挖掘:列出作者已合并的PR,目标为30-100个标题,并阅读其中8-15个完整的PR内容(例如使用
    gh pr list --author <owner> --state merged --limit 100
    ,或gh-axi的等效命令)。如果无法访问PR记录,则遍历默认分支的提交历史(
    git log --author=<owner>
    ),从提交信息中提取相同的信号。
  • 提取反复体现的价值观:作者构建了什么、拒绝了什么、哪类bug会从根源修复、作者在意图声明中写了什么。
  • 生成一份私有证据表:价值观 -> 对应的PR、提交记录或文件。该表是草稿每一行内容的唯一来源。

Step 4 - Draft

步骤4 - 起草文档

  • Follow the step 1 anatomy and the output template below.
  • Every line must map to the evidence sheet. Length target: 40-70 lines.
  • Delta mode instead yields: baseline unchanged + a numbered list of candidate line additions/edits, each with its evidence.
  • 遵循步骤1中的结构及下方的输出模板。
  • 每一行内容都必须映射到证据表。目标篇幅:40-70行。
  • 如果是增量模式,则输出:保留基线内容不变 + 编号的候选逐行添加/修改列表,每项修改需附带对应的证据。

Step 5 - Design the hypotheticals

步骤5 - 设计假设场景

  • 8-12 concrete change proposals per vision, aimed at the draft's fault lines. Draw from this taxonomy:
    • tempting-but-off-mission features the author will plausibly be asked for;
    • principle collisions (simplicity vs capability, safety vs speed, generality vs focus, cost vs quality);
    • slippery slopes, where one reasonable step normalizes the next;
    • scope expansions (new users, new content types, new hosts, teams);
    • identity questions the draft leaves open.
  • Format per hypothetical: id, title, the concrete proposal (2-4 sentences), the principle it tests (quote the draft), and why the answer is non-obvious (steelman both sides).
  • Quality gate: delete and replace any hypothetical whose answer you can predict.
  • 每份愿景文档对应8-12个具体的变更提案,针对草稿中的争议点。可从以下分类中选取:
    • 诱人但偏离使命的功能,作者很可能会被要求开发此类功能;
    • 原则冲突(简洁性与功能性、安全性与速度、通用性与专注度、成本与质量);
    • 滑坡效应,即一个合理的步骤会导致后续更多不合理的步骤;
    • 范围扩展(新用户、新内容类型、新宿主、新团队);
    • 草稿未明确的身份问题。
  • 每个假设场景的格式:ID、标题、具体提案(2-4句话)、测试的原则(引用草稿内容)、答案不明确的原因(严谨论证双方观点)。
  • 质量把关:删除并替换任何你能预测作者答案的假设场景。

Step 6 - Review loop (lavish-axi, from the shipped template)

步骤6 - 评审循环(基于lavish-axi及官方模板)

  • Copy
    assets/review-template.html
    and
    assets/review.css
    next to each other, then fill only the template's marked slots: project name, run note, the full DRAFT markdown, and the CARDS array (id, title, proposal, tested principle, both-sides steelman per card).
  • Change nothing else: the template already carries the house structure - full draft on the left, one card at a time on the right, the steelman in full view, one queued verdict per card - so no boilerplate is rewritten and no run is restyled.
  • Launch with
    npx -y lavish-axi <board.html>
    , report the URL, then wait on
    npx -y lavish-axi poll <board.html>
    ; answers arrive as queued verdicts.
  • On each batch: record the verdicts verbatim in a durable answers file, distill the principles they reveal, fold every verdict into the draft, update the board in place (new draft text, remaining cards), and reply through
    poll --agent-reply
    with a changelog line per verdict ("H-7 no -> authority section now opens with ...").
  • Continue until the author approves or ends the session. Do not approve on their behalf; do not treat silence as approval.
  • assets/review-template.html
    assets/review.css
    复制到同一目录下,然后仅填充模板的预留位置:项目名称、运行说明、完整的DRAFT markdown内容,以及CARDS数组(每个卡片包含ID、标题、提案、测试的原则、双方严谨论证的内容)。
  • 不得修改其他内容:模板已包含完整的界面结构——左侧显示完整草稿,右侧逐一展示卡片,完整显示双方论证内容,每张卡片对应一个待处理的评审意见——因此无需重写任何 boilerplate 代码,也不得修改界面样式。
  • 使用
    npx -y lavish-axi <board.html>
    启动评审板,报告URL,然后等待
    npx -y lavish-axi poll <board.html>
    ;评审意见将以队列形式送达。
  • 每一批次:将评审意见逐字记录到持久化的答案文件中,提炼其中体现的原则,将每条评审意见整合到草稿中,就地更新评审板(更新后的草稿文本、剩余卡片),并通过
    poll --agent-reply
    回复,为每条评审意见添加一条变更日志记录(例如“H-7 拒绝 -> 权限章节现在以……开头”)。
  • 持续迭代,直到作者批准或结束会话。不得代表作者批准文档;不得将沉默视为批准。

Step 7 - Finish

步骤7 - 完成交付

  • Deliver: the approved VISION.md text (or approved delta), the full hypothetical set with recorded verdicts and reasoning, and the changelog.
  • The answers file is durable calibration material; tell the author to keep it next to the vision.
  • 交付内容:已批准的VISION.md文本(或已批准的增量修改)、完整的假设场景集(包含记录的评审意见及理由),以及变更日志。
  • 答案文件是持久化的校准材料;告知作者将其与愿景文档放在一起保存。

Output template (from-scratch mode)

输出模板(从头创建模式)

Vision

`{project}` exists so that {the one-sentence reason the project exists}.
It serves {the named user}, and it {what it turns their input into}.
It owns exactly one thing: {the single owned surface}.

## {Principle section, 3-6 of these}

{Declarative, testable, present-tense lines; one sentence per line.}
{Explicit boundaries: what is welcome, what is refused, and why.}

## Scope

{What this project is not, named concretely.}
{Where personal/private material stays, if applicable.}
{How the repo holds itself to its own standard, if applicable.}

A change aligns when {testable positive criteria}.
A change should be resisted when {testable negative criteria}.

Vision

`{project}` exists so that {the one-sentence reason the project exists}.
It serves {the named user}, and it {what it turns their input into}.
It owns exactly one thing: {the single owned surface}.

## {Principle section, 3-6 of these}

{Declarative, testable, present-tense lines; one sentence per line.}
{Explicit boundaries: what is welcome, what is refused, and why.}

## Scope

{What this project is not, named concretely.}
{Where personal/private material stays, if applicable.}
{How the repo holds itself to its own standard, if applicable.}

A change aligns when {testable positive criteria}.
A change should be resisted when {testable negative criteria}.

Pre-flight checklist (before drafting)

预起草检查清单(起草前)

  • Target repo and author resolved
  • Existing VISION.md checked (mode chosen)
  • Evidence sheet built from real PRs or commits (no invented evidence)
  • 已明确目标仓库与作者
  • 已检查是否存在现有VISION.md(已选择对应模式)
  • 已基于真实PR或提交记录构建证据表(无虚构证据)

Pre-approval checklist (before the author signs off)

预批准检查清单(作者签字前)

  • Every drafted line traces to the evidence sheet or a recorded verdict
  • 8-12 hypotheticals, none predictable, both sides steelmanned
  • Every author verdict folded in with a traced changelog line
  • Answers file saved next to the vision
  • 草稿中的每一行内容都可追溯到证据表或已记录的评审意见
  • 已设计8-12个假设场景,无答案可预测的场景,且双方观点均经过严谨论证
  • 每条作者评审意见都已整合到草稿中,并附带可追溯的变更日志记录
  • 答案文件已与愿景文档一起保存