Skip to content

Commit da813d4

Browse files
committed
feat: add code tour workflow
1 parent cba4354 commit da813d4

File tree

8 files changed

+251
-12
lines changed

8 files changed

+251
-12
lines changed

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Everything Claude Code (ECC) — Agent Instructions
22

3-
This is a **production-ready AI coding plugin** providing 38 specialized agents, 161 skills, 72 commands, and automated hook workflows for software development.
3+
This is a **production-ready AI coding plugin** providing 38 specialized agents, 162 skills, 72 commands, and automated hook workflows for software development.
44

55
**Version:** 1.10.0
66

@@ -146,7 +146,7 @@ Troubleshoot failures: check test isolation → verify mocks → fix implementat
146146

147147
```
148148
agents/ — 38 specialized subagents
149-
skills/ — 161 workflow skills and domain knowledge
149+
skills/ — 162 workflow skills and domain knowledge
150150
commands/ — 72 slash commands
151151
hooks/ — Trigger-based automations
152152
rules/ — Always-follow guidelines (common + per-language)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ For manual install instructions see the README in the `rules/` folder. When copy
236236
/plugin list ecc@ecc
237237
```
238238

239-
**That's it!** You now have access to 38 agents, 161 skills, and 72 legacy command shims.
239+
**That's it!** You now have access to 38 agents, 162 skills, and 72 legacy command shims.
240240

241241
### Multi-model commands require additional setup
242242

@@ -1154,7 +1154,7 @@ The configuration is automatically detected from `.opencode/opencode.json`.
11541154
|---------|-------------|----------|--------|
11551155
| Agents | PASS: 38 agents | PASS: 12 agents | **Claude Code leads** |
11561156
| Commands | PASS: 72 commands | PASS: 31 commands | **Claude Code leads** |
1157-
| Skills | PASS: 161 skills | PASS: 37 skills | **Claude Code leads** |
1157+
| Skills | PASS: 162 skills | PASS: 37 skills | **Claude Code leads** |
11581158
| Hooks | PASS: 8 event types | PASS: 11 events | **OpenCode has more!** |
11591159
| Rules | PASS: 29 rules | PASS: 13 instructions | **Claude Code leads** |
11601160
| MCP Servers | PASS: 14 servers | PASS: Full | **Full parity** |
@@ -1263,7 +1263,7 @@ ECC is the **first plugin to maximize every major AI coding tool**. Here's how e
12631263
|---------|------------|------------|-----------|----------|
12641264
| **Agents** | 38 | Shared (AGENTS.md) | Shared (AGENTS.md) | 12 |
12651265
| **Commands** | 72 | Shared | Instruction-based | 31 |
1266-
| **Skills** | 161 | Shared | 10 (native format) | 37 |
1266+
| **Skills** | 162 | Shared | 10 (native format) | 37 |
12671267
| **Hook Events** | 8 types | 15 types | None yet | 11 types |
12681268
| **Hook Scripts** | 20+ scripts | 16 scripts (DRY adapter) | N/A | Plugin hooks |
12691269
| **Rules** | 34 (common + lang) | 34 (YAML frontmatter) | Instruction-based | 13 instructions |

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ cp -r everything-claude-code/rules/perl ~/.claude/rules/
106106
/plugin list ecc@ecc
107107
```
108108

109-
**完成!** 你现在可以使用 38 个代理、161 个技能和 72 个命令。
109+
**完成!** 你现在可以使用 38 个代理、162 个技能和 72 个命令。
110110

111111
### multi-* 命令需要额外配置
112112

WORKING-CONTEXT.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Public ECC plugin repo for agents, skills, commands, hooks, rules, install surfa
1010

1111
- Default branch: `main`
1212
- Public release surface is aligned at `v1.10.0`
13-
- Public catalog truth is `38` agents, `72` commands, and `160` skills
13+
- Public catalog truth is `38` agents, `72` commands, and `162` skills
1414
- Public plugin slug is now `ecc`; legacy `everything-claude-code` install paths remain supported for compatibility
1515
- Release discussion: `#1272`
1616
- ECC 2.0 exists in-tree and builds, but it is still alpha rather than GA
@@ -138,6 +138,8 @@ Keep this file detailed for only the current sprint, blockers, and next actions.
138138
- 2026-04-05: Shipped `846ffb7` (`chore: ship v1.10.0 release surface refresh`). This updated README/plugin metadata/package versions, synced the explicit plugin agent inventory, bumped stale star/fork/contributor counts, created `docs/releases/1.10.0/*`, tagged and released `v1.10.0`, and posted the announcement discussion at `#1272`.
139139
- 2026-04-05: Salvaged the reusable Hermes-branch operator skills in `6eba30f` without replaying the full branch. Added `skills/github-ops`, `skills/knowledge-ops`, and `skills/hookify-rules`, wired them into install modules, and re-synced the repo to `159` skills. `knowledge-ops` was explicitly adapted to the current workspace model: live code in cloned repos, active truth in GitHub/Linear, broader non-code context in the KB/archive layers.
140140
- 2026-04-05: Fixed the remaining OpenCode npm-publish gap in `db6d52e`. The root package now builds `.opencode/dist` during `prepack`, includes the compiled OpenCode plugin assets in the published tarball, and carries a dedicated regression test (`tests/scripts/build-opencode.test.js`) so the package no longer ships only raw TypeScript source for that surface.
141+
- 2026-04-05: Added `skills/council`, direct-ported the safe `code-tour` lane from `#1193`, and re-synced the repo to `162` skills. `code-tour` stays self-contained and only produces `.tours/*.tour` artifacts with real file/line anchors; no external runtime or extension install is assumed inside the skill.
142+
- 2026-04-05: Closed the latest auto-generated ECC bundle PR wave (`#1275`-`#1281`) after deploying `ECC-Tools/main` fix `f615905`, which now blocks repo-level issue-comment `/analyze` requests from opening repeated bundle PRs while still allowing PR-thread retry analysis to run against immutable head SHAs.
141143
- 2026-04-05: Fixed the stale-row bug in `.github/workflows/monthly-metrics.yml` with `bf5961e`. The workflow now refreshes the current month row in issue `#1087` instead of early-returning when the month already exists, and the dispatched run updated the April snapshot to the current star/fork/release counts.
142144
- 2026-04-05: Recovered the useful cost-control workflow from the divergent Hermes branch as a small ECC-native operator skill instead of replaying the branch. `skills/ecc-tools-cost-audit/SKILL.md` is now wired into `operator-workflows` and focused on webhook -> queue -> worker tracing, burn containment, quota bypass, premium-model leakage, and retry fanout in the sibling `ECC-Tools` repo.
143145
- 2026-04-05: Added `skills/council/SKILL.md` in `753da37` as an ECC-native four-voice decision workflow. The useful protocol from PR `#1254` was retained, but the shadow `~/.claude/notes` write path was explicitly removed in favor of `knowledge-ops`, `/save-session`, or direct GitHub/Linear updates when a decision delta matters.

