jgamaraalv/ts-dev-kit/execute-task

Claude Code and agent skill by jgamaraalv/ts-dev-kit

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Executes a task, either from a TASK_N.md file or a free-form description. Use when: (1) implementing a task from a TASK_N.md file, (2) the user provides a task file path or says 'execute this task', 'implement TASK_02', or 'run this task', (3) the user describes a task directly without a document. Accepts a file path or a free-form description — if the task document is missing required sections (scope, success criteria, verification plan), automatically calls /generate-tasks to produce it before executing.

Install

npx vskill@latest install jgamaraalv/ts-dev-kit/execute-task

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

<trigger_examples>

  • "Execute TASK_02"
  • "Implement docs/features/search/TASK_01.md"
  • "Run this task"
  • "Execute the task"
  • "Implement the search feature"
  • "Build the user creation flow end-to-end"
  • "Add the notifications endpoint to the API"

</trigger_examples>

<task> $ARGUMENTS </task>

<workflow> Follow each phase in order. Each one feeds the next.

<phase_0_intake> Resolve the input and ensure the task document is complete before executing.

Step 1 — Determine input type:

  • If $ARGUMENTS looks like a file path (ends in .md, or starts with /, ./, docs/, or contains a directory separator): read the file.
  • Otherwise: treat it as a free-form task description — skip to Step 3.

Step 2 — Validate the task document: A task document is ready for execution when it contains ALL of:

  • ## Scope — Files with at least one file entry
  • ## Success Criteria with at least one testable criterion
  • ## Verification Plan with baseline and post-change checks

If all required sections are present → proceed to phase 1.

Step 3 — Generate the task document: If the document is missing any required section, OR the input was a free-form description:

  1. Inform the user:

> Task document incomplete. Generating a structured task document via /generate-tasks before proceeding.

  1. Call Skill(skill: "generate-tasks") passing the original input as context.
  2. After generation, note the path of the saved TASK_N.md file.
  3. Read the generated file and confirm all required sections are present.
  4. Resume execution using the generated document — continue to phase 1.

</phase_0_intake>

<phase_1_context_analysis> Before writing any code, build a mental model of the task scope.

  1. Read the resolved task document fully (path determined in phase 0).
  2. Read the project CLAUDE.md and root package.json — understand project structure, available commands, and dependency graph.
  3. Search the codebase for existing patterns — use Grep/Glob to find related files, similar implementations, and reusable code relevant to the task's file scope.
  4. Identify the affected packages/directories from the task's "Scope — Files" section.

</phase_1_context_analysis>

<phase_2_role_assignment> Determine the full execution context: role persona, domain area, domain technologies, project context, required skills, and available MCPs.

<domain_areas> Map the task to one or more domain areas AND sub-areas. Sub-areas determine the specialist agent type and skill set.

Backend

Sub-areaAgent typeWhenKey skills
Databasedatabase-expertSchema design, migrations, complex queries, indexesdrizzle-pg, postgresql
Endpointsapi-builderRoutes, validation, handlers, API contractsfastify-best-practices
Queuesgeneral-purposeJob processing, workers, schedulersbullmq, ioredis
Securitysecurity-scannerAuth flows, RBAC, input sanitizationowasp-security-review

Frontend

Sub-areaAgent typeWhenKey skills
Componentsreact-specialistComponent architecture, hooks, state management, compositionreact-best-practices, composition-patterns
Pages/routinggeneral-purposePages, layouts, data fetching, RSC boundariesnextjs-best-practices
UI/UXux-optimizerUser flows, form UX, friction reductionui-ux-guidelines
Accessibilityaccessibility-proWCAG compliance, keyboard nav, screen readers—
Performanceperformance-engineerCore Web Vitals, bundle size, re-rendersreact-best-practices

Shared packages — typescript-pro or general-purpose (shared types, schemas, utilities)

Cross-cutting specialists (use alongside any domain)

Agent typeWhen
test-generatorWriting test suites, improving coverage
debuggerInvestigating errors, stack traces
docker-expertDockerfiles, compose, container config
code-reviewerPost-implementation review
playwright-expertE2E browser tests

A single task may require agents from multiple sub-areas. For example, "add a new resource endpoint with list UI" needs database-expert (schema) + api-builder (route) + react-specialist (component). </domain_areas>

<domain_technologies> Read the relevant package.json to identify installed packages and their versions. Use the actual versions found — do not assume. </domain_technologies>

<role_persona> Compose a role persona that combines the domain sub-area, project context, technologies, and task nature.

<examples>

  • "You are a database specialist working with [ORM] and [database] on schema design for [brief project description from CLAUDE.md]"
  • "You are a React component architect specialized in composition patterns, hooks, and state management with [React version] and [UI library]"
  • "You are a [framework] API developer building REST endpoints with validation and type-safe request/response contracts"
  • "You are a frontend performance engineer optimizing Core Web Vitals and bundle size for a [framework] application"
  • "You are a queue specialist designing job flows with [queue library] and retry strategies"

</examples>

Discover the actual technologies and versions from package.json. Describe the project based on CLAUDE.md or README. </role_persona>

<required_skills> Call the Skill tool for each relevant skill before writing any code or dispatching agents. Skills inject domain-specific rules and best practices.

Identify the required skills from the domain area, then call each one:

Skill(skill: "fastify-best-practices")
Skill(skill: "drizzle-pg")
Skill(skill: "postgresql")

<skill_map> Match skills to the sub-area identified in domain_areas:

Backend sub-areas:

  • Database → /drizzle-pg, /postgresql
  • Endpoints → /fastify-best-practices
  • Queues → /bullmq, /ioredis
  • Security → /owasp-security-review

