一键导入
task-create
Create new tasks or task groups in the project task manager. Uses task-cli.sh for data operations. Use when asked to plan, create, or add tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create new tasks or task groups in the project task manager. Uses task-cli.sh for data operations. Use when asked to plan, create, or add tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute tasks from the project task manager. Uses task-cli.sh to read tasks and update status. Performs the work described in task instructions with a structured workflow.
Set up Task Manager files for the current project. Initializes the configured task directory and installs task-cli.sh.
| name | task-create |
| description | Create new tasks or task groups in the project task manager. Uses task-cli.sh for data operations. Use when asked to plan, create, or add tasks. |
You create tasks in the project's task management system. The task directory can vary by project.
Resolve TASKS_DIR before running commands:
TASK_MANAGER_TASKS_DIR is set, use that..claude/tasks exists, use .claude/tasks for backward compatibility..agents/tasks exists, use .agents/tasks..kiro/tasks exists, use .kiro/tasks..idea/agents-tasks exists, use .idea/agents-tasks.TASK_MANAGER_AGENT=codex or you are running in Codex, use .agents/tasks; if TASK_MANAGER_AGENT=kiro-cli or you are running in Kiro, use .kiro/tasks; otherwise use .claude/tasks.IMPORTANT: Always use a relative path for task-cli.sh — never an absolute path. This ensures permission rules match correctly.
TASKS_DIR="${TASK_MANAGER_TASKS_DIR:-$(case "${TASK_MANAGER_AGENT:-}" in codex) echo .agents/tasks ;; kiro|kiro-cli) echo .kiro/tasks ;; *) echo .claude/tasks ;; esac)}"
# List existing groups and active tasks (includes tracker config)
bash "$TASKS_DIR/task-cli.sh" list
# Create a new group (prints groupId)
bash "$TASKS_DIR/task-cli.sh" add-group "Group Name"
# Create a new task in a group (prints taskId, creates MD file)
bash "$TASKS_DIR/task-cli.sh" add-task <groupId> "Task Name" "Optional description"
Note: list outputs tracker config automatically — no need to call config separately.
If task-cli.sh is not found at $TASKS_DIR/task-cli.sh, copy it from scripts/task-cli.sh.
Arguments via $ARGUMENTS — parsed flexibly. Examples:
/task-create "Backend API" "Add authentication" "Implement JWT auth flow"/task-create "Refactoring" "Extract utils"/task-create (no args — ask user interactively)Resolve TASKS_DIR using the rules above. Check if task-cli.sh exists at $TASKS_DIR/task-cli.sh. If not, look for it at scripts/task-cli.sh and copy it.
List existing groups: bash "$TASKS_DIR/task-cli.sh" list
Find or create the group:
# If a group with this name exists, use its ID from the list output
# Otherwise create a new one:
GROUP_ID=$(bash "$TASKS_DIR/task-cli.sh" add-group "Group Name")
Create the task(s):
TASK_ID=$(bash "$TASKS_DIR/task-cli.sh" add-task "$GROUP_ID" "Task Name" "Description")
This automatically creates the markdown file at $TASKS_DIR/docs/<groupId>/<taskId>.md.
If the user wants to add details to the MD file, edit it after creation.
Display a summary:
Created:
Group: <name> (new/existing) [<groupId>]
Task: <name> [<taskId>]
MD file: <TASKS_DIR>/docs/<groupId>/<taskId>.md
The list command shows tracker config at the top of its output. If a tracker is configured (type is not NONE):
When a user mentions an external issue ID (e.g. "ENG-123", "PROJ-42", "#15"):
bash "$TASKS_DIR/task-cli.sh" add-group "ENG-123 Implement authentication"After creating the task group locally, check if:
A tracker is configured (type is not NONE)
You have access to the corresponding MCP tool:
save_issue tool. Prepend returned ID to group name.gh issue create CLI. Prepend #<number>.If no MCP tool available, inform the user and continue without external creation.
If the user provides multiple tasks at once, create them all in the same group. Parse the input flexibly — the user might list tasks in natural language.