docs/zh-CN/AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Everything Claude Code (ECC) — 智能体指令
22

3-
这是一个**生产就绪的 AI 编码插件**,提供 38 个专业代理、161 项技能、72 条命令以及自动化钩子工作流,用于软件开发。
3+
这是一个**生产就绪的 AI 编码插件**,提供 38 个专业代理、162 项技能、72 条命令以及自动化钩子工作流,用于软件开发。
44

55
**版本:** 1.10.0
66

@@ -147,7 +147,7 @@
147147

148148
```
149149
agents/ — 38 个专业子代理
150-
skills/ — 161 个工作流技能和领域知识
150+
skills/ — 162 个工作流技能和领域知识
151151
commands/ — 72 个斜杠命令
152152
hooks/ — 基于触发的自动化
153153
rules/ — 始终遵循的指导方针(通用 + 每种语言)

docs/zh-CN/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ npx ecc-install typescript
209209
/plugin list ecc@ecc
210210
```
211211

212-
**搞定!** 你现在可以使用 38 个智能体、161 项技能和 72 个命令了。
212+
**搞定!** 你现在可以使用 38 个智能体、162 项技能和 72 个命令了。
213213

214214
***
215215

@@ -1096,7 +1096,7 @@ opencode
10961096
|---------|-------------|----------|--------|
10971097
| 智能体 | PASS: 38 个 | PASS: 12 个 | **Claude Code 领先** |
10981098
| 命令 | PASS: 72 个 | PASS: 31 个 | **Claude Code 领先** |
1099-
| 技能 | PASS: 161| PASS: 37 项 | **Claude Code 领先** |
1099+
| 技能 | PASS: 162| PASS: 37 项 | **Claude Code 领先** |
11001100
| 钩子 | PASS: 8 种事件类型 | PASS: 11 种事件 | **OpenCode 更多!** |
11011101
| 规则 | PASS: 29 条 | PASS: 13 条指令 | **Claude Code 领先** |
11021102
| MCP 服务器 | PASS: 14 个 | PASS: 完整 | **完全对等** |
@@ -1208,7 +1208,7 @@ ECC 是**第一个最大化利用每个主要 AI 编码工具的插件**。以
12081208
|---------|------------|------------|-----------|----------|
12091209
| **智能体** | 38 | 共享 (AGENTS.md) | 共享 (AGENTS.md) | 12 |
12101210
| **命令** | 72 | 共享 | 基于指令 | 31 |
1211-
| **技能** | 161 | 共享 | 10 (原生格式) | 37 |
1211+
| **技能** | 162 | 共享 | 10 (原生格式) | 37 |
12121212
| **钩子事件** | 8 种类型 | 15 种类型 | 暂无 | 11 种类型 |
12131213
| **钩子脚本** | 20+ 个脚本 | 16 个脚本 (DRY 适配器) | N/A | 插件钩子 |
12141214
| **规则** | 34 (通用 + 语言) | 34 (YAML 前页) | 基于指令 | 13 条指令 |

