pi-grill-all 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # grill-all
2
+
3
+ 以一轮轮 2–4 个互不依赖的问题,不断拷问(grill)直到与你达成共识。可用于计划、决策、研究问题、观点和论断,帮助把模糊想法拷问成可执行的形态。
4
+
5
+ 主路线按**最终产物**路由:
6
+
7
+ - **Engineering** —— 改代码、搭系统、做自动化 → `references/engineering.md`
8
+ - **Research** —— 锁定研究问题、证据路径 → `references/academic.md`
9
+ - **Decision** —— 人生、职业、战略、资源分配 → `references/decision.md`
10
+ - **Thinking** —— 厘清观点、价值判断 → `references/thinking.md`
11
+
12
+ 各路线还按需叠加附加模式(docs-mode、context-docs、adr-docs、review-loop)与研究前置阶段(research-first)。完整规则见 [`SKILL.md`](SKILL.md)。
13
+
14
+ ## 安装
15
+
16
+ ```bash
17
+ # 全局安装
18
+ pi install npm:pi-grill-all
19
+
20
+ # 项目级安装
21
+ pi install -l npm:pi-grill-all
22
+
23
+ # 本地开发:在 pi-packages 仓库根目录执行
24
+ pi install ./skills/grill-all
25
+
26
+ # 卸载
27
+ pi remove npm:pi-grill-all
28
+ ```
29
+
30
+ 安装或更新后重启 pi,或在 pi 内执行 `/reload`。
31
+
32
+ ## 目录结构
33
+
34
+ ```text
35
+ grill-all/
36
+ ├── package.json # pi-grill-all:独立 npm 包 manifest
37
+ ├── README.md # 本文件:技能简介与安装方式
38
+ ├── SKILL.md # 主文件:拷问方法、问题格式、轮次规则
39
+ ├── agents/ # 分发用的代理界面配置(openai.yaml)
40
+ └── references/ # 按路线/模式拆分的落地参考文档
41
+ ```
42
+
43
+ ## 使用
44
+
45
+ 安装后直接告诉 pi:
46
+
47
+ > 用 grill-all 拷问一下这个计划:……
48
+
49
+ 技能会根据目标产物选择 Engineering、Research、Decision 或 Thinking 路线,并按轮次提出 2–4 个互不依赖的问题。
50
+
51
+ ## 分发说明
52
+
53
+ `pi-packages` GitHub monorepo 用于维护源码和文档;稳定使用请从 npm 安装 `pi-grill-all`,开发未发布版本请从本地子目录安装。技能内部引用均为相对路径,整个目录可以原样移动。
package/SKILL.md ADDED
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: grill-all
3
+ description: Grill the user relentlessly about a plan, decision, idea, research question, or claim.
4
+ ---
5
+
6
+ Interview the user relentlessly until you reach a shared understanding. Map this as a **design tree**: every decision branches into the decisions that hang off it. Harsh but never mean: attack the argument, never the person.
7
+
8
+ ## Choose the route
9
+
10
+ Decide the main route by the **final product** the user wants, then immediately read that file. A mixed issue routes by its final product; you add a second route only if that other view would change the next question. Never load all routes.
11
+
12
+ - **Engineering**: building or changing code, systems, pipelines, or automation → read [`references/engineering.md`](references/engineering.md)
13
+ - **Research**: locking down a research question, design, evidence path, or contribution → read [`references/academic.md`](references/academic.md)
14
+ - **Decision**: life, career, strategy, or resource allocation → read [`references/decision.md`](references/decision.md)
15
+ - **Thinking**: clarifying a viewpoint, concept, value judgement, or what someone thinks → read [`references/thinking.md`](references/thinking.md)
16
+
17
+ ## Choose the modes
18
+
19
+ Read only what applies; otherwise run the main route alone.
20
+
21
+ - The user supplied material — code, notes, papers, specs, citations — or the answers are findable in it → read [`references/docs-mode.md`](references/docs-mode.md)
22
+ - Engineering route touching domain jargon, context boundaries, `CONTEXT.md`, or `CONTEXT-MAP.md` → also read [`references/context-docs.md`](references/context-docs.md)
23
+ - Engineering decisions that are hard to reverse, confusing without context, and carry real tradeoffs → also read [`references/adr-docs.md`](references/adr-docs.md)
24
+ - The user asks for a review, or the locked result is high-cost, hard-to-reverse, or high-risk → after converging, read [`references/review-loop.md`](references/review-loop.md)
25
+
26
+ ## Research first
27
+
28
+ For the **engineering**, **research**, and **decision** routes, run a research phase *before* the first grilling round: broaden the fact base — especially the landscape of **same-type products** — and present a **调研摘要** for the user to confirm. Read [`references/research-first.md`](references/research-first.md). The **thinking** route skips this.
29
+
30
+ **Research never ends a session by itself.** It exists only to feed the grilling rounds. After the research phase completes, you must continue into the first grilling round *in the same message*: present the 调研摘要, then immediately ask the round's 2–4 questions together. A message that delivers a summary but asks zero grilling questions is a bug — unless the user explicitly asked for research output only. The user confirms or corrects the summary *inside* their answers rather than in a separate exchange.
31
+
32
+ ## Work the tree in rounds
33
+
34
+ The **frontier** — every decision whose prerequisites are already settled: the questions you can ask _now_ without guessing at answers you haven't heard yet. Ask the whole frontier, but in one round put **2–4 mutually independent questions** (default 3), numbered, each with your recommended answer. Then wait for the user's answers before the next round. A question whose answer depends on another still open in this round belongs to a later round, not this one.
35
+
36
+ Format each question like so:
37
+
38
+ ```
39
+ ❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including 2–3 mutually exclusive choices>
40
+
41
+ ➡️ <your recommended answer, first option listed, plus a one-line reason>
42
+ ```
43
+
44
+ Allow the user to skip a question, answer "not sure", or correct only the recommendation. When a single answer would decide what to ask next, or you are facing a fatal assumption, a real contradiction, or a hard-to-reverse decision, ask just that one question.
45
+
46
+ Shift batch size with the answers: stable, complete answers → up to 4; vague, contradictory, or burdened → 1–2. An explicit user batch size wins, capped at 5. Flag equivocation, empty goals, untestable claims, or ignored costs as you hit them, and push on the most critical one first rather than all of them.
47
+
48
+ **Finding _facts_ is your job, never the user's.** The research-first phase above front-loads this: by the first round, the same-type landscape should already be a settled fact base, so grilling probes decisions, not lookups. Still, when a frontier question needs a fact from the environment (filesystem, tools, etc.) that the research phase didn't cover, dispatch a sub-agent to find it; don't ask for anything you could look up. Don't block on it: a running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the sub-agent to report; ask the rest of the frontier now. The _decisions_ are the user's: put each to them and wait.
49
+
50
+ Priority is not mechanical order: ask what changes direction, rules out an option, or exposes a fatal risk first. Low-impact details take a reasonable default, recorded explicitly, and don't stretch the session. The route files only reorder when their own higher-risk branch says so.
51
+
52
+ ## When you're done
53
+
54
+ The session is done when the **frontier is empty**: every branch of the design tree visited, nothing left silently assumed. Hold this bar: stop only when the goal and final product are clear; terms, boundaries and hard constraints are clear; the main options and their tradeoffs are compared; decisive assumptions, evidence gaps and unacceptable risks are surfaced; the next step and its completion criterion are clear; and the remaining questions, listed out, would no longer change the current decision.
55
+
56
+ If a key answer is genuinely unavailable right now, stop guessing: mark the blocker, why it's critical, the known facts, and the minimum action to get the answer.
57
+
58
+ ## End
59
+
60
+ Read [`references/output-templates.md`](references/output-templates.md) and output the locked result using the template for your main route. Keep the disagreements the user has not agreed to — do not manufacture false consensus.
61
+
62
+ If the conclusion is blocked, output instead: the blocking question, why it's critical, the known facts, the minimum action to get the answer, and a temporary default to use until it arrives.
63
+
64
+ By default you only clarify and lock a decision. Write specs, plans, or files only when the user explicitly asks; act on the decision only once the user confirms you share an understanding and enters execution.
@@ -0,0 +1,3 @@
1
+ interface:
2
+ display_name: "Grill All"
3
+ short_description: "Stress-test thinking a round of questions at a time, routed across engineering, research, decisions, and argument clarity"
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "pi-grill-all",
3
+ "version": "1.0.0",
4
+ "description": "Pi skill: grill the user relentlessly about a plan, decision, idea, research question, or claim — a round of 2-4 independent questions at a time, routed across engineering, research, decisions, and thinking.",
5
+ "license": "MIT",
6
+ "keywords": ["pi-package", "pi-skill", "grill", "questioning", "planning", "stress-test"],
7
+ "files": ["SKILL.md", "README.md", "agents", "references"],
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/the-ultra-nexus/pi-packages.git"
11
+ },
12
+ "pi": {
13
+ "skills": ["./"]
14
+ }
15
+ }
@@ -0,0 +1,32 @@
1
+ # Research route
2
+
3
+ Goal: lock a question worth answering, answerable, and constrainable by evidence. Lock the research question before any design or writing.
4
+
5
+ ## Frontier branches (in risk order)
6
+
7
+ 1. **Phenomenon and puzzle** — what was concretely observed; where existing explanations fall short; why it's worth studying.
8
+ 2. **Research question** — object, setting, time frame, core relation, and answer form. Rewrite the topic as an answerable question.
9
+ 3. **Contribution** — what is the new explanation, evidence, measurement, method, or boundary condition; who changes how they think or act because of it.
10
+ 4. **Concepts and mechanism** — how are core constructs defined; what is the causal mechanism, competing explanation, or theoretical tension.
11
+ 5. **Evidence path** — what literature, data, cases, experiments, or computation is needed; is it obtainable with current resources.
12
+ 6. **Measurement and analysis** — how do variables, metrics, sample, comparison baseline, identification strategy, or algorithm evaluation map to the question.
13
+ 7. **Credibility and bounds** — internal/external validity, bias, robustness, reproducibility, null results, applicability.
14
+ 8. **Next stage** — what is the minimal evidence action; what result makes the research continue, shrink, or stop.
15
+
16
+ ## Route rules
17
+
18
+ - Empirical social science: grill constructs, mechanism, data-generating process, identification, and alternative explanations first.
19
+ - Data/algorithm methodology: grill baseline, evaluation metric, data leakage, ablations, reproduction cost, and applicability bounds together.
20
+ - Exploratory, descriptive, explanatory, predictive, and causal questions each get their own standard — don't force a causal effect or hypothesis on every study.
21
+ - Writing only records the locked research logic. When evidence, design, or contribution isn't established, don't polish to hide the problem.
22
+
23
+ ## Mandatory probes
24
+
25
+ - "Which unknown is this research genuinely reducing?"
26
+ - "What observation would overturn or seriously weaken the current explanation?"
27
+ - "If the smooth prose is stripped, what testable contribution is left?"
28
+ - "With current time, data, methods, and collaborators, where is it most likely to fail?"
29
+
30
+ ## Frontier completion
31
+
32
+ You can state: research question, expected contribution, key concepts and mechanism, evidence and analysis path, main alternative explanations, feasibility bounds, and the minimal next research task.
@@ -0,0 +1,40 @@
1
+ # Architecture decision records
2
+
3
+ An ADR records "what important decision was made, and why". It is not a meeting log, a task list, or a full design doc.
4
+
5
+ ## When to create one
6
+
7
+ Create an ADR only when all three hold:
8
+
9
+ 1. **Hard to reverse** — changing it later costs noticeable migration, coordination, or replacement.
10
+ 2. **Confusing without context** — a future maintainer reading only the code would likely misread it or try to "fix" it.
11
+ 3. **Real tradeoff** — at least one credible alternative was rejected for a concrete reason.
12
+
13
+ If any one fails, don't create an ADR. Reversible implementation details belong in the plan, spec, code, or commit message.
14
+
15
+ ## Common targets
16
+
17
+ - Architecture shape and context boundaries;
18
+ - cross-context integration;
19
+ - database, messaging, auth, or deployment choices with real lock-in;
20
+ - data ownership and explicit scope exclusions;
21
+ - deliberate deviations from the conventional approach;
22
+ - compliance, performance, or external-contract constraints invisible in code;
23
+ - rejected options whose rationale isn't obvious and will likely be proposed again.
24
+
25
+ ## Files & numbering
26
+
27
+ - Put system-level ADRs in `docs/adr/` at the root; follow an existing context-level convention if there is one.
28
+ - Create the directory only on first need.
29
+ - Scan the existing highest four-digit number, add one, and name it `NNNN-short-slug.md`.
30
+ - Don't reuse a superseded ADR's number. To change an old decision, write a new ADR and mark the supersession in status.
31
+
32
+ ## Content
33
+
34
+ Write the background, decision, and rationale in one to three sentences. Add these sections only where they earn their place:
35
+
36
+ - `Status`: proposed, accepted, superseded, replaced by ADR-NNNN;
37
+ - `Options considered`: rejected options and why, when worth keeping for the future;
38
+ - `Consequences`: non-obvious downstream effects or maintenance costs.
39
+
40
+ In live-doc maintenance, write the ADR only after the tradeoff is clear and the user confirms it. After writing, link the ADR from the locked design and check the design's terms match the corresponding `CONTEXT.md`.
@@ -0,0 +1,30 @@
1
+ # Domain context docs
2
+
3
+ Use `CONTEXT.md` to pin down the domain language, and `CONTEXT-MAP.md` to describe multiple contexts and their relationships. They serve conceptual consistency only — not specs, plans, or implementation records.
4
+
5
+ ## Discover the structure
6
+
7
+ 1. Root has `CONTEXT-MAP.md`: locate which context the topic belongs to and its `CONTEXT.md` via the map.
8
+ 2. Only a root `CONTEXT.md`: treat as a single-context project.
9
+ 3. Neither exists: create a root `CONTEXT.md` lazily, and only once the project's first distinctive terms are locked and live-doc maintenance is enabled.
10
+ 4. When a term's context ownership is ambiguous, ask first; never write one term into multiple contexts.
11
+
12
+ ## Recording rules
13
+
14
+ - Keep `CONTEXT.md` a glossary. Specs, tasks, API fields, and implementation decisions each live in their own document.
15
+ - Pick one standard term per concept; list look-alike names under `_avoid_`.
16
+ - Each definition is one or two sentences — what the concept is and its boundary, not a list of implementation behaviour.
17
+ - Record only project-domain concepts. Timeouts, error types, utilities, and other generic engineering words don't belong in a glossary.
18
+ - When natural clusters of concepts form, use subheadings; a single domain stays flat.
19
+ - When a new term collides with an existing definition, point it out and settle which meaning holds with a concrete scenario.
20
+ - When the user's description conflicts with code behaviour, show the evidence and ask them to adjudicate; don't rewrite docs or code before that.
21
+
22
+ ## Multi-context map
23
+
24
+ Only once the project genuinely has several independent domain contexts, record:
25
+ - each context's responsibility and doc location;
26
+ - communication direction and mechanism between contexts;
27
+ - explicitly shared types or contracts;
28
+ - key ownership boundaries.
29
+
30
+ For hard-to-reverse architecture tradeoffs in relations or boundaries, decide per [`adr-docs.md`](adr-docs.md) whether an ADR is warranted.
@@ -0,0 +1,24 @@
1
+ # Decision route
2
+
3
+ Goal: converge a life, career, development, or strategy dilemma into a defensible choice while owning the value conflicts and uncertainty.
4
+
5
+ ## Frontier branches (in risk order)
6
+
7
+ 1. **The decision itself** — what must be decided now; is not deciding also a choice; what is the real deadline.
8
+ 2. **Goals and values** — what to gain, protect, and avoid; how the goals rank against each other.
9
+ 3. **Facts vs narrative** — which are known facts, which are predictions, fears, hopes, or other people's evaluations.
10
+ 4. **Option space** — compare the status quo, the preferred option, and at least one credible alternative; check for staged or combined plays.
11
+ 5. **Costs and opportunity cost** — time, money, energy, relationships, identity, and the possibilities being given up.
12
+ 6. **Time and reversibility** — short- and long-term consequences; can the choice be tested, postponed, exited, or recovered.
13
+ 7. **Risk and evidence** — worst case, second-order effects, base rates; what new information would change the choice.
14
+ 8. **Minimum action** — a low-cost experiment, information grab, or commitment step, with a review date.
15
+
16
+ ## Using mental models
17
+
18
+ Pick one model at a time, whichever most changes the current judgement — e.g. opportunity cost, reversibility, second-order effects, inversion, base rates, regret minimization, expected value. Use it to generate better questions, never to pile up jargon. Borrow at most one secondary model to cross-check.
19
+
20
+ When you hear "I should", ask whether that standard comes from the person themselves, a key relationship, an institutional rule, or social comparison.
21
+
22
+ ## Frontier completion
23
+
24
+ You can state: the decision to make, value ordering, real constraints, main options and their costs, key uncertainties, the recommended choice, the minimum experiment or next step, and the review and exit conditions.
@@ -0,0 +1,28 @@
1
+ # Docs & live-document mode
2
+
3
+ Constrain the grilling with existing material — code, project docs, research notes, papers, data dictionaries, citations, transcripts, specs, decision records — to avoid repeat questions and unsupported inference.
4
+
5
+ ## Pick the write level
6
+
7
+ - **Read-only verify** (default): read and cite the material, point out conflicts, rewrite nothing.
8
+ - **Live-doc maintenance**: enabled only when the user explicitly asks you to maintain, sync, supplement, or record against documents. Write back each batch of locked content as it converges — don't wait for the whole interview.
9
+
10
+ Material existing is not authorization to write. State the current level in one sentence when you start.
11
+
12
+ ## Handling order
13
+
14
+ 1. Identify the material directly relevant to the current frontier; read only the necessary parts.
15
+ 2. Mark the facts, definitions, prior decisions, evidence, and open questions inside the material.
16
+ 3. Check for conflicts between materials, and between material and what the user says.
17
+ 4. Any question the material answers, answer directly with the source; ask the user only what genuinely needs judgement, tradeoff, or missing input.
18
+ 5. When material is insufficient, say plainly which is the case: "not provided", "material contradicts itself", "reasonably inferable", or "unjudgeable".
19
+ 6. In live-doc maintenance, write back only what this batch actually locked (facts, terms, decisions); keep open items open, don't fill in consensus for the user.
20
+
21
+ ## Per-route focus
22
+
23
+ - **Engineering**: do code behaviour, interfaces, config, tests, `CONTEXT.md`, ADR, and actual deployment constraints agree? Domain language per [`context-docs.md`](context-docs.md); architecture decisions per [`adr-docs.md`](adr-docs.md).
24
+ - **Research**: do the primary sources, research notes, data description, codebook, and analysis code agree with the claims?
25
+ - **Decision**: are verifiable facts (time, resources, commitments, rules) cleanly separated from personal forecasts?
26
+ - **Thinking**: are quotes, context, the paraphrase chain, and interpretation kept distinct?
27
+
28
+ After any write-back, re-read the touched fragment and confirm the standard terms, code facts, decision rationale, and this round's conclusion line up. Final output lists which files were updated; in read-only verify, list the conflicts and open items found.
@@ -0,0 +1,24 @@
1
+ # Engineering route
2
+
3
+ Goal: converge "I want to build something" into an implementable, verifiable, maintainable engineering decision. Work the frontier along the highest-risk open branch, not as a checklist.
4
+
5
+ ## Frontier branches (in risk order)
6
+
7
+ 1. **Problem and user** — who hits what problem; which observable behaviour or result changes once it works.
8
+ 2. **Scope** — what the first version must do; what it explicitly won't; which existing behaviour must be preserved.
9
+ 3. **System facts** — what the existing code, dependencies, data, deployment, and constraints actually are. Check the codebase before asking.
10
+ 4. **Design choice** — compare the minimal viable option against the main alternatives: complexity, reversibility, long-term cost.
11
+ 5. **Boundaries and interfaces** — module responsibility, input/output, state ownership, error semantics, external dependencies.
12
+ 6. **Data and concurrency** — data lifecycle, consistency, permissions, migration, idempotency, races, recovery.
13
+ 7. **Verification and operations** — test layers, observability, performance bar, release, rollback, ownership.
14
+
15
+ ## Mandatory probes
16
+
17
+ - Put the abstract feature into one real user scenario; grill the happy path _and_ the most dangerous failure path.
18
+ - Rewrite words like flexible, easy, stable, smart, automatic into observable behaviour or a metric.
19
+ - For hard-to-reverse decisions, grill migration and exit cost; take reasonable defaults on reversible details.
20
+ - If the "research tool" is really a one-off analysis script, engineer it to the script's real lifetime — don't force product-grade ceremony onto a throwaway.
21
+
22
+ ## Frontier completion
23
+
24
+ You can state: who it's for and what problem, first-version boundaries, chosen design and why, key interfaces and data flow, main failure modes, verification method, and release/delivery condition.
@@ -0,0 +1,51 @@
1
+ # Output templates
2
+
3
+ Choose the minimal template for the main route. Lead with conclusions; don't replay the whole interview.
4
+
5
+ ## Engineering: locked design
6
+
7
+ - **Verdict**: proceed, change direction, verify first, or stop
8
+ - **调研摘要** (same-type landscape · benchmarks · best practices, confirmed with the user):
9
+ - **Goal and user**:
10
+ - **Scope and non-goals**:
11
+ - **Chosen design and why**:
12
+ - **Key interfaces and data flow**:
13
+ - **Main risks and responses**:
14
+ - **Verification and completion criteria**:
15
+ - **Next step**:
16
+ - **Open items**:
17
+
18
+ ## Research: research-question map
19
+
20
+ - **Verdict**: worth pursuing, needs narrowing, gather evidence first, or not yet
21
+ - **调研摘要** (related work / prior-art landscape):
22
+ - **Research question**:
23
+ - **Expected contribution**:
24
+ - **Core concepts and mechanism**:
25
+ - **Evidence and analysis path**:
26
+ - **Alternative explanations and validity threats**:
27
+ - **Feasibility bounds**:
28
+ - **Minimum next research task**:
29
+ - **Open items**:
30
+
31
+ ## Decision: decision memo
32
+
33
+ - **Verdict and recommended choice**:
34
+ - **调研摘要** (comparable landscape, confirmed with the user):
35
+ - **Goal and value ordering**:
36
+ - **Options and opportunity cost**:
37
+ - **Key facts and uncertainties**:
38
+ - **Risk, exit, and review conditions**:
39
+ - **Minimum action**:
40
+ - **Open items**:
41
+
42
+ ## Thinking: argument map
43
+
44
+ - **Current judgement and confidence**:
45
+ - **Core claim and terms**:
46
+ - **Argument chain and evidence grade**:
47
+ - **Value premises**:
48
+ - **Strongest opposing view or alternative**:
49
+ - **What would change the judgement**:
50
+ - **Action implications**:
51
+ - **Open items**:
@@ -0,0 +1,55 @@
1
+ # Research-first phase (engineering / research / decision routes)
2
+
3
+ Before the first grilling round, run a **research phase**: surface the external
4
+ facts the decision depends on — especially the broad landscape of **same-type
5
+ products** — then present a summary for the user to confirm before grilling.
6
+
7
+ ## When
8
+
9
+ Default-on for the **engineering**, **research** (academic), and **decision**
10
+ routes. Skip or go shallow when the subject is internal-only, already fully
11
+ specified by the user's material, or the user asks to move on. The **thinking**
12
+ route never runs it.
13
+
14
+ "Same-type" adapts to the route:
15
+ - Engineering → competing products, alternatives, reference implementations.
16
+ - Decision → comparable choices others faced, archetypes, benchmarks.
17
+ - Research (academic) → related work, prior art, closest approaches.
18
+
19
+ ## How to run it
20
+
21
+ Dispatch in-session subagents doing **broad web searches, in parallel** (no file
22
+ writes), at least two angles:
23
+ 1. **The subject itself** — what it is, current state, key facts, known issues.
24
+ 2. **Same-type products** — who else does this, direct competitors,
25
+ adjacent/alternative approaches, reference implementations.
26
+ 3. **Industry baselines & best practices** — benchmarks, data, common patterns.
27
+
28
+ Finding facts is your job, never the user's; don't ask for anything you can look up.
29
+
30
+ ## The summary
31
+
32
+ Assemble a tight **调研摘要** and show it before grilling:
33
+ - One-line subject.
34
+ - Who else does this / closest analogs (short comparison: each player, how it
35
+ does it, where it differs).
36
+ - Industry baselines / best practices relevant to the decision.
37
+ - Gaps, risks, or angles this landscape opens that are worth grilling on.
38
+
39
+ Get the user's confirmation or correction (is the landscape right? missing
40
+ players? wrong emphasis?) through the grilling answers, **not** in a separate
41
+ exchange: same message carries the 调研摘要 *and* the round's 2–4 questions.
42
+ Treat the confirmed summary as the settled fact base; inject its facts into the
43
+ frontier questions instead of re-asking them.
44
+
45
+ **Handoff is mandatory, not advisory.** Research is never an end state. The
46
+ moment you have a summary, you must move into the first grilling round *in the
47
+ same message*: show the 调研摘要, then immediately the round's 2–4 questions.
48
+ A message that shows research output but asks zero grilling questions is a bug —
49
+ unless the user explicitly asked for research output only.
50
+
51
+ ## Output
52
+
53
+ Capture the confirmed 调研摘要 in the locked result (see output-templates) so the
54
+ decision is traceable to the landscape it was made against. It counts as
55
+ confirmed only once the user has answered grilling questions that refer to it.
@@ -0,0 +1,25 @@
1
+ # Bounded review loop
2
+
3
+ After the interview has converged, run an independent, read-only, limited review of the locked result. It attacks only the weak points that could change the decision — it never reopens every question.
4
+
5
+ ## When to enable
6
+
7
+ Only when the user explicitly asks for a review, or the decision is simultaneously high-cost, hard to reverse, and high-risk. Ordinary questions skip review.
8
+
9
+ ## Execution
10
+
11
+ 1. Form a locked result containing at least: goal, key decisions, rationale, constraints, risks, open items, and next step.
12
+ 2. If the environment offers an independent reviewer or second model, have it read only the material and hunt fatal assumptions, missed options, broken evidence, boundary conflicts, and simpler alternatives. It must not implement.
13
+ 3. With no independent reviewer, re-check from a fresh angle yourself and say plainly this is same-model review.
14
+ 4. The reviewer gives, per finding: impact, rationale, minimal fix; then a single verdict — `pass`, `modify`, or `block`.
15
+ 5. You decide whether each finding stands: applied fixes get written back into the locked result; rejected ones get their reason recorded.
16
+ 6. Default to at most 2 rounds. If substantive disagreement remains after two rounds, list the disagreements and let the user adjudicate — don't manufacture a pass.
17
+
18
+ ## Per-route review focus
19
+
20
+ - **Engineering**: security, permissions, data migration, concurrency, failure recovery, compatibility, tests, observability.
21
+ - **Research**: does the question match the evidence; alternative explanations, measurement and identification, feasibility, reproducibility, overclaimed contribution.
22
+ - **Decision**: value ordering, opportunity cost, irreversibility, base rates, second-order effects, exit conditions.
23
+ - **Thinking**: equivocation, evidence grade, hidden premises, strongest opposing view, overreach on psychological inference.
24
+
25
+ The user makes the final call after review.
@@ -0,0 +1,31 @@
1
+ # Thinking route
2
+
3
+ Goal: clarify a viewpoint, concept, value conflict, or what someone thinks, into a traceable argument map — not a fabricated inner life for the person.
4
+
5
+ ## First: fix the object
6
+
7
+ - **The user's own fuzzy idea** — grill the actual claim, reasons, value premises, and action implications.
8
+ - **Someone else's view** — work from the original words, speech, recorded behaviour, or a reliable transcript; keep their words, the contextual facts, and your inferences strictly separate.
9
+ - **Philosophical or value question** — clarify the concepts and the conflicting values first, then compare consistency, consequences, and counterexamples.
10
+ - **Event or public dispute** — separate the factual, causal, value, and policy disagreements.
11
+
12
+ ## Frontier branches (in risk order)
13
+
14
+ 1. State the core claim in one falsifiable sentence.
15
+ 2. Define the key terms, scope, and exceptions.
16
+ 3. Separate fact, inference, value judgement, and action recommendation.
17
+ 4. Find the supporting reasons, the quality of evidence, and the hidden premises.
18
+ 5. Build the strongest opposing view, alternative explanations, and counterexamples.
19
+ 6. Check causal leaps, scale confusion, cherry-picking, and equivocation.
20
+ 7. State confidence, and what evidence would change it.
21
+ 8. If action is needed, switch to the decision route; if a research claim needs testing, switch to the research route.
22
+
23
+ ## Using mental models
24
+
25
+ Pick one lens per current weak point: first principles, steelmanning, falsifiability, inversion, incentive analysis, base rates, second-order effects, system boundaries, moral consistency. Switch lenses only when the next question needs a different one.
26
+
27
+ When discussing someone else's view, tag statements "supported by material", "reasonable inference", or "unjudgeable". On motives, stay _unjudgeable_ (no direct evidence available to evaluate) unless there is direct evidence.
28
+
29
+ ## Frontier completion
30
+
31
+ You can state: core claim, terms, argument chain, evidence grade, value premises, strongest opposing view, remaining uncertainty, current confidence, and its possible action implications.