一键导入
cypress-handover
Use when you need a Cypress task handover that preserves status, session state, blockers, and exact resume steps for a human or later agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need a Cypress task handover that preserves status, session state, blockers, and exact resume steps for a human or later agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Flagship Cypress skill pack for planning, authoring, debugging, documenting, and operationalizing Cypress. Routes E2E, API, component, visual, accessibility, CI/CD, coverage, docs, CLI automation, and handoff workflows.
Requirements-analysis skill for Cypress planning and implementation. Use when Codex needs to extract testable behaviors, acceptance criteria, risks, dependencies, or open questions from tickets, specs, markdown docs, or other requirement sources before writing tests or coverage plans.
CI and delivery skill for Cypress automation. Use when Codex needs to design, debug, or optimize Cypress execution in GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, sharded pipelines, artifact workflows, or shared setup and teardown.
Battle-tested Cypress patterns for E2E, API, component, visual, accessibility, and security testing. Covers selectors, assertions, hooks, intercepts, auth flows, debugging, and framework recipes for React, Next.js, Vue, and Angular.
Coverage-maintenance skill for Cypress planning and documentation. Use when Codex needs to synchronize coverage plans, scenario IDs, traceability links, and summary counts after tests, requirements, or narrative test documents change.
Coverage-planning skill for Cypress work. Use when Codex needs to turn confirmed requirements into a structured, risk-aware Cypress coverage plan with scenarios, execution types, priorities, and traceability.
| name | cypress-handover |
| description | Use when you need a Cypress task handover that preserves status, session state, blockers, and exact resume steps for a human or later agent. |
| metadata | {"author":"jovd83","version":"1.0","dispatcher-category":"testing","dispatcher-capabilities":"handover, cypress-handover","dispatcher-accepted-intents":"create_cypress_handover","dispatcher-input-artifacts":"work_summary, validation_status, blockers","dispatcher-output-artifacts":"handover_document, resume_steps","dispatcher-stack-tags":"cypress, handover, operations","dispatcher-risk":"low","dispatcher-writes-files":true} |
[!IMPORTANT] All usage of this skill must be logged via the Skill Dispatcher to ensure audit logs and wallboard analytics are accurate:
./log-dispatch.cmd --skill <skill_name> --intent <intent> --model <model_name> --reason <reason>(or./log-dispatch.shon Linux)
Create a clear handover document at task completion summarizing completed work, current state, session state, blockers, and the exact next step so a human or a later agent can resume without rediscovery.
<test_documentation_root>/handovers/
docs/tests/<test_documentation_root>/handovers/archive/
YYYYMMDD_HHmm_CypressSkillHandover.md
: in filenames.The handover must include:
State the objective, scope, and intended outcome of the task.
Record these metadata lines at the top of the handover before the section headings:
TimestampTask labelWorkspace rootBranchPrevious handoverTask label must use lowercase letters, digits, and hyphens only, for example checkout-auth-fix.
Keep it stable across the same task chain and let Workspace root plus Branch disambiguate parallel scopes.
Previous handover must be either:
No prior handover foundTask labelThe full Previous handover chain must remain valid:
State one explicit status: Completed, In progress, Blocked, or Awaiting approval.
Summary of completed actions.
List work that was started but not finished.
List work that still needs to be done or was intentionally deferred.
List anything preventing completion, including missing information, failing environments, approvals, or unresolved decisions.
State the single highest-priority next step in one or two sentences.
Record the runtime state needed to continue safely:
cy.session(), API login, seeded backend state, or CLI state-save/state-load)Do not store raw secrets, tokens, or cookie values in the handover. Reference the source of truth instead, such as environment variables, secret stores, fixtures, or setup commands.
Provide the concrete restart path:
Record tests, checks, or manual verification already performed and what still needs verification.
Use explicit fallback values such as None., Not run because ..., or Unknown. Recreate by ... only when they are true.
Do not use low-signal filler such as TBD, TODO, N/A, pending, or blank section bodies.
List all skills used and why.
Actions not covered by skills, plus proposals for new skills/subskills.
Architecture or implementation patterns used (for example: POM, custom commands, fixtures).
Any unavoidable anti-patterns and justification.
Main benefits.
Known risks and limitations.
Concrete next improvements.
Categorize by:
Write the sections in the order above so the next human or agent can scan status first and details second.
Create and store this handover document at the end of each task unless the user asks otherwise. When the task is incomplete, the handover must still be written and must clearly identify the stopping point, remaining work, and restart instructions.
docs/tests/ already exists.
docs/tests/handovers/ before saving the handover.Unknown and state exactly how the next human or agent should recreate the session.Not run rather than implying success.Unknown for Branch and continue.When asked to create or update a handover:
Completed, In progress, Blocked, or Awaiting approval.scripts/audit-handovers.ps1 before resuming or triaging shared work.
Task label collisions across different workspace or branch scopes.-Location all when you need one audit across both active and archived handovers.-FailOnIssues when the audit must stop on invalid files or ambiguous labels.scripts/rename-task-label.ps1 before resuming work.-Location archive when the broken or duplicate scope exists only in archived storage.scripts/resolve-handover-location-conflict.ps1 instead of deleting files manually.scripts/doctor-handover.ps1.
resume, restore, archive, repair, or complete.scripts/repair-handover-links.ps1.scripts/resolve-handover-location-conflict.ps1.scripts/overview-handovers.ps1 first to see the latest handover per task scope.Task label + Workspace root + Branch.-Location archive to inspect archived scopes or -Location all to inspect both active and archived queues in one view.-GroupBy task, the overview keeps active and archived scopes distinct so archive duplication cannot be hidden.-GroupBy task only when label-only aggregation is intentional and scope differences do not matter.-Sort priority to rank resume-ready tasks first.-Status "In progress","Awaiting approval" to focus on actionable tasks.-ExcludeCompleted to hide closed work from the overview.-OnlyStale -StaleAfterDays <n> to surface tasks whose handovers have gone stale.scripts/recommend-handover.ps1.-Location archive -IncludeCompleted when choosing an archived scope to inspect or restore next.-Status and -OnlyStale to constrain the recommendation.-WorkspaceRoot and -Branch when the same Task label exists in more than one scope.scripts/find-handover.ps1 first to locate the latest relevant handover and extract the current state.-TaskLabel <label> when the task label is known.-Location archive to inspect an archived scope before restoring it, or -Location all when you do not know whether the scope is active or archived yet.-WorkspaceRoot <path> and -Branch <name> when the same Task label exists in multiple scopes.Current status, Next action, Session state, and How to resume before changing files.scripts/trace-handover-chain.ps1.-Location archive to inspect archived chains directly, or -Location all when you do not know whether the scope is active or archived yet.-WorkspaceRoot and -Branch when the same Task label exists in multiple scopes.scripts/diff-handover-checkpoints.ps1.-Location archive to compare archived checkpoints before restore or historical review.-WorkspaceRoot and -Branch when the same Task label exists in multiple scopes.scripts/archive-handover-scope.ps1.Completed.handovers/archive/ and rewrites internal Previous handover links to the archived paths.scripts/restore-handover-scope.ps1.handovers/ and rewrites internal Previous handover links to the active paths.scripts/resume-handover.ps1.-ProgressNote and -NextAction so the new checkpoint records what changed since the prior handover.-Status "Blocked" or -Status "Awaiting approval" when resumed work discovered a new blocker or approval gate.scripts/restore-handover-scope.ps1.-WorkspaceRoot and -Branch when the same Task label exists in more than one scope.scripts/new-handover.ps1 to scaffold the handover file from assets/handover-template.md.Workspace root, Branch, and the newest earlier handover in the same scope (Task label + Workspace root + Branch) when possible.scripts/restore-handover-scope.ps1 instead of creating a fresh active chain.-PreviousHandover <path> only when that file exists in the same active scope and is not in archive.Previous handover paths drifted, run scripts/repair-handover-links.ps1.Previous handover links from task metadata and timestamp order within the selected scope or location.-Location archive to repair archived chains in place without restoring them first.scripts/export-handover-index.ps1.-OutputPath <file> to persist the export for downstream tools.-IncludeHistory when downstream tools also need full newest-to-oldest checkpoint chains per latest scope.-Format csv when a flat latest-scope table is easier for spreadsheets or simple dashboards than nested JSON.None., Not run because ..., or Unknown. Recreate by ... when needed.TBD, TODO, N/A, or other low-signal filler.scripts/validate-handover.ps1 -Path <handover-file> before stopping.Previous handover chain integrity across task label, workspace root, and timestamp order.scripts/complete-handover.ps1 to create a new Completed handover that references the latest prior handover in the selected scope.-ValidationNote with the final validation result that proves the task is complete.scripts/restore-handover-scope.ps1.-WorkspaceRoot and -Branch when the same Task label exists in more than one scope.docs/tests/handovers/ using the required filename format.assets/handover-template.md as the default document shape.references/blocked-handover-example.md when the current task is incomplete or blocked and a concrete example is needed.powershell -NoProfile -File .\scripts\audit-handovers.ps1
It validates every handover in docs/tests/handovers/ and reports invalid files plus duplicate Task label collisions across workspace and branch scopes.
To include archived handovers in the same report:
powershell -NoProfile -File .\scripts\audit-handovers.ps1 -Location all
To fail immediately when issues exist:
powershell -NoProfile -File .\scripts\audit-handovers.ps1 -FailOnIssues
powershell -NoProfile -File .\scripts\doctor-handover.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
It recommends whether to resume, restore, archive, repair, or complete, and prints the exact command to run next.powershell -NoProfile -File .\scripts\export-handover-index.ps1 -Location all -OutputPath .\handover-index.json
It writes a JSON object containing audit summary, invalid handovers, collisions, and the latest scope index.
To include full chain history per latest scope:
powershell -NoProfile -File .\scripts\export-handover-index.ps1 -Location all -IncludeHistory -OutputPath .\handover-index.json
To emit a flat CSV table of the latest scopes:
powershell -NoProfile -File .\scripts\export-handover-index.ps1 -Location all -Format csv -OutputPath .\handover-index.csv
Previous handover links drift after manual file moves, renames, or repo relocation:
powershell -NoProfile -File .\scripts\repair-handover-links.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
It rewrites the Previous handover metadata in timestamp order and validates the repaired scope before finishing.powershell -NoProfile -File .\scripts\resolve-handover-location-conflict.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/auth-refresh" -KeepLocation active
It validates the kept location, removes the duplicate files from the other location, and leaves one canonical scope.references/multi-scope-conflicts.md.powershell -NoProfile -File .\scripts\overview-handovers.ps1
It returns the latest handover per Task label + Workspace root + Branch, including location, status, priority rank, age in days, stale flag, chain depth, next action, blockers, and path.
Use filters and priority sorting when needed:
powershell -NoProfile -File .\scripts\overview-handovers.ps1 -Sort priority -Status "In progress","Awaiting approval" -ExcludeCompleted
To inspect archived scopes without restoring them:
powershell -NoProfile -File .\scripts\overview-handovers.ps1 -Location archive -Sort recent
To inspect both active and archived queues together:
powershell -NoProfile -File .\scripts\overview-handovers.ps1 -Location all
To aggregate strictly by task label when scope differences do not matter:
powershell -NoProfile -File .\scripts\overview-handovers.ps1 -GroupBy task
To focus on stale work:
powershell -NoProfile -File .\scripts\overview-handovers.ps1 -Sort stale -OnlyStale -StaleAfterDays 5
powershell -NoProfile -File .\scripts\recommend-handover.ps1 -Sort priority -Status "In progress","Awaiting approval"
It returns the single highest-ranked handover for the requested filters and explains why it was chosen. To choose one archived scope for restore review:
powershell -NoProfile -File .\scripts\recommend-handover.ps1 -Location archive -IncludeCompleted -Sort recent
powershell -NoProfile -File .\scripts\find-handover.ps1 -TaskLabel "checkout-auth-fix"
It returns the newest matching handover and prints the key resume fields needed to continue the task safely. To inspect an archived scope before restoring it:
powershell -NoProfile -File .\scripts\find-handover.ps1 -TaskLabel "checkout-auth-fix" -Location archive
When the same task label exists in multiple scopes, disambiguate with:
powershell -NoProfile -File .\scripts\find-handover.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
powershell -NoProfile -File .\scripts\trace-handover-chain.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
It prints every handover in the selected chain, including location, status, next action, validation, previous link, and path. To trace an archived chain without restoring it:
powershell -NoProfile -File .\scripts\trace-handover-chain.ps1 -TaskLabel "checkout-auth-fix" -Location archive
powershell -NoProfile -File .\scripts\diff-handover-checkpoints.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
It reports the changed tracked fields between the newest handover and its immediate predecessor, including location, status, work summary, blockers, next action, validation, and file-change notes. To compare archived checkpoints without restoring the scope:
powershell -NoProfile -File .\scripts\diff-handover-checkpoints.ps1 -TaskLabel "checkout-auth-fix" -Location archive
powershell -NoProfile -File .\scripts\archive-handover-scope.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
It moves the full completed chain into docs/tests/handovers/archive/, rewrites internal Previous handover paths to the archived files, validates the archived copies, and removes the active copies after success.
15. Run the restore script when an archived completed scope needs to become active again:
powershell -NoProfile -File .\scripts\restore-handover-scope.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
It moves the archived chain back into docs/tests/handovers/, rewrites internal Previous handover paths to the active files, validates the restored copies, and removes the archived copies after success.
16. Run the resume script when you want a new in-progress checkpoint copied from the latest scoped handover:
powershell -NoProfile -File .\scripts\resume-handover.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh" -ProgressNote "Revalidated the auth helper after the backend patch and confirmed the login step now passes." -NextAction "Rerun the checkout suite and capture the final pass artifact."
It creates a new timestamped handover, links it to the previous handover, keeps prior context, updates the active status, and validates the new checkpoint before finishing. 17. Run the scaffolding script from the skill directory:
powershell -NoProfile -File .\scripts\new-handover.ps1 -TaskLabel "checkout-auth-fix"
It auto-fills Workspace root, Branch, normalizes Task label to lowercase hyphen-case, and records the most recent earlier handover path for the same task scope in the target handovers/ directory.
18. Run the validation script before ending the task:
powershell -NoProfile -File .\scripts\validate-handover.ps1 -Path .\docs\tests\handovers\20260311_1530_CypressSkillHandover.md
powershell -NoProfile -File .\scripts\rename-task-label.ps1 -OldTaskLabel "checkout-auth-fix" -NewTaskLabel "checkout-auth-phase-2" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
It normalizes the new label to lowercase hyphen-case, updates every matching handover in the selected location, workspace, and branch scope, and validates the rewritten files before finishing. To repair an archived scope in place:
powershell -NoProfile -File .\scripts\rename-task-label.ps1 -OldTaskLabel "checkout-auth-fix" -NewTaskLabel "checkout-auth-phase-2" -Location archive -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh"
powershell -NoProfile -File .\scripts\complete-handover.ps1 -TaskLabel "checkout-auth-fix" -WorkspaceRoot "C:\projects\shop-app" -Branch "fix/checkout-auth-refresh" -ValidationNote "Ran npx cypress run --spec cypress/e2e/checkout/checkout.cy.ts and the suite passed."
It creates a new timestamped handover, links it to the previous handover, marks the scope Completed, clears unfinished-work sections, and validates the new file before finishing.
docs/tests/handovers/
scripts/new-handover.ps1. It creates the directory automatically.No prior handover found in the file.scripts/new-handover.ps1 with -PreviousHandover <path>.scripts/restore-handover-scope.ps1 first instead of creating a fresh active chain.scripts/find-handover.ps1 -TaskLabel <label> with the exact task label from the handover metadata.No prior handover found.scripts/validate-handover.ps1 -Path <handover-file> for each failing path.repair
Previous handover links, run scripts/repair-handover-links.ps1 with the same task label, workspace root, and branch.scripts/archive-handover-scope.ps1 or scripts/restore-handover-scope.ps1 instead of rewriting links.scripts/rename-task-label.ps1 with -Location, -WorkspaceRoot, and -Branch so only the intended scope is renamed.-Location archive.scripts/resolve-handover-location-conflict.ps1 to keep the intended location and remove the duplicate copy deterministically.references/multi-scope-conflicts.md if you need a concrete active/archive example before deciding.scripts/export-handover-index.ps1 -Location all -OutputPath <file> and consume the JSON from that file.-IncludeHistory when the consumer also needs the full checkpoint chain per latest scope.scripts/rename-task-label.ps1 to rewrite the entire affected scope instead of editing individual files by hand.-Location archive when the invalid label exists only in archived storage.checkout-auth-fix instead of prose or sentence-style labels.scripts/rename-task-label.ps1 with -Location, -WorkspaceRoot, and -Branch.scripts/overview-handovers.ps1 or scripts/audit-handovers.ps1 first if the correct scope is not obvious.scripts/complete-handover.ps1 with both -WorkspaceRoot and -Branch.scripts/find-handover.ps1 or scripts/overview-handovers.ps1 first to confirm the exact scope you intend to close.scripts/restore-handover-scope.ps1 first.-Force if overwriting that just-created file is intentional.scripts/trace-handover-chain.ps1 with -Location, -WorkspaceRoot, and -Branch.scripts/overview-handovers.ps1 first if the correct scope is not obvious.scripts/diff-handover-checkpoints.ps1 with -Location, -WorkspaceRoot, and -Branch.scripts/trace-handover-chain.ps1 or scripts/overview-handovers.ps1 first if the correct scope is not obvious.scripts/trace-handover-chain.ps1 to confirm whether the selected handover is the first in the chain.scripts/archive-handover-scope.ps1 with both -WorkspaceRoot and -Branch.scripts/trace-handover-chain.ps1 first if the correct completed scope is not obvious.scripts/complete-handover.ps1 first if the task is actually done.-Force only if overwriting the archived copies is intentional.scripts/restore-handover-scope.ps1 with both -WorkspaceRoot and -Branch.scripts/trace-handover-chain.ps1 on the archive or inspect the archived metadata first if the correct scope is not obvious.-Force only if overwriting the active copies is intentional.scripts/resume-handover.ps1 with both -WorkspaceRoot and -Branch.scripts/find-handover.ps1 or scripts/trace-handover-chain.ps1 first to confirm the exact scope you intend to continue.scripts/restore-handover-scope.ps1 first.-Force if overwriting that just-created file is intentional.Task label.-GroupBy task only when label-only aggregation is intentional.-Location archive or -Location all when the missing scope was archived instead of active.scripts/overview-handovers.ps1 after correcting the metadata.-Status to restrict the overview to In progress, Blocked, Awaiting approval, or Completed.-Sort priority to rank resume-ready tasks first, or -Sort recent to sort strictly by newest timestamp.-Sort stale -OnlyStale -StaleAfterDays <n> to focus on aging handovers.-ExcludeCompleted to hide completed work.scripts/recommend-handover.ps1 with -Status to narrow the candidate set.-Location archive -IncludeCompleted when you want a restore candidate instead of an active task.-WorkspaceRoot and -Branch when the same task label exists in multiple scopes.-Sort recent or -Sort stale if priority sorting is not the intended ranking rule.scripts/overview-handovers.ps1 to inspect the full ranked list before continuing.scripts/find-handover.ps1 with -Location, -WorkspaceRoot, and -Branch.scripts/overview-handovers.ps1 first if the correct scope is not obvious.Previous handoverTask label.scripts/repair-handover-links.ps1 instead of editing every file by hand.No prior handover found.Previous handover links manually or with scripts/find-handover.ps1.scripts/repair-handover-links.ps1 when the scope metadata is correct and only the stored links drifted.No prior handover found.Previous handover is older than the current handover it links from.No prior handover found.Unknown for the missing metadata field and continue with the rest of the handover.Blocked or Awaiting approval.Not run or the failing command verbatim and list the next action needed to continue.{{PLACEHOLDER}} tokens before stopping.TBD, TODO, N/A, pending, or similar filler with a factual statement, an explicit None., or a concrete recovery instruction.