claude-everything-workflow 0.1.9 → 0.2.2
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/AGENTS.md +19 -20
- package/README.md +112 -104
- package/agents/code-reviewer.md +15 -44
- package/agents/harness-optimizer.md +3 -2
- package/agents/planner.md +23 -107
- package/commands/code-review.md +25 -9
- package/commands/learn.md +97 -0
- package/commands/pr.md +4 -0
- package/commands/to-spec.md +11 -0
- package/hooks/check-code-size.js +33 -12
- package/hooks/check-console-log.js +72 -24
- package/package.json +5 -2
- package/rules/01-base.md +19 -42
- package/rules/02-code-size.md +6 -17
- package/rules/03-architecture.md +16 -54
- package/rules/04-error-handling.md +4 -25
- package/rules/05-git-workflow.md +9 -37
- package/rules/06-comments.md +3 -37
- package/rules/07-forbidden.md +6 -30
- package/rules/08-specialty-rules-index.md +18 -0
- package/rules/09-first-principles-adversarial-testing.md +6 -18
- package/rules/common/agent-orchestration.md +10 -47
- package/rules/common/context-hygiene.md +9 -72
- package/rules/common/harness-engineering.md +11 -38
- package/rules/common/hooks.md +11 -82
- package/rules/common/performance.md +8 -71
- package/rules/common/pr-automation.md +7 -68
- package/rules/common/skills-learning.md +12 -36
- package/rules/common/testing.md +15 -59
- package/scripts/cleanup-retired-skills.js +214 -0
- package/scripts/install.ps1 +73 -85
- package/scripts/install.sh +54 -77
- package/scripts/learning/review-confidence.js +1 -4
- package/scripts/merge-claude-settings.cjs +75 -0
- package/scripts/retired-skill-files.json +37 -0
- package/scripts/upstream-capability-baseline.json +27 -0
- package/scripts/upstream-capability-map.json +150 -0
- package/scripts/verify/core.js +91 -0
- package/scripts/verify/grilling-spec-gate-checks.js +260 -0
- package/scripts/verify/metadata-checks.js +724 -0
- package/scripts/verify/repository-checks.js +435 -0
- package/scripts/verify/runtime-checks.js +593 -0
- package/scripts/verify/workflow-checks.js +741 -0
- package/scripts/verify/workflow-ownership-fixtures.js +371 -0
- package/scripts/verify/workflow-ownership.js +780 -0
- package/scripts/verify-harness.js +16 -1075
- package/scripts/verify-upstream-capability-map.js +117 -0
- package/skills/README.md +24 -11
- package/skills/code-review/SKILL.md +50 -0
- package/skills/code-review/references/spec-reviewer-prompt.md +24 -0
- package/skills/code-review/references/standards-reviewer-prompt.md +35 -0
- package/skills/codebase-design/SKILL.md +63 -0
- package/skills/codebase-design/references/deepening.md +27 -0
- package/skills/codebase-design/references/design-it-twice.md +17 -0
- package/skills/continuous-learning-v2/SKILL.md +7 -7
- package/skills/continuous-learning-v2/config.json +0 -4
- package/skills/domain-modeling/SKILL.md +100 -0
- package/skills/feature-acceptance/SKILL.md +89 -0
- package/skills/grilling/SKILL.md +83 -0
- package/skills/handoff/SKILL.md +56 -0
- package/skills/implement/SKILL.md +97 -0
- package/skills/improve-codebase-architecture/SKILL.md +48 -0
- package/skills/iterative-retrieval/SKILL.md +10 -1
- package/skills/learn/README.md +2 -2
- package/skills/project-context/SKILL.md +94 -0
- package/skills/project-context/agents/openai.yaml +6 -0
- package/skills/project-context/references/project-context-template.md +61 -0
- package/skills/prototype/SKILL.md +50 -0
- package/skills/prototype/references/logic.md +28 -0
- package/skills/prototype/references/ui.md +30 -0
- package/skills/research/SKILL.md +48 -0
- package/skills/resolving-merge-conflicts/SKILL.md +27 -0
- package/skills/spec-gate/SKILL.md +149 -0
- package/skills/spec-gate/agents/openai.yaml +4 -0
- package/skills/spec-gate/references/spec-document-reviewer-prompt.md +31 -0
- package/skills/subagent-driven-development/SKILL.md +95 -414
- package/skills/systematic-debugging/SKILL.md +7 -51
- package/skills/systematic-debugging/references/diagnosing-bugs.upstream.md +129 -0
- package/skills/systematic-debugging/scripts/hitl-loop.template.js +75 -0
- package/skills/systematic-debugging/scripts/hitl-loop.template.sh +41 -0
- package/skills/test-driven-development/SKILL.md +18 -2
- package/skills/to-tickets/SKILL.md +94 -0
- package/skills/triage/SKILL.md +53 -0
- package/skills/triage/references/agent-brief.md +32 -0
- package/skills/triage/references/out-of-scope.md +14 -0
- package/skills/using-superpowers/SKILL.md +140 -40
- package/skills/visual-companion/SKILL.md +62 -0
- package/skills/visual-companion/agents/openai.yaml +4 -0
- package/skills/{brainstorming/visual-companion.md → visual-companion/references/guide.md} +1 -1
- package/skills/{brainstorming → visual-companion}/scripts/frame-template.html +42 -12
- package/skills/visual-companion/scripts/pages.cjs +28 -0
- package/skills/visual-companion/scripts/server-utils.cjs +82 -0
- package/skills/{brainstorming → visual-companion}/scripts/server.cjs +108 -248
- package/skills/{brainstorming → visual-companion}/scripts/start-server.sh +18 -4
- package/skills/visual-companion/scripts/websocket.cjs +86 -0
- package/skills/wayfinder/SKILL.md +57 -0
- package/commands/e2e.md +0 -28
- package/commands/evolve.md +0 -42
- package/commands/harness-audit.md +0 -27
- package/commands/instinct-status.md +0 -38
- package/commands/learn-eval.md +0 -91
- package/commands/projects.md +0 -27
- package/commands/promote.md +0 -29
- package/commands/prune.md +0 -46
- package/commands/tdd.md +0 -27
- package/homunculus/instincts/personal/always-test-first.md +0 -28
- package/homunculus/instincts/personal/pr-ci-quality-gate.md +0 -30
- package/rules/08-ecc-integration.md +0 -46
- package/rules/common/implementation.md +0 -25
- package/rules/common/security.md +0 -19
- package/skills/brainstorming/SKILL.md +0 -185
- package/skills/brainstorming/agents/openai.yaml +0 -3
- package/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
- package/skills/context-budget/SKILL.md +0 -59
- package/skills/discover-unknowns-zh/SKILL.md +0 -112
- package/skills/discover-unknowns-zh/agents/openai.yaml +0 -4
- package/skills/discover-unknowns-zh/references/prompt-patterns.md +0 -144
- package/skills/documentation-lookup/SKILL.md +0 -90
- package/skills/executing-plans/SKILL.md +0 -66
- package/skills/skill-creator/LICENSE.txt +0 -202
- package/skills/skill-creator/SKILL.md +0 -356
- package/skills/skill-creator/references/output-patterns.md +0 -82
- package/skills/skill-creator/references/workflows.md +0 -28
- package/skills/skill-creator/scripts/init_skill.py +0 -303
- package/skills/skill-creator/scripts/package_skill.py +0 -110
- package/skills/skill-creator/scripts/quick_validate.py +0 -95
- package/skills/subagent-driven-development/implementer-prompt.md +0 -139
- package/skills/subagent-driven-development/scripts/review-package +0 -44
- package/skills/subagent-driven-development/scripts/sdd-workspace +0 -22
- package/skills/subagent-driven-development/scripts/task-brief +0 -40
- package/skills/subagent-driven-development/task-reviewer-prompt.md +0 -188
- package/skills/writing-plans/SKILL.md +0 -206
- package/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
- /package/skills/{brainstorming → visual-companion}/scripts/helper.js +0 -0
- /package/skills/{brainstorming → visual-companion}/scripts/stop-server.sh +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grilling
|
|
3
|
+
description: "Resolve consequential user-owned decisions through a one-question-at-a-time interview. Use when the user says grill me, asks for challenge or pressure-testing, or when the central router finds an unresolved decision that materially changes the outcome; do not trigger for discoverable facts, ordinary complexity, file count, or high risk by itself."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Grilling
|
|
7
|
+
|
|
8
|
+
Sharpen a plan, design, or task by resolving consequential user decisions without becoming a universal workflow gate.
|
|
9
|
+
|
|
10
|
+
Reference: https://github.com/mattpocock/skills/blob/main/skills/productivity/grilling/SKILL.md
|
|
11
|
+
|
|
12
|
+
## Boundary
|
|
13
|
+
|
|
14
|
+
- Do not ask for discoverable facts. Inspect files, documentation, logs, history, and tools first.
|
|
15
|
+
- Ask only about a user-owned decision whose alternatives materially change the result.
|
|
16
|
+
- Route systematic evidence or blind-spot gaps back through `skills/using-superpowers/SKILL.md` for `skills/iterative-retrieval/SKILL.md`.
|
|
17
|
+
- High risk alone does not trigger an interview. If high-risk work has a real unresolved user decision, resolve it and record `resume_target: spec-gate`.
|
|
18
|
+
- Do not generate or approve a Spec, implement code, or own workflow continuation.
|
|
19
|
+
|
|
20
|
+
## Existing Confirmed Handoff
|
|
21
|
+
|
|
22
|
+
Treat confirmed decisions and delegated defaults from an existing handoff as approved input. Do not re-ask them.
|
|
23
|
+
|
|
24
|
+
Reopen one decision only when its recorded reversal evidence appears or an underlying premise is invalidated. A merely available alternative or changed agent preference is not new evidence.
|
|
25
|
+
|
|
26
|
+
## Interview Loop
|
|
27
|
+
|
|
28
|
+
Track the decision tree, resolved branches, delegated defaults, rejected alternatives, and remaining consequential branches.
|
|
29
|
+
|
|
30
|
+
Ask one question per turn. Each turn must:
|
|
31
|
+
|
|
32
|
+
1. Explain why the decision changes the result.
|
|
33
|
+
2. Present two or three mutually exclusive options.
|
|
34
|
+
3. Give a recommended answer and concise rationale.
|
|
35
|
+
4. State the reversal evidence that would change the recommendation.
|
|
36
|
+
|
|
37
|
+
Mark weak-evidence recommendations as tentative. Wait for the user's answer before opening another branch.
|
|
38
|
+
|
|
39
|
+
After each answer:
|
|
40
|
+
|
|
41
|
+
- prune irrelevant branches;
|
|
42
|
+
- accept a rejected recommendation without repeated persuasion;
|
|
43
|
+
- when the user says “you decide,” adopt the recommended default and mark it delegated;
|
|
44
|
+
- record reversal evidence for the accepted choice, not only the original recommendation;
|
|
45
|
+
- show the smallest conflict when an answer contradicts a confirmed decision;
|
|
46
|
+
- stop immediately and list unresolved decisions when the user ends the session.
|
|
47
|
+
|
|
48
|
+
## Modes
|
|
49
|
+
|
|
50
|
+
### Inline uncertainty mode
|
|
51
|
+
|
|
52
|
+
Use when the central router finds a consequential decision blocking the shortest safe path. Ask only the highest-value unresolved question and stop as soon as the answer is sufficient.
|
|
53
|
+
|
|
54
|
+
For a low-risk task, return the handoff for direct or narrow-process routing. For high-risk/formal work, preserve its prior classification and use `resume_target: spec-gate`; do not call Spec Gate directly.
|
|
55
|
+
|
|
56
|
+
### Explicit grilling session
|
|
57
|
+
|
|
58
|
+
Use when the user says grill me or asks to challenge a plan, design, decision, or idea. Walk the consequential decision tree until branches are resolved or delegated, then use the shared-understanding gate.
|
|
59
|
+
|
|
60
|
+
## Handoff
|
|
61
|
+
|
|
62
|
+
All cross-Skill results use this structure:
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
Goal:
|
|
66
|
+
Route context:
|
|
67
|
+
- Risk classification:
|
|
68
|
+
- Resume target:
|
|
69
|
+
Resolved decisions:
|
|
70
|
+
- Decision: <accepted value>
|
|
71
|
+
Reversal evidence: <evidence or condition that reopens it>
|
|
72
|
+
Delegated defaults:
|
|
73
|
+
- Default: <accepted default>
|
|
74
|
+
Reversal evidence: <evidence or condition that reopens it>
|
|
75
|
+
Rejected alternatives:
|
|
76
|
+
Remaining risks:
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Use `resume_target: spec-gate` only when the router already classified the task as high-risk/formal. Do not invent a high-risk classification during handoff formatting.
|
|
80
|
+
|
|
81
|
+
For an explicit session, ask whether shared understanding has been reached. Do not act, write files, or enter implementation before confirmation. Inline mode may return without an extra confirmation gate when the blocking decision is resolved.
|
|
82
|
+
|
|
83
|
+
After exit, return to `skills/using-superpowers/SKILL.md` for routing. A fresh session created after `BLOCKED_BY_UNRESOLVED_DECISION` must not resume the old Spec Gate call stack; it returns a new handoff to the router.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: handoff
|
|
3
|
+
description: "Compact the current work into a redacted Markdown handoff for a fresh session. Use when the user explicitly invokes this skill, when a prototype detour needs an isolated session, or when the active context is leaving its reliable reasoning zone."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Handoff
|
|
8
|
+
|
|
9
|
+
Bridge one context window to a fresh session without copying the repository or mutating project files.
|
|
10
|
+
|
|
11
|
+
Origin: `mattpocock/skills@2ab9580`, adapted to this repository's write-safety and verification contracts.
|
|
12
|
+
|
|
13
|
+
## Preconditions
|
|
14
|
+
|
|
15
|
+
- Use only for a fresh session or an intentional prototype branch. Built-in compaction is for continuing
|
|
16
|
+
the same conversation at a phase boundary.
|
|
17
|
+
- Creating the handoff document is authorized only by explicit invocation or explicit approval
|
|
18
|
+
after the router recommends it.
|
|
19
|
+
- Resolve the operating system's temporary directory with the available runtime. Create a unique
|
|
20
|
+
private subdirectory with mode `0700`; fail closed if permissions cannot be enforced. Do not write
|
|
21
|
+
the handoff into the repository, tracker, home directory, or a guessed path.
|
|
22
|
+
|
|
23
|
+
## Build the document
|
|
24
|
+
|
|
25
|
+
Create one uniquely named Markdown file inside that private directory using exclusive creation, then
|
|
26
|
+
enforce mode `0600` before content is written. Never overwrite or follow an existing path. Include:
|
|
27
|
+
|
|
28
|
+
1. current objective and intended next-session focus;
|
|
29
|
+
2. completed work and current status;
|
|
30
|
+
3. confirmed decisions, constraints, and user authorizations;
|
|
31
|
+
4. unresolved decisions, blockers, and remaining risks;
|
|
32
|
+
5. repository/worktree/branch state when relevant;
|
|
33
|
+
6. verification already run and its exact outcome;
|
|
34
|
+
7. the smallest concrete next actions;
|
|
35
|
+
8. a `Suggested skills` section naming only skills the next session should load.
|
|
36
|
+
|
|
37
|
+
Do not duplicate content already preserved in Specs, plans, ADRs, tickets, commits, diffs, or research
|
|
38
|
+
artifacts. Reference each durable artifact by exact path, URL, commit, or ticket identifier and summarize
|
|
39
|
+
only why it matters.
|
|
40
|
+
|
|
41
|
+
Redact secrets, credentials, tokens, private keys, personal data, and unrelated sensitive output. Do not
|
|
42
|
+
invent missing facts. Mark uncertainty explicitly.
|
|
43
|
+
|
|
44
|
+
## Return contract
|
|
45
|
+
|
|
46
|
+
After writing, verify that the file exists and is readable. Return:
|
|
47
|
+
|
|
48
|
+
- the exact path;
|
|
49
|
+
- the intended next-session focus;
|
|
50
|
+
- instructions to open a fresh session and reference that path;
|
|
51
|
+
- instructions for the fresh session to delete the handoff after consumption, remove its now-empty
|
|
52
|
+
private directory, and verify both removals;
|
|
53
|
+
- any information intentionally omitted or redacted.
|
|
54
|
+
|
|
55
|
+
Do not continue the old workflow after returning the handoff. The fresh session re-enters
|
|
56
|
+
`skills/using-superpowers/SKILL.md` and loads the suggested skills from disk before acting.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement
|
|
3
|
+
description: "Execute a user-authorized low-risk direct scope, approved scope, or agent-ready frontier ticket through TDD, review, and verification; claim, resolve, and frontier refresh apply only to ticket delivery."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Implement
|
|
7
|
+
|
|
8
|
+
执行 router 在用户已授权范围内选定的低风险 direct scope、approved Spec scope 或 agent-ready ticket。direct scope
|
|
9
|
+
只能来自明确的用户交付请求,且不得涉及 formal Spec 或高风险边界;不要把咨询、建议或模糊意图解释为交付授权。
|
|
10
|
+
|
|
11
|
+
Origin: `mattpocock/skills@2ab9580`, adapted to this repository's tracker, review, and
|
|
12
|
+
external-write approval contracts.
|
|
13
|
+
|
|
14
|
+
## State Machine
|
|
15
|
+
|
|
16
|
+
`PRECONDITION → ISOLATE → [CLAIM] → EXECUTE → REVIEW → VERIFY → [RESOLVE → REFRESH_FRONTIER] → FINISH_DELIVERY`
|
|
17
|
+
|
|
18
|
+
方括号中的状态只属于 tracker ticket。无 ticket 的 direct scope 或 approved Spec scope 跳过 CLAIM、RESOLVE
|
|
19
|
+
和 REFRESH_FRONTIER,但不能跳过隔离、实施、审查或验证。每次调用只推进 router 选定的一张 ticket 或一个连贯范围;
|
|
20
|
+
任何 gate 失败都停止在当前状态并保留可恢复证据,不能把部分完成解释为交付完成。
|
|
21
|
+
|
|
22
|
+
### PRECONDITION
|
|
23
|
+
|
|
24
|
+
- direct scope 仅在 router 已判定为明确、低风险且用户已授权交付时进入。原始用户请求、要达成的行为、范围边界和
|
|
25
|
+
相称验证共同构成 `direct-scope contract`;缺少其中任一项、存在未决用户决策,或命中 formal Spec/高风险边界时,停止并返回对应门禁。
|
|
26
|
+
- approved Spec scope 以已批准 Spec 为范围和验收来源;agent-ready ticket 则先读取
|
|
27
|
+
`docs/agent-workflow/project-context.md` 和完整 blocking 状态,且必须位于 open + unblocked + unclaimed frontier。
|
|
28
|
+
- 所有路径都必须有可复核的验收或验证条件;未批准、仍有用户决策或缺少该条件时,停止并返回对应门禁,不猜测。
|
|
29
|
+
|
|
30
|
+
### ISOLATE
|
|
31
|
+
|
|
32
|
+
开始实现前检查当前 branch、worktree、staged、unstaged 和 untracked 状态。除只读分析和单文件修改外,所有代码、配置、Harness 改动必须先创建独立 `git worktree` 和任务分支;使用
|
|
33
|
+
`skills/using-git-worktrees/SKILL.md` 准备隔离工作区。无代码/配置/Harness 的窄范围文档改动可按该 Skill 的例外原地执行。不得嵌套创建 worktree。
|
|
34
|
+
|
|
35
|
+
只运行项目需要的 setup,然后执行与目标路径匹配的 baseline tests。只有 clean baseline 才能
|
|
36
|
+
进入 ticket 的 CLAIM 或无 ticket 范围的 EXECUTE;baseline 失败时报告命令、失败和现有工作区状态,等待用户决定调查还是继续。
|
|
37
|
+
|
|
38
|
+
进入实施前记录 `git rev-parse HEAD` 为 pre-delivery base;ticket 路径同时把它作为 pre-ticket base,并记录
|
|
39
|
+
task-owned dirty/untracked 初始状态。已有无关改动必须排除,不能回滚。
|
|
40
|
+
|
|
41
|
+
### CLAIM(仅 ticket)
|
|
42
|
+
|
|
43
|
+
- 本地 tracker:router 在用户已授权交付范围内选定该 ticket 后,可只把它从 `ready-for-agent` 改为
|
|
44
|
+
`in-progress`,不得顺带修改其他 ticket。
|
|
45
|
+
- 外部 tracker:先展示 assignee/status/label 的准确 mutation,并取得 explicit confirmation。
|
|
46
|
+
- 无 ticket 范围不得 claim 或写入任何 tracker。
|
|
47
|
+
|
|
48
|
+
### EXECUTE
|
|
49
|
+
|
|
50
|
+
每次 `implement` 只在一个 fresh context 中完成一张已领取的 ticket 或一个无 ticket 连贯范围。ticket 以
|
|
51
|
+
`What to build`、验收标准和 blocker 为实施合同;direct scope 以 `direct-scope contract` 为合同;approved Spec
|
|
52
|
+
scope 以已批准 Spec 为合同。按 `test-driven-development` 的垂直切片实现,不要生成或依赖另一份逐文件、逐步骤的实施计划。
|
|
53
|
+
|
|
54
|
+
每个已验证切片只向当前 ticket 追加简短 progress 记录;无 ticket 范围只在当前交付回报中记录证据。遇到失败测试、flaky
|
|
55
|
+
或意外结果时进入 `systematic-debugging`,不得用后续步骤可能修复为由跳过当前失败。
|
|
56
|
+
|
|
57
|
+
### REVIEW
|
|
58
|
+
|
|
59
|
+
完成前以 ticket as the Spec source,执行 `/code-review --worktree <pre-ticket-base> --spec <ticket>`;无 ticket
|
|
60
|
+
范围则把 `direct-scope contract` 或 approved Spec 作为 scope source,并以 pre-delivery base 冻结同等审查包。
|
|
61
|
+
review package 必须覆盖 task-owned committed、staged、unstaged 和 untracked 改动。Spec 或 Standards 轴未通过时,
|
|
62
|
+
ticket 保持 `in-progress`,无 ticket 范围停止在 REVIEW;修复 Critical/Important findings 后重新 review。
|
|
63
|
+
|
|
64
|
+
### VERIFY
|
|
65
|
+
|
|
66
|
+
逐条核对 ticket acceptance criteria,或无 ticket 范围的 `direct-scope contract`/approved Spec 验收条件,并执行
|
|
67
|
+
`verification-before-completion` 要求的 fresh commands。任何 acceptance、测试、构建或验证失败都让 ticket 保持
|
|
68
|
+
`in-progress` 或让无 ticket 范围停止在 VERIFY,记录实际结果、跳过项和剩余风险;不得进入 RESOLVE。
|
|
69
|
+
|
|
70
|
+
### RESOLVE(仅 ticket)
|
|
71
|
+
|
|
72
|
+
只有 acceptance、双轴 review 和 fresh verification 全部通过后才能 resolve 当前 ticket:
|
|
73
|
+
|
|
74
|
+
- 本地 tracker 更新状态并记录证据。
|
|
75
|
+
- 外部 tracker 的评论或关闭仍需 explicit confirmation。
|
|
76
|
+
- 未通过时保持 `in-progress` 并记录失败,不得伪装完成。
|
|
77
|
+
|
|
78
|
+
### REFRESH_FRONTIER(仅 ticket)
|
|
79
|
+
|
|
80
|
+
resolve 后重新查询依赖图并返回 router。若 newly unlocked frontier tickets 仍在用户已授权范围内,router
|
|
81
|
+
可重新选择串行 `implement` 或安全 SDD;否则报告 frontier 并停止。不得自动关闭外部 Issue 或 parent issue。
|
|
82
|
+
|
|
83
|
+
### FINISH_DELIVERY
|
|
84
|
+
|
|
85
|
+
- 无 ticket 范围:双轴 review 与 fresh verification 均通过后,报告范围、证据、未运行项和剩余风险;不得 claim、resolve、查询或刷新 tracker frontier。若用户随后要求 PR,仍须先通过 `/verify pre-pr`,且不自动 commit、push 或创建 PR。
|
|
86
|
+
- frontier 非空:返回当前 graph 状态、newly unlocked tickets 和 blockers,然后停止。
|
|
87
|
+
- frontier 为空但仍有 open tickets:返回 `BLOCKED_GRAPH`,列出被依赖阻塞、循环依赖、claim
|
|
88
|
+
冲突或状态异常的 tickets,保持交付未完成并停止,不能进入 PR 收尾。
|
|
89
|
+
- 只有 open ticket count = 0:以 feature/worktree 起点为固定基点执行全分支双轴 review,再运行
|
|
90
|
+
`/verify pre-pr`。只有两者都通过,才能向用户展示 `/pr` 或 keep 当前 branch/worktree 的选择;
|
|
91
|
+
不自动 merge、删除 branch 或清理 worktree。
|
|
92
|
+
|
|
93
|
+
## Authorization Invariants
|
|
94
|
+
|
|
95
|
+
- 用户的交付授权覆盖已批准 ticket graph,或 router 判定的明确低风险 direct scope/approved Spec scope 内的本地实现和拓扑选择;不覆盖新的产品范围,也不覆盖 commit、push 或创建 PR。
|
|
96
|
+
- tracker publication、claim、resolve、评论和关闭都是 ticket 路径中的独立外部 mutation;无 ticket 范围不得借此产生 tracker 写入,本次阶段授权也不能推导出下一阶段授权。
|
|
97
|
+
- FINISH_DELIVERY 只展示选择;merge、PR 和 cleanup 继续遵守用户授权与仓库 Git 规则。
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: improve-codebase-architecture
|
|
3
|
+
description: "Scan a codebase for deepening opportunities, present a visual architecture report, and grill through a selected candidate. Use for explicit architecture-health, deep-module, seam, testability, or AI-navigability audits; default to read-only analysis."
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Improve Codebase Architecture
|
|
8
|
+
|
|
9
|
+
Origin: `mattpocock/skills@2ab9580`, adapted to this repository's visual consent and routing gates.
|
|
10
|
+
|
|
11
|
+
## 1. Scope and Explore
|
|
12
|
+
|
|
13
|
+
Read `skills/codebase-design/SKILL.md`, relevant `CONTEXT.md`/`CONTEXT-MAP.md`, ADRs and project rules.
|
|
14
|
+
|
|
15
|
+
- Use the user-named subsystem when supplied.
|
|
16
|
+
- Otherwise inspect recent history for repeatedly changed areas before widening the scan.
|
|
17
|
+
- Look for shallow modules, duplicated caller policy, message chains, pass-through layers, leaked
|
|
18
|
+
ordering/error rules, and code that cannot be tested through a stable interface.
|
|
19
|
+
- Apply the deletion test and classify dependency types before recommending a new seam.
|
|
20
|
+
- Keep speculative candidates separate from evidence-backed friction.
|
|
21
|
+
|
|
22
|
+
## 2. Report
|
|
23
|
+
|
|
24
|
+
For each candidate include:
|
|
25
|
+
|
|
26
|
+
- files/modules and evidence;
|
|
27
|
+
- current interface and leaked complexity;
|
|
28
|
+
- proposed deepening direction, without committing to a final interface;
|
|
29
|
+
- expected leverage, locality and test-surface improvement;
|
|
30
|
+
- compatibility risk and recommendation strength: `Strong`, `Worth exploring` or `Speculative`;
|
|
31
|
+
- a before/after relationship diagram.
|
|
32
|
+
|
|
33
|
+
Prefer a compact Markdown report when visuals add little. When a visual report materially improves
|
|
34
|
+
understanding, use `skills/visual-companion/SKILL.md` and obtain its explicit consent before starting
|
|
35
|
+
the server or opening a URL. Never open a browser silently.
|
|
36
|
+
|
|
37
|
+
End with one top recommendation. Do not implement it.
|
|
38
|
+
|
|
39
|
+
## 3. Decision Loop
|
|
40
|
+
|
|
41
|
+
After the user chooses a candidate:
|
|
42
|
+
|
|
43
|
+
1. Use `skills/grilling/SKILL.md` for consequential choices.
|
|
44
|
+
2. Use `skills/domain-modeling/SKILL.md` when domain language or an ADR-worthy decision changes.
|
|
45
|
+
3. Use `skills/codebase-design/references/design-it-twice.md` when interface alternatives remain.
|
|
46
|
+
4. Return the resolved candidate to the central router for Spec/planning classification.
|
|
47
|
+
|
|
48
|
+
Do not turn an architecture audit into an unapproved refactor.
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: iterative-retrieval
|
|
3
|
-
description: "
|
|
3
|
+
description: "为事实、证据、盲点、subagent、代码探索、RAG 式检索和大仓库上下文收集设计迭代检索闭环。用于系统性缺口需要多次低成本调查、初始上下文不明确、一次性读全仓会污染上下文、子代理不知道该读哪些文件、或搜索结果需要逐轮收敛时。"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Iterative Retrieval
|
|
7
7
|
|
|
8
8
|
这个 skill 解决子代理和大仓库探索的核心问题:开始时不知道要读什么,但把所有内容都塞进上下文会让模型变差。
|
|
9
9
|
|
|
10
|
+
它同时负责可调查的事实、证据和盲点缺口。优先用代码搜索、现有测试、文档、日志、截图或小实验缩小未知项,不把可查事实转问用户。
|
|
11
|
+
|
|
10
12
|
## 四阶段闭环
|
|
11
13
|
|
|
12
14
|
最多跑 3 轮,每轮都要缩小范围。
|
|
@@ -67,6 +69,13 @@ description: "为 subagent、代码探索、RAG 式检索和大仓库上下文
|
|
|
67
69
|
- 下一轮搜索只会扩大噪音,没有新的术语或路径线索。
|
|
68
70
|
- 任务需要用户或外部系统信息,继续本地检索无法推进。
|
|
69
71
|
|
|
72
|
+
## 路由边界
|
|
73
|
+
|
|
74
|
+
- 只因任务复杂、高风险、多文件或长周期,不启动额外调查。
|
|
75
|
+
- 若剩余缺口是会实质改变结果的用户决策,记录证据并返回中央路由,由 `skills/grilling/SKILL.md` 收敛。
|
|
76
|
+
- 若证据暴露高回滚成本边界,报告风险分类并返回中央路由,由 `skills/spec-gate/SKILL.md` 处理。
|
|
77
|
+
- 检索结束后返回 `skills/using-superpowers/SKILL.md` 重新路由,不要自行枚举或调用下一 skill。
|
|
78
|
+
|
|
70
79
|
## 反模式
|
|
71
80
|
|
|
72
81
|
- 一开始就读取全仓、完整日志或完整搜索结果。
|
package/skills/learn/README.md
CHANGED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: project-context
|
|
3
|
+
description: "Configure a repository's durable agent context: issue-tracker operations, triage role vocabulary, domain-document layout, and ADR policy. Only when the user explicitly asks to set up project context, domain-document locations, triage configuration, or team tracking."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Project Context
|
|
7
|
+
|
|
8
|
+
Set up a small, versioned source of truth that tells agents where this repository tracks work, how
|
|
9
|
+
tracker mutations are expressed, which triage labels map to canonical roles, and where domain
|
|
10
|
+
vocabulary and durable decisions live. This is an explicit setup action, not a workflow gate.
|
|
11
|
+
|
|
12
|
+
## Boundary
|
|
13
|
+
|
|
14
|
+
- Only when the user explicitly asks for this setup; never run it automatically from routing.
|
|
15
|
+
- Inspect discoverable facts before asking a question. Do not create, edit, or call external systems
|
|
16
|
+
until the user approves the proposed configuration.
|
|
17
|
+
- Store the configuration at `docs/agent-workflow/project-context.md`. Do not create an empty `CONTEXT.md`,
|
|
18
|
+
empty ADR directory, placeholder Issues, or tracker labels.
|
|
19
|
+
- Record tracker coordinates and operating rules only. Do not infer credentials, create remote
|
|
20
|
+
Issues, or select a connector that is not available in the current runtime.
|
|
21
|
+
|
|
22
|
+
## Discover
|
|
23
|
+
|
|
24
|
+
Inspect only the current repository and existing project documentation:
|
|
25
|
+
|
|
26
|
+
1. Root `AGENTS.md`, `CLAUDE.md`, `CONTEXT.md`, and `CONTEXT-MAP.md`.
|
|
27
|
+
2. Existing ADR directories, `docs/agent-workflow/`, `.scratch/`, and project-local tracker notes.
|
|
28
|
+
3. Git remotes and existing issue references, without accessing remote tracker data unless the user
|
|
29
|
+
separately asks for it.
|
|
30
|
+
4. Existing tracker-operation docs, triage labels and `.out-of-scope/`.
|
|
31
|
+
5. Monorepo signals such as workspace manifests and package directories.
|
|
32
|
+
|
|
33
|
+
Report found facts, conflicts, and missing inputs concisely. Existing confirmed configuration wins;
|
|
34
|
+
reopen it only when the user asks to change it or its referenced path no longer exists.
|
|
35
|
+
|
|
36
|
+
## Resolve configuration
|
|
37
|
+
|
|
38
|
+
Resolve only choices not settled by repository facts, one at a time. Give a recommendation and
|
|
39
|
+
why it fits the discovered repository:
|
|
40
|
+
|
|
41
|
+
1. **Work tracking**: `github`, `gitlab`, `jira`, `linear`, `local-markdown`, or `custom`. Prefer the
|
|
42
|
+
configured remote or an existing local convention; record URL/project key/path, read operations,
|
|
43
|
+
mutation operations, native dependency support and the allowed tool/connector.
|
|
44
|
+
2. **Triage roles**: map category roles `bug` and `enhancement`, plus state roles `needs-triage`,
|
|
45
|
+
`needs-info`, `ready-for-agent`, `ready-for-human` and `wontfix`, to tracker labels. Use canonical
|
|
46
|
+
names unless existing labels prove otherwise.
|
|
47
|
+
3. **Local artifacts**: for `local-markdown`, record one feature directory, one ticket per file,
|
|
48
|
+
dependency edges, claim/resolution states and the map/frontier convention. Default to
|
|
49
|
+
`docs/superpowers/tracker/`, which is ignored by this package.
|
|
50
|
+
4. **Domain layout**: `single-context` at `CONTEXT.md`, or `multi-context` with a root
|
|
51
|
+
`CONTEXT-MAP.md`. Prefer multi-context only when the repository is a real monorepo with
|
|
52
|
+
independent domains.
|
|
53
|
+
5. **Decision records**: record the existing ADR directory, or recommend `docs/adr/` only when a
|
|
54
|
+
durable decision is ready to document.
|
|
55
|
+
|
|
56
|
+
If no decision is needed, present the discovered default for confirmation rather than asking a
|
|
57
|
+
synthetic question.
|
|
58
|
+
|
|
59
|
+
## Draft and persist
|
|
60
|
+
|
|
61
|
+
1. Fill `references/project-context-template.md` with confirmed values and show the full proposed
|
|
62
|
+
path and content before writing.
|
|
63
|
+
2. After explicit approval, create or update only `docs/agent-workflow/project-context.md`.
|
|
64
|
+
Preserve user-maintained sections outside the managed headings.
|
|
65
|
+
3. Create `CONTEXT.md`, `CONTEXT-MAP.md`, or an ADR only when the user has approved concrete
|
|
66
|
+
vocabulary or a qualifying decision. Delegate their content rules to `domain-modeling`.
|
|
67
|
+
4. Do not edit root instructions merely to advertise this setup; consumers discover the standard
|
|
68
|
+
configuration path when it exists.
|
|
69
|
+
|
|
70
|
+
## Handoff
|
|
71
|
+
|
|
72
|
+
Return one outcome:
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
CONFIGURED
|
|
76
|
+
- config_path
|
|
77
|
+
- work_tracking
|
|
78
|
+
- tracker_operations
|
|
79
|
+
- triage_role_mapping
|
|
80
|
+
- domain_layout
|
|
81
|
+
- adr_location
|
|
82
|
+
- remaining_risks
|
|
83
|
+
|
|
84
|
+
NEEDS_DECISION
|
|
85
|
+
- decision
|
|
86
|
+
- evidence
|
|
87
|
+
- recommended_default
|
|
88
|
+
|
|
89
|
+
NOT_APPLICABLE
|
|
90
|
+
- reason
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
After `CONFIGURED`, return to the caller. Do not start planning, implementation, or external
|
|
94
|
+
tracker actions.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# 项目 Agent 上下文
|
|
2
|
+
|
|
3
|
+
> 本文件定义本仓库中 Agent 应读取和更新的长期项目上下文;不要记录密钥、访问令牌或临时会话信息。
|
|
4
|
+
|
|
5
|
+
## 工作追踪
|
|
6
|
+
|
|
7
|
+
- 提供方:`<github | jira | linear | local-markdown | custom>`
|
|
8
|
+
- 位置:`<仓库、项目键、URL 或本地路径>`
|
|
9
|
+
- 允许工具:`<gh | jira CLI | linear connector | 无>`
|
|
10
|
+
- 使用规则:`<何时读取、何时创建或更新;没有授权时仅只读>`
|
|
11
|
+
- 依赖关系:`<原生 blocking/sub-issue 能力,或正文 Blocked by 约定>`
|
|
12
|
+
- 本地工件目录:`<local-markdown 路径;非本地 tracker 填不适用>`
|
|
13
|
+
|
|
14
|
+
### Tracker 操作
|
|
15
|
+
|
|
16
|
+
- 读取:`<查看单项、评论、标签和依赖关系的命令/工具>`
|
|
17
|
+
- 查询:`<列出待分诊、frontier 或 ready-for-agent 项的命令/工具>`
|
|
18
|
+
- 创建:`<创建 Issue/ticket 的命令/工具;执行前必须确认>`
|
|
19
|
+
- 更新:`<评论、标签、依赖、claim、close 的命令/工具;执行前必须确认>`
|
|
20
|
+
|
|
21
|
+
## 分诊角色
|
|
22
|
+
|
|
23
|
+
| Category 规范角色 | Tracker 标签 |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| `bug` | `<label>` |
|
|
26
|
+
| `enhancement` | `<label>` |
|
|
27
|
+
|
|
28
|
+
| State 规范角色 | Tracker 标签 |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `needs-triage` | `<label>` |
|
|
31
|
+
| `needs-info` | `<label>` |
|
|
32
|
+
| `ready-for-agent` | `<label>` |
|
|
33
|
+
| `ready-for-human` | `<label>` |
|
|
34
|
+
| `wontfix` | `<label>` |
|
|
35
|
+
|
|
36
|
+
外部 PR 是否作为请求入口:`<yes | no>`
|
|
37
|
+
|
|
38
|
+
## Wayfinder / Tickets
|
|
39
|
+
|
|
40
|
+
- Map:`<位置或 tracker 对象形状>`
|
|
41
|
+
- Child ticket:`<位置或 sub-issue 关系>`
|
|
42
|
+
- Blocking:`<原生依赖或 Blocked by 约定>`
|
|
43
|
+
- Frontier:`<open + unblocked + unclaimed 的查询方式>`
|
|
44
|
+
- Claim / Progress / Resolve:`<状态、assignee、进度记录、关闭及解锁查询操作>`
|
|
45
|
+
|
|
46
|
+
## 领域文档
|
|
47
|
+
|
|
48
|
+
- 布局:`<single-context | multi-context>`
|
|
49
|
+
- 上下文入口:`<CONTEXT.md 或 CONTEXT-MAP.md>`
|
|
50
|
+
- ADR 目录:`<现有路径、建议路径,或尚未创建>`
|
|
51
|
+
- 消费规则:实现前读取相关领域词汇;术语或长期决策改变时使用 `domain-modeling`;没有已批准内容时不创建空文档。
|
|
52
|
+
|
|
53
|
+
## 已确认约束
|
|
54
|
+
|
|
55
|
+
- `<仅记录已由用户或现有项目文档确认的约束>`
|
|
56
|
+
|
|
57
|
+
## 更新规则
|
|
58
|
+
|
|
59
|
+
- 工作追踪的外部写操作始终需要用户授权和可用连接器。
|
|
60
|
+
- `CONTEXT.md` 只保存稳定领域词汇,不保存实现草稿。
|
|
61
|
+
- ADR 只记录难以回滚、缺少背景会令人意外、且经过真实权衡的决策。
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prototype
|
|
3
|
+
description: "Build throwaway runnable code to answer one design question. Use when a user needs to feel a state model or business-logic flow in a terminal, compare materially different UI shapes, or says they will know the answer when they can interact with it."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Prototype
|
|
7
|
+
|
|
8
|
+
Origin: `mattpocock/skills@2ab9580`, adapted to reuse this repository's secured visual companion.
|
|
9
|
+
|
|
10
|
+
A prototype answers one question. It is not a production shortcut.
|
|
11
|
+
|
|
12
|
+
## Select the Branch
|
|
13
|
+
|
|
14
|
+
- Logic, state transition, data shape or API feel → read `references/logic.md`.
|
|
15
|
+
- Visual hierarchy, layout or interaction shape → read `references/ui.md` and
|
|
16
|
+
`skills/visual-companion/SKILL.md`.
|
|
17
|
+
|
|
18
|
+
If the branch is ambiguous and the user is unavailable, use surrounding code as evidence: backend
|
|
19
|
+
or state code defaults to logic; page/component work defaults to UI. State the assumption.
|
|
20
|
+
|
|
21
|
+
## Shared Contract
|
|
22
|
+
|
|
23
|
+
1. Write the exact question at the top of the prototype.
|
|
24
|
+
2. Place throwaway code near the relevant module or route and name it visibly as a prototype.
|
|
25
|
+
3. Reuse the project's runtime and task runner; provide one command to run.
|
|
26
|
+
4. Keep state in memory unless persistence itself is the question.
|
|
27
|
+
5. Skip production polish, broad error handling, abstractions and tests.
|
|
28
|
+
6. Surface full relevant state after every action or variant change.
|
|
29
|
+
7. Never connect UI variants to real mutations.
|
|
30
|
+
8. Capture the answer: decision, evidence and remaining uncertainty.
|
|
31
|
+
9. Promote only the validated decision. Rewrite production code under normal TDD and review gates.
|
|
32
|
+
|
|
33
|
+
Prototype creation is an authorized implementation step only when the user requested it. Commit,
|
|
34
|
+
branch, browser and external-system actions keep their own approval requirements.
|
|
35
|
+
|
|
36
|
+
## Exit
|
|
37
|
+
|
|
38
|
+
Return:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
Prototype question:
|
|
42
|
+
Branch and run command/URL:
|
|
43
|
+
Observed answer:
|
|
44
|
+
Validated decision:
|
|
45
|
+
Discarded assumptions:
|
|
46
|
+
Prototype cleanup/capture status:
|
|
47
|
+
Next router input:
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then return to `skills/using-superpowers/SKILL.md`. Do not silently continue into production code.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Logic Prototype
|
|
2
|
+
|
|
3
|
+
Build a tiny interactive terminal app for business logic, state transitions or data-shape questions.
|
|
4
|
+
|
|
5
|
+
## Shape
|
|
6
|
+
|
|
7
|
+
1. Isolate the logic behind a small pure interface:
|
|
8
|
+
- reducer `(state, action) -> state`;
|
|
9
|
+
- explicit state machine;
|
|
10
|
+
- pure transformations over plain data;
|
|
11
|
+
- stateful module only when ongoing internal state is the question.
|
|
12
|
+
2. Keep terminal I/O in a thin shell. The logic module must not print, prompt or depend on terminal
|
|
13
|
+
escape codes.
|
|
14
|
+
3. Render one stable frame after every action:
|
|
15
|
+
- full current state;
|
|
16
|
+
- legal actions and one-key/one-line controls;
|
|
17
|
+
- quit action.
|
|
18
|
+
4. Keep the whole frame visible on one screen.
|
|
19
|
+
5. Add one run command using the existing package manager or task runner.
|
|
20
|
+
|
|
21
|
+
## Boundaries
|
|
22
|
+
|
|
23
|
+
- Do not add tests to the prototype.
|
|
24
|
+
- Do not use the production database unless persistence is the explicit question; then use a clearly
|
|
25
|
+
disposable scratch store.
|
|
26
|
+
- Do not generalize beyond the one stated question.
|
|
27
|
+
- The TUI shell never ships. A validated pure model may inform production code, which must be rewritten
|
|
28
|
+
through the normal implementation workflow.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# UI Prototype
|
|
2
|
+
|
|
3
|
+
Build a runnable in-project UI prototype. Use `skills/visual-companion/SKILL.md` only when its secured
|
|
4
|
+
browser companion materially improves review; its consent and authentication contract remains binding.
|
|
5
|
+
|
|
6
|
+
## Variants
|
|
7
|
+
|
|
8
|
+
- Default to three and cap at five.
|
|
9
|
+
- Make variants structurally different: layout, information hierarchy and primary affordance, not
|
|
10
|
+
only color or copy.
|
|
11
|
+
- Prefer embedding variants in an existing page with real read-only data, params, authentication shell
|
|
12
|
+
and realistic density. Swap only the rendered subtree.
|
|
13
|
+
- Create a visibly throwaway route only when no existing surface can host the question.
|
|
14
|
+
- Select variants with a `?variant=` search parameter so each view is shareable and reload-stable.
|
|
15
|
+
- Use the project's existing component and styling system.
|
|
16
|
+
|
|
17
|
+
## Interaction
|
|
18
|
+
|
|
19
|
+
Provide a clearly non-production switcher that:
|
|
20
|
+
|
|
21
|
+
- identifies the current variant;
|
|
22
|
+
- moves forward/back with controls and arrow keys;
|
|
23
|
+
- does not intercept keys inside editable elements;
|
|
24
|
+
- is gated out of production builds.
|
|
25
|
+
|
|
26
|
+
Expose one existing project run command and the exact URLs for all variants. Do not start a local
|
|
27
|
+
server or open the browser without the active task's authorization/consent.
|
|
28
|
+
|
|
29
|
+
After a choice, record which variant won and why. Rewrite the winner under normal production gates;
|
|
30
|
+
remove the switcher and losing variants from the production path.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: research
|
|
3
|
+
description: "Investigate a question against high-trust primary sources and persist a cited Markdown report. Use when external documentation, source code, standards, APIs, papers, or delegated reading are needed; not for a narrow local code search already handled by iterative-retrieval."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Research
|
|
7
|
+
|
|
8
|
+
Origin: `mattpocock/skills@2ab9580`, adapted to this repository's agent and artifact rules.
|
|
9
|
+
|
|
10
|
+
## Contract
|
|
11
|
+
|
|
12
|
+
1. Define the question, decision it informs, source quality threshold and output location.
|
|
13
|
+
2. Use a background subagent when the runtime permits and the research can proceed independently.
|
|
14
|
+
Continue useful local work while it reads.
|
|
15
|
+
3. Prefer primary sources: official documentation, owner source code, specifications, first-party APIs
|
|
16
|
+
and original papers. Use secondary sources only to locate or contrast primary evidence.
|
|
17
|
+
4. Trace every material claim to the source that owns it.
|
|
18
|
+
5. Save one Markdown report in the repository's configured research/scratch convention. If none exists,
|
|
19
|
+
use `.unknowns/<topic>-research.md` and report the path.
|
|
20
|
+
6. Put citations beside claims, distinguish source fact from inference, record source dates/versions,
|
|
21
|
+
conflicts and unresolved gaps, citing each claim that changes the conclusion.
|
|
22
|
+
7. Do not change production code, external systems or project decisions.
|
|
23
|
+
|
|
24
|
+
## Background Agent Brief
|
|
25
|
+
|
|
26
|
+
Pass only:
|
|
27
|
+
|
|
28
|
+
- research question and decision context;
|
|
29
|
+
- allowed scope and preferred primary sources;
|
|
30
|
+
- output path;
|
|
31
|
+
- required report sections and citation contract.
|
|
32
|
+
|
|
33
|
+
Do not leak an expected answer. The subagent returns a short conclusion and the report path; the file is
|
|
34
|
+
the authoritative artifact.
|
|
35
|
+
|
|
36
|
+
## Report Shape
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
# Question
|
|
40
|
+
## Conclusion
|
|
41
|
+
## Primary-source findings
|
|
42
|
+
## Conflicts and uncertainty
|
|
43
|
+
## Implications for the decision
|
|
44
|
+
## Sources
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Return the report to `skills/using-superpowers/SKILL.md`. Research supplies evidence; it does not own
|
|
48
|
+
requirements, approval or implementation.
|