manifests/install-modules.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
"paths": [
201201
"skills/ai-regression-testing",
202202
"skills/configure-ecc",
203+
"skills/code-tour",
203204
"skills/continuous-learning",
204205
"skills/continuous-learning-v2",
205206
"skills/council",

skills/code-tour/SKILL.md

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
---
2+
name: code-tour
3+
description: Create CodeTour `.tour` files — persona-targeted, step-by-step walkthroughs with real file and line anchors. Use for onboarding tours, architecture walkthroughs, PR tours, RCA tours, and structured "explain how this works" requests.
4+
origin: ECC
5+
---
6+
7+
# Code Tour
8+
9+
Create **CodeTour** `.tour` files for codebase walkthroughs that open directly to real files and line ranges. Tours live in `.tours/` and are meant for the CodeTour format, not ad hoc Markdown notes.
10+
11+
A good tour is a narrative for a specific reader:
12+
- what they are looking at
13+
- why it matters
14+
- what path they should follow next
15+
16+
Only create `.tour` JSON files. Do not modify source code as part of this skill.
17+
18+
## When to Use
19+
20+
Use this skill when:
21+
- the user asks for a code tour, onboarding tour, architecture walkthrough, or PR tour
22+
- the user says "explain how X works" and wants a reusable guided artifact
23+
- the user wants a ramp-up path for a new engineer or reviewer
24+
- the task is better served by a guided sequence than a flat summary
25+
26+
Examples:
27+
- onboarding a new maintainer
28+
- architecture tour for one service or package
29+
- PR-review walk-through anchored to changed files
30+
- RCA tour showing the failure path
31+
- security review tour of trust boundaries and key checks
32+
33+
## When NOT to Use
34+
35+
| Instead of code-tour | Use |
36+
| --- | --- |
37+
| A one-off explanation in chat is enough | answer directly |
38+
| The user wants prose docs, not a `.tour` artifact | `documentation-lookup` or repo docs editing |
39+
| The task is implementation or refactoring | do the implementation work |
40+
| The task is broad codebase onboarding without a tour artifact | `codebase-onboarding` |
41+
42+
## Workflow
43+
44+
### 1. Discover
45+
46+
Explore the repo before writing anything:
47+
- README and package/app entry points
48+
- folder structure
49+
- relevant config files
50+
- the changed files if the tour is PR-focused
51+
52+
Do not start writing steps before you understand the shape of the code.
53+
54+
### 2. Infer the reader
55+
56+
Decide the persona and depth from the request.
57+
58+
| Request shape | Persona | Suggested depth |
59+
| --- | --- | --- |
60+
| "onboarding", "new joiner" | `new-joiner` | 9-13 steps |
61+
| "quick tour", "vibe check" | `vibecoder` | 5-8 steps |
62+
| "architecture" | `architect` | 14-18 steps |
63+
| "tour this PR" | `pr-reviewer` | 7-11 steps |
64+
| "why did this break" | `rca-investigator` | 7-11 steps |
65+
| "security review" | `security-reviewer` | 7-11 steps |
66+
| "explain how this feature works" | `feature-explainer` | 7-11 steps |
67+
| "debug this path" | `bug-fixer` | 7-11 steps |
68+
69+
### 3. Read and verify anchors
70+
71+
Every file path and line anchor must be real:
72+
- confirm the file exists
73+
- confirm the line numbers are in range
74+
- if using a selection, verify the exact block
75+
- if the file is volatile, prefer a pattern-based anchor
76+
77+
Never guess line numbers.
78+
79+
### 4. Write the `.tour`
80+
81+
Write to:
82+
83+
```text
84+
.tours/<persona>-<focus>.tour
85+
```
86+
87+
Keep the path deterministic and readable.
88+
89+
### 5. Validate
90+
91+
Before finishing:
92+
- every referenced path exists
93+
- every line or selection is valid
94+
- the first step is anchored to a real file or directory
95+
- the tour tells a coherent story rather than listing files
96+
97+
## Step Types
98+
99+
### Content
100+
101+
Use sparingly, usually only for a closing step:
102+
103+
```json
104+
{ "title": "Next Steps", "description": "You can now trace the request path end to end." }
105+
```
106+
107+
Do not make the first step content-only.
108+
109+
### Directory
110+
111+
Use to orient the reader to a module:
112+
113+
```json
114+
{ "directory": "src/services", "title": "Service Layer", "description": "The core orchestration logic lives here." }
115+
```
116+
117+
### File + line
118+
119+
This is the default step type:
120+
121+
```json
122+
{ "file": "src/auth/middleware.ts", "line": 42, "title": "Auth Gate", "description": "Every protected request passes here first." }
123+
```
124+
125+
### Selection
126+
127+
Use when one code block matters more than the whole file:
128+
129+
```json
130+
{
131+
"file": "src/core/pipeline.ts",
132+
"selection": {
133+
"start": { "line": 15, "character": 0 },
134+
"end": { "line": 34, "character": 0 }
135+
},
136+
"title": "Request Pipeline",
137+
"description": "This block wires validation, auth, and downstream execution."
138+
}
139+
```
140+
141+
### Pattern
142+
143+
Use when exact lines may drift:
144+
145+
```json
146+
{ "file": "src/app.ts", "pattern": "export default class App", "title": "Application Entry" }
147+
```
148+
149+
### URI
150+
151+
Use for PRs, issues, or docs when helpful:
152+
153+
```json
154+
{ "uri": "https://github.com/org/repo/pull/456", "title": "The PR" }
155+
```
156+
157+
## Writing Rule: SMIG
158+
159+
Each description should answer:
160+
- **Situation**: what the reader is looking at
161+
- **Mechanism**: how it works
162+
- **Implication**: why it matters for this persona
163+
- **Gotcha**: what a smart reader might miss
164+
165+
Keep descriptions compact, specific, and grounded in the actual code.
166+
167+
## Narrative Shape
168+
169+
Use this arc unless the task clearly needs something different:
170+
1. orientation
171+
2. module map
172+
3. core execution path
173+
4. edge case or gotcha
174+
5. closing / next move
175+
176+
The tour should feel like a path, not an inventory.
177+
178+
## Example
179+
180+
```json
181+
{
182+
"$schema": "https://aka.ms/codetour-schema",
183+
"title": "API Service Tour",
184+
"description": "Walkthrough of the request path for the payments service.",
185+
"ref": "main",
186+
"steps": [
187+
{
188+
"directory": "src",
189+
"title": "Source Root",
190+
"description": "All runtime code for the service starts here."
191+
},
192+
{
193+
"file": "src/server.ts",
194+
"line": 12,
195+
"title": "Entry Point",
196+
"description": "The server boots here and wires middleware before any route is reached."
197+
},
198+
{
199+
"file": "src/routes/payments.ts",
200+
"line": 8,
201+
"title": "Payment Routes",
202+
"description": "Every payments request enters through this router before hitting service logic."
203+
},
204+
{
205+
"title": "Next Steps",
206+
"description": "You can now follow any payment request end to end with the main anchors in place."
207+
}
208+
]
209+
}
210+
```
211+
212+
## Anti-Patterns
213+
214+
| Anti-pattern | Fix |
215+
| --- | --- |
216+
| Flat file listing | Tell a story with dependency between steps |
217+
| Generic descriptions | Name the concrete code path or pattern |
218+
| Guessed anchors | Verify every file and line first |
219+
| Too many steps for a quick tour | Cut aggressively |
220+
| First step is content-only | Anchor the first step to a real file or directory |
221+
| Persona mismatch | Write for the actual reader, not a generic engineer |
222+
223+
## Best Practices
224+
225+
- keep step count proportional to repo size and persona depth
226+
- use directory steps for orientation, file steps for substance
227+
- for PR tours, cover changed files first
228+
- for monorepos, scope to the relevant packages instead of touring everything
229+
- close with what the reader can now do, not a recap
230+
231+
## Related Skills
232+
233+
- `codebase-onboarding`
234+
- `coding-standards`
235+
- `council`
236+
- official upstream format: `microsoft/codetour`

0 commit comments

Comments
 (0)