Frontend sub-areas:

  • Components → /react-best-practices, /composition-patterns
  • Pages/routing → /nextjs-best-practices
  • UI/UX → /ui-ux-guidelines
  • Performance → /react-best-practices

Cross-cutting → combine skills from each sub-area involved. </skill_map>

In ALL execution modes: include explicit Skill() call instructions in each subagent prompt (see references/agent-dispatch.md). The orchestrator does not need to load skills itself — agents load them before writing code. </required_skills>

<available_mcps> Identify MCPs that can assist execution:

  • context7 — query up-to-date library documentation (see below)
  • playwright — test frontend in the browser, take screenshots, verify UI
  • chrome-devtools — inspect pages, debug network requests, check console
  • firecrawl — fetch external documentation or references from the web

Context7 usage — MANDATORY for config and versioned APIs: Many tools have breaking config changes across minor versions. Before writing or modifying ANY configuration file for versioned tools (OTel collector, Prometheus, Grafana, Loki, Tempo, Docker Compose, Drizzle, Fastify, Next.js, Redis, BullMQ, Nginx, etc.), you MUST query Context7 first to verify the correct syntax for the installed version. Do NOT try variations blindly — guess-looping config fixes wastes context and compounds errors.

  1. mcp__context7__resolve-library-id — resolve the library name (e.g., "fastify", "drizzle-orm", "next", "react", "bullmq") to its Context7 ID.
  2. mcp__context7__query-docs — query with the specific API, config key, or pattern you need.

This applies to ALL roles: orchestrator, dispatched agents, and ad-hoc specialists. Check the project's package.json for installed versions first. In MULTI-ROLE mode, include these Context7 instructions in each agent prompt so agents query docs themselves before writing config. </available_mcps> </phase_2_role_assignment>

<phase_2b_multi_role_decomposition> When a task spans multiple domains, decompose it into separate roles with isolated execution contexts.

<when_to_decompose> Decompose into multiple roles when ANY of these apply:

  1. The task touches 2+ packages or major directories (e.g., shared code + backend + frontend).
  2. The task involves distinct skill sets (e.g., database schema design + frontend UI).
  3. The changes in one domain are large enough to benefit from a focused agent.

Do not decompose if:

  1. The task is small and contained within a single package.
  2. The cross-package changes are trivial (e.g., adding one type to shared and importing it).

</when_to_decompose>

<decomposition_rules> <rule_1_define_roles_independently> Each role gets its own persona, skill set, context files, and success criteria.

<example> Role A: Database specialist (sub-area: Database). Agent: database-expert (or ts-dev-kit:database-expert if plugin-scoped). Task: design schema + migration for the new feature. Skills: drizzle-pg, postgresql. Role B: API endpoint developer (sub-area: Endpoints). Agent: api-builder (or ts-dev-kit:api-builder). Task: build REST routes consuming the new schema. Skills: fastify-best-practices. Role C: Component architect (sub-area: Components). Agent: react-specialist (or ts-dev-kit:react-specialist). Task: build the result card and list components. Skills: react-best-practices, composition-patterns. Role D: Page builder (sub-area: Pages/routing). Agent: general-purpose (ad-hoc). Task: wire components into the search results page with data fetching. Skills: nextjs-best-practices. Role E: TypeScript library developer. Agent: typescript-pro (or ts-dev-kit:typescript-pro). Task: add shared schemas and types. Skills: none extra. </example> </rule_1_define_roles_independently>

<rule_2_dispatch_agents> For each role, spawn a specialized subagent via the Task tool.

Selecting the agent type:

  1. Resolve the agent name for the current scope. Agents may be registered under different names depending on how ts-dev-kit is installed:
  • Project scope (.claude/agents/): short name — e.g., database-expert
  • Plugin scope: prefixed with the plugin namespace — e.g., ts-dev-kit:database-expert

Before dispatching, check which agents are available in your context. If you see agents with a ts-dev-kit: prefix, use the prefixed name as subagent_type. If agents are available by short name, use the short name.

  1. If a matching agent exists (in any scope), use its resolved name as subagent_type.
  2. If no matching agent exists, use general-purpose as subagent_type and embed the full role definition directly in the prompt — this creates an ad-hoc specialist without needing a .md file.

Ad-hoc agent creation — when subagent_type: "general-purpose" is used as a specialist surrogate, the prompt must include:

  • Role persona: who the agent is and what it specializes in.
  • Domain expertise: specific technologies, frameworks, and versions.
  • Project context: how this sub-area fits into the project (discover from CLAUDE.md and package.json).
  • Constraints: patterns to follow, files to reference, conventions to match.
  • Skills to load: explicit Skill(skill: "...") calls for domain-specific rules.

<example_adhoc_agent> Task( description: "Implement notification worker", subagent_type: "general-purpose", model: "sonnet", prompt: """ You are a queue specialist working on this project.

Your expertise: Redis-backed job queues, workers, flow producers, retry strategies, rate limiting, and graceful shutdown.

Before writing any code

  1. Read CLAUDE.md and relevant package.json files to understand the project structure and conventions.
  2. Call the Skill tool to load these domain skills:
  • Skill(skill: "bullmq")
  • Skill(skill: "ioredis")

Your task

[task details...]

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
12
Repository npm downloads, 7 days
11
7-day trend score
28

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 27 Mar 2026, 8 months ago.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jgamaraalv/ts-dev-kit/execute-task/badge)](https://verified-skill.com/skills/jgamaraalv/ts-dev-kit/execute-task)

Something wrong with this skill or its page? Tell us.