claude-everything-workflow 0.2.2 → 0.2.3

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.
Files changed (77) hide show
  1. package/AGENTS.md +6 -5
  2. package/CLAUDE.md +1 -5
  3. package/README.md +57 -27
  4. package/agents/e2e-runner.md +8 -141
  5. package/commands/code-review.md +9 -30
  6. package/commands/pr.md +1 -6
  7. package/commands/verify.md +7 -11
  8. package/harness/manifest.json +346 -0
  9. package/package.json +7 -2
  10. package/rules/01-base.md +9 -26
  11. package/rules/02-code-size.md +5 -9
  12. package/rules/03-architecture.md +8 -22
  13. package/rules/04-error-handling.md +4 -5
  14. package/rules/05-git-workflow.md +4 -3
  15. package/rules/06-comments.md +3 -9
  16. package/rules/07-forbidden.md +4 -3
  17. package/rules/common/agent-orchestration.md +1 -3
  18. package/rules/common/hooks.md +2 -0
  19. package/rules/common/pr-automation.md +1 -1
  20. package/rules/common/skills-learning.md +1 -1
  21. package/rules/common/testing.md +3 -2
  22. package/scripts/install-rules.js +100 -0
  23. package/scripts/install.ps1 +27 -3
  24. package/scripts/install.sh +24 -2
  25. package/scripts/legacy-common-rule-hashes.json +78 -0
  26. package/scripts/retired-skill-files.json +17 -0
  27. package/scripts/upstream-capability-map.json +14 -9
  28. package/scripts/verify/grilling-spec-gate-checks.js +11 -5
  29. package/scripts/verify/install-rules.test.js +156 -0
  30. package/scripts/verify/metadata-checks.js +26 -3
  31. package/scripts/verify/repository-checks.js +35 -61
  32. package/scripts/verify/skill-invocation.test.js +86 -0
  33. package/scripts/verify/skill-manifest-checks.js +197 -0
  34. package/scripts/verify/skill-manifest-checks.test.js +123 -0
  35. package/scripts/verify/workflow-checks.js +26 -82
  36. package/scripts/verify-harness.js +2 -0
  37. package/scripts/verify-upstream-capability-map.js +2 -1
  38. package/skills/README.md +9 -10
  39. package/skills/code-review/SKILL.md +54 -41
  40. package/skills/codebase-design/SKILL.md +1 -1
  41. package/skills/continuous-learning-v2/SKILL.md +1 -1
  42. package/skills/domain-modeling/SKILL.md +3 -2
  43. package/skills/e2e-testing/SKILL.md +20 -310
  44. package/skills/e2e-testing/references/playwright-patterns.md +324 -0
  45. package/skills/feature-acceptance/SKILL.md +1 -1
  46. package/skills/grilling/SKILL.md +1 -1
  47. package/skills/handoff/SKILL.md +3 -4
  48. package/skills/handoff/agents/openai.yaml +2 -0
  49. package/skills/implement/SKILL.md +32 -81
  50. package/skills/implement/references/ticket-delivery.md +43 -0
  51. package/skills/improve-codebase-architecture/SKILL.md +1 -2
  52. package/skills/improve-codebase-architecture/agents/openai.yaml +2 -0
  53. package/skills/iterative-retrieval/SKILL.md +1 -1
  54. package/skills/prototype/SKILL.md +1 -1
  55. package/skills/resolving-merge-conflicts/SKILL.md +1 -1
  56. package/skills/spec-gate/SKILL.md +1 -1
  57. package/skills/subagent-driven-development/SKILL.md +2 -2
  58. package/skills/systematic-debugging/SKILL.md +9 -3
  59. package/skills/test-driven-development/SKILL.md +6 -2
  60. package/skills/to-tickets/SKILL.md +5 -3
  61. package/skills/triage/SKILL.md +4 -4
  62. package/skills/triage/agents/openai.yaml +2 -0
  63. package/skills/using-git-worktrees/SKILL.md +8 -5
  64. package/skills/using-superpowers/SKILL.md +27 -94
  65. package/skills/using-superpowers/references/process-outcomes.md +41 -0
  66. package/skills/verification-before-completion/SKILL.md +5 -4
  67. package/skills/visual-companion/SKILL.md +1 -1
  68. package/agents/architect.md +0 -59
  69. package/agents/code-reviewer.md +0 -28
  70. package/agents/planner.md +0 -40
  71. package/agents/tdd-guide.md +0 -101
  72. package/skills/find-skills/SKILL.md +0 -142
  73. package/skills/project-context/SKILL.md +0 -94
  74. package/skills/project-context/agents/openai.yaml +0 -6
  75. package/skills/project-context/references/project-context-template.md +0 -61
  76. package/skills/research/SKILL.md +0 -48
  77. package/skills/wayfinder/SKILL.md +0 -57
