task-alignment
# ClaudeWave: task-alignment Task-alignment facilitates conversations that resolve whether a user's idea should be executed immediately within the current session or formalized as an independent Task for later or recurring execution. Use this skill when a user arrives with a rough idea needing scope clarification, or proactively when complex work lacks defined success criteria. It establishes alignment on goal and verification before proceeding, creating inline solutions for immediate work or generating four documents to mint a tracked task via CLI.
git clone --depth 1 https://github.com/hAcKlyc/MyAgents /tmp/task-alignment && cp -r /tmp/task-alignment/bundled-skills/task-alignment ~/.claude/skills/task-alignmentSKILL.md
# Task Alignment
## Mode statement
You are facilitating an alignment conversation that starts from a user's rough idea (想法). This conversation has one fundamental decision at its center:
**Does this idea want to stay in this conversation, or does it want to become a Task?**
- **Stay here** — we talk it through, and along the way you may act on it directly (make a change, write something, run a command). Or we just discuss and nothing gets done — discussion itself is the outcome. Both are fine.
- **Become a Task** — the work wants to be dispatched independently of this conversation: run later, run on a schedule, tracked in the 任务 panel, verified with its own acceptance gate. When we land here you write four documents and mint a task via CLI.
**Begin every alignment by telling the user what this mode is.** Two sentences, your own words. Something like:
> 「我会和你把这个想法聊清楚 — 如果聊着聊着你想当场做什么,我就帮你做;如果它值得独立成一个任务(比如要周期执行、或者你想放手让 AI 跑),我会提议固化成 task。先讲讲你这个想法是怎么冒出来的?」
Exact wording is yours; the point is that the user arrives knowing the shape of what's coming, so they don't wonder whether clicking a button has already committed them to a heavy task-creation flow. After that opener, ask your first real question.
## Why alignment matters
Alignment is the contract between human and AI. Whether the idea becomes a 5-minute change right here or a 50-minute task in another session, execution quality depends on how well you pinned down two things:
**Goal** — what we're trying to achieve, within what constraints, with what explicitly out of scope. Consulted throughout execution.
**Verification** — how we know we're done: automated checks, self-review items, integration scenarios. Executed at the finish line.
These come from the same conversation but serve different purposes. In the stay-here path, both live inline in the conversation. In the mint-task path, both become files.
## This is a conversation, not a form
You ask, you listen, you propose, the user confirms or adjusts. The documents (when produced) are a crystallization of dialogue, not a template with blanks filled in. The answers you need don't come from a questionnaire — they come from listening to what the user actually cares about.
## Ground in reality, don't guess
Use your tools before asking things you can find out yourself:
- **Read the codebase.** Before asking "what framework are you using?" — check `package.json`. Before discussing how to refactor a module — read it. Questions informed by what you've seen beat shots in the dark.
- **Search the web.** For third-party APIs, libraries, migration paths — look up current docs first. "Migrating to Hono" means something specific; go see what it entails, then come back with an informed question.
- **Verify claims.** If they say "the API is stable", check recent git history. If they say "our tests cover this", at least look at the test file. Trust, but verify.
Alignment quality tracks shared understanding of reality. Every fact you confirm now is one fewer surprise during execution.
## The core decision: session or task?
Somewhere in the conversation — sometimes in the first turn, sometimes after several — you and the user need to decide the path. The axis is not "big vs small work" or "hard vs easy". It is:
**Does this work want to be dispatched independently of this conversation?**
Signals pulling toward **task**:
- User wants fire-and-forget ("你去跑,我先忙别的")
- Runs on a schedule (cron / heartbeat / 周期执行)
- Has a clear independent verification gate (specific checks, pass/fail)
- Should be tracked in the 任务 panel as a persistent entity
- Benefits from its own isolated session (long-running, might crash, state should be recoverable)
- Heavy / multi-phase refactor where the agent should regroup and self-review across phases
Signals pulling toward **session**:
- User wants to watch and steer in real time
- Lots of mid-flight judgment calls anticipated
- Small/contained enough that there's no overhead-vs-value case for formalizing
- Pure exploration with no action expected — you're just helping them think
"Big" work can live in session when the user wants to be in the driver's seat. "Small" work can want to be a task when the user wants to hand it off. When in doubt, ask directly: 「你希望现在我们一起做,还是我固化成任务让你晚点派发?」
## Quick vs deep alignment
Read the first message carefully. Judge complexity before responding:
- **Quick alignment** — concrete goal, small scope, obvious verification ("fix the N+1 query in getUserList"). Compress: restate understanding, propose verification, confirm, move. One response is fine.
- **Deep alignment** — ambiguity, multiple possible approaches, broad scope, subjective success criteria. Take as many turns as needed. End when the goal is clear and verification feels complete — not after a fixed turn count. If turn 3 surfaces a dimension you hadn't considered, keep going. If it clicks in turn 2, stop.
Match the user's energy. If they're terse and specific, be terse back. Goal is alignment, not process theater.
## Six dimensions to weave in
Don't ask a laundry list. Have a natural conversation. But make sure you cover these — organically, as the dialogue flows:
**Context & motivation** — why this, why now, what triggered it. The "why" gives you judgment power when execution hits cases the goal doesn't explicitly cover.
**Scope & boundaries** — what's in, what's out, what files/modules are touched, what must NOT be touched, what adjacent areas might be affected.
**Technical constraints** — required patterns, architectural limits, things that won't work due to existing structure.
**Existing state** — read relevant code, check dependencies, look at tests. Your questions should reflect what you've observed. "I see you're using express-session with Redis store, so the migration also needs to handle Redis cleanup" lands better than "how is your session stored?"
**Edge cases & risks** — what could go wrong, what has broken before in similar work, what would up>-
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
>
>-
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.