Skip to content
effective-tasks logo

Writing Effective SIMBL Tasks

effective-tasks

Best practices for writing SIMBL tasks that Claude can execute with zero context. Use when creating or refining tasks for maximum clarity.

SKILL.md

Full skill instructions

Writing Effective SIMBL Tasks

Write tasks that Claude Code can execute with ZERO context - even in a fresh session.

Goal

A well-written task contains everything needed to complete it without searching the codebase for context. Future sessions shouldn't need to ask "what did we mean by this?"

Title Formula

Action verb + specific noun + context

Good Titles

  • "Add email validation to signup form"
  • "Fix null pointer in UserService.getProfile()"
  • "Refactor auth middleware to use JWT"
  • "Update error messages in checkout flow"
  • "Remove deprecated analytics calls"

Bad Titles

  • "Fix the bug" (what bug?)
  • "Update user stuff" (too vague)
  • "Auth" (not actionable)
  • "Investigate issue" (no clear outcome)
  • "Improvements" (not specific)

Description Structure

1. Context (What Exists Now)

Provide concrete references:

  • File paths: src/​services/​auth.ts
  • Function names: validateToken()
  • Current behavior: "Returns 500 when token expired"
  • Error messages: "TypeError: Cannot read property 'id' of null"
### Context
- File: `src/​services/​UserService.ts:45`
- Function: `getProfile(userId)`
- Current: Returns 500 on missing user
- Stack trace shows null dereference at line 52

2. Requirement (What Should Change)

Be explicit about:

  • Expected behavior: "Return 401 with error message"
  • Constraints: "Must be backwards compatible"
  • Edge cases to handle: "Null user, expired token, missing permissions"
### Requirement
- Return 404 with `{ error: "user_not_found" }` for missing users
- Keep existing behavior for valid users
- Add null check before accessing user.id

3. Relevant Code Snippets

Paste the specific code that needs changing - don't make Claude search for it:

### Current Code
\`\`\`typescript
// src/​services/​UserService.ts:45-55
async getProfile(userId: string) {
  const user = await this.repo.findById(userId);
  return {
    id: user.id,  // <-- crashes here when user is null
    name: user.name
  };
}
\`\`\`

Acceptance Criteria

Concrete, testable conditions with checkboxes:

### Acceptance Criteria
- [ ] `getProfile()` returns 404 for non-existent users
- [ ] Response includes `{ error: "user_not_found" }`
- [ ] Existing tests pass
- [ ] New test covers null user case
- [ ] No console errors in browser

Good Criteria

  • Specific and verifiable
  • Binary (done or not done)
  • Testable by running code

Bad Criteria

  • "Works correctly" (vague)
  • "Handles errors well" (subjective)
  • "Is performant" (no metric)

Context Embedding Tips

Paste Error Messages Directly

Error: TypeError: Cannot read property 'id' of null
    at UserService.getProfile (src/​services/​UserService.ts:52:15)
    at async ProfileController.show (src/​controllers/​profile.ts:18:22)

Reference Related Work

Related: task-12 (same service), task-8 (similar null handling)
See also: PR #234 where we fixed the same pattern in OrderService

Include External References

Per RFC 7519 section 4.1 - JWT claims must include 'exp'
Following pattern from: https://docs.example.com/​auth#tokens

Add File Paths Even If Obvious

Files to modify:
- src/​services/​UserService.ts (main fix)
- src/​services/​__tests__/​UserService.test.ts (add test)
- src/​types/​errors.ts (add UserNotFoundError if needed)

Priority Guidelines

Match priority to actual urgency:

PriorityUse For
p1Production broken, data loss, security issue
p2Important feature, significant bug
p3Normal development work
p4Nice to have, polish
p5-p9Backlog items, someday/​maybe

Complete Task Example

## task-42 Fix null user crash in getProfile

[p2] [backend] [bug]

### Context
- File: `src/​services/​UserService.ts:45-55`
- Current: `getProfile()` crashes when user not found
- Error: `TypeError: Cannot read property 'id' of null`
- Reproduces: Call `/​api/​users/​nonexistent-id`

### Current Code
\`\`\`typescript
async getProfile(userId: string) {
  const user = await this.repo.findById(userId);
  return {
    id: user.id,  // crashes when user is null
    name: user.name
  };
}
\`\`\`

### Requirement
Return 404 response instead of crashing. Use existing NotFoundError pattern from OrderService.

### Acceptance Criteria
- [ ] GET /​api/​users/:id returns 404 for non-existent user
- [ ] Response body: `{ error: "user_not_found", userId: "<id>" }`
- [ ] Existing user tests still pass
- [ ] New test: "returns 404 for missing user"

### Notes
See OrderService.getOrder() for similar pattern.
Related: task-38 (added NotFoundError class)

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View