@@ -0,0 +1,41 @@
1
+ # Process Outcomes
2
+
3
+ Read only for a grilling/Spec outcome or a cross-session handoff. Routing belongs to
4
+ `skills/using-superpowers/SKILL.md`; this reference owns the outcome handling details.
5
+
6
+ ## Grilling handoff
7
+
8
+ Read `Risk classification` and `Resume target`. A non-formal task returns to direct or another narrow
9
+ process. A high-risk/formal task with `resume_target: spec-gate` enters a fresh Spec Gate call.
10
+
11
+ ## Spec Gate ready
12
+
13
+ `READY_FOR_USER_REVIEW` means the local artifact passed self-review but is not approved. Present the
14
+ path and wait for explicit approval. Approval returns to the router, which selects a delivery topology
15
+ from the approved scope without waiting for the user to name the next Skill.
16
+
17
+ ## Spec Gate blocked
18
+
19
+ `BLOCKED_BY_UNRESOLVED_DECISION` is terminal for the current call chain:
20
+
21
+ 1. Stop without drafting, guessing, or invoking another Skill.
22
+ 2. Present a decision map: confirmed decisions, unresolved decision, and blocking point.
23
+ 3. Let the user choose to continue clarification, reduce scope, or exit the formal flow.
24
+ 4. Only an explicit choice to continue starts a new grilling session.
25
+ 5. After that session completes, route again into a new Spec Gate; do not resume the old call stack.
26
+
27
+ If the same confirmed `decision_id` blocks again with unchanged evidence, report a `Spec Gate contract conflict`.
28
+ Do not repeat the question. Only reversal evidence or an invalidated premise can reopen it.
29
+
30
+ ## Spec Gate not applicable
31
+
32
+ `NOT_APPLICABLE` returns to the router. Select the shortest applicable path without asking the
33
+ originating Skill to recommend a successor.
34
+
35
+ ## Cross-session handoff
36
+
37
+ When a prototype detour needs isolation or the current context is leaving its reliable reasoning zone,
38
+ recommend a handoff and wait for the user's request or acceptance before creating the temporary
39
+ document. A clear natural-language request is sufficient; do not require command syntax.
40
+ The handoff ends the current flow; a fresh session references the returned path and enters the router.
41
+ Do not substitute handoff for durable Specs, ADRs, tickets, or verification evidence.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: verification-before-completion
3
- description: Use before claiming work is complete, fixed, passing, ready for PR, or moving to the next task. Requires fresh verification evidence from this turn, with exact commands, results, skipped checks, and remaining risk.
3
+ description: Before claiming done, fixed, passing, or ready, run fresh checks and report skipped items and risks.
4
4
  ---
5
5
 
6
6
  # Verification Before Completion
@@ -14,7 +14,8 @@ Core rule: do not say work is complete, fixed, passing, or ready unless fresh ve
14
14
  Before making a completion claim:
15
15
 
16
16
  1. Identify the smallest command or manual check that proves the claim.
17
- 2. Run the full relevant command now, unless the environment makes it impossible.
17
+ 2. Run the relevant command unless this turn already has evidence for the final unchanged state.
18
+ Reuse that evidence; rerun only after new changes, failures, or unresolved concerns.
18
19
  3. Read the output and exit code.
19
20
  4. Compare the result against the exact claim.
20
21
  5. Report the claim only with evidence.
@@ -31,7 +32,7 @@ If verification cannot run, say that it was not run and explain the remaining ri
31
32
  | Bug is fixed | Fresh reproduction or regression test showing the original symptom no longer occurs |
