← 返回 Skills 市场
hahamumu08

Add Task

作者 hahamumu08 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
70
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install add-task
功能描述
creates draft task file in .specs/tasks/draft/ with original user intent
使用说明 (SKILL.md)

Create Draft Task File

Role

Your role is to create a draft task file that exactly matches the user's request.

Goal

Create a task file in .specs/tasks/draft/ with:

  • Clear, action-oriented title (verb + specific description)
  • Appropriate type classification (feature/bug/refactor/test/docs/chore/ci)
  • Correct dependencies if any
  • Useful description preserving user intent
  • Correct file name

Input

  • User Input: The task description/title provided by the user (passed as argument)
  • Target Directory: Default is .specs/tasks/draft/

Instructions

1. Ensure Directory Structure

Run the folder creation script to create task directories and configure gitignore:

bash ${CLAUDE_PLUGIN_ROOT}/scripts/create-folders.sh

This creates:

  • .specs/tasks/draft/ - New tasks awaiting analysis
  • .specs/tasks/todo/ - Tasks ready to implement
  • .specs/tasks/in-progress/ - Currently being worked on
  • .specs/tasks/done/ - Completed tasks
  • .specs/scratchpad/ - Temporary working files (gitignored)

2. Analyze Input

  1. Parse the user's request:

    • Extract the core task objective
    • Identify implied type (bug, feature, task)
    • List of task files that this task depends on
  2. Clarify if ambiguous (only if truly unclear):

    • Is this a bug fix or new feature?
    • Any related tasks or dependencies? (if not proided, then assume none)

3. Structure the Task

  1. Create action-oriented title:

    • Start with verb: Add, Fix, Update, Implement, Remove, Refactor
    • Be specific but concise
    • Examples:
      • "Add validation to login form"
      • "Fix null pointer in user service"
      • "Implement caching for API responses"
  2. Determine type:

    Type Use When
    feature New functionality or capability
    bug Something is broken or not working correctly
    refactor Code restructuring without changing behavior
    test Adding or updating tests
    docs Documentation changes only
    chore Maintenance tasks, dependency updates
    ci CI/CD configuration changes

4. Generate File Name

  1. Create short name from the task title:

    • Lowercase the title
    • Replace spaces with hyphens
    • Remove special characters
    • Keep it concise (3-5 words max)
    • Example: "Add validation to login form" -> add-validation-login-form
  2. Form file name: \x3Cshort-name>.\x3Cissue-type>.md

    • Examples:
      • add-validation-login-form.feature.md
      • fix-null-pointer-user-service.bug.md
      • restructure-auth-module.refactor.md
      • add-unit-tests-api.test.md
      • update-readme.docs.md
      • upgrade-dependencies.chore.md
      • add-github-actions.ci.md
  3. Verify uniqueness: Check .specs/tasks/draft/, .specs/tasks/todo/, .specs/tasks/in-progress/, and .specs/tasks/done/ for existing files with same name

5. Create Task File

Use Write tool to create .specs/tasks/todo/\x3Cshort-name>.\x3Cissue-type>.md:

---
title: \x3CACTION-ORIENTED TITLE>
depends_on: \x3Clist of task files that this task depends on>
---

## Initial User Prompt

{EXACT user input as provided}

## Description

// Will be filled in future stages by business analyst

Constraints

  • Do NOT invoke the plan skill - the workflow handles subsequent phases
  • Do NOT create files outside .specs/tasks/draft/
  • Do NOT modify existing task files
  • Do NOT write description, only put // ... placeholder as specified in the task file.
  • Do NOT write depends_on section if no dependencies are provided.

Expected Output

Return to the orchestrator:

  1. Task file path: Full path to created file (e.g., .specs/tasks/todo/add-validation-login-form.feature.md)
  2. Generated title: The action-oriented title created
  3. Issue type: task, bug, or feature

Format:

Created task file: .specs/tasks/draft/\x3Cname>.\x3Ctype>.md
Title: \x3Caction-oriented title>
Type: \x3Ctask|bug|feature>
Depends on: \x3Clist of task files that this task depends on>

Success Criteria

  • Directories .specs/tasks/draft/, .specs/tasks/todo/, .specs/tasks/in-progress/, .specs/tasks/done/ exist
  • Task file created in .specs/tasks/draft/ with correct naming convention (\x3Cname>.\x3Ctype>.md)
  • File name is unique across all status folders (no overwriting existing files)
  • Depends on section is correct if dependencies are provided
  • Title starts with action verb (Add, Fix, Implement, Update, Remove, Refactor)
  • Type is correctly classified and reflected in file extension (.feature.md, .bug.md, .refactor.md, .test.md, .docs.md, .chore.md, .ci.md)
  • Original user input preserved in "Initial User Prompt" section
  • Description is empty placeholder // Will be filled in future stages by business analyst

