@jgamaraalv/ts-dev-kit 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  "name": "ts-dev-kit",
13
13
  "source": "./",
14
14
  "description": "13 specialized agents and 16 skills for TypeScript fullstack development",
15
- "version": "2.1.0",
15
+ "version": "2.2.0",
16
16
  "author": {
17
17
  "name": "jgamaraalv"
18
18
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-dev-kit",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "13 specialized agents and 16 skills for TypeScript fullstack development with Fastify, Next.js, PostgreSQL, Redis, and more.",
5
5
  "author": {
6
6
  "name": "jgamaraalv",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jgamaraalv/ts-dev-kit",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Claude Code plugin: 13 agents + 16 skills for TypeScript fullstack development",
5
5
  "author": "jgamaraalv",
6
6
  "license": "MIT",
@@ -108,8 +108,7 @@ Match skills to the sub-area identified in domain_areas:
108
108
  **Cross-cutting** → combine skills from each sub-area involved.
109
109
  </skill_map>
110
110
 
111
- In SINGLE-ROLE mode: call each skill yourself before starting phase 4.
112
- In MULTI-ROLE mode: include explicit Skill() call instructions in each subagent prompt (see references/agent-dispatch.md).
111
+ 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.
113
112
  </required_skills>
114
113
 
115
114
  <available_mcps>
@@ -235,24 +234,28 @@ Constraints:
235
234
  <execution_mode_decision>
236
235
  At the end of phase 2, make an explicit execution mode decision and state it to the user:
237
236
 
238
- > **EXECUTION MODE: SINGLE-ROLE** — I will implement all changes directly.
237
+ > **EXECUTION MODE: SINGLE-ROLE** — Single domain. I will dispatch 1-2 focused agents for implementation.
239
238
 
240
239
  OR
241
240
 
242
- > **EXECUTION MODE: MULTI-ROLE** — I will act as orchestrator, dispatching specialized agents via the Task tool.
241
+ > **EXECUTION MODE: MULTI-ROLE** — Multiple domains. I will dispatch specialized agents across domains via the Task tool.
243
242
 
244
243
  OR
245
244
 
246
245
  > **EXECUTION MODE: PLAN** — The task is highly complex. I will enter plan mode to design a structured implementation plan before executing.
247
246
 
247
+ **CRITICAL: In ALL execution modes, the orchestrator (main session) NEVER writes application code directly.** All implementation — components, hooks, pages, routes, services, tests — is delegated to agents via the Task tool. The orchestrator's role is: context gathering, agent dispatch, output review, integration glue (under 15 lines), and quality gates.
248
+
249
+ The difference between SINGLE-ROLE and MULTI-ROLE is decomposition complexity, NOT whether agents are used:
250
+ - **SINGLE-ROLE**: simpler decomposition (1-2 agents, same domain). Use when the task is contained within one package or domain.
251
+ - **MULTI-ROLE**: complex decomposition (3+ agents, multiple domains). Use when the task spans packages or skill sets.
252
+
248
253
  Use PLAN mode when:
249
254
  - The task has 4+ distinct roles or implementation phases.
250
255
  - The scope is large enough that context window management becomes a concern.
251
256
  - The task benefits from upfront architectural planning before any code is written.
252
257
 
253
- In PLAN mode: use EnterPlanMode to design the full plan. Once the user approves it, exit plan mode and execute phases sequentially as MULTI-ROLE orchestrator, with context cleanup between major phases when needed.
254
-
255
- Follow this decision in phase 4. In MULTI-ROLE and PLAN modes, delegate application code to agents — your job is dispatch, review, integration, and quality gates.
258
+ In PLAN mode: use EnterPlanMode to design the full plan. Once the user approves it, exit plan mode and execute phases sequentially as orchestrator, with context cleanup between major phases when needed.
256
259
  </execution_mode_decision>
257
260
  </phase_2b_multi_role_decomposition>
258
261
 
@@ -290,64 +293,62 @@ Follow this decision in phase 4. In MULTI-ROLE and PLAN modes, delegate applicat
290
293
  </phase_3_task_analysis>
291
294
 
292
295
  <phase_3b_baseline_capture>
293
- Run the verification plan before writing any code to establish the baseline for comparison.
296
+ **MANDATORY.** Run the verification plan before writing any code to establish the baseline for comparison. Do NOT skip this phase.
297
+
298
+ **Step 1: Standard quality gates** — run and record results (pass/fail, counts, bundle sizes).
294
299
 
295
- 1. Run standard quality gates and record results (pass/fail, counts, bundle sizes).
296
- 2. Run domain-specific checks from the verification plan:
297
- - **Frontend**: if playwright/chrome-devtools MCPs are available, navigate to affected pages, capture screenshots, and measure performance (LCP, load time). Otherwise, record build output and bundle sizes.
298
- - **Backend**: execute requests to affected endpoints (via curl or available API MCPs) and record response status, payload shape, and timing.
299
- - **Database**: record current schema state for affected tables.
300
- 3. Store all baseline values — these are compared against post-change results in phase 5b.
300
+ **Step 2: MCP-based checks** follow this decision tree in order:
301
301
 
302
- If testing MCPs are not available, skip those checks and note it:
303
- > **Baseline captured.** MCP-based visual/performance checks skipped no browser MCPs available.
302
+ 1. Use ToolSearch to confirm which browser MCPs are available (playwright, chrome-devtools, or neither).
303
+ 2. **If browser MCPs are available AND the task touches frontend pages:**
304
+ a. Check if the dev server is running (attempt to navigate to `localhost` or the configured URL).
305
+ b. **If dev server is accessible:** navigate to each affected page, capture screenshots of key states, and measure performance (LCP, load time). Use Chrome DevTools traces or Playwright screenshots as appropriate.
306
+ c. **If dev server is NOT accessible:** ask the user whether to start it or skip visual checks. Do NOT silently skip — the user must confirm.
307
+ 3. **If no browser MCPs are available:** note it explicitly and proceed with shell-only checks (build output, bundle sizes).
308
+ 4. **Backend tasks:** execute requests to affected endpoints (via curl or available API MCPs) and record response status, payload shape, and timing.
309
+ 5. **Database tasks:** record current schema state for affected tables.
304
310
 
305
- In MULTI-ROLE mode, the orchestrator runs baseline capture before dispatching any agents.
311
+ **Step 3: Store baseline** all values captured here are compared against post-change results in phase 5b.
312
+
313
+ When visual/performance checks are skipped, state the reason:
314
+ > **Baseline captured.** MCP-based visual checks skipped — [reason: no browser MCPs available | dev server not running (user confirmed skip) | no frontend pages affected].
315
+
316
+ The orchestrator ALWAYS runs baseline capture before dispatching any agents, regardless of execution mode.
306
317
  </phase_3b_baseline_capture>
307
318
 
308
319
  <phase_4_execution>
309
- Before writing any code, check the execution mode decision from phase 2.
320
+ **CRITICAL: The orchestrator (main session) NEVER writes application code.** All implementation is dispatched to agents via the Task tool. The orchestrator may only write trivial glue (under 15 lines total): barrel file exports, small wiring imports, or config one-liners.
310
321
 
311
- **MULTI-ROLE Follow <multi_role_orchestration> below.**
312
- **SINGLE-ROLE → Follow <single_role_implementation> below.**
322
+ Before dispatching, check the execution mode decision from phase 2 to determine decomposition complexity.
313
323
 
314
- <multi_role_orchestration>
315
- As orchestrator, dispatch agents, review their output, and verify integration. Do not implement application code yourself.
324
+ <agent_dispatch_protocol>
325
+ This protocol applies to ALL execution modes (SINGLE-ROLE, MULTI-ROLE, and PLAN).
316
326
 
317
- You may write code directly only for trivial glue (under 15 lines total):
318
- - Adding an export line to a barrel file
319
- - Adding a small schema to the shared package that multiple agents need
320
- - Wiring an import in a top-level file after agents complete
327
+ As orchestrator, your responsibilities are: context gathering, agent dispatch, output review, integration glue, and quality gates. You do NOT write application code (components, hooks, pages, routes, services, tests).
321
328
 
322
- Everything else should be delegated to an agent. For the agent prompt template and dispatch details, see references/agent-dispatch.md.
323
-
324
- Dispatch steps:
325
- 1. Create TaskCreate entries for each role.
329
+ **Dispatch steps:**
330
+ 1. Create TaskCreate entries for each role to track progress.
326
331
  2. For each role, dispatch a specialized agent via the Task tool with a self-contained prompt. Set the `model` parameter according to rule_4_model_selection.
327
332
  3. Launch independent agents in parallel. Launch dependent agents sequentially.
328
333
  4. Each agent runs its own quality gates before reporting completion. Review the agent's output and gate results before dispatching dependents.
329
334
  5. After all agents complete, proceed to phase 5 for the final cross-package quality gates.
330
335
 
331
- If you find yourself creating application files (routes, components, services, hooks, tests) while in MULTI-ROLE mode, delegate to an agent instead.
332
- </multi_role_orchestration>
336
+ For the agent prompt template and dispatch details, see references/agent-dispatch.md.
333
337
 
334
- <single_role_implementation>
335
- Think through each step before acting. Share your reasoning at key decision points.
338
+ **Self-check:** If you find yourself creating application files (routes, components, services, hooks, tests, pages), STOP and delegate to an agent instead.
339
+ </agent_dispatch_protocol>
336
340
 
337
341
  <build_order>
338
- Work from micro to macro — build dependencies before dependents:
339
- 1. Shared code first — new constants, types, schemas, or enums needed by multiple packages go in the shared/common package (discover its location from the project structure).
342
+ Instruct agents to work from micro to macro — build dependencies before dependents:
343
+ 1. Shared code first — new constants, types, schemas, or enums needed by multiple packages go in the shared/common package.
340
344
  2. Check for reuse — before creating a helper, hook, component, or utility, search the codebase for existing code that can be used or extended.
341
345
  3. Implement the core change — build the feature/fix in the target package.
342
346
  4. Wire it together — connect the pieces across packages if needed.
343
347
 
344
- Decision tree:
348
+ Decision tree (include in agent prompts when relevant):
345
349
  - Is this code used by multiple modules? YES → Create in the shared/common package.
346
350
  - Is this code used by multiple modules? NO → Is this component multi-file? YES → Create folder with index.tsx + related files. NO → Single file, co-located with usage.
347
351
  </build_order>
348
-
349
- If you created any temporary files or scripts for iteration, remove them at the end.
350
- </single_role_implementation>
351
352
  </phase_4_execution>
352
353
 
353
354
  <phase_5_quality_gates>