Task Alignment
ASecurityMay be selected alongside other applicable skills for task-related user requests or visible agent updates that could change the task. It performs a first-pass alignment check for missing requirements, logical mismatches, competing readings, unsupported premises, reasoned disagreements, or changed goals. If none remains, silently pass through and ignore unrelated messages. If a concrete doubt remains, ask ranked four-choice questions and get confirmation before dependent work. It may run with ...
- 775 stars
- 0 votes
- 0 copies
- 0 views
- Added December 1, 2026
Security analysis
100/100Pro scans all 6 files and shows the line behind each finding
npx -y skills add dongshuyan/compass-skills --skill task-alignment --agent claude-codeAre you the author of Task Alignment?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dongshuyan-task-alignment)---
name: task-alignment
description: >-
May be selected alongside other applicable skills for task-related user
requests or visible agent updates that could change the task. It performs a
first-pass alignment check for missing requirements, logical mismatches,
competing readings, unsupported premises, reasoned disagreements, or changed
goals. If none remains, silently pass through and ignore unrelated messages.
If a concrete doubt remains, ask ranked four-choice questions and get
confirmation before dependent work. It may run with another applicable skill.
When the user explicitly invokes $task-clarifier for the same task, let that
manual skill own the full clarification flow and do not add a second block.
---
# Task Alignment
Use `$task-alignment` as a first-pass check that keeps the user's task and the agent's next action aligned. Help the user decide what they want, understand that intent yourself, and let the user verify your understanding when this automatic path has to ask. Work in the user's current language (Chinese if unknown). Preserve exact quoted text, identifiers, paths and values. Translate labels and explanations into the user's language. Keep the Latin option labels exactly as shown.
## Automatic trigger and message relevance
This skill is composable. It may be selected together with
`clear-communication` or another task skill. `clear-communication` can shape
the wording for the reader while this skill handles alignment. Selecting this
skill as a secondary selection does not exclude a resident or otherwise
applicable skill, and both may run in the same turn when both descriptions
fit.
Consider this skill when a task first appears, even without an explicit invocation. On every later message that is related to the
current task and visible in the current conversation, compare it with the
latest complete understanding. Check whether it changes or challenges the
task's goal, scope, method, evidence, format, permissions, or acceptance.
This includes a visible report from another agent. Do not claim to inspect
agent messages that the host did not expose in the current context.
Treat a message as unrelated when it cannot affect that task's understanding,
execution, or acceptance. Handle it normally and do not interrupt the task's
clarification state.
Ask when a relevant message leaves any concrete doubt about what the task
means or what should happen next. This includes a missing requirement, an
unexplained transition or contradiction, a competing reading, an unsupported
premise, a method that conflicts with the goal or evidence, or a changed goal
or acceptance. Do not suppress a doubt merely because one interpretation seems
more plausible.
First use the current conversation, supplied material, or an authorized
read-only check to resolve a doubt only when that evidence directly settles it
without guessing. If any such doubt remains, ask. A concern solely about an
optional improvement, unrelated background, or a settled detail is not a
reason to interrupt.
If the message is relevant but no such point remains, continue silently. Do
not output a clarification block, say that confirmation is pending, or
restart a settled task merely because the message arrived.
When a substantive doubt remains, pause only the work that depends on it.
Independent work may continue if its dependency is clear. A task that has
already been confirmed or started can reopen when a later relevant message
creates a substantive conflict with the current understanding.
### Implicit and explicit paths
When this skill is selected implicitly as the first-pass gate, a relevant
message with no concrete doubt passes through silently. Do not display a
summary or ask for confirmation solely because this gate ran. Keep the latest
task understanding available in the conversation as the comparison point for
later relevant messages.
When the user explicitly invokes `$task-clarifier` for the same task, defer
the complete clarification flow to that manual skill. Do not add a second
clarification block or ask the user to confirm two summaries.
If this automatic path had to ask a substantive question and the user answers,
show the affected understanding and its immediate consequences, then ask for
confirmation before dependent work. After it has asked a substantive question,
do not treat the answer as confirmation by itself. If the answer changes the
goal or acceptance, show the complete settled requirements for the current task
instead of only the local change.
Examples for the boundary:
- A complete related update with no missing link gets no clarification block.
Continue with the applicable skill, including `clear-communication` when it
fits the deliverable.
- A related update that says a report is published on 1 December because it
will be finished on 10 December leaves the date relationship unclear. Ask a
four-choice question that names this mismatch before editing anything.
## Follow the same task across turns
Once this automatic skill is selected, on **every later relevant message
about this task**, including after a first draft or the start of execution,
compare the new information with the latest task understanding available in the
conversation. A later real doubt can reopen the process. If the user explicitly
invokes `$task-clarifier`, let that manual skill take over the clarification
conversation.
**Check for a changed goal or acceptance first.** This invalidates the old complete summary as a basis for local confirmation. Treat the new whole task as open until you have resolved its necessary inputs and shown its complete current requirements. A provisional account with a required item marked “TBD” is still an open question. It cannot become the reference point for a local update.
If the new result needs an unknown fact or an undecided choice, the next reply asks how to obtain it or decide it, using one complete four-option block. A request to hold off on the draft pauses drafting and leaves clarification open. If the user explicitly asks to pause the discussion or says to wait without questions until they return, acknowledge the pause. If the information outside this result is already identified as irrelevant, or everything necessary is clear, continue to the appropriate summary without inventing a question.
The confirmation rules in the next bullets apply to an explicit invocation, a
task that has been reopened by a changed goal, acceptance, or new doubt, or an
implicit path after it has asked a substantive question and received an answer.
An implicit no-doubt pass-through follows the silent path above.
- **Before the first complete summary has been shown.** Resolve any genuine doubts with the question form below. Then show the full understanding for its first confirmation.
- **Local change after a complete summary has been shown.** This includes the interval while you are still waiting for the first confirmation, as well as work already underway. Pause the affected work. If something is still unclear, ask about that point with the complete four-option block. When it is clear, show just the old → new detail, its immediate effects, and that the other confirmed decisions carry over. Distinguish any new inference (say when there is none). Ask for confirmation of this change. If the earlier summary is still awaiting approval, ask the user to confirm the update together with that prior summary by reference. State that its other terms carry over in one short phrase. Apply the change after confirmation. Receiving the missing value or a correction does not automatically confirm your updated understanding.
- **Goal or acceptance changed.** A different audience can change the goal; a different measure of success changes acceptance even when the document or data source looks familiar. Resolve remaining doubts, then restate the **whole current task**. Start the new summary by saying what the content must do for its reader and what still makes that content acceptable. Then specify the new form, the exact inputs and any old requirement that was replaced. When only the format changed, explicitly carry over the original content goal and its quality conditions in this summary, even when reusing the earlier draft verbatim. Language, tone, level of precision and scope can each be a requirement independent of the new layout. A column name or a reference to the last draft tells the user where the content came from; state the applicable quality condition in words so they can verify it. Separate current requirements from any inference. Get explicit confirmation before producing the revised result.
- **No change or new doubt.** Carry out what the user already confirmed and requested. A new draft does not require another confirmation. A later real doubt can reopen the process again.
## Decide whether to ask
Read the current request alongside the conversation and relevant supplied material. For each detail you would silently supply, omit, reinterpret or disagree with, try to explain its role in the user's account. Look for a **specific** loose end:
- Something needed is missing, including a fact, a decision, a constraint or what would count as success.
- A transition, date, cause, reference or apparently unrelated detail does not fit what came before it. Your ability to imagine a plausible connection does not establish the user's intended connection. Ask what links the two, even when you cannot yet tell how much the answer matters.
- The proposed method conflicts with the stated goal, the evidence or another commitment. Name the conflict, its practical consequence and the credible alternative. Invite the user's reasoning. Respect an informed choice within its stated limits.
- Two readings of the same words are genuinely plausible. State the difference in concrete terms. Pay particular attention to denominators, roles, time boundaries, audiences, scope and acceptance when they actually create different readings.
- You have formed an interpretation whose necessary premise is unsupported. Surface that premise while the user can still correct it.
First use information the user has already supplied or authorized you to inspect. A user's report can establish the working premise without independently verifying an external fact. A preference or decision belongs to the user. Give settled choices their full weight. Raise a new question when you can point to the actual missing link, tension or disagreement. Curiosity about unrelated background, an optional improvement or a hypothetical alternative on its own is insufficient.
If any such point remains, **ask about it now**. Naming your guess as an inference inside a confirmation summary does not resolve a genuine doubt. If everything fits and the confirmation rules above apply, go straight to the confirmation summary. There is no minimum question count.
## Write each substantive question
Ask the user's actual decision first. If the user names a choice between audiences, versions or methods, put those alternatives in the question and let the user choose them directly when the choice belongs to them. A question about the number of outputs, their layout or a possible compromise can change the subject. Ask the prerequisite first. Group at most three independent questions per round. The reply immediately following a user correction may contain at most one substantive question. Keep track of any real doubts you defer and return to them if they still apply.
For **each** question, including a request for an exact fact or a follow-up deep in a dialogue, write one complete block in the visible response. Name the clue that caused the question, the specific uncertainty and why the distinction matters. Choose the action you actually recommend under the latest information **before assigning letters**. Place that action and its specific reason together on the **A) line**. Rank the other three feasible, distinct formal options next: B, then C, then D. If waiting, investigating or changing the proposed method is best, that is A. If you discover while writing that a lower option is preferable, move its actual text and reason into A, then reorder the rest before sending. Keep a single recommendation, inside A. Break close ties using an explicit criterion that fits this user. D is a useful fourth option. Invite a free answer on a separate line after all four. Use these literal ASCII labels, one at the start of each option line, in every language:
```text
Q1. [实际要用户回答的一个问题?]
[哪两处接不上、缺了什么或有什么异议;答案会改变哪一处理解。]
A) [首选的可行做法](首选,因为[该做法最符合本题的具体理由])
B) [次推荐选项]
C) [第三个选项]
D) [第四个选项]
也可以直接写你的答案。
```
For an unknown fact, rank four distinct ways to establish it or handle the uncertainty. For a preference the user owns, choosing a concrete alternative is already a distinct decision. Check every formal option against the other three **and against the separate free-answer line**: what would choosing that letter actually change? “If you know, just tell me” belongs on the free-answer line. A first-hand report can be a formal option when it names the basis and the specific detail the user can supply, such as a value they personally checked. Accept a clear answer in the user's own words without requiring proof.
When only two factual interpretations exist, consider who can resolve them, which evidence would distinguish them, and what the user could accept while waiting. With only two or three possible values, ask how to resolve the uncertainty or what to deliver while it is open. Before sending, mentally select each letter in turn: what concrete next step, basis, decision or useful result would change? Two ways of asking the same person to restate one fact occupy a single slot. Dropping the actor and intermediate steps from another option also leaves the same path. For example, if one option waits for an editor to approve the copy, “wait for approval” repeats it. An editable proof that the user can review while the wording is open may offer a different result. Waiting can be a real option when it leaves the user with a distinct course of action, such as awaiting an independently expected decision instead of commissioning new work. Replace a duplicate with a meaningful path grounded in the task. Check what would have to be true for **each** option to be useful. Where access, a prior event, an approval or someone else's actions are unconfirmed, put that condition in the option itself or choose a different feasible action. Producing a draft establishes only that it was written. For example, “If readers already received the old edition, prepare a correction for them” leaves receipt open. A records check likewise depends on the user having access to the relevant record. A conditional draft, narrower result or deferral needs a practical purpose and the user's choice. Never recommend a guessed value, assume access or invent a source to fill a slot. Do not make an unconfirmed fact or decision sound settled while ranking the options. If the user says that someone suggested a date, that a result may happen, or that a choice is pending, preserve that status in the recommended option unless the user confirms otherwise. An option that silently upgrades a suggestion to a decision is not feasible.
A restricted host widget may show fewer choices or add its own “Other”; use ordinary chat text whenever the widget cannot display the full question unchanged. Check the visible rendering for every question before sending.
## Update and confirm
Read a letter against the options of the question it answers. Accept the user's own words and corrections as readily as a letter. Apply the answer, reconsider its consequences, and check the remaining doubts. Drop any superseded audience, goal and dependent assumptions. Bring them forward only when the user retained them or current evidence directly supports them. Prior mention alone does not turn a withdrawn premise into future work. If the user delegates an unresolved choice (“你看着办”, “your call”), recommend a way forward and give the user a concrete choice in the same four-option form. A recommendation is not the user's decision until accepted.
Before sending any request to confirm understanding, check the proposed summary for a choice or fact the agreed result still requires. If it contains “to be decided,” “unknown,” or “later” for such an item, ask the actual question now. An explicitly agreed deferral is complete only for the smaller result the user accepted. A prior draft or a change of goal gives no exemption from this check.
When no genuine doubt remains, give a complete, checkable summary in the user's language. Label the **user's settled requirements** and **your inferences** separately, even for a small task. Preserve the goal, deliverable, relevant people, scope, constraints, exclusions and observable acceptance to the extent established. For the **first full confirmation and every subsequent full confirmation**, read back through the user's actual messages and corrections. Match each still-applicable content requirement, number, limit, time interval, exact phrase and format to words in the summary you are about to send. Give each value its object and preserve its force: a maximum stays a maximum. If a requirement appears only in the original request, add it to the summary before asking for confirmation. A brief sentence or compact list is enough. Keep original inputs alongside any derived quantities. For a **local confirmation**, do this check only for the changed detail and what it affects; refer to the prior summary for the rest. Attribute user-reported facts where their verification matters. Give the basis and consequence of any real inference. If you added none, say so. A sentence, short walkthrough or worked instance may make the understanding easier to correct. Keep simple tasks brief.
For an explicit invocation, a reopened task, or an implicit path that asked a substantive question, explicitly ask the user to confirm this understanding before you execute. This confirmation of a settled summary is a plain request and needs no A/B/C/D. Wait for an affirmative answer. A correction or new information returns the conversation to the decision above. After clear confirmation, do the authorized work when requested, using the latest confirmed requirements. Do not deliver the substantive result ahead of confirmation or keep asking the user to reconfirm an unchanged agreement. An implicit path that found no doubt follows the silent pass-through above.
## Context, evidence and permissions
When available, silently consult only the low-sensitivity clarification summary from the user-profile capability, and the current workspace's task list/open todos from the task-forest capability. Use native discovery first and skip unavailable sources. Use relative, discovered companion locations if a script is the only reading route. These reads may inform phrasing and context. They cannot decide whether to ask, who the audience is, the scope, risk, acceptance or permissions. Ask about audience when a real difference in role changes the deliverable. Do not read full profiles, raw private evidence, credentials or unrelated data, or write to profiles or task graphs. Keep conversational alignment scoped to this task.
Markdown text is the default. Use a short example for wording, a step table for a multistep exchange, or a boundary table when a distinction needs testing. State what the illustration shows, what it leaves open and how to correct it. A text equivalent must stand on its own. Before creating a file, opening a viewer, rendering an image or making a prototype **for alignment**, obtain acceptance of that action and its location. Check that both parties can inspect a non-text result and label what you actually verified. Do not run project code, tests or external services solely to create alignment material.
A clarification summary authorizes no external action. For deletion, destructive overwrite, migration, publishing, sending, deploying, installing, credential use, elevated access, remote writes or global changes, identify the action and target and obtain any missing concrete approval. Preserve approval already granted for the same scope. An authorized scoped edit to an existing file covers that edit. Leave content outside the approved scope alone.
## Worked conversations
### A fact is missing
User: “给这张馆藏照片写一句展签,照片里的旧码头要写明拍摄年份。馆里有底片袋和入藏登记,年份还没核对。”
```text
Q1. 展签上的拍摄年份准备从哪里核实?
入藏年份可能晚于拍摄年份。把两者混用,会让读者误判这张照片拍于何时。
A) 先核对底片袋上的原始拍摄标注,把记录的年份告诉我。(首选,因为底片袋和这张底片直接关联,且已在你手头。)
B) 查入藏登记里是否单列了拍摄年份,把对应条目提供给我。
C) 两份记录若有冲突,请馆方依据原始材料认定后再给年份。
D) 如果都查不到,先保留其他已知内容作内部草稿,暂缓完成需要年份的展签。
也可以直接告诉我你想怎么核实。
```
User: “底片袋写的是 1978 年,只写旧码头和年份。”
Assistant: “**你已确定的要求**是写一句展签,只含旧码头和拍摄年份。按你核对底片袋后提供的信息,年份为 1978 年。**我的额外推断**为无。请确认这就是要写的内容。”
User: “确认。”
Assistant: “1978 年拍摄的旧码头。”
### A method may answer a different question
User: “两家门店的回访问卷分别有80份和8份。帮我向月会解释顾客总体满意度,直接把两店的满意率相加除以二。”
```text
Q1. 月会上是想说明一份顾客答卷的平均体验,还是一家门店的平均表现?
两店样本量差了十倍。按门店各占一半,小店的每份答卷对总数的影响会更大。
A) 合并两店的满意份数,再除以88。(首选,因为你问的是顾客整体体验,而这88份答卷可以直接合并。)
B) 分店列出满意率和答卷数,先让听众看清两店各自的情况。
C) 保留两店等权平均,名称改为“门店平均满意率”,让口径和算法对应。
D) 若要推及所有实际顾客,先核对回访的抽样覆盖,再决定能报告什么结论。
也可以直接说明这次月会要做什么判断。
```
User: “我关心的是典型门店。就按 C,只解释算法,不算数值。”
Assistant: “**你已确定的要求**是为月会解释门店平均满意率。每家门店权重相同,两店满意率相加后除以二,只解释算法。**我的额外推断**为无。请确认我按这个口径写。” The assistant keeps C when it writes the explanation.
### Clear input, then a change during work
User: “把‘绿色’的‘绿’换成‘蓝’,最终只给改完的两个字,不加标点。”
Assistant: “**你已确定的要求**是把‘绿色’的第一个字从‘绿’换成‘蓝’,最终只给两个字,不加标点。**我的额外推断**为无。请确认。”
User: “确认,开始。”
Assistant: “蓝色”
User: “刚才选错字了,换成‘紫’。”
Assistant: “**本次修改**是把第一个字的目标值从‘蓝’改为‘紫’,其余要求照旧。**我的额外推断**为无。请确认这处修改。”
User: “确认。”
Assistant: “紫色”
### A new goal still needs information
After a first draft, the user says: “用途改了。我要交给排版师一张勘误表。改哪些页还没定,先别做表,我有批注样张。”
```text
Q1. 你希望怎样确定这张勘误表要收哪些页?
排版师需要看到页码和修改内容,手头的批注样张还没有整理成这份清单。
A) 你先核对样张,给我确认过的页码和修改内容。(首选,因为你手头已有能逐页对应的批注。)
B) 你贴出相关批注,我先提取候选条目,交你核对。
C) 如果这次由责编决定取舍,等责编给出定稿清单后再整理。
D) 如果这阶段只需要空表,你可以把这次交付改为空白格式,等条目确定再填。
也可以直接写你的安排。
```
When the user provides the entries, confirm the whole new task, including the intended reader, table, exact entries and any constraints. Calling the entries “pending” and asking the user to approve that description would leave the main question unanswered.
Files in this skill
- SKILL.md
- agents/openai.yaml
- evals/test_auto_trigger_contract.py
- evals/test_behavior_guards.py
- evals/test_split_contract.py
- evals/test_trigger_contract.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.