@ethlete/agent-rules 0.1.0-next.36 → 0.1.0-next.38
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/CHANGELOG.md +45 -0
- package/README.md +43 -5
- package/content/hooks/away-mode.py +287 -0
- package/content/hooks/background-design-commands.py +42 -7
- package/content/hooks/context-warning.py +2 -44
- package/content/hooks/subagent-model-policy.py +90 -23
- package/content/mods/.claude-plugin/marketplace.json +5 -0
- package/content/mods/plugins/e2e-progress/.claude-plugin/plugin.json +1 -1
- package/content/mods/plugins/status-line/.claude-plugin/plugin.json +6 -0
- package/content/mods/plugins/status-line/hooks/hooks.json +1 -0
- package/content/mods/plugins/status-line/hooks/line.ts +73 -0
- package/content/mods/plugins/status-line/hooks/register.tsx +122 -0
- package/content/mods/plugins/status-line/types/index.d.ts +5 -0
- package/content/rules/subagent-models.md +9 -6
- package/content/skills/agent-sessions/SKILL.md +2 -2
- package/content/skills/agent-sessions/agent-sessions.mjs +30 -14
- package/content/skills/angular-patterns/SKILL.md +1 -1
- package/content/skills/codex-subagent/SKILL.md +1 -1
- package/content/skills/design-exploration/SKILL.md +5 -2
- package/content/skills/figma-export/SKILL.md +1 -1
- package/content/skills/handoff/SKILL.md +4 -187
- package/content/skills/handoff/save.md +187 -0
- package/content/skills/query/SKILL.md +1 -1
- package/content/skills/report/SKILL.md +26 -0
- package/content/skills/rxjs-signals/SKILL.md +1 -1
- package/content/skills/styleguide/SKILL.md +1 -1
- package/content/skills/styleguide/lint-rule-lookup.md +42 -41
- package/content/skills/theming/SKILL.md +1 -1
- package/content/skills/timetrack/SKILL.md +37 -1
- package/content/skills/verify-in-storybook/SKILL.md +1 -1
- package/package.json +1 -1
- package/src/index.js +13 -2
- package/src/index.js.map +1 -1
- package/src/lib/config.d.ts +13 -0
- package/src/lib/config.js +13 -3
- package/src/lib/config.js.map +1 -1
- package/src/lib/plan.js +10 -2
- package/src/lib/plan.js.map +1 -1
- package/src/lib/render.d.ts +1 -0
- package/src/lib/render.js +3 -1
- package/src/lib/render.js.map +1 -1
- package/src/lib/report-command.d.ts +33 -0
- package/src/lib/report-command.js +312 -0
- package/src/lib/report-command.js.map +1 -0
- package/src/lib/targets/claude-mods.js +1 -1
- package/src/lib/targets/claude-mods.js.map +1 -1
- package/src/lib/targets/hooks-shared.js +6 -0
- package/src/lib/targets/hooks-shared.js.map +1 -1
- package/src/lib/targets/mcp.d.ts +6 -6
- package/src/lib/targets/mcp.js +9 -5
- package/src/lib/targets/mcp.js.map +1 -1
- package/src/lib/timetrack-command.js +179 -29
- package/src/lib/timetrack-command.js.map +1 -1
- package/src/lib/timetrack.d.ts +22 -1
- package/src/lib/timetrack.js +7 -1
- package/src/lib/timetrack.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: handoff
|
|
3
|
-
description: Save the current work state to a handoff file so a fresh session can continue
|
|
3
|
+
description: Save the current work state to a handoff file so a fresh session can continue, or resume from one. Use when context is large, a work chunk is done, or on "handoff", "wrap up", "continue in a new session".
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: both
|
|
6
6
|
vars: [handoffDir]
|
|
@@ -17,7 +17,7 @@ continue in a fresh session. Two modes:
|
|
|
17
17
|
|
|
18
18
|
Text after the slug or the name is an instruction from the user, in both modes. In save mode it is
|
|
19
19
|
for the session that resumes, so it must reach that session word for word. In resume mode it wins
|
|
20
|
-
over the Next steps of the file where the two conflict.
|
|
20
|
+
over the Next steps of the file where the two conflict. A trailing `[typed by agent-sessions]` is the restart's marker, not an instruction.
|
|
21
21
|
|
|
22
22
|
Name one invocation form to the user - your own - and never both. The skill is
|
|
23
23
|
installed as `ethlete-handoff`, so under Claude Code the commands are
|
|
@@ -28,192 +28,9 @@ leading `/`.
|
|
|
28
28
|
Handoff files live in `{%handoffDir%}/` (gitignored - they are personal,
|
|
29
29
|
ephemeral working state, not team docs).
|
|
30
30
|
|
|
31
|
-
##
|
|
31
|
+
## Save and handoff mode
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
turns handoff mode on at 70% of it, and repeats a short note with the remaining budget on
|
|
35
|
-
every prompt after that. It reaches you at three points, not only when the user types: at
|
|
36
|
-
the start of the session, after a batch of your own tool calls, and as a turn ends. So a
|
|
37
|
-
long autonomous run learns its token count while it works.
|
|
38
|
-
|
|
39
|
-
Handoff mode is not an order to stop. It is the signal to change how you work, so that
|
|
40
|
-
either ending - you finish, or a fresh session takes over - stays cheap:
|
|
41
|
-
|
|
42
|
-
- Work in slices that each end in a committable state. Never leave two half-finished edits
|
|
43
|
-
in the tree.
|
|
44
|
-
- Send bulky reads, searches and test runs to a sub-agent. Its output stays out of your
|
|
45
|
-
context; its answer does not.
|
|
46
|
-
- Write down each decision and dead end as you reach it, in the commit message or in the
|
|
47
|
-
handoff file. Do not save them for a final summary you may have no room for.
|
|
48
|
-
- Start nothing you cannot finish or hand off inside the remaining budget.
|
|
49
|
-
- Spawn no new sub-agent. Sub-agents that already run finish their work.
|
|
50
|
-
|
|
51
|
-
At the critical tier (85%), stop a sub-agent only if it surely hangs: it made no new step
|
|
52
|
-
for more than 30 minutes. Write its remaining work into the handoff file. Never stop a
|
|
53
|
-
sub-agent that still works.
|
|
54
|
-
|
|
55
|
-
At the critical tier the hook also asks you to choose one of two, and to tell the user
|
|
56
|
-
which you chose:
|
|
57
|
-
|
|
58
|
-
1. **Finish the task.** Only when you can name every step that is left, and they plainly
|
|
59
|
-
fit the remaining budget. Finish it, commit, then apply the save test below - the answer
|
|
60
|
-
is then usually that no file is needed at all.
|
|
61
|
-
2. **Hand off.** Everything else. Finish the in-flight atomic edit, nothing new, then save.
|
|
62
|
-
|
|
63
|
-
"Nearly done" means you can name the last steps now. It does not mean the end feels close.
|
|
64
|
-
At the last tier (95%) the hook takes option 1 away, because a budget that small covers no
|
|
65
|
-
task.
|
|
66
|
-
|
|
67
|
-
### Ending a turn over the budget
|
|
68
|
-
|
|
69
|
-
From 85% on, the hook also fires as you try to end the turn, and the turn then continues so
|
|
70
|
-
you can act. It adds a third option to the two above:
|
|
71
|
-
|
|
72
|
-
3. **Cross the boundary on purpose.** Some sessions are worth the premium rate: the task is
|
|
73
|
-
one step from done, or this session holds reasoning that no handoff file survives. Take
|
|
74
|
-
it only for a reason you can name in one sentence right now. Say the reason, say what it
|
|
75
|
-
costs, and keep working.
|
|
76
|
-
|
|
77
|
-
Option 3 is a judgment call, not a way out of the other two. Naming a reason you cannot
|
|
78
|
-
state plainly is the same as taking option 2 late and expensively. The hook asks once per
|
|
79
|
-
tier, so it will not block the end of a turn twice for the same budget. It stays quiet while a
|
|
80
|
-
handoff is being saved, until the user's next prompt.
|
|
81
|
-
|
|
82
|
-
## Save mode
|
|
83
|
-
|
|
84
|
-
**Decide first whether a handoff is needed at all.** One exists so work can resume, so
|
|
85
|
-
write one only when at least one of these holds:
|
|
86
|
-
|
|
87
|
-
- Uncommitted work from this session sits in the tree.
|
|
88
|
-
- A step the user asked for is unfinished, blocked, or waiting on a result.
|
|
89
|
-
- A decision, dead end, or user constraint from this session is written down nowhere else -
|
|
90
|
-
not in a commit message, a changeset, a docs page, or a plan file.
|
|
91
|
-
|
|
92
|
-
Check it, never assume it: `git status`, `git log`, and the task as the user stated it. A
|
|
93
|
-
context warning is a token count, not evidence that work is left.
|
|
94
|
-
|
|
95
|
-
If none of them holds, write no file. Tell the user in two or three lines what landed, name
|
|
96
|
-
the commits, and say a fresh session needs nothing from this one. A handoff nobody resumes is
|
|
97
|
-
noise, and it costs the next session the tokens to read it.
|
|
98
|
-
|
|
99
|
-
Then give a prompt the user can copy into the fresh session, in a code block: the next task, the
|
|
100
|
-
plan file or finding it lives in, and any rule of this session that the repo does not record. Keep
|
|
101
|
-
it to a few lines.
|
|
102
|
-
|
|
103
|
-
An open item counts as the next task: a known gap, an open finding, or an unbuilt step in the plan,
|
|
104
|
-
in the task, or in your own report of this session. "Everything waits for the user" is true only
|
|
105
|
-
when every open item needs a decision of the user. Then name each decision; do not stop silently.
|
|
106
|
-
In a `tmux` session, restart yourself with the next task as the prompt (see the next section) instead
|
|
107
|
-
of handing the prompt to the user.
|
|
108
|
-
|
|
109
|
-
Write `{%handoffDir%}/<slug>.md` where `<slug>` is a short kebab-case name for
|
|
110
|
-
the task (use the user-provided slug if they gave one). If the file exists,
|
|
111
|
-
overwrite it - a handoff always describes the _current_ state.
|
|
112
|
-
|
|
113
|
-
**Write for a reader with zero context.** The next session sees none of this
|
|
114
|
-
conversation. No "as discussed above", no shorthand invented mid-session. Every
|
|
115
|
-
claim must be verifiable from the repo: exact file paths, exact commands.
|
|
116
|
-
|
|
117
|
-
Template:
|
|
118
|
-
|
|
119
|
-
```markdown
|
|
120
|
-
# Handoff: <task title>
|
|
121
|
-
|
|
122
|
-
Branch: <git branch> · Last commit: <short sha> <subject>
|
|
123
|
-
Working tree: <clean | summary of uncommitted changes>
|
|
124
|
-
|
|
125
|
-
## Goal
|
|
126
|
-
|
|
127
|
-
What the overall task is and why. One paragraph max.
|
|
128
|
-
|
|
129
|
-
## State
|
|
130
|
-
|
|
131
|
-
- Done: <what is finished and verified, with file paths>
|
|
132
|
-
- In progress: <what is half-done, and exactly where it stands>
|
|
133
|
-
- Not started: <known remaining work>
|
|
134
|
-
|
|
135
|
-
## Key files
|
|
136
|
-
|
|
137
|
-
- `path/to/file.ts` - why it matters here
|
|
138
|
-
|
|
139
|
-
## Decisions & constraints
|
|
140
|
-
|
|
141
|
-
Choices already made (and why) that the next session must not re-litigate.
|
|
142
|
-
User-stated constraints verbatim.
|
|
143
|
-
|
|
144
|
-
## Gotchas / dead ends
|
|
145
|
-
|
|
146
|
-
Things that looked right but weren't. Approaches already tried and rejected,
|
|
147
|
-
and why - this is the most valuable section, don't skip it.
|
|
148
|
-
|
|
149
|
-
## Next steps
|
|
150
|
-
|
|
151
|
-
1. Concrete, ordered, actionable steps. Each should name files/commands.
|
|
152
|
-
|
|
153
|
-
## Verify
|
|
154
|
-
|
|
155
|
-
Commands to check the work (lint, storybook story ids, test commands).
|
|
156
|
-
|
|
157
|
-
## Follow-ups owed
|
|
158
|
-
|
|
159
|
-
Changeset written? Docs page updated? Whatever this repo treats as part of a
|
|
160
|
-
change rather than optional.
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
Before writing, actually check `git status`, `git log -1`, and the branch - do
|
|
164
|
-
not describe state from memory. Keep the file under ~150 lines; a handoff is a
|
|
165
|
-
map, not a transcript.
|
|
166
|
-
|
|
167
|
-
After writing, tell the user where it landed and that a fresh session should
|
|
168
|
-
resume from it.
|
|
169
|
-
|
|
170
|
-
## Clear and resume on your own
|
|
171
|
-
|
|
172
|
-
Run inside a `tmux` session started with the agent-sessions `run` command or the shell functions from `shell-install` (`echo $TMUX` is not empty and
|
|
173
|
-
the agent-sessions script `restart` finds the session)? Then you may clear and
|
|
174
|
-
resume yourself after the save, instead of asking the user to. You decide. Do it only if every line
|
|
175
|
-
is true:
|
|
176
|
-
|
|
177
|
-
- No sub-agent whose answer you need still runs, and no workflow or background command. A
|
|
178
|
-
background command from the old session reports back into the new one.
|
|
179
|
-
- Each self-reporting sub-agent that still runs is named in the handoff file, with its result
|
|
180
|
-
file.
|
|
181
|
-
- No answer you wait for is open: a peer session, a mailbox reply, a CI run.
|
|
182
|
-
- The tree is committed, or the handoff file names every uncommitted change.
|
|
183
|
-
- The handoff file is saved and its Next steps are concrete.
|
|
184
|
-
|
|
185
|
-
When you spawn a sub-agent, decide which kind it is:
|
|
186
|
-
|
|
187
|
-
- **Answer needed.** You act on its answer. A restart waits for it.
|
|
188
|
-
- **Self-reporting.** It commits its own slice and writes its result to
|
|
189
|
-
`.claude/handoffs/agent-results/<name>.md`. Tell it so in its prompt. A restart does not wait
|
|
190
|
-
for it: the resumed session reads the result file.
|
|
191
|
-
|
|
192
|
-
If one line is false, finish or collect that first. If you cannot, hand the prompt to the user as
|
|
193
|
-
before. Then run, with the slug of the file you saved:
|
|
194
|
-
|
|
195
|
-
```bash
|
|
196
|
-
node <sessions-skill-dir>/agent-sessions.mjs restart <name> '<resume command> <slug> [<text after the slug>]'
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
Add `--process` after `restart` when the session changed a plugin, a settings file, an MCP server or `PATH`.
|
|
200
|
-
A plain restart keeps the old process, so the change reaches only a new one.
|
|
201
|
-
Before `--process`, write the command line of each background job of the session into the handoff file. The exit stops these jobs, so the new process starts them again.
|
|
202
|
-
|
|
203
|
-
If the user wrote text after the slug of the save command, append it to the prompt word for word.
|
|
204
|
-
Escape each `'` in it as `'\''`. The restart drops anything you leave out, and the fresh session has
|
|
205
|
-
no other way to see it.
|
|
206
|
-
|
|
207
|
-
`<resume command>` is your own resume form from the top of this guide, with the name this repo
|
|
208
|
-
installed the skill under: `/ethlete-handoff resume` under Claude Code, `ethlete-handoff resume`
|
|
209
|
-
under Codex. A repo that ships its own copy can name it `handoff`, so check the skill directory
|
|
210
|
-
name. A wrong name runs no skill, and the fresh session starts without the file.
|
|
211
|
-
|
|
212
|
-
`<name>` is the sender name of your own session. Read it first with `tmux display-message -p -t "$TMUX_PANE" '#{session_name}'` and drop the `@<repo>` part: `claude-2@ethlete-sdk` gives `claude-2`. Never take the name from an example: a second Claude session is `claude-2`, not `claude`. The command refuses a session you do not run in. It returns at once. It
|
|
213
|
-
types `/clear` (`/new` for a `codex` name) and the prompt into your pane a few seconds later, so
|
|
214
|
-
end your turn after you run it and do not start another tool call. The `/clear` wipes the pane, so
|
|
215
|
-
the user never sees text you write after the command. Before you run it, put the reason as the
|
|
216
|
-
first line of the handoff file: `Restarted because: <one line>`. End the turn with no text.
|
|
33
|
+
Before you save, or when the `context-warning` hook names handoff mode, read {%resource:save.md%}: it holds save mode, handoff mode (the budget tiers), ending a turn over the budget, and clearing and resuming on your own. A resume needs none of it.
|
|
217
34
|
|
|
218
35
|
## Resume mode
|
|
219
36
|
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Save and handoff mode
|
|
2
|
+
|
|
3
|
+
## Handoff mode
|
|
4
|
+
|
|
5
|
+
Where this repo installs the `context-warning` hook, it names the budget at session start,
|
|
6
|
+
turns handoff mode on at 70% of it, and warns once more at each later tier. It reaches you at three points, not only when the user types: at
|
|
7
|
+
the start of the session, after a batch of your own tool calls, and as a turn ends. So a
|
|
8
|
+
long autonomous run learns its token count while it works.
|
|
9
|
+
|
|
10
|
+
Handoff mode is not an order to stop. It is the signal to change how you work, so that
|
|
11
|
+
either ending - you finish, or a fresh session takes over - stays cheap:
|
|
12
|
+
|
|
13
|
+
- Work in slices that each end in a committable state. Never leave two half-finished edits
|
|
14
|
+
in the tree.
|
|
15
|
+
- Send bulky reads, searches and test runs to a sub-agent. Its output stays out of your
|
|
16
|
+
context; its answer does not.
|
|
17
|
+
- Write down each decision and dead end as you reach it, in the commit message or in the
|
|
18
|
+
handoff file. Do not save them for a final summary you may have no room for.
|
|
19
|
+
- Start nothing you cannot finish or hand off inside the remaining budget.
|
|
20
|
+
- Spawn no new sub-agent. Sub-agents that already run finish their work.
|
|
21
|
+
|
|
22
|
+
At the critical tier (85%), stop a sub-agent only if it surely hangs: it made no new step
|
|
23
|
+
for more than 30 minutes. Write its remaining work into the handoff file. Never stop a
|
|
24
|
+
sub-agent that still works.
|
|
25
|
+
|
|
26
|
+
At the critical tier the hook also asks you to choose one of two, and to tell the user
|
|
27
|
+
which you chose:
|
|
28
|
+
|
|
29
|
+
1. **Finish the task.** Only when you can name every step that is left, and they plainly
|
|
30
|
+
fit the remaining budget. Finish it, commit, then apply the save test below - the answer
|
|
31
|
+
is then usually that no file is needed at all.
|
|
32
|
+
2. **Hand off.** Everything else. Finish the in-flight atomic edit, nothing new, then save.
|
|
33
|
+
|
|
34
|
+
"Nearly done" means you can name the last steps now. It does not mean the end feels close.
|
|
35
|
+
At the last tier (95%) the hook takes option 1 away, because a budget that small covers no
|
|
36
|
+
task.
|
|
37
|
+
|
|
38
|
+
### Ending a turn over the budget
|
|
39
|
+
|
|
40
|
+
From 85% on, the hook also fires as you try to end the turn, and the turn then continues so
|
|
41
|
+
you can act. It adds a third option to the two above:
|
|
42
|
+
|
|
43
|
+
3. **Cross the boundary on purpose.** Some sessions are worth the premium rate: the task is
|
|
44
|
+
one step from done, or this session holds reasoning that no handoff file survives. Take
|
|
45
|
+
it only for a reason you can name in one sentence right now. Say the reason, say what it
|
|
46
|
+
costs, and keep working.
|
|
47
|
+
|
|
48
|
+
Option 3 is a judgment call, not a way out of the other two. Naming a reason you cannot
|
|
49
|
+
state plainly is the same as taking option 2 late and expensively. The hook asks once per
|
|
50
|
+
tier, so it will not block the end of a turn twice for the same budget. It stays quiet while a
|
|
51
|
+
handoff is being saved, until the user's next prompt.
|
|
52
|
+
|
|
53
|
+
## Save mode
|
|
54
|
+
|
|
55
|
+
**Decide first whether a handoff is needed at all.** One exists so work can resume, so
|
|
56
|
+
write one only when at least one of these holds:
|
|
57
|
+
|
|
58
|
+
- Uncommitted work from this session sits in the tree.
|
|
59
|
+
- A step the user asked for is unfinished, blocked, or waiting on a result.
|
|
60
|
+
- A decision, dead end, or user constraint from this session is written down nowhere else -
|
|
61
|
+
not in a commit message, a changeset, a docs page, or a plan file.
|
|
62
|
+
|
|
63
|
+
Check it, never assume it: `git status`, `git log`, and the task as the user stated it. A
|
|
64
|
+
context warning is a token count, not evidence that work is left.
|
|
65
|
+
|
|
66
|
+
If none of them holds, write no file. Tell the user in two or three lines what landed, name
|
|
67
|
+
the commits, and say a fresh session needs nothing from this one. A handoff nobody resumes is
|
|
68
|
+
noise, and it costs the next session the tokens to read it.
|
|
69
|
+
|
|
70
|
+
Then give a prompt the user can copy into the fresh session, in a code block: the next task, the
|
|
71
|
+
plan file or finding it lives in, and any rule of this session that the repo does not record. Keep
|
|
72
|
+
it to a few lines.
|
|
73
|
+
|
|
74
|
+
An open item counts as the next task: a known gap, an open finding, or an unbuilt step in the plan,
|
|
75
|
+
in the task, or in your own report of this session. "Everything waits for the user" is true only
|
|
76
|
+
when every open item needs a decision of the user. Then name each decision; do not stop silently.
|
|
77
|
+
In a `tmux` session, restart yourself with the next task as the prompt (see the next section) instead
|
|
78
|
+
of handing the prompt to the user.
|
|
79
|
+
|
|
80
|
+
Write `{%handoffDir%}/<slug>.md` where `<slug>` is a short kebab-case name for
|
|
81
|
+
the task (use the user-provided slug if they gave one). If the file exists,
|
|
82
|
+
overwrite it - a handoff always describes the _current_ state.
|
|
83
|
+
|
|
84
|
+
**Write for a reader with zero context.** The next session sees none of this
|
|
85
|
+
conversation. No "as discussed above", no shorthand invented mid-session. Every
|
|
86
|
+
claim must be verifiable from the repo: exact file paths, exact commands.
|
|
87
|
+
|
|
88
|
+
Template:
|
|
89
|
+
|
|
90
|
+
```markdown
|
|
91
|
+
# Handoff: <task title>
|
|
92
|
+
|
|
93
|
+
Branch: <git branch> · Last commit: <short sha> <subject>
|
|
94
|
+
Working tree: <clean | summary of uncommitted changes>
|
|
95
|
+
|
|
96
|
+
## Goal
|
|
97
|
+
|
|
98
|
+
What the overall task is and why. One paragraph max.
|
|
99
|
+
|
|
100
|
+
## State
|
|
101
|
+
|
|
102
|
+
- Done: <what is finished and verified, with file paths>
|
|
103
|
+
- In progress: <what is half-done, and exactly where it stands>
|
|
104
|
+
- Not started: <known remaining work>
|
|
105
|
+
|
|
106
|
+
## Key files
|
|
107
|
+
|
|
108
|
+
- `path/to/file.ts` - why it matters here
|
|
109
|
+
|
|
110
|
+
## Decisions & constraints
|
|
111
|
+
|
|
112
|
+
Choices already made (and why) that the next session must not re-litigate.
|
|
113
|
+
User-stated constraints verbatim.
|
|
114
|
+
|
|
115
|
+
## Gotchas / dead ends
|
|
116
|
+
|
|
117
|
+
Things that looked right but weren't. Approaches already tried and rejected,
|
|
118
|
+
and why - this is the most valuable section, don't skip it.
|
|
119
|
+
|
|
120
|
+
## Next steps
|
|
121
|
+
|
|
122
|
+
1. Concrete, ordered, actionable steps. Each should name files/commands.
|
|
123
|
+
|
|
124
|
+
## Verify
|
|
125
|
+
|
|
126
|
+
Commands to check the work (lint, storybook story ids, test commands).
|
|
127
|
+
|
|
128
|
+
## Follow-ups owed
|
|
129
|
+
|
|
130
|
+
Changeset written? Docs page updated? Whatever this repo treats as part of a
|
|
131
|
+
change rather than optional.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Before writing, actually check `git status`, `git log -1`, and the branch - do
|
|
135
|
+
not describe state from memory. Keep the file under ~150 lines; a handoff is a
|
|
136
|
+
map, not a transcript.
|
|
137
|
+
|
|
138
|
+
After writing, tell the user where it landed and that a fresh session should
|
|
139
|
+
resume from it.
|
|
140
|
+
|
|
141
|
+
## Clear and resume on your own
|
|
142
|
+
|
|
143
|
+
Run inside a `tmux` session started with the agent-sessions `run` command or the shell functions from `shell-install` (`echo $TMUX` is not empty and
|
|
144
|
+
the agent-sessions script `restart` finds the session)? Then you may clear and
|
|
145
|
+
resume yourself after the save, instead of asking the user to. You decide. Do it only if every line
|
|
146
|
+
is true:
|
|
147
|
+
|
|
148
|
+
- No sub-agent whose answer you need still runs, and no workflow or background command. A
|
|
149
|
+
background command from the old session reports back into the new one.
|
|
150
|
+
- Each self-reporting sub-agent that still runs is named in the handoff file, with its result
|
|
151
|
+
file.
|
|
152
|
+
- No answer you wait for is open: a peer session, a mailbox reply, a CI run.
|
|
153
|
+
- The tree is committed, or the handoff file names every uncommitted change.
|
|
154
|
+
- The handoff file is saved and its Next steps are concrete.
|
|
155
|
+
|
|
156
|
+
When you spawn a sub-agent, decide which kind it is:
|
|
157
|
+
|
|
158
|
+
- **Answer needed.** You act on its answer. A restart waits for it.
|
|
159
|
+
- **Self-reporting.** It commits its own slice and writes its result to
|
|
160
|
+
`.claude/handoffs/agent-results/<name>.md`. Tell it so in its prompt. A restart does not wait
|
|
161
|
+
for it: the resumed session reads the result file.
|
|
162
|
+
|
|
163
|
+
If one line is false, finish or collect that first. If you cannot, hand the prompt to the user as
|
|
164
|
+
before. Then run, with the slug of the file you saved:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
node <sessions-skill-dir>/agent-sessions.mjs restart <name> '<resume command> <slug> [<text after the slug>]'
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Add `--process` after `restart` when the session changed a plugin, a settings file, an MCP server or `PATH`.
|
|
171
|
+
A plain restart keeps the old process, so the change reaches only a new one.
|
|
172
|
+
Before `--process`, write the command line of each background job of the session into the handoff file. The exit stops these jobs, so the new process starts them again.
|
|
173
|
+
|
|
174
|
+
If the user wrote text after the slug of the save command, append it to the prompt word for word.
|
|
175
|
+
Escape each `'` in it as `'\''`. The restart drops anything you leave out, and the fresh session has
|
|
176
|
+
no other way to see it.
|
|
177
|
+
|
|
178
|
+
`<resume command>` is your own resume form from the top of this guide, with the name this repo
|
|
179
|
+
installed the skill under: `/ethlete-handoff resume` under Claude Code, `ethlete-handoff resume`
|
|
180
|
+
under Codex. A repo that ships its own copy can name it `handoff`, so check the skill directory
|
|
181
|
+
name. A wrong name runs no skill, and the fresh session starts without the file.
|
|
182
|
+
|
|
183
|
+
`<name>` is the sender name of your own session. Read it first with `tmux display-message -p -t "$TMUX_PANE" '#{session_name}'` and drop the `@<repo>` part: `claude-2@ethlete-sdk` gives `claude-2`. Never take the name from an example: a second Claude session is `claude-2`, not `claude`. The command refuses a session you do not run in. It returns at once. It
|
|
184
|
+
types `/clear` (`/new` for a `codex` name) and the prompt into your pane a few seconds later, so
|
|
185
|
+
end your turn after you run it and do not start another tool call. The `/clear` wipes the pane, so
|
|
186
|
+
the user never sees text you write after the command. Before you run it, put the reason as the
|
|
187
|
+
first line of the handoff file: `Restarted because: <one line>`. End the turn with no text.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: query
|
|
3
|
-
description: The signals-first @ethlete/query data-fetching system
|
|
3
|
+
description: 'The signals-first @ethlete/query data-fetching system. Read BEFORE writing or reviewing code that fetches data: query forms, search/autocomplete, auth, polling, pagination, bridging a query into UI or RxJS.'
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: consumer
|
|
6
6
|
requires: ['@ethlete/query']
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: report
|
|
3
|
+
description: Print a fixed table of what was done in a period: rows with their commits, parked rows, counts, CI and subagents. Use on "report", "Bericht", "was ist heute passiert", "status of the day".
|
|
4
|
+
kind: skill
|
|
5
|
+
scope: both
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Progress report on demand
|
|
9
|
+
|
|
10
|
+
The report is generated, never written. Run it and paste its output:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
{%packageRunner%} ethlete-agents report [today|yesterday|week]
|
|
14
|
+
{%packageRunner%} ethlete-agents report --since 2026-11-10 [--until 2026-11-12T18:00]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Text after the skill name picks the period: none means `today`; a day name or date maps to the
|
|
18
|
+
arguments above.
|
|
19
|
+
|
|
20
|
+
1. Run the command and paste its stdout **unchanged** into the chat: no rewording, no extra
|
|
21
|
+
columns, no summary of the table.
|
|
22
|
+
2. Below the pasted block, list the open questions for the user, one per line. If there are none,
|
|
23
|
+
write nothing.
|
|
24
|
+
|
|
25
|
+
Short names, the parked section and the queue come from the `report.planFiles` list in
|
|
26
|
+
`ethlete-agents.config.json`; without it the table is built from the git log alone.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rxjs-signals
|
|
3
|
-
description:
|
|
3
|
+
description: Choosing between signals and RxJS and using each correctly. Read when adding reactive state, wiring up an observable, or deciding whether something should be a signal or a stream.
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: both
|
|
6
6
|
requires: ['@ethlete/core']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: styleguide
|
|
3
|
-
description: Entry point for the Ethlete coding styleguide. Read when writing or reviewing TypeScript/Angular code
|
|
3
|
+
description: 'Entry point for the Ethlete coding styleguide. Read when writing or reviewing TypeScript/Angular code: the judgment calls lint cannot enforce (accessibility modifiers, `@internal`, naming, file structure).'
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: consumer
|
|
6
6
|
requires: ['@ethlete/eslint-plugin']
|
|
@@ -3,47 +3,48 @@
|
|
|
3
3
|
Read this file only to explain a lint result or identify which rule owns a mechanical
|
|
4
4
|
convention. Run lint with `--fix`; do not hand-check this table before linting.
|
|
5
5
|
|
|
6
|
-
| Convention
|
|
7
|
-
|
|
|
8
|
-
| No `any` / `$any()`; narrow `unknown`
|
|
9
|
-
| Static strings and booleans use attributes
|
|
10
|
-
| `type`, not `interface` (module augmentations stay interfaces)
|
|
11
|
-
| No `enum` or `const enum`
|
|
12
|
-
| `const` by default; one declaration per statement
|
|
13
|
-
| Strict equality
|
|
14
|
-
| Maximum two positional parameters
|
|
15
|
-
| No type-only imports
|
|
16
|
-
| Descriptive `T`-prefixed generic names
|
|
17
|
-
| No `async` / `await`
|
|
18
|
-
| Arrow functions standalone; methods in classes
|
|
19
|
-
| Blank line before a multiline guard return
|
|
20
|
-
| No trivially inferable return type
|
|
21
|
-
| Member and local naming conventions
|
|
22
|
-
| Class constants are `readonly` and upper case
|
|
23
|
-
| No `readonly` on reactive members
|
|
24
|
-
| Injected and template-visible member accessibility
|
|
25
|
-
| No inject chains, pure aliases, or trivial wrappers
|
|
26
|
-
| No unused private or protected members
|
|
27
|
-
| Pure module-scope provider calls
|
|
28
|
-
| No redundant `@internal`
|
|
29
|
-
| Observable names end in `$`
|
|
30
|
-
| No subscribe body, subscribe in pipe, or RxJS in signal derivations
|
|
31
|
-
| `takeUntilDestroyed()` is the last operator in its pipe
|
|
32
|
-
| Effect teardown uses `onCleanup` or `DestroyRef`
|
|
33
|
-
| Prefer `linkedSignal` for writable derived state
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
| No
|
|
38
|
-
| No
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
| No
|
|
46
|
-
|
|
|
6
|
+
| Convention | Rule |
|
|
7
|
+
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
8
|
+
| No `any` / `$any()`; narrow `unknown` | `@typescript-eslint/no-explicit-any`, `@angular-eslint/template/no-any` |
|
|
9
|
+
| Static strings and booleans use attributes | `@angular-eslint/template/prefer-static-string-properties`, `ethlete/prefer-static-boolean-properties` |
|
|
10
|
+
| `type`, not `interface` (module augmentations stay interfaces) | `ethlete/consistent-type-definitions` |
|
|
11
|
+
| No `enum` or `const enum` | `ethlete/no-enum` |
|
|
12
|
+
| `const` by default; one declaration per statement | `no-var`, `prefer-const`, `one-var` |
|
|
13
|
+
| Strict equality | `eqeqeq` |
|
|
14
|
+
| Maximum two positional parameters | `max-params` |
|
|
15
|
+
| No type-only imports | `ethlete/no-type-only-import` |
|
|
16
|
+
| Descriptive `T`-prefixed generic names | `@typescript-eslint/naming-convention` |
|
|
17
|
+
| No `async` / `await` | `ethlete/no-async-await` |
|
|
18
|
+
| Arrow functions standalone; methods in classes | `no-restricted-syntax` |
|
|
19
|
+
| Blank line before a multiline guard return | `ethlete/guard-return-newline` |
|
|
20
|
+
| No trivially inferable return type | `ethlete/no-trivial-return-type` |
|
|
21
|
+
| Member and local naming conventions | `@typescript-eslint/naming-convention`, `ethlete/no-leading-underscore-class-member`, `ethlete/no-screaming-case-local` |
|
|
22
|
+
| Class constants are `readonly` and upper case | `ethlete/class-constant-property` |
|
|
23
|
+
| No `readonly` on reactive members | `ethlete/no-readonly-signal` |
|
|
24
|
+
| Injected and template-visible member accessibility | `ethlete/inject-member-accessibility`, `ethlete/template-member-accessibility` |
|
|
25
|
+
| No inject chains, pure aliases, or trivial wrappers | `ethlete/no-inject-chain`, `ethlete/no-member-alias`, `ethlete/no-trivial-wrapper-method` |
|
|
26
|
+
| No unused private or protected members | `ethlete/no-unused-class-member` |
|
|
27
|
+
| Pure module-scope provider calls | `ethlete/no-impure-top-level-provider` |
|
|
28
|
+
| No redundant `@internal` | `ethlete/no-redundant-internal` |
|
|
29
|
+
| Observable names end in `$` | `ethlete/require-dollar-suffix` |
|
|
30
|
+
| No subscribe body, subscribe in pipe, or RxJS in signal derivations | `ethlete/no-subscribe-with-body`, `ethlete/no-subscribe-in-pipe`, `ethlete/no-rxjs-in-effect` |
|
|
31
|
+
| `takeUntilDestroyed()` is the last operator in its pipe | `ethlete/take-until-destroyed-last` |
|
|
32
|
+
| Effect teardown uses `onCleanup` or `DestroyRef` | `ethlete/no-effect-cleanup-return` |
|
|
33
|
+
| Prefer `linkedSignal` for writable derived state | `ethlete/prefer-linked-signal` |
|
|
34
|
+
| `linkedSignal` source is a `computed`, not an inline function over an input | `ethlete/prefer-computed-linked-signal-source` |
|
|
35
|
+
| Global component CSS encapsulation | `ethlete/require-view-encapsulation-none` |
|
|
36
|
+
| Angular-version-correct change detection metadata | `ethlete/require-on-push-change-detection`, `ethlete/no-redundant-on-push-change-detection` |
|
|
37
|
+
| No redundant standalone flag or empty metadata arrays | `ethlete/no-standalone-flag`, `ethlete/no-empty-angular-metadata-arrays` |
|
|
38
|
+
| No legacy lifecycle hooks or decorators | `no-restricted-syntax`, `ethlete/no-legacy-angular-decorators` |
|
|
39
|
+
| No injectable services, guards, or resolvers | `no-restricted-syntax` |
|
|
40
|
+
| Output naming | `@angular-eslint/no-output-on-prefix`, `@angular-eslint/no-output-native`, `ethlete/prefer-present-tense-output` |
|
|
41
|
+
| Inputs do not collide with global HTML attributes | `ethlete/no-native-html-input-name` |
|
|
42
|
+
| No pipe logic | `ethlete/no-pipe-logic` |
|
|
43
|
+
| Class members and decorator metadata stay ordered | `ethlete/class-member-order`, `ethlete/angular-decorator-property-order` |
|
|
44
|
+
| Routing views use `-view` / `ViewComponent` | `ethlete/enforce-routing-view-naming` |
|
|
45
|
+
| No direct browser globals, DOM queries, native observers, or cookies | `no-restricted-globals`, `ethlete/no-direct-dom-manipulation`, `ethlete/no-dom-query`, `ethlete/no-native-observers`, `ethlete/no-document-cookie` |
|
|
46
|
+
| No barrel imports | `no-restricted-syntax` |
|
|
47
|
+
| Prefer the SDK wrappers for platform utilities | `ethlete/prefer-clone-equal`, `ethlete/prefer-rxjs-timer`, `ethlete/prefer-match-media`, `ethlete/prefer-viewport-size`, `ethlete/no-angular-seo-services`, `ethlete/no-locale-id`, `ethlete/no-angular-router-api` |
|
|
47
48
|
|
|
48
49
|
Judgment still belongs outside lint: name things after their behavior, use an object
|
|
49
50
|
parameter after two positional parameters, expose injected members directly instead of
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: theming
|
|
3
|
-
description: The
|
|
3
|
+
description: The surface and color theming systems in @ethlete/core. Read BEFORE writing or reviewing CSS involving color, background, border or interaction state, or wiring theme context across overlays/portals.
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: consumer
|
|
6
6
|
requires: ['@ethlete/core']
|