一键导入
task-setup
Set up Task Manager files for the current project. Initializes the configured task directory and installs task-cli.sh.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up Task Manager files for the current project. Initializes the configured task directory and installs task-cli.sh.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | task-setup |
| description | Set up Task Manager files for the current project. Initializes the configured task directory and installs task-cli.sh. |
Configure the current project for the Task Manager plugin and agent skills.
tasks.json if missingtask-cli.sh if missing.claude/settings.local.json with permissions for task management pathsResolve TASKS_DIR:
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.mkdir -p "$TASKS_DIR/docs"
If $TASKS_DIR/tasks.json doesn't exist, create it:
{"groups": []}
If $TASKS_DIR/task-cli.sh doesn't exist, check if it's available at:
scripts/task-cli.sh (in current project, if this is the plugin repo)If found, copy it and make executable. If not found, inform the user they need to install the Task Manager plugin skills first.
If you are running in Claude Code, read .claude/settings.local.json if it exists. Merge the following permissions into the existing allow array (don't replace existing rules):
{
"permissions": {
"allow": [
"Bash(bash .claude/tasks/task-cli.sh:*)",
"Bash(bash .agents/tasks/task-cli.sh:*)",
"Bash(bash .kiro/tasks/task-cli.sh:*)",
"Bash(bash .idea/agents-tasks/task-cli.sh:*)",
"Bash(git log:*)",
"Bash(git rev-parse:*)",
"Bash(git add:*)",
"Bash(git commit:*)",
"Bash(git diff:*)",
"Bash(git status:*)",
"Read(.claude/tasks/**)",
"Edit(.claude/tasks/**)",
"Write(.claude/tasks/**)",
"Read(.agents/tasks/**)",
"Edit(.agents/tasks/**)",
"Write(.agents/tasks/**)",
"Read(.kiro/tasks/**)",
"Edit(.kiro/tasks/**)",
"Write(.kiro/tasks/**)",
"Read(.idea/agents-tasks/**)",
"Edit(.idea/agents-tasks/**)",
"Write(.idea/agents-tasks/**)"
]
}
}
If the file doesn't exist, create it with these permissions.
If it already exists, only add rules that are not already present.
This file is gitignored — it stays local to the machine.
If you are running in Codex, prefer the resolved TASKS_DIR; do not create another task directory when one already exists.
Check that the selected local task directory is covered by .gitignore. If .claude/, .agents/, or .idea/ is already ignored for the selected path, it's fine. If not, suggest adding the relevant path.
Show a summary:
Task Manager setup complete:
✓ <TASKS_DIR>/tasks.json
✓ <TASKS_DIR>/task-cli.sh
✓ .claude/settings.local.json (N permission rules, Claude only)
You can now use task-create and task-execute for task management operations.
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.
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.