Examples

Test task (.specs/tasks/draft/add-unit-tests-auth.test.md):

---
title: Add unit tests for auth module
---

## Initial User Prompt

add tests for auth

## Description

// Will be filled in future stages by business analyst

Bug with context (.specs/tasks/draft/fix-login-timeout.bug.md):

---
title: Fix login timeout on slow connections
---

## Initial User Prompt

users getting 504 errors on slow wifi

## Description

// Will be filled in future stages by business analyst

Feature request (.specs/tasks/draft/implement-dark-mode.feature.md):

---
title: Implement dark mode toggle
---

## Initial User Prompt

add dark mode to settings page

## Description

// Will be filled in future stages by business analyst
安全使用建议
This skill mostly does what it says (create draft task files) but the instructions are inconsistent and reference an undeclared environment variable. Before installing or using it, ask the author to: (1) fix the target path ambiguity (should files be created under .specs/tasks/draft/ or .specs/tasks/todo/?), (2) make the list of allowed issue types consistent across the document and expected output, (3) declare any environment variables the instructions rely on (e.g., CLAUDE_PLUGIN_ROOT) and explain what create-folders.sh does and where it comes from, and (4) confirm the skill will not overwrite existing files and that create-folders.sh is safe to run. If you cannot get those clarifications, treat the skill as untrusted because it may write files to unintended locations or execute an unexpected script path.
功能分析
Type: OpenClaw Skill Name: add-task Version: 1.0.0 The skill bundle includes instructions in SKILL.md to execute a shell script (`create-folders.sh`) via `bash ${CLAUDE_PLUGIN_ROOT}/scripts/create-folders.sh`. While this is intended for directory setup, executing shell scripts from environment-defined paths is a high-risk capability. There is also a logical inconsistency between the instructions and constraints regarding the target directory (mixing `.specs/tasks/draft/` and `.specs/tasks/todo/`), which could lead to unintended file placement.
能力评估
Purpose & Capability
The name/description (create draft task files under .specs/tasks/draft/) matches the overall actions in SKILL.md (generate task metadata and write a file). However the docs contain internal contradictions about the target folder and accepted types (see instruction_scope). No unrelated credentials or binaries are requested, which is consistent with the stated purpose.
Instruction Scope
The SKILL.md instructs filesystem writes and running a helper script — expected for this purpose — but contains concrete contradictions: (1) top-level description and many places say create files in .specs/tasks/draft/, while the 'Create Task File' block instructs the agent to use the Write tool to create .specs/tasks/todo/<name>.<type>.md; (2) 'Do NOT create files outside .specs/tasks/draft/' conflicts with the todo path; (3) Expected Output lists only types 'task|bug|feature' while other sections and examples include many extensions (refactor/test/docs/chore/ci), causing ambiguity; (4) the instructions reference an environment variable ${CLAUDE_PLUGIN_ROOT} to run a folder-creation script but the skill declares no required env vars. These inconsistencies could cause the agent to write files in the wrong place or fail to run the script.
Install Mechanism
No install spec and no code files — instruction-only skill. That minimizes install-time risk because nothing is downloaded or executed automatically beyond the platform-provided tools and whatever scripts the skill tells the agent to run locally.
Credentials
The skill does not request credentials (good), but it references an undeclared environment variable (${CLAUDE_PLUGIN_ROOT}) for running create-folders.sh. The SKILL.md reads that script from the plugin root; referencing env vars that aren't declared by the skill is a mismatch and should be clarified (the agent may fail or run an unexpected script if that variable is set to an unexpected path).
Persistence & Privilege
The skill is not always-enabled and doesn't request elevated or cross-skill configuration. It instructs writing files only into project-scoped .specs directories (which is coherent with its purpose).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install add-task
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /add-task 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release for sdd:add-task skill. - Creates a draft task file in .specs/tasks/draft/ based on the user's request. - Automatically generates a clear, action-oriented title and selects the correct issue type (feature, bug, etc.). - Supports task dependencies when provided. - Ensures correct file naming, uniqueness, and folder structure. - Preserves original user prompt and uses a description placeholder for analyst completion later.
元数据
Slug add-task
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Add Task 是什么?

creates draft task file in .specs/tasks/draft/ with original user intent. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。

如何安装 Add Task?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install add-task」即可一键安装,无需额外配置。

Add Task 是免费的吗?

是的,Add Task 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Add Task 支持哪些平台?

Add Task 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Add Task?

由 hahamumu08(@hahamumu08)开发并维护,当前版本 v1.0.0。

💬 留言讨论