skills/task/SKILL.md
Five-phase implementation workflow
npx skillsauth add laststance/skills taskInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When running this skill in Codex, translate Claude Code-only primitives before acting: AskUserQuestion -> chat/request_user_input, TodoWrite -> update_plan, Task/TaskCreate/TeamCreate/SendMessage -> spawn_agent/send_input/wait_agent when available and allowed, and EnterPlanMode/ExitPlanMode -> a concise chat plan plus explicit approval.
Resolve Read/Write/Edit/Bash/WebSearch/WebFetch to Codex file/shell/web tools, and map ~/.claude/... paths to ~/.agents/... or ~/.codex/... unless the task explicitly targets Claude Code.
When running this skill in Cursor Agent, translate Claude Code-only primitives before acting: AskUserQuestion -> AskQuestion; TodoWrite -> Cursor TodoWrite or an equivalent checklist; Task/TaskCreate/TeamCreate/SendMessage/multi-agent flows -> Cursor Task (subagents), parallel Tasks, or run_in_background when allowed (TeamCreate/SendMessage may have no exact match); EnterPlanMode/ExitPlanMode -> Plan mode (SwitchMode / CreatePlan) plus explicit user approval.
Resolve Read/Write/Edit/StrReplace/Bash/web/search/MCP via Cursor Composer or Agent equivalents. MCP names written as mcp__server__tool typically map to call_mcp_tool with configured server identifiers. Map ~/.claude/... to ~/.cursor/skills/, .cursor/skills/, and .cursor/rules/ unless the task explicitly targets Claude Code.
Standard 5-phase workflow for all implementation tasks with built-in quality gates.
<essential_principles>
Call the following Serena tools at the specified points. Never skip them.
| Checkpoint | Tool | When | Purpose |
|------------|------|------|---------|
| Adherence Gate | mcp__serena__think_about_task_adherence | Before each code edit in Phase 3 | Confirm still aligned with original task |
| Completion Gate | mcp__serena__think_about_whether_you_are_done | Before exiting Phase 4 (Verify) | Confirm all work is truly complete |
After Phase 1 and again after Phase 2, do a short information sufficiency self-check in prose (requirements understood, relevant code located, plan covers acceptance criteria and verification). If gaps remain, gather more context before continuing—do not rely on a removed Serena tool.
Use these markers throughout all phases to make reasoning visible:
think_about_task_adherence</essential_principles>
Understand the task and gather context.
Tools: Grep, Read, Glob, mcp__serena__find_symbol, mcp__serena__get_symbols_overview, mcp__context7__query-docs
Break down the task and design the approach.
TodoWritePlan: 1) Parallel [Read A, B] → 2) Edit → 3) Parallel [Test, Lint]mcp__serena__write_memory("plan_<topic>", content)Output: TodoWrite entries with clear acceptance criteria per step.
Execute the plan with continuous adherence checks.
For each implementation step:
think_about_task_adherence — Still on track?Rules:
// TODO: implement later — write working codeRun quality checks and validate correctness.
Run in parallel where possible:
# Parallel execution
pnpm lint &
pnpm typecheck &
pnpm test &
pnpm build &
wait
If any check fails → investigate root cause → fix in Phase 3 → re-verify.
--frontend-verify (when flag is provided)Visual verification across platforms. Auto-detect platform from package.json:
| Dependency | Platform | Preflight | Verification Tool |
|------------|----------|-----------|-------------------|
| (default) | Web | kill-port <port> && pnpm dev | playwright-cli (open --headed, snapshot, screenshot) |
| electron | Electron | pnpm electron:dev | /qa-electron skill (playwright-cli attached to Electron CDP) |
| expo / react-native | Mobile | mcp__ios-simulator__open_simulator | iOS Simulator MCP (screenshot, ui_tap, ui_swipe) |
| commander / inquirer / oclif | CLI | shell session | Shellwright MCP (TUI/CLI operation and output verification) |
Frontend Verify Workflow:
/dnd to load the drag-and-drop coordinate protocol. Ref-based drag reports false success on dnd-kit and similar libraries — required before any Web or Electron interaction.kill-port <port> && pnpm dev, confirm playwright-cli is available (Web direct; Electron via playwright-cli attach --cdp=http://localhost:9222)playwright-cli, take screenshot after each stepWhen verifying authenticated apps (SaaS dashboards, admin panels, OAuth-protected pages), use playwright-cli's auth persistence:
| Strategy | Command | Use Case |
|----------|---------|----------|
| state-save / state-load | playwright-cli state-save auth.json | Session cookies + localStorage. Best for most web apps |
| --profile <dir> | playwright-cli open <url> --profile ./browser-data | Full Chromium user data dir. Best for complex OAuth (Google, GitHub SSO) |
OAuth Flow:
playwright-cli open <login-url> --headed (must be headed for OAuth redirects)snapshot + fill + clickplaywright-cli state-save auth.json to persist sessionplaywright-cli state-load auth.json before navigating to appSecurity:
auth.json, browser-data/ to .gitignore--headed for initial OAuth setup (redirects require visible browser)🔶 think_about_whether_you_are_done — Is everything truly complete?
Report results and wait for user instruction.
git commit && git push/task fix the login button styling
/task add dark mode support --frontend-verify
/task refactor the API error handling
[Investigate] → 🔶 info gate
↓
[Plan] → 🔶 info gate
↓
[Implement] → 🔶 adherence gate (per edit)
↓
[Verify] → 🔶 completion gate
↓
[Complete] → ⏸️ wait for user → commit/push
tools
Inspect video frame-by-frame and capture-then-verify UI motion. Extract frames from any clip (handed to you, screen-recorded, or self-captured) with ffmpeg and read them as images; record an interaction (Playwright / computer-use / iOS simulator) and verify animations, transitions, and motion that static screenshots and getComputedStyle cannot reveal. Use when verifying animations/transitions/motion, analyzing a video or .webm/.mp4, extracting frames, checking how something "looks" in motion, or recording a UI flow to inspect.
testing
Cited research briefs
development
Daily coding habit prompts JP
development
React core deep-dive JP