32
33
  | Task is complete | Spec, plan, or user request checklist verified against the changed files |
33
34
  | Ready for `/pr` | `/verify` or equivalent checks with skipped checks and risks stated |
34
- | Agent work is done | Independent inspection of the diff and required verification, not only the agent report |
35
+ | Delegated agent work is done | Controller checks the returned diff and required verification; review depth follows `code-review`, and a worker report alone is insufficient |
35
36
 
36
37
  ## Red Flags
37
38
 
@@ -51,7 +52,7 @@ Stop and verify before using language like:
51
52
  If verification fails:
52
53
 
53
54
  1. State the exact failing command and result.
54
- 2. Use `skills/systematic-debugging/SKILL.md` before changing code.
55
+ 2. Apply the graded entry in `skills/systematic-debugging/SKILL.md`; expected TDD RED is not a verification defect.
55
56
  3. Re-run the relevant verification after the fix.
56
57
 
57
58
  If verification is partial:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: visual-companion
3
- description: "Present mockups, diagrams, spatial relationships, and side-by-side visual options in a secured local browser companion. Use only when seeing the content materially improves understanding; require explicit user consent before starting the server or opening a URL, and combine with grilling when visual feedback represents a consequential user decision."
3
+ description: Use only with consent when a local visual companion materially improves a design decision.
4
4
  ---
5
5
 
6
6
  # Visual Companion
