Skip to content

Commit aaf6011

Browse files
authored
add lane stuff (#1107)
1 parent 2741cfa commit aaf6011

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

.agents/skills/lane/SKILL.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: lane
3+
description: Use lane in this repository when the user asks to create or work in an isolated worktree.
4+
---
5+
6+
# lane
7+
8+
## Create a worktree
9+
10+
Create a worktree only when asked by the user. Otherwise, work in the current checkout.
11+
12+
```bash
13+
lane new fix-login # create a branch and worktree
14+
lane enter fix-login # print or enter the lane's directory
15+
```
16+
17+
Capture the worktree path printed by `lane new` or `lane enter`. Use that path as
18+
the working directory for every subsequent command; do not assume a `cd` persists
19+
between command invocations. Work there, not in the parent checkout.
20+
21+
## Rules
22+
23+
- Do not pass `--dirty` unless the lane should inherit the parent checkout's uncommitted work.
24+
25+
## End gate
26+
27+
When the user asks to publish the work, run `lane push`, then create a PR for the
28+
branch. Do not push or create a PR solely because the work in the lane is complete.

.lane/.gitkeep

Whitespace-only changes.

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,10 @@ docker compose down -v + rm /tmp/awf-<ts>/
312312
## Exit Codes & Cleanup
313313

314314
AWF propagates the agent container's exit code via `docker inspect`. Use `--keep-containers` to preserve `/tmp/awf-<ts>/` (squid.conf, docker-compose.yml, agent-logs/, squid-logs/) for debugging.
315+
316+
## Lane worktrees
317+
318+
- Create isolated worktrees only when asked by the user. Use `lane new <name>` and work in the printed path. Otherwise, work in the current checkout.
319+
- Do not pass `--dirty` unless the worktree should inherit the parent checkout's uncommitted work.
320+
- Run `lane push` as the end gate when the work is ready to publish.
321+

0 commit comments

Comments
 (0)