AGENT SKILL

start

Open a working session — orient to where work was left off, run a structured interview on a greenfield repo, check the context gauge to confirm it's really session-start, then recommend planning with context already warm. The opening bookend to /wrap. Use when the user says "let's start", "pick up where we left off", "what were we doing", "start a session", or invokes /start.

License 许可
AGPL-3.0
所属仓库
aaronsb/agent-ways
最近更新
2026-11-14
Stars
★ 26
Forks
13

01 前言 Front Matter

name
start
description
Open a working session — orient to where work was left off, run a structured interview on a greenfield repo, check the context gauge to confirm it's really session-start, then recommend planning with context already warm. The opening bookend to /wrap. Use when the user says "let's start", "pick up where we left off", "what were we doing", "start a session", or invokes /start.
allowed-tools
Bash, Read, Grep, Glob, TaskList, TaskGet, AskUserQuestion

03 SKILL.md 正文

Start — open the session

Open a working session by getting oriented first, then handing the operator a warm runway into planning. This is the on-demand opening bookend to wrap: wrap reads the context gauge to confirm the session is near its end; start reads the same gauge to confirm it's near its beginning.

Step 0 — Read the gauge, and guard the beginning

Before anything else, confirm this really is a start:

ways context --json   # used / total tokens, pct filled

Starting is a beginning-of-session act. Locate the fill level:

  • Early (well below the curves — e.g. under ~30%): the expected state. Proceed.
  • Mid/late (half or more of the window spent): dissuade, don't pretend. Opening fresh work deep into a used window strands it against the next compaction. Say so plainly, and offer the better move: /wrap if a piece just finished, or /clear and a fresh window if switching tasks. Only continue a start here if the operator insists.

Step 1 — Read the state (where did we leave off?)

Assess in parallel — the opening move depends entirely on what you find:

git rev-parse --is-inside-work-tree 2>/dev/null   # a repo at all?
git status --short
git branch --show-current
git log --oneline -5

