Automatically capture reusable task patterns as command candidates after completing coding work. This skill identifies multi-step workflows that could benefit other developers across projects and logs them to command-candidates.yaml for potential automation. Use this proactively when completing tasks that represent common, repeatable patterns worth standardizing as commands.
51
56%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.claude/skills/command-capture/SKILL.mdThis skill helps AI agents identify and log task patterns that could be valuable as reusable commands (also known as recipes in Packmind). The goal is to capture workflows that represent common, repeatable patterns that developers might need across multiple projects.
TRIGGER THIS SKILL IMMEDIATELY AFTER COMPLETING WORK WHEN:
TRIGGER AFTER TASK COMPLETION - evaluate every completed task for reusability.
MANDATORY POST-TASK CHECK: After completing ANY coding task, ask yourself: "Would this workflow be useful to other developers?" If yes → trigger this skill.
User: "Set up Jest testing for this project"
AI: [Installs dependencies]
AI: [Creates jest.config.js]
AI: [Adds test scripts to package.json]
AI: [Creates example test file]
AI: [Responds "Testing is set up!" but FORGETS to log the command candidate] ❌
CORRECT BEHAVIOR:
AI: [Completes the multi-step task]
AI: [Evaluates: "This is a common 5-step workflow, reusable across projects"]
AI: [Triggers skill and logs to .claude/command-candidates.yaml]
AI: [Responds to user]As AI agents complete tasks, they often perform multi-step workflows that could benefit others:
These workflows:
By capturing them as command candidates, developers can:
Use this skill proactively and silently after completing tasks when the work you performed:
Represents a Common Pattern
Has Clear, Repeatable Steps
Could Benefit Other Developers
Has Appropriate Complexity
Would Be Used Regularly
Don't capture:
Implement the feature/fix as requested by the user.
After completing the task, mentally review:
Silently append command candidates to .claude/command-candidates.yaml:
- name: 'setup-jest-testing'
description: 'Configure Jest testing framework with TypeScript support, coverage reporting, and example test structure'
category: 'testing' # setup|testing|api|database|deployment|architecture|security|performance|documentation|refactoring|ui|process
frequency: 'monthly' # weekly|monthly|quarterly
complexity: 'medium' # simple|medium|complex
timestamp: '2026-01-09T10:30:00Z'
context: 'Added Jest configuration while setting up testing for user service'
applicability: 'cross-project' # project-specific|cross-project|universal
tags:
- 'jest'
- 'testing'
- 'typescript'
- 'configuration'Location: Always use .claude/command-candidates.yaml at the repository root.
Structure: Array of command candidate entries, most recent last.
Format Rules:
name: Kebab-case identifier for the command (e.g., "setup-jest-testing", "create-api-endpoint")description: One or two sentences summarizing what the command does and the value it providescategory: One of: setup, testing, api, database, deployment, architecture, security, performance, documentation, refactoring, ui, processfrequency: How often developers might use this
weekly: Very common tasks (multiple times per week)monthly: Regular tasks (once or more per month)quarterly: Less frequent but still valuablecomplexity: Scope and difficulty of the task
simple: 3-5 steps, 10-15 minutesmedium: 5-8 steps, 15-30 minutescomplex: 8-10 steps, 30-60 minutestimestamp: ISO 8601 format when captured (YYYY-MM-DDTHH:mm:ssZ)context: Brief note about when/why this was capturedapplicability: How widely applicable this command is
project-specific: Mainly useful for this projectcross-project: Useful across multiple projects in same domainuniversal: Useful across any project/domaintags: Relevant keywords for filtering/searchingIMPORTANT: This is an automatic, non-interrupting operation:
.claude/command-candidates.yaml laterThis skill is MANDATORY for reusable workflows - it's not optional.
Users can review .claude/command-candidates.yaml at any time to:
Task Completed: "Set up Jest testing framework with TypeScript"
Evaluation:
Logged Entry:
- name: 'setup-jest-typescript'
description: 'Install and configure Jest testing framework for TypeScript projects with coverage reporting, test scripts, and example test structure'
category: 'testing'
frequency: 'monthly'
complexity: 'medium'
timestamp: '2026-01-09T09:15:00Z'
context: 'Set up testing infrastructure for new microservice'
applicability: 'universal'
tags:
- 'jest'
- 'typescript'
- 'testing'
- 'configuration'
- 'setup'Task Completed: "Create new REST API endpoint for user management with validation"
Evaluation:
Logged Entry:
- name: 'create-rest-endpoint'
description: 'Create a new REST API endpoint with request validation, error handling, service layer implementation, and comprehensive tests'
category: 'api'
frequency: 'weekly'
complexity: 'medium'
timestamp: '2026-01-09T10:45:00Z'
context: 'Added CRUD endpoints for user resource in Express API'
applicability: 'cross-project'
tags:
- 'rest-api'
- 'express'
- 'validation'
- 'testing'
- 'crud'Task Completed: "Add new database table with TypeORM migration"
Evaluation:
Logged Entry:
- name: 'create-typeorm-migration'
description: 'Create a new TypeORM migration with entity definition, up/down methods, and testing to safely modify database schema'
category: 'database'
frequency: 'monthly'
complexity: 'medium'
timestamp: '2026-01-09T11:30:00Z'
context: 'Added user_preferences table with migration'
applicability: 'cross-project'
tags:
- 'typeorm'
- 'database'
- 'migration'
- 'schema'Task Completed: "Set up GitHub Actions workflow with linting, tests, and build"
Evaluation:
Logged Entry:
- name: 'setup-github-actions-ci'
description: 'Configure GitHub Actions CI pipeline with linting, testing, building, and coverage reporting for Node.js projects'
category: 'deployment'
frequency: 'monthly'
complexity: 'medium'
timestamp: '2026-01-09T14:00:00Z'
context: 'Added CI pipeline for new repository'
applicability: 'universal'
tags:
- 'ci-cd'
- 'github-actions'
- 'automation'
- 'devops'
- 'nodejs'Task Completed: "Implement JWT authentication middleware for Express"
Evaluation:
Logged Entry:
- name: 'add-jwt-auth-middleware'
description: 'Implement JWT authentication middleware for Express applications with token validation, error handling, and protected route examples'
category: 'security'
frequency: 'monthly'
complexity: 'medium'
timestamp: '2026-01-09T15:20:00Z'
context: 'Added authentication to API endpoints'
applicability: 'cross-project'
tags:
- 'authentication'
- 'jwt'
- 'express'
- 'middleware'
- 'security'Task Completed: "Create reusable React component with Storybook documentation"
Evaluation:
Logged Entry:
- name: 'create-react-component-with-storybook'
description: 'Create a reusable React component with TypeScript, props interface, unit tests, and Storybook documentation'
category: 'architecture'
frequency: 'weekly'
complexity: 'simple'
timestamp: '2026-01-09T16:10:00Z'
context: 'Built Button component for design system'
applicability: 'cross-project'
tags:
- 'react'
- 'components'
- 'storybook'
- 'typescript'
- 'design-system'Task Completed: "Create release workflow with version bumping, changelog updates, and git tagging"
Evaluation:
Logged Entry:
- name: 'release-workflow'
description: 'Implement a release workflow with automatic version bumping in package.json, changelog updates with ISO 8601 dates, git tag creation, and preparation for next development cycle'
category: 'process'
frequency: 'monthly'
complexity: 'medium'
timestamp: '2026-01-09T17:00:00Z'
context: 'Automated release process for semantic versioning'
applicability: 'universal'
tags:
- 'release'
- 'versioning'
- 'changelog'
- 'git'
- 'automation'Task Completed: "Add new AI agent rendering system with deployer, type mappings, frontend config, tests"
Evaluation:
Logged Entry:
- name: 'add-ai-agent-rendering-system'
description: 'Implement a new AI agent rendering pipeline including deployer class, type definitions, registry registration, frontend UI integration, documentation, and comprehensive unit/integration tests'
category: 'architecture'
frequency: 'quarterly'
complexity: 'complex'
timestamp: '2026-01-09T17:30:00Z'
context: 'Added Continue.dev support to Packmind rendering system'
applicability: 'project-specific'
tags:
- 'monorepo'
- 'integration'
- 'ai-agents'
- 'deployer'
- 'full-stack'Task Completed: "Create new settings page with routing, form components, validation, and API integration"
Evaluation:
Logged Entry:
- name: 'create-ui-settings-page'
description: 'Implement a new UI page with routing configuration, form components, client-side validation, API integration, loading states, error handling, and tests'
category: 'ui'
frequency: 'weekly'
complexity: 'medium'
timestamp: '2026-01-09T18:00:00Z'
context: 'Created user preferences settings page'
applicability: 'cross-project'
tags:
- 'react'
- 'routing'
- 'forms'
- 'validation'
- 'frontend'Task Completed: "Add new use case in hexagonal architecture with ports, adapters, and domain logic"
Evaluation:
Logged Entry:
- name: 'add-hexagonal-use-case'
description: 'Implement a new use case following hexagonal architecture with domain logic, port interfaces, adapter implementations, dependency injection, and comprehensive tests for each layer'
category: 'architecture'
frequency: 'monthly'
complexity: 'complex'
timestamp: '2026-01-09T18:30:00Z'
context: 'Added user notification use case with ports and adapters'
applicability: 'cross-project'
tags:
- 'hexagonal-architecture'
- 'clean-architecture'
- 'use-case'
- 'ports-adapters'
- 'domain-driven-design'After implementing a feature:
User: "Set up testing for the new service"
[AI implements Jest with config, example tests, coverage setup]
[AI thinking: "This is a repeatable pattern - Jest setup is common"]
[AI thinking: "5-7 clear steps, would be useful across projects"]
[AI thinking: "Medium complexity, done monthly across teams"]
[AI silently logs command candidate to .claude/command-candidates.yaml]
AI: "I've set up Jest testing with TypeScript support, coverage reporting,
and example test structure. You can run tests with 'npm test'."User sees the implementation. Later, they can review .claude/command-candidates.yaml to see what reusable patterns emerged.
# .claude/command-candidates.yaml
- name: string # Kebab-case: "setup-jest-testing"
description: string # 1-2 sentences: "Configure Jest with TypeScript..."
category: string # setup|testing|api|database|deployment|architecture|security|performance|documentation|refactoring|ui|process
frequency: string # weekly|monthly|quarterly
complexity: string # simple|medium|complex
timestamp: string # ISO 8601: "2026-01-09T10:30:00Z"
context: string # Brief note: "Added testing to user service"
applicability: string # project-specific|cross-project|universal
tags: array # Keywords
- string # "jest", "typescript", etc.Once .claude/command-candidates.yaml accumulates entries, developers can:
implicit-decision-capture: Command candidates may reference specific technical decisions
Command involves choosing patterns → decisions.yaml has the technical rationale
Repeated uncertainties → Opportunity for a command to standardize the approachsignal-capture: Commands represent formalized workflows based on standards
Standards define "how" → Commands automate the "what"All four work together:
REMEMBER: This skill is MANDATORY after completing multi-step coding tasks. Evaluate every completed task for reusability. If the workflow could benefit other developers, you MUST log it - this is not optional. The logging happens automatically without user interaction. Building a library of reusable workflows is a key goal of this skill.
e198635
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.