Testing Task Skill
Produces the final hand-off to the (Arabic-speaking) testing team and
closes the workflow.
When to Use
- The
testing action — only from stage deployed or
deployment_skipped.
Inputs
- The approved implemented behavior:
docs/ai-context/TASK_PLAN.md
(Required
Behavior + Acceptance Criteria as approved), the feature-changelog entry
updated at finalization, the implementation summary.
- Deployment status from state.
Outputs
- Arabic
Title + Description copied to the host clipboard in their
original logical Unicode order, ready to paste into the testing team's
task-management system, plus a terminal-only visual preview of the
same text so it is readable in this terminal — content rules in
references/arabic-testing-task-rules.md.
- No file. Never create
docs/ai-context/testing-task-ar.md,
.claude/testing-task-ar.md, or any replacement testing-task file
anywhere.
- State:
testing_task = {status: "generated", generated_at};
state transition completed. The generated Arabic text itself is never
stored in state.
Preconditions
- Stage is
deployed or deployment_skipped; commit verified.
Order of Operations
The clipboard copy comes first, and everything else depends on it:
CLI clipboard copy --preview with the finished Arabic text on stdin.
- Exit code
0 → the command has copied the logical text and printed a
visual preview of it. Repeat that preview output verbatim, record the
state, transition to completed.
- Exit code
8 (no clipboard) → stop. Print nothing of the Arabic
text, write no file, record no state, transition nothing. Show the
command's own failure output — it names every method that was checked —
and tell the user to install a clipboard utility (wl-clipboard,
xclip, or xsel) or run from a session that has one, then ask for
testing again. Never install a package.
The clipboard is the delivery channel; the preview is only there to be
read. This terminal draws text strictly left to right, so the logical
Arabic appears backwards in it — the preview is the same text reordered for
display, and it is exactly what must not be pasted anywhere. Never
print the logical Arabic text yourself, and never copy the preview into the
clipboard, a file, or the workflow state. A failed copy therefore blocks
the workflow instead of falling back to printing.
Stopping Conditions
- Task copied, previewed, state recorded, workflow
completed → report the
closing summary (commit hash, deployment outcome, and that the Arabic
testing task is on the clipboard and previewed above). Done.
- Copy succeeded but the command reported that the preview could not be
formatted → the hand-off is still complete: pass that English warning on,
never print the logical Arabic instead, and continue with the state
record and the transition.
- Clipboard unavailable → stage unchanged, nothing recorded, the blocker
reported to the user. Not a completion.
Repeating After Completion
The text is kept nowhere, so a user who lost it may ask for it again while
the stage is already completed. Regenerate it from the same approved
behavior, copy it to the clipboard and show the preview again, and change
nothing: no transition (there is none from completed), no state write, no
file. A failed copy at this point changes nothing either — the stage stays
completed.
Deployment-Skipped Warning
When the stage is deployment_skipped, show this separately, in
English, after the preview and outside the Arabic content:
Deployment was skipped. Publish the testing task only after the changes
are available in the testing environment.
Never embed the warning inside the Arabic description.
Prohibited
- Writing the title or description to any file, in the application repo or
anywhere else. Older plugin versions saved
.claude/testing-task-ar.md / docs/ai-context/testing-task-ar.md; such
a file may still exist in an old application — leave it untouched, never
read it, never update it.
- Printing the Arabic text, recording state, or transitioning to
completed after a failed clipboard copy.
- Printing the logical Arabic text at any point, or putting the visual
preview on the clipboard, in a file, or in the workflow state.
- Reordering, reshaping, or reversing the text yourself: the visual form
comes from
CLI clipboard copy --preview and from nowhere else.
- Installing a clipboard package, or working around a missing one with a
file, a here-doc into an editor, or any other on-disk detour.
- Mentioning source files, Python functions, or internal implementation
in the Arabic text.
- Copying the original task title as the description.
- Describing behavior that was not actually approved and implemented.
- Generating from a stage other than
deployed / deployment_skipped.
Shared Rules
shared-workflow-rules.md.
1---2name: testing-task3description: Generate the concise Arabic testing-team task (title + description) from the approved implemented behavior, warn separately when deployment was skipped, and close the workflow at completed.4---56# Testing Task Skill78Produces the final hand-off to the (Arabic-speaking) testing team and9closes the workflow.1011## When to Use1213- The `testing` action — only from stage `deployed` or14 `deployment_skipped`.1516## Inputs1718- The **approved implemented behavior**: `docs/ai-context/TASK_PLAN.md`19 (Required20 Behavior + Acceptance Criteria as approved), the feature-changelog entry21 updated at finalization, the implementation summary.22- Deployment status from state.2324## Outputs2526- Arabic `Title` + `Description` **copied to the host clipboard** in their27 original logical Unicode order, ready to paste into the testing team's28 task-management system, plus a **terminal-only visual preview** of the29 same text so it is readable in this terminal — content rules in30 [references/arabic-testing-task-rules.md](references/arabic-testing-task-rules.md).31- **No file.** Never create `docs/ai-context/testing-task-ar.md`,32 `.claude/testing-task-ar.md`, or any replacement testing-task file33 anywhere.34- State: `testing_task = {status: "generated", generated_at}`;35 `state transition completed`. The generated Arabic text itself is never36 stored in state.3738## Preconditions3940- Stage is `deployed` or `deployment_skipped`; commit verified.4142## Order of Operations4344The clipboard copy comes **first**, and everything else depends on it:45461. `CLI clipboard copy --preview` with the finished Arabic text on stdin.472. Exit code `0` → the command has copied the logical text and printed a48 visual preview of it. Repeat that preview output verbatim, record the49 state, transition to `completed`.503. Exit code `8` (no clipboard) → **stop**. Print nothing of the Arabic51 text, write no file, record no state, transition nothing. Show the52 command's own failure output — it names every method that was checked —53 and tell the user to install a clipboard utility (`wl-clipboard`,54 `xclip`, or `xsel`) or run from a session that has one, then ask for55 `testing` again. Never install a package.5657The clipboard is the delivery channel; the preview is only there to be58read. This terminal draws text strictly left to right, so the logical59Arabic appears backwards in it — the preview is the same text reordered for60display, and it is exactly what must **not** be pasted anywhere. Never61print the logical Arabic text yourself, and never copy the preview into the62clipboard, a file, or the workflow state. A failed copy therefore blocks63the workflow instead of falling back to printing.6465## Stopping Conditions6667- Task copied, previewed, state recorded, workflow `completed` → report the68 closing summary (commit hash, deployment outcome, and that the Arabic69 testing task is on the clipboard and previewed above). Done.70- Copy succeeded but the command reported that the preview could not be71 formatted → the hand-off is still complete: pass that English warning on,72 never print the logical Arabic instead, and continue with the state73 record and the transition.74- Clipboard unavailable → stage unchanged, nothing recorded, the blocker75 reported to the user. Not a completion.7677## Repeating After Completion7879The text is kept nowhere, so a user who lost it may ask for it again while80the stage is already `completed`. Regenerate it from the same approved81behavior, copy it to the clipboard and show the preview again, and change82nothing: no transition (there is none from `completed`), no state write, no83file. A failed copy at this point changes nothing either — the stage stays84`completed`.8586## Deployment-Skipped Warning8788When the stage is `deployment_skipped`, show this **separately, in89English, after the preview and outside the Arabic content**:9091```text92Deployment was skipped. Publish the testing task only after the changes93are available in the testing environment.94```9596Never embed the warning inside the Arabic description.9798## Prohibited99100- Writing the title or description to any file, in the application repo or101 anywhere else. Older plugin versions saved102 `.claude/testing-task-ar.md` / `docs/ai-context/testing-task-ar.md`; such103 a file may still exist in an old application — leave it untouched, never104 read it, never update it.105- Printing the Arabic text, recording state, or transitioning to106 `completed` after a failed clipboard copy.107- Printing the logical Arabic text at any point, or putting the visual108 preview on the clipboard, in a file, or in the workflow state.109- Reordering, reshaping, or reversing the text yourself: the visual form110 comes from `CLI clipboard copy --preview` and from nowhere else.111- Installing a clipboard package, or working around a missing one with a112 file, a here-doc into an editor, or any other on-disk detour.113- Mentioning source files, Python functions, or internal implementation114 in the Arabic text.115- Copying the original task title as the description.116- Describing behavior that was not actually approved and implemented.117- Generating from a stage other than `deployed` / `deployment_skipped`.118119## Shared Rules120121[shared-workflow-rules.md](../../references/shared-workflow-rules.md).