Also check for continuity markers: the TaskList (via the tool), mirrored from the GitHub issues that carry the tasklist label (ADR-180), a handoff file in .claude/ at the repository root (handoff.wrap.md from /wrap, handoff.local.md from a compaction checkpoint; its first line's date and commit, against git log, say whether it is stale), and the CLAUDE.md where this was invoked. delivery/issues(softwaredev) is the discipline here — read what is already open before beginning anything.

On a repo too large to read in a few calls, hand the state read to an Explore agent with the investigation-brief rules from subagents(meta), on a cheap model. Invoking /start is that request. The interview in Step 3 stays inline.

Step 2 — Branch on what you found

  • Work in flight (uncommitted changes, an open branch, live TaskList tasks, a handoff file in .claude/) → this is a resume, not a cold start. Read a handoff file first, unless its commit shows it is stale. Summarize where things stand and what the next concrete step is. Read the TaskList to square your understanding before proposing work — mutating it is the job of /wrap and /develop, not start.
  • Clean main, prior history → a fresh piece of work in an established project. Read CLAUDE.md and recent history for the project's shape; propose candidate directions grounded in what the repo is.
  • Greenfield (empty repo, or no repo) → nothing to pick up. Do not invent a plausible task. Go to Step 3.

Step 3 — Greenfield: structured interview

When there's nothing to resume, the referent of "let's start" is itself the uncertainty — name it, don't hunt for it. Interview the operator, structured (AskUserQuestion where it helps): what are we building, what's the end-state, what constraints bound it, what's the first load-bearing question. Enough to frame intent — not a full plan yet.

Pace it:

  • One to three questions per turn. Each set of answers reshapes the next question.
  • After every two answers, reflect back in a paragraph: "I now believe X. Tell me where I'm wrong." The operator can then disagree precisely.
  • Cap at nine questions. Past nine, the interview is trying to specify and plan at once. Accept the gaps, mark each as an assumption, and move on.
  • A question that picks between shaped options carries a brief, the case for and against, and your lean with its evidence (the choices/interview way).

The interview has converged when you can write each of these without hand-waving:

  1. Problem statement, one sentence: who does what today, and what they should do instead.
  2. Primary user: a specific role and context.
  3. First useful slice: the smallest end-to-end thing that delivers the outcome for one case.
  4. Success criteria: measurable, with a time horizon.
  5. Non-goals: three to five of them.
  6. Constraints that bind: runtime, security, privacy, data, cost, latency, compliance.
  7. Shaped options: two to four named approaches, each with a one-line summary and its tradeoff.
  8. Risks and assumptions: the top three risks, and every assumption that changes the plan if false.

Step 4 — Recommend planning (warm context, can't self-invoke)

By now the context is warm — state read, intent framed. That's the whole reason the order is start-then-plan: plan mode should inherit an oriented situation, not a blank page.

A skill cannot flip plan mode for you — Claude Code forbids skills/hooks from firing / commands (the same constraint wrap has with /compact). So either run a lightweight planning pass inline, or recommend the operator enter plan mode now that the ground is prepared. Don't claim to have entered a mode you can't.

If the work is multi-turn with a checkable end-state, mention /goal and the goal-author skill as the autonomy path.

Key Principles

  • Gauge first — start is a beginning-of-session act; dissuade a mid-session start.
  • Read before proposing — the opening move is dictated by the actual state, not a guess.
  • Greenfield gets an interview, never an invented task.
  • Warm the context, then hand off to planning — prepare, don't pretend to enter plan mode.

Not for

  • Doing the development work itself — that's /develop and the stage skills.
  • Mid-session resumption deep into a used window — that's a /wrap + fresh window, not a start.

See Also

  • wrap — the closing bookend; same gauge, opposite pole.
  • develop — the loop start opens into.
  • goal-author — composing a /goal condition when the work wants autonomy.
  • context-status — the gauge start reads in Step 0.

04 同仓库更多 Skills

aaronsb
aaronsb/agent-ways

my-skill

A hand-built skill the user keeps in ~/.claude/skills. The fixture asserts it survives the install.

★ 26
aaronsb
aaronsb/agent-ways

work-skill

A skill in a second Claude Code config directory. The fixture asserts the directory is untouched.

★ 26
aaronsb
aaronsb/agent-ways

wrap

Wrap up a session at a natural seam — land in-flight work, square the TaskList honestly, write a copy-paste continuation prompt, then hand off to a directed /compact. Use when the user says "wrap up", "wrap this up", "let's wrap", "end of session", "checkpoint and compact", "hand off", or invokes /wrap.

★ 26
aaronsb
aaronsb/agent-ways

ways-update

Update the agent-ways installation to the latest version — preview the update with `ways manage update --what-if` (versions, release notes, the commits, local changes, the actions, dev links), read it back to the user, then apply it with `ways manage update --commit`, which pulls the app source in $XDG_DATA, refreshes the binaries and corpus, and reprojects ~/.claude. Use when the user wants to update agent-ways, pull the latest ways/hooks, or refresh their ways framework install. Not for editing or authoring individual ways (that is the ways skill) or upgrading project dependencies.

★ 26
aaronsb
aaronsb/agent-ways

ways-tests

Score way matching via embedding similarity, analyze vocabulary, and validate frontmatter. Use when testing how well a way matches prompts, checking cosine similarity scores, inspecting the embedding engine status, or validating way files.

★ 26
aaronsb
aaronsb/agent-ways

ways-localize

Localize agent-ways into the operator's language — translate every way's matching metadata against the English root, tune it clean, and switch ways (and Claude Code) into that language. Use when the operator asks to run ways in their language ("set up ways in Spanish", "localiza ways al español", "ways auf Deutsch"). Not for authoring or editing individual ways (that is the ways skill), not for English installs (already built), and not for changing Claude Code's language alone (that is a settings.json edit).

★ 26