cp-toolkit 3.1.0 → 3.1.2
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.
- package/package.json +1 -1
- package/templates/agents/backend-specialist.agent.md +2 -4
- package/templates/agents/code-archaeologist.agent.md +2 -4
- package/templates/agents/database-architect.agent.md +2 -4
- package/templates/agents/debugger.agent.md +2 -2
- package/templates/agents/devops-engineer.agent.md +2 -4
- package/templates/agents/documentation-writer.agent.md +2 -4
- package/templates/agents/explorer-agent.agent.md +2 -4
- package/templates/agents/frontend-specialist.agent.md +2 -4
- package/templates/agents/game-developer.agent.md +2 -4
- package/templates/agents/mobile-developer.agent.md +2 -4
- package/templates/agents/orchestrator.agent.md +43 -18
- package/templates/agents/penetration-tester.agent.md +2 -4
- package/templates/agents/performance-optimizer.agent.md +2 -4
- package/templates/agents/product-manager.agent.md +2 -4
- package/templates/agents/product-owner.agent.md +2 -4
- package/templates/agents/project-planner.agent.md +2 -4
- package/templates/agents/qa-automation-engineer.agent.md +2 -4
- package/templates/agents/security-auditor.agent.md +2 -4
- package/templates/agents/seo-specialist.agent.md +2 -4
- package/templates/agents/test-engineer.agent.md +2 -4
- package/templates/agents/teste.agent.md +24 -0
package/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: backend-specialist
|
|
3
3
|
description: Expert backend architect for Node.js, Python, and modern serverless/edge systems. Use for API development, server-side logic, database integration, and security. Triggers on backend, server, api, endpoint, database, auth.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, nodejs-best-practices, python-patterns, api-patterns, database-design, mcp-builder, lint-and-validate, powershell-windows, bash-linux
|
|
7
|
-
applyTo: ["**/api/**", "**/*.server.*", "**/controllers/**", "**/*.service.ts"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: gpt-5.2
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Backend Development Architect
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-archaeologist
|
|
3
3
|
description: Expert in legacy code, refactoring, and understanding undocumented systems. Use for reading messy code, reverse engineering, and modernization planning. Triggers on legacy, refactor, spaghetti code, analyze repo, explain codebase.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, refactoring-patterns, code-review-checklist
|
|
7
|
-
applyTo: ["**/*legacy*/**", "**/*.old.*", "**/deprecated/**"]
|
|
4
|
+
tools: ['read', 'search', 'edit', 'web']
|
|
5
|
+
model: gemini-3-pro
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Code Archaeologist
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: database-architect
|
|
3
3
|
description: Expert database architect for schema design, query optimization, migrations, and modern serverless databases. Use for database operations, schema changes, indexing, and data modeling. Triggers on database, sql, schema, migration, query, postgres, index, table.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, database-design
|
|
7
|
-
applyTo: ["**/prisma/**", "**/*.sql", "**/migrations/**", "**/db/**"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: gpt-5.2
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Database Architect
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: debugger
|
|
3
3
|
description: Expert in systematic debugging, root cause analysis, and crash investigation. Use for complex bugs, production issues, performance problems, and error analysis. Triggers on bug, error, crash, not working, broken, investigate, fix.
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: claude-opus-4.5
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Debugger - Root Cause Analysis Expert
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: devops-engineer
|
|
3
3
|
description: Expert in deployment, server management, CI/CD, and production operations. CRITICAL - Use for deployment, server access, rollback, and production changes. HIGH RISK operations. Triggers on deploy, production, server, pm2, ssh, release, rollback, ci/cd.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, deployment-procedures, server-management, powershell-windows, bash-linux
|
|
7
|
-
applyTo: ["**/Dockerfile", "**/*.yaml", "**/terraform/**", "**/.env*"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: claude-opus-4.5
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# DevOps Engineer
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: documentation-writer
|
|
3
3
|
description: Expert in technical documentation. Use ONLY when user explicitly requests documentation (README, API docs, changelog). DO NOT auto-invoke during normal development.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, documentation-templates
|
|
7
|
-
applyTo: ["**/README.md", "**/CHANGELOG.md", "**/docs/**", "**/*.doc.md"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: claude-sonnet-4.5
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Documentation Writer
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: explorer-agent
|
|
3
3
|
description: Advanced codebase discovery, deep architectural analysis, and proactive research agent. The eyes and ears of the framework. Use for initial audits, refactoring plans, and deep investigative tasks.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, architecture, plan-writing, brainstorming, systematic-debugging
|
|
7
|
-
applyTo: ["**/package.json", "**/CODEBASE.md", "**/.gitignore", "**/.gitmodules"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'web']
|
|
5
|
+
model: raptor-mini
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Explorer Agent - Advanced Discovery & Research
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-specialist
|
|
3
3
|
description: Senior Frontend Architect who builds maintainable React/Next.js systems with performance-first mindset. Use when working on UI components, styling, state management, responsive design, or frontend architecture. Triggers on keywords like component, react, vue, ui, ux, css, tailwind, responsive.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, nextjs-react-expert, web-design-guidelines, tailwind-patterns, frontend-design, lint-and-validate
|
|
7
|
-
applyTo: ["**/components/**", "**/*.tsx", "**/*.css", "**/hooks/**"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web', 'playwright/*']
|
|
5
|
+
model: gemini-3-pro
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Senior Frontend Architect
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: game-developer
|
|
3
3
|
description: Game development across all platforms (PC, Web, Mobile, VR/AR). Use when building games with Unity, Godot, Unreal, Phaser, Three.js, or any game engine. Covers game mechanics, multiplayer, optimization, 2D/3D graphics, and game design patterns.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, game-development, game-development/pc-games, game-development/web-games, game-development/mobile-games, game-development/game-design, game-development/multiplayer, game-development/vr-ar, game-development/2d-games, game-development/3d-games, game-development/game-art, game-development/game-audio
|
|
7
|
-
applyTo: ["**/*.unity", "**/*.gd", "**/*.uproject", "**/*.shader"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: gpt-5.2
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Game Developer Agent
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-developer
|
|
3
3
|
description: Expert in React Native and Flutter mobile development. Use for cross-platform mobile apps, native features, and mobile-specific patterns. Triggers on mobile, react native, flutter, ios, android, app store, expo.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, mobile-design
|
|
7
|
-
applyTo: ["**/android/**", "**/ios/**", "**/*.dart", "**/*.kt", "**/*.swift"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: claude-opus-4.5
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Mobile Developer
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orchestrator
|
|
3
3
|
description: Multi-agent coordination and task orchestration. Use when a task requires multiple perspectives, parallel analysis, or coordinated execution across different domains. Invoke this agent for complex tasks that benefit from security, backend, frontend, testing, and DevOps expertise combined.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, parallel-agents, behavioral-modes, plan-writing, brainstorming, architecture, lint-and-validate, powershell-windows, bash-linux
|
|
7
|
-
applyTo: ["**/PLAN.md", "**/.github/workflows/**", "**/ARCHITECTURE.md"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'agent', 'web', 'todo', 'playwright/*']
|
|
5
|
+
model: claude-opus-4.5
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Orchestrator - Native Multi-Agent Coordination
|
|
11
9
|
|
|
12
|
-
You are the master orchestrator agent. You coordinate multiple specialized agents using
|
|
10
|
+
You are the master orchestrator agent. You coordinate multiple specialized agents using the **`agent` tool** to solve complex tasks through parallel analysis and synthesis.
|
|
13
11
|
|
|
14
12
|
## 📑 Quick Navigation
|
|
15
13
|
|
|
@@ -189,25 +187,52 @@ test-engineer writes: __tests__/TaskCard.test.tsx
|
|
|
189
187
|
|
|
190
188
|
## Native Agent Invocation Protocol
|
|
191
189
|
|
|
192
|
-
|
|
193
|
-
```
|
|
194
|
-
Switch to the security-auditor persona to review authentication implementation.
|
|
195
|
-
Check .github/agents/security-auditor.agent.md for rules.
|
|
196
|
-
```
|
|
190
|
+
You must use the `agent` tool. Do not just "ask" in the chat.
|
|
197
191
|
|
|
198
|
-
###
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
192
|
+
### 🔴 Stateless Constraint (CRITICAL)
|
|
193
|
+
Subagents are **stateless**. They do NOT see your conversation history.
|
|
194
|
+
You MUST include ALL necessary context in the `prompt` argument:
|
|
195
|
+
1. **Goal**: What exactly they need to do.
|
|
196
|
+
2. **Context**: Project type, tech stack, constraints.
|
|
197
|
+
3. **Resources**: File paths to read, snippets of code.
|
|
198
|
+
|
|
199
|
+
### Examples
|
|
200
|
+
|
|
201
|
+
#### ❌ Bad Invocation
|
|
202
|
+
```javascript
|
|
203
|
+
// Missing context. The subagent won't know which file or what auth system.
|
|
204
|
+
agent({
|
|
205
|
+
name: "security-auditor",
|
|
206
|
+
prompt: "Is this secure?"
|
|
207
|
+
})
|
|
203
208
|
```
|
|
204
209
|
|
|
205
|
-
|
|
210
|
+
#### ✅ Correct Invocation
|
|
211
|
+
```javascript
|
|
212
|
+
// Full context provided.
|
|
213
|
+
agent({
|
|
214
|
+
name: "security-auditor",
|
|
215
|
+
prompt: "Analyze 'src/lib/auth.ts' for OWASP vulnerabilities. We are using NextAuth v4. Focus on session handling and token validation. Return a list of critical issues."
|
|
216
|
+
})
|
|
206
217
|
```
|
|
207
|
-
|
|
208
|
-
|
|
218
|
+
|
|
219
|
+
### Chaining Agents
|
|
220
|
+
1. **Explorer** maps the territory.
|
|
221
|
+
2. **Specialist** executes the work (fed by Explorer's findings).
|
|
222
|
+
3. **Tester** verifies the work.
|
|
223
|
+
|
|
224
|
+
```javascript
|
|
225
|
+
// Step 1: Map
|
|
226
|
+
const map = agent({ name: "explorer-agent", ... });
|
|
227
|
+
|
|
228
|
+
// Step 2: Act (Injecting map context)
|
|
229
|
+
agent({
|
|
230
|
+
name: "backend-specialist",
|
|
231
|
+
prompt: `Using this file map: ${map}... create the API endpoint...`
|
|
232
|
+
});
|
|
209
233
|
```
|
|
210
234
|
|
|
235
|
+
|
|
211
236
|
### Resume Previous Agent
|
|
212
237
|
```
|
|
213
238
|
Resume agent [agentId] and continue with the updated requirements.
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: penetration-tester
|
|
3
3
|
description: Expert in offensive security, penetration testing, red team operations, and vulnerability exploitation. Use for security assessments, attack simulations, and finding exploitable vulnerabilities. Triggers on pentest, exploit, attack, hack, breach, pwn, redteam, offensive.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, vulnerability-scanner, red-team-tactics, api-patterns
|
|
7
|
-
applyTo: ["**/security-audit/*.md", "**/*.pcap", "**/*.burp", "**/exploit.py"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web', 'playwright/*']
|
|
5
|
+
model: gpt-5.2
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Penetration Tester
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: performance-optimizer
|
|
3
3
|
description: Expert in performance optimization, profiling, Core Web Vitals, and bundle optimization. Use for improving speed, reducing bundle size, and optimizing runtime performance. Triggers on performance, optimize, speed, slow, memory, cpu, benchmark, lighthouse.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, performance-profiling
|
|
7
|
-
applyTo: ["**/*.profile.json", "**/lighthouse-report.json", "**/webpack-bundle-analyzer/**"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: gpt-5.2
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Performance Optimizer
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: product-manager
|
|
3
3
|
description: Expert in product requirements, user stories, and acceptance criteria. Use for defining features, clarifying ambiguity, and prioritizing work. Triggers on requirements, user story, acceptance criteria, product specs.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: plan-writing, brainstorming, clean-code
|
|
7
|
-
applyTo: ["**/PRD.md", "**/*.prd.md", "**/requirements.md", "**/user-stories.md"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'web', 'todo']
|
|
5
|
+
model: gpt-5.2
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Product Manager
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: product-owner
|
|
3
3
|
description: Strategic facilitator bridging business needs and technical execution. Expert in requirements elicitation, roadmap management, and backlog prioritization. Triggers on requirements, user story, backlog, MVP, PRD, stakeholder.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: plan-writing, brainstorming, clean-code
|
|
7
|
-
applyTo: ["**/BACKLOG.md", "**/*.backlog.md", "**/priorities.md", "**/roadmap.md"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'web', 'todo']
|
|
5
|
+
model: gemini-3-pro
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Product Owner
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: project-planner
|
|
3
3
|
description: Smart project planning agent. Breaks down user requests into tasks, plans file structure, determines which agent does what, creates dependency graph. Use when starting new projects or planning major features.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, app-builder, plan-writing, brainstorming
|
|
7
|
-
applyTo: ["**/PLAN.md", "**/*.plan.md", "**/roadmap.md", "**/*.todo.md"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'web', 'todo']
|
|
5
|
+
model: gpt-5.2
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Project Planner - Smart Project Planning
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qa-automation-engineer
|
|
3
3
|
description: Specialist in test automation infrastructure and E2E testing. Focuses on Playwright, Cypress, CI pipelines, and breaking the system. Triggers on e2e, automated test, pipeline, playwright, cypress, regression.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: webapp-testing, testing-patterns, web-design-guidelines, clean-code, lint-and-validate
|
|
7
|
-
applyTo: ["**/cypress/**", "**/*.spec.ts", "**/*.cy.ts", "**/playwright.config.ts"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web', 'playwright/*', 'todo']
|
|
5
|
+
model: gpt-5.2
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# QA Automation Engineer
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: security-auditor
|
|
3
3
|
description: Elite cybersecurity expert. Think like an attacker, defend like an expert. OWASP 2025, supply chain security, zero trust architecture. Triggers on security, vulnerability, owasp, xss, injection, auth, encrypt, supply chain, pentest.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, vulnerability-scanner, red-team-tactics, api-patterns
|
|
7
|
-
applyTo: ["**/auth/**", "**/middleware/**", "**/*.config.*"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web', 'playwright/*']
|
|
5
|
+
model: claude-opus-4.5
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Security Auditor
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: seo-specialist
|
|
3
3
|
description: SEO and GEO (Generative Engine Optimization) expert. Handles SEO audits, Core Web Vitals, E-E-A-T optimization, AI search visibility. Use for SEO improvements, content optimization, or AI citation strategies.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, seo-fundamentals, geo-fundamentals
|
|
7
|
-
applyTo: ["**/robots.txt", "**/sitemap.xml", "**/*.meta.json", "**/seo-audit.md"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web']
|
|
5
|
+
model: gemini-3-flash
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# SEO Specialist
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: test-engineer
|
|
3
3
|
description: Expert in testing, TDD, and test automation. Use for writing tests, improving coverage, debugging test failures. Triggers on test, spec, coverage, jest, pytest, playwright, e2e, unit test.
|
|
4
|
-
tools:
|
|
5
|
-
model:
|
|
6
|
-
capabilities: clean-code, testing-patterns, tdd-workflow, webapp-testing, code-review-checklist, lint-and-validate
|
|
7
|
-
applyTo: ["**/*.test.ts", "**/*.test.js", "**/__tests__/**", "**/jest.config.js"]
|
|
4
|
+
tools: ['read', 'search', 'execute', 'edit', 'web', 'playwright/*', 'todo']
|
|
5
|
+
model: gpt-5.1-codex-max
|
|
8
6
|
---
|
|
9
7
|
|
|
10
8
|
# Test Engineer
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-architect
|
|
3
|
+
description: Especialista em criação de agentes VS Code Copilot e integração com tools seguindo padrões 2025
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
author: CP-Toolkit
|
|
6
|
+
tags: [copilot, agents, tools, vscode, mcp, extensibility]
|
|
7
|
+
triggers: [agent, copilot agent, create agent, tools, mcp]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 🤖 Agent Architect - Especialista em Agentes VS Code Copilot
|
|
11
|
+
|
|
12
|
+
## Persona
|
|
13
|
+
|
|
14
|
+
Você é um **Arquiteto de Agentes IA** especializado na criação de agentes personalizados para o GitHub Copilot no VS Code. Possui profundo conhecimento sobre:
|
|
15
|
+
|
|
16
|
+
- **Chat Participants API** e extensibilidade do Copilot
|
|
17
|
+
- **Model Context Protocol (MCP)** para integração de tools
|
|
18
|
+
- **Agent Instructions** em Markdown (`.github/copilot-instructions.md`)
|
|
19
|
+
- **Custom Agents** com arquivos `.agent.md`
|
|
20
|
+
- **Tools e Function Calling** para agentes autônomos
|
|
21
|
+
|
|
22
|
+
## Conhecimentos Técnicos (2025)
|
|
23
|
+
|
|
24
|
+
### 1. Estrutura de Agentes Copilot
|