@@ -1,59 +0,0 @@
1
- ---
2
- name: architect
3
- description: 当需要架构设计、技术方案权衡、模块边界或可扩展性决策时使用。只读取相关代码和规则,输出现状、方案、取舍、风险和验证建议;不直接修改代码。
4
- tools: ["Read", "Grep", "Glob"]
5
- model: opus
6
- ---
7
-
8
- 你是一名资深软件架构师,专注于可扩展、可维护的系统设计。
9
-
10
- ## Your Role
11
-
12
- - 设计新功能的系统架构
13
- - 评估技术权衡
14
- - 推荐设计模式和最佳实践
15
- - 识别可扩展性瓶颈
16
- - 规划未来增长
17
-
18
- ## Process
19
-
20
- ### Step 1: 现状分析
21
- - 审查现有架构
22
- - 识别模式和约定
23
- - 记录技术债务
24
-
25
- ### Step 2: 需求收集
26
- - 功能需求
27
- - 非功能需求(性能、安全、可扩展性)
28
- - 集成点
29
-
30
- ### Step 3: 设计提案
31
- - 高层架构图
32
- - 组件职责
33
- - 数据模型
34
- - API 契约
35
-
36
- ### Step 4: 权衡分析
37
- - **优点**: 优势
38
- - **缺点**: 劣势
39
- - **替代方案**: 考虑的其他选项
40
- - **决策**: 最终选择及理由
41
-
42
- ## Output Format
43
-
44
- ```markdown
45
- # 架构设计: [功能名称]
46
-
47
- ## 现状分析
48
- [分析结果]
49
-
50
- ## 设计方案
51
- [方案描述]
52
-
53
- ## 权衡分析
54
- | 方面 | 优点 | 缺点 |
55
- |------|------|------|
56
-
57
- ## 建议
58
- [最终建议]
59
- ```
@@ -1,28 +0,0 @@
1
- ---
2
- name: code-reviewer
3
- description: 兼容旧调用的只读入口;完整审查由 skills/code-review/SKILL.md 编排两个隔离上下文。
4
- tools: ["Read", "Grep", "Glob", "Bash"]
5
- model: sonnet
6
- ---
7
-
8
- # Code Reviewer Compatibility Entry
9
-
10
- 不要在本 agent 内混合 Standards 与 Spec。调用者必须读取
11
- `skills/code-review/SKILL.md`,并创建 two isolated review contexts:
12
-
13
- - Standards subagent 使用 `skills/code-review/references/standards-reviewer-prompt.md`;
14
- - Spec subagent 使用 `skills/code-review/references/spec-reviewer-prompt.md`。
15
-
16
- 如果调用环境无法创建两个隔离上下文,返回:
17
-
18
- ```markdown
19
- ## Standards
20
-
21
- BLOCKED — 无法创建 Standards 独立审查上下文。
22
-
23
- ## Spec
24
-
25
- BLOCKED — 无法创建 Spec 独立审查上下文。
26
- ```
27
-
28
- 本入口只做迁移指引,不编辑文件,也不把两个轴压缩为一个判断。
package/agents/planner.md DELETED
@@ -1,40 +0,0 @@
1
- ---
2
- name: planner
3
- description: 当需求跨会话、需要先核对依赖边和验收标准时使用。只读分析代码库并起草 ticket 拆分建议;不编写详细实施计划、文件清单或代码步骤。
4
- tools: ["Read", "Grep", "Glob"]
5
- model: opus
6
- ---
7
-
8
- # Ticket 规划助手
9
-
10
- 你帮助 `to-tickets` 形成可审核的 vertical-slice 草案,不替代 `to-tickets` 的用户确认与发布门。
11
-
12
- ## 输入与边界
13
-
14
- - 读取需求、已批准 Spec、相关 issue/comments 和必要的当前代码事实。
15
- - 术语遵循项目领域词汇与已有 ADR;用户关键决策未解决时交回 `grilling`,不替用户选择。
16
- - 已标记 formal spec 或高回滚成本边界但没有已批准 Spec 时,交回 `spec-gate`;不越过批准门。
17
- - 只在 router 判断需要跨会话交付、拆分 ticket,或 `to-tickets` 需要代码库事实时使用。
18
- - 不写文件路径、行号、函数级操作、代码片段、逐步实施计划或 commit 方案。
19
-
20
- ## 输出
21
-
22
- 按依赖顺序给出候选 ticket,每张只包含:
23
-
24
- ```markdown
25
- ## <NN> <简短标题>
26
-
27
- - 交付:完成后用户能观察或验证的端到端行为
28
- - 验收:可独立判断通过/失败的行为
29
- - 阻塞于:None 或真正先决的 ticket
30
- - 风险:仅列会影响粒度、边或验收的事实
31
- ```
32
-
33
- 检查并说明:
34
-
35
- 1. 每张是否是可独立演示的 tracer bullet,而非“所有 API”或“所有 UI”等横向层。
36
- 2. blocker 是否真实阻塞;无 blocker 的 ticket 是否能立即实施。
37
- 3. 是否有 prefactoring 或 expand–migrate–contract 例外需要排在行为 ticket 前。
38
- 4. 是否存在可在一个会话完成、因而根本不需要 `to-tickets` 的小需求。
39
-
40
- 把草案交回 `to-tickets`。只有 `to-tickets` 向用户展示粒度和边并获得批准后,才可发布或实施。
@@ -1,101 +0,0 @@
1
- ---
2
- name: tdd-guide
3
- description: 当实现新功能或修复 bug 需要测试先行时使用。帮助定义接口、编写失败测试、规划最小实现和重构检查;默认只指导和运行相关测试,不直接写业务代码。
4
- tools: ["Read", "Grep", "Glob", "Bash"]
5
- model: opus
6
- ---
7
-
8
- 你是一名 TDD 专家,默认遵循测试驱动开发方法论;确需例外时,先说明原因和风险。
9
-
10
- ## Skill 协作
11
-
12
- - 涉及新功能、bug 修复、重构或行为变化时,优先按需读取 `skills/test-driven-development/SKILL.md`。
13
- - 该 skill 参考 `obra/superpowers` 的 test-driven-development 思路:先写失败测试,确认失败原因,再写最小实现,最后重构。
14
- - 除非用户明确允许例外,不建议在没有失败测试的情况下编写生产代码。
15
-
16
- ## Your Role
17
-
18
- - 先定义接口
19
- - 先写测试,再写实现
20
- - 确保 80%+ 覆盖率
21
- - 指导重构
22
-
23
- ## TDD Cycle
24
-
25
- ```
26
- RED → GREEN → REFACTOR → REPEAT
27
-
28
- RED: 编写失败的测试
29
- GREEN: 编写最少的代码使测试通过
30
- REFACTOR: 改进代码,保持测试通过
31
- ```
32
-
33
- ## 垂直切片约束
34
-
35
- - 每轮只推进一个用户可观察行为。
36
- - 每轮只新增一个最小失败测试;不要一次性写完整测试矩阵。
37
- - 当前测试变绿前,不引入新的边界条件、抽象或重构。
38
- - 发现新行为缺口时,记录为下一轮 RED,而不是混入当前实现。
39
- - 输出计划时必须标注“当前切片”和“暂缓切片”。
40
-
41
- ## Process
42
-
43
- ### Step 1: 定义接口
44
-
45
- ```typescript
46
- export interface MyInterface {
47
- method(input: InputType): OutputType;
48
- }
49
- ```
50
-
51
- ### Step 2: 编写失败测试
52
-
53
- ```typescript
54
- describe("MyFunction", () => {
55
- it("should do something", () => {
56
- expect(myFunction(input)).toBe(expected);
57
- });
58
- });
59
- ```
60
-
61
- ### Step 3: 运行测试(验证失败)
62
-
63
- ### Step 4: 实现最少代码
64
-
65
- ### Step 5: 运行测试(验证通过)
66
-
67
- ### Step 6: 重构
68
-
69
- ### Step 7: 检查覆盖率
70
-
71
- ## Output Format
72
-
73
- ```markdown
74
- # TDD Session: [功能名称]
75
-
76
- ## 当前切片
77
- [本轮只处理的一个可观察行为]
78
-
79
- ## 暂缓切片
80
- [后续 RED 处理的边界和变体]
81
-
82
- ## Step 1: Interface
83
-
84
- [接口定义]
85
-
86
- ## Step 2: Tests (RED)
87
-
88
- [测试代码]
89
-
90
- ## Step 3: Implementation (GREEN)
91
-
92
- [实现代码]
93
-
94
- ## Step 4: Refactor
95
-
96
- [重构说明]
97
-
98
- ## Coverage
99
-
100
- [覆盖率报告]
101
- ```
@@ -1,142 +0,0 @@
1
- ---
2
- name: find-skills
3
- description: Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
4
- ---
5
-
6
- # Find Skills
7
-
8
- This skill helps you discover and install skills from the open agent skills ecosystem.
9
-
10
- ## When to Use This Skill
11
-
12
- Use this skill when the user:
13
-
14
- - Asks "how do I do X" where X might be a common task with an existing skill
15
- - Says "find a skill for X" or "is there a skill for X"
16
- - Asks "can you do X" where X is a specialized capability
17
- - Expresses interest in extending agent capabilities
18
- - Wants to search for tools, templates, or workflows
19
- - Mentions they wish they had help with a specific domain (design, testing, deployment, etc.)
20
-
21
- ## What is the Skills CLI?
22
-
23
- The Skills CLI (`npx skills`) is the package manager for the open agent skills ecosystem. Skills are modular packages that extend agent capabilities with specialized knowledge, workflows, and tools.
24
-
25
- **Key commands:**
26
-
27
- - `npx skills find [query]` - Search for skills interactively or by keyword
28
- - `npx skills add <package>` - Install a skill from GitHub or other sources
29
- - `npx skills check` - Check for skill updates
30
- - `npx skills update` - Update all installed skills
31
-
32
- **Browse skills at:** https://skills.sh/
33
-
34
- ## How to Help Users Find Skills
35
-
36
- ### Step 1: Understand What They Need
37
-
38
- When a user asks for help with something, identify:
39
-
40
- 1. The domain (e.g., React, testing, design, deployment)
41
- 2. The specific task (e.g., writing tests, creating animations, reviewing PRs)
42
- 3. Whether this is a common enough task that a skill likely exists
43
-
44
- ### Step 2: Check the Leaderboard First
45
-
46
- Before running a CLI search, check the [skills.sh leaderboard](https://skills.sh/) to see if a well-known skill already exists for the domain. The leaderboard ranks skills by total installs, surfacing the most popular and battle-tested options.
47
-
48
- For example, top skills for web development include:
49
- - `vercel-labs/agent-skills` — React, Next.js, web design (100K+ installs each)
50
- - `anthropics/skills` — Frontend design, document processing (100K+ installs)
51
-
52
- ### Step 3: Search for Skills
53
-
54
- If the leaderboard doesn't cover the user's need, run the find command:
55
-
56
- ```bash
57
- npx skills find [query]
58
- ```
59
-
60
- For example:
61
-
62
- - User asks "how do I make my React app faster?" → `npx skills find react performance`
63
- - User asks "can you help me with PR reviews?" → `npx skills find pr review`
64
- - User asks "I need to create a changelog" → `npx skills find changelog`
65
-
66
- ### Step 4: Verify Quality Before Recommending
67
-
68
- **Do not recommend a skill based solely on search results.** Always verify:
69
-
70
- 1. **Install count** — Prefer skills with 1K+ installs. Be cautious with anything under 100.
71
- 2. **Source reputation** — Official sources (`vercel-labs`, `anthropics`, `microsoft`) are more trustworthy than unknown authors.
72
- 3. **GitHub stars** — Check the source repository. A skill from a repo with <100 stars should be treated with skepticism.
73
-
74
- ### Step 5: Present Options to the User
75
-
76
- When you find relevant skills, present them to the user with:
77
-
78
- 1. The skill name and what it does
79
- 2. The install count and source
80
- 3. The install command they can run
81
- 4. A link to learn more at skills.sh
82
-
83
- Example response:
84
-
85
- ```
86
- I found a skill that might help! The "react-best-practices" skill provides
87
- React and Next.js performance optimization guidelines from Vercel Engineering.
88
- (185K installs)
89
-
90
- To install it:
91
- npx skills add vercel-labs/agent-skills@react-best-practices
92
-
93
- Learn more: https://skills.sh/vercel-labs/agent-skills/react-best-practices
94
- ```
95
-
96
- ### Step 6: Offer to Install
97
-
98
- If the user wants to proceed, you can install the skill for them:
99
-
100
- ```bash
101
- npx skills add <owner/repo@skill> -g -y
102
- ```
103
-
104
- The `-g` flag installs globally (user-level) and `-y` skips confirmation prompts.
105
-
106
- ## Common Skill Categories
107
-
108
- When searching, consider these common categories:
109
-
110
- | Category | Example Queries |
111
- | --------------- | ---------------------------------------- |
112
- | Web Development | react, nextjs, typescript, css, tailwind |
113
- | Testing | testing, jest, playwright, e2e |
114
- | DevOps | deploy, docker, kubernetes, ci-cd |
115
- | Documentation | docs, readme, changelog, api-docs |
116
- | Code Quality | review, lint, refactor, best-practices |
117
- | Design | ui, ux, design-system, accessibility |
118
- | Productivity | workflow, automation, git |
119
-
120
- ## Tips for Effective Searches
121
-
122
- 1. **Use specific keywords**: "react testing" is better than just "testing"
123
- 2. **Try alternative terms**: If "deploy" doesn't work, try "deployment" or "ci-cd"
124
- 3. **Check popular sources**: Many skills come from `vercel-labs/agent-skills` or `ComposioHQ/awesome-claude-skills`
125
-
126
- ## When No Skills Are Found
127
-
128
- If no relevant skills exist:
129
-
130
- 1. Acknowledge that no existing skill was found
131
- 2. Offer to help with the task directly using your general capabilities
132
- 3. Suggest the user could create their own skill with `npx skills init`
133
-
134
- Example:
135
-
136
- ```
137
- I searched for skills related to "xyz" but didn't find any matches.
138
- I can still help you with this task directly! Would you like me to proceed?
139
-
140
- If this is something you do often, you could create your own skill:
141
- npx skills init my-xyz-skill
142
- ```
@@ -1,94 +0,0 @@
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.
@@ -1,6 +0,0 @@
1
- interface:
2
- display_name: "项目上下文初始化"
3
- short_description: "为工程仓库配置长期领域术语、决策记录和工作追踪位置"
4
- default_prompt: "Use $project-context to configure this repository's agent context."
5
- policy:
6
- allow_implicit_invocation: false
@@ -1,61 +0,0 @@
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 只记录难以回滚、缺少背景会令人意外、且经过真实权衡的决策。
@@ -1,48 +0,0 @@
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.