Create new tasks in the s9 task database with proper formatting and validation
I provide comprehensive instructions for creating new tasks in the s9 task database using the task_create tool. Use this skill when you need to add new work items to the project.
This skill uses the task_create tool, which:
task_create(
title="Brief task title",
role="Administrator|Architect|Engineer|Tester|Documentarian|Designer|Inspector|Operator|Historian",
priority="CRITICAL|HIGH|MEDIUM|LOW",
category="Category name", # Optional
description="Detailed description of what needs to be done and why", # Optional
epic="Epic ID to link this task to" # Optional
)
Note: Task IDs are auto-generated based on role and priority. You do not need to provide a task ID.
Session Context: Mission ID and role are automatically provided by OpenCode's session context - you don't need to specify them.
Task IDs are auto-generated using the format: PREFIX-PRIORITY-NUMBER
ADM - AdministratorARC - ArchitectENG - EngineerTST - TesterDOC - DocumentarianDES - DesignerINS - InspectorOPR - OperatorHIS - HistorianOPR-H-0001 - First high-priority Operator taskENG-C-0005 - Critical Engineer task (fifth task overall)DOC-M-0042 - Medium-priority Documentarian task (42nd task overall)The number increments globally across all roles and priorities, ensuring each task has a unique ID.
Assign to the role that will do most of the work:
Common categories:
Architecture - System design workTesting - Test creation and QADocumentation - Docs and guidesSecurity - Security reviews and fixesPerformance - Optimization workBug Fix - Fixing defectsFeature - New functionalityRefactoring - Code improvementInfrastructure - Deployment and toolingUse the epic parameter to link a task to an epic:
# Create task linked to an epic
task_create(
title="Configure Gateway",
description="Deploy gateway to staging environment with proper configuration",
role="Operator",
priority="HIGH",
epic="EPC-H-0001"
)
When to link to epics:
# Create a high-priority Engineer task
result = task_create(
title="Implement Rate Limiting Middleware",
description="Add rate limiting to protect API endpoints from abuse. Implement token bucket rate limiting with configurable limits per endpoint",
role="Engineer",
priority="HIGH",
category="Security"
)
# Returns:
# {
# "task_id": "ENG-H-0007",
# "title": "Implement Rate Limiting Middleware",
# "status": "TODO",
# "file_path": ".opencode/work/tasks/ENG-H-0007.md"
# }
project.db.opencode/work/tasks/ENG-H-0007.md with templateTODOThe tool validates:
Verify task was created using the task_show tool:
# Use the auto-generated task ID from the create result
task_show(task_id="ENG-H-0007")
epic parameter doesn't existtask_list tool with epic category filterRelated Skills:
task-query - Finding and listing taskstask-claim - Claiming tasks to work ontask-management - Overview of task systemDocumentation:
.opencode/data/README.md - Complete s9 system reference