.claude/skills/task/SKILL.md
Create a step-by-step implementation plan for a feature or task. Breaks down work into actionable tasks tracked via the task system. Use when user says "plan", "create tasks", "break down", or "make a plan for".
npx skillsauth add YaroslavKomarov/ShedulerBot ai-factory.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.
Create a detailed, actionable implementation plan broken into trackable tasks.
FIRST: Read .ai-factory/DESCRIPTION.md if it exists to understand:
Use this context when:
Check git repository:
git rev-parse --is-inside-work-tree 2>/dev/null || git init
Determine plan file name:
If called from /ai-factory.feature - use the plan file name passed (e.g., .ai-factory/features/feature-user-auth.md)
If called directly (/ai-factory.task) - ALWAYS use .ai-factory/PLAN.md
.ai-factory/PLAN.mdFrom $ARGUMENTS, identify:
If requirements are ambiguous:
I need a few clarifications before creating the plan:
1. [Specific question about scope]
2. [Question about approach]
If not already specified (from /ai-factory.feature), ask:
Should I include test tasks in the plan?
- [ ] Yes, include tests
- [ ] No, skip tests
IMPORTANT: If user says NO to tests:
Before planning, understand the existing code:
Create tasks using TaskCreate with clear, actionable items:
## Implementation Plan: [Feature Name]
### Tasks:
1. **[Task Subject]**
Description: [What needs to be done]
Files: [Files to modify/create]
2. **[Task Subject]**
Description: [What needs to be done]
Files: [Files to modify/create]
...
Task Guidelines:
Use TaskUpdate to set blockedBy relationships:
Write the plan to the determined plan file:
# Implementation Plan: [Feature Name]
Branch: [current branch or "none"]
Created: [date]
## Settings
- Testing: yes/no
- Logging: verbose/standard/minimal
- Docs: yes/no
## Commit Plan
<!-- For plans with 5+ tasks, define commit checkpoints -->
- **Commit 1** (after tasks 1-3): "feat: add base models and types"
- **Commit 2** (after tasks 4-6): "feat: implement core service logic"
- **Commit 3** (after tasks 7-8): "feat: add API endpoints"
## Tasks
### Phase 1: Setup
- [ ] Task 1: [description]
- [ ] Task 2: [description]
### Phase 2: Core Implementation
- [ ] Task 3: [description] (depends on 1, 2)
- [ ] Task 4: [description]
<!-- 🔄 Commit checkpoint: tasks 1-4 -->
### Phase 3: Integration
- [ ] Task 5: [description] (depends on 3, 4)
<!-- 🔄 Commit checkpoint: tasks 5+ -->
Commit Plan Rules:
Before saving, ensure directory exists:
mkdir -p .ai-factory/features # only when saving to features/
Save to: .ai-factory/PLAN.md (direct call) or .ai-factory/features/<branch-name>.md (from /ai-factory.feature)
Present to user:
Plan saved to: [filename].md
Ready to start? Use `/ai-factory.implement` to begin execution.
TaskCreate:
subject: "Implement user login endpoint"
description: |
Create POST /api/auth/login endpoint that:
- Accepts email and password
- Validates credentials against database
- Returns JWT token on success
- Returns 401 on invalid credentials
Files: src/api/auth/login.ts, src/services/auth.ts
activeForm: "Implementing login endpoint"
Input: /ai-factory.task Add product search API
Testing: No
Plan:
(No test tasks included)
Input: /ai-factory.task Add product search API
Testing: Yes
Plan:
.ai-factory/PLAN.md when called directly, branch-named files only from /ai-factory.featureEvery task description MUST include logging requirements. AI-generated code often has subtle bugs - verbose logging is essential for debugging.
When writing task descriptions, include:
TaskCreate:
subject: "Implement order processing service"
description: |
Create OrderService with processOrder method that:
- Validates order data
- Calculates totals with tax
- Submits to payment gateway
- Returns confirmation
LOGGING REQUIREMENTS:
- Log function entry with order ID and item count
- Log validation result (pass/fail with reasons)
- Log payment gateway request and response
- Log any errors with full context (order state, error details)
- Use format: [ServiceName.method] message {data}
- Use log levels (DEBUG/INFO/WARN/ERROR)
- Make logs configurable via LOG_LEVEL env var
Files: src/services/order.ts
activeForm: "Implementing order service"
Task descriptions should specify that logs must be:
DO NOT create tasks without logging instructions - this leads to hard-to-debug implementations.
Tell user:
Plan created with [N] tasks.
Plan file: [filename].md
To start implementation, run:
/ai-factory.implement
To view tasks:
/tasks (or use TaskList)
Context is heavy after planning. All results are saved to the plan file — suggest freeing space:
AskUserQuestion: Free up context before continuing?
Options:
1. /clear — Full reset (recommended)
2. /compact — Compress history
3. Continue as is
.ai-factory/PLAN.md (direct /ai-factory.task call):
/ai-factory.implement will ask to delete itBranch-named file (from /ai-factory.feature):
/ai-factory.implement will NOT suggest deletiondevelopment
Verify completed implementation against the plan. Checks that all tasks were fully implemented, nothing was forgotten, code compiles, tests pass, and quality standards are met. Use after "/ai-factory.implement" completes, or when user says "verify", "check work", "did we miss anything".
tools
# Supabase TypeScript Patterns Patterns for using Supabase with TypeScript in this project. Uses **service role key** (server-side only). Tables are prefixed `sch_`. ## Client Setup ```typescript // src/db/client.ts import { createClient } from "@supabase/supabase-js"; import type { Database } from "./types"; // generated types export const supabase = createClient<Database>( process.env.SUPABASE_URL!, process.env.SUPABASE_SERVICE_ROLE_KEY!, // server-side only, bypasses RLS { auth:
development
Generate professional Agent Skills for Claude Code and other AI agents. Creates complete skill packages with SKILL.md, references, scripts, and templates. Use when creating new skills, generating custom slash commands, or building reusable AI capabilities. Validates against Agent Skills specification.
testing
Security audit checklist based on OWASP Top 10 and best practices. Covers authentication, injection, XSS, CSRF, secrets management, and more. Use when reviewing security, before deploy, asking "is this secure", "security check", "vulnerability".