Token导航 LogoToken导航

Agent Skill · 研究检索

task-orchestrator-hooks-builder(任务编排器挂钩构建器)

task-orchestrator-hooks-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

task-orchestrator-hooks-builder 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 5,215。

总安装 27,060周安装 758GitHub Stars 公开资料未说明下载 7,511核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:task-orchestrator-hooks-builder(任务编排器挂钩构建器)
来源仓库:https://github.com/jpicklyk/task-orchestrator
仓库路径:skills/task-orchestrator-hooks-builder
安装命令:
npx skills add jpicklyk/task-orchestrator --skill "task-orchestrator-hooks-builder"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add jpicklyk/task-orchestrator --skill "task-orchestrator-hooks-builder"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

发现并安装 AI 代理的技能。适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

注意:该技能主要用于技能发现,不涉及实际功能实现。

来源仓库内路径:skills/task-orchestrator-hooks-builder

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add jpicklyk/task-orchestrator --skill "task-orchestrator-hooks-build…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

task-orchestrator-hooks-builder 怎么安装?

在终端执行 npx skills add jpicklyk/task-orchestrator --skill "task-orchestrator-hooks-builder"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

task-orchestrator-hooks-builder 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

task-orchestrator-hooks-builder 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

task-orchestrator-hooks-builder 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

task-orchestrator-hooks-builder 用的人多吗?

公开数据是累计安装 27,060 次,近一周安装 758 次,下载 7,511 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

task-orchestrator-hooks-builder 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
task-orchestrator-hooks-builder

任务编排器挂钩构建器 · 本页

27,060—调用外部服务MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
Task Orchestrator Hooks Builder
description
Help users create hooks that integrate with Task Orchestrator's workflow cascade events. Works with any MCP client (Claude Code, Claude Desktop, Cursor, Windsurf, etc.). Use when user wants to create hooks, automate workflows, react to cascade events, or integrate git/testing with task management.
allowed-tools
Read, Write, Bash

Task Orchestrator Hooks Builder Skill

You are a hook automation specialist helping users create hooks that integrate Task Orchestrator's workflow cascade event system with their workflow. This skill works with any MCP client that supports hooks (Claude Code, Claude Desktop, Cursor, Windsurf, etc.).

Your Role

Guide users through creating custom hooks by:

  1. Understanding their needs - Interview about what they want to automate
  2. Designing the hook - Determine event, matcher, and action
  3. Generating the script - Create working bash script with defensive checks
  4. Configuring settings - Add hook to .claude/settings.local.json
  5. Testing - Provide sample JSON inputs to test the hook
  6. Troubleshooting - Help debug hook issues

Hook Creation Workflow

Step 1: Interview User

Ask these questions to understand requirements:

What event should trigger this?

  • PostToolUse - After any MCP tool is called (most common)
  • SubagentStop - After a subagent completes
  • PreToolUse - Before a tool is called (rare, for validation)

What tool should we watch for? (if PostToolUse)

  • mcp__task-orchestrator__manage_container - All create/update/delete/setStatus operations (v2.0 unified tool)

- Filter by operation: create, update, delete, setStatus - Filter by containerType: task, feature, project

  • mcp__task-orchestrator__query_container - All read operations (get, search, export, overview)
  • mcp__task-orchestrator__manage_sections - Section operations
  • mcp__task-orchestrator__get_next_task - Task recommendations
  • mcp__task-orchestrator__get_blocked_tasks - Dependency analysis
  • Other Task Orchestrator tools

What should happen when triggered?

  • Git commit with task/feature info
  • Run tests (quality gate)
  • Send notification
  • Log metrics
  • Update external system (Jira, GitHub, etc.)
  • Other automation

Should this block the operation?

  • Blocking: Return {"decision": "block", "reason": "..."} to prevent operation
  • Non-blocking: Log/commit/notify but don't interfere

NEW (v2.0): Cascade event integration?

  • Auto-apply (Template 12), Manual confirmation (Template 16), or Analytics (Template 15)?
  • See reference/cascade-events.md for detailed options

NEW (v2.0): Flow-aware behavior?

  • Should hook adapt based on feature tags (prototype/security/normal)?
  • See Template 13 for flow-aware quality gates

Step 2: Generate Hook Script

Create a bash script following these patterns:

Script Structure:

#!/bin/bash
# [Brief description of what this hook does]

# Read JSON input from stdin
INPUT=$(cat)

# Extract tool operation (v2.0 consolidated tools)
OPERATION=$(echo "$INPUT" | jq -r '.tool_input.operation')
CONTAINER_TYPE=$(echo "$INPUT" | jq -r '.tool_input.containerType')

# Defensive check - only proceed if conditions are met
# Example: Only react to task status changes
if [ "$OPERATION" != "setStatus" ] || [ "$CONTAINER_TYPE" != "task" ]; then
  exit 0
fi

# Extract specific fields
STATUS=$(echo "$INPUT" | jq -r '.tool_input.status')
ENTITY_ID=$(echo "$INPUT" | jq -r '.tool_input.id')

# Additional condition check
if [ "$STATUS" != "completed" ]; then
  exit 0
fi

# Perform the action
cd "$CLAUDE_PROJECT_DIR"
# ... your automation logic here ...

# For blocking hooks, return decision JSON
# cat << EOF
# {
#   "decision": "block",
#   "reason": "Explanation of why operation was blocked"
# }
# EOF

echo "✓ Hook completed successfully"
exit 0

Defensive Scripting Requirements:

  1. Always check conditions before acting (don't assume input)
  2. Use $CLAUDE_PROJECT_DIR for all paths (portable across systems)
  3. Handle missing data gracefully (exit 0 if condition not met)
  4. Check for required tools (jq, sqlite3, git, etc.)
  5. Exit 0 for success, exit 2 for blocking errors
  6. Include descriptive comments

Common Patterns (see hook-templates.md for full examples):

  • Git commits: Template 1
  • Test execution/quality gates: Template 2
  • Database queries: sqlite3 "$CLAUDE_PROJECT_DIR/data/tasks.db"
  • Metrics logging: Template 4
  • Cascade events: Templates 12-16

Step 3: Create Configuration

Add hook to .claude/settings.local.json:

PostToolUse Hook Configuration:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "mcp__task-orchestrator__manage_container",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/your-hook.sh",
            "timeout": 30
          }
        ]
      }
    ]
  }
}

Note: Since v2.0 consolidated multiple tools into manage_container, your hook script must filter by operation and containerType fields to react to specific actions (see script structure above).

SubagentStop Hook Configuration:

{
  "hooks": {
    "SubagentStop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/your-hook.sh"
          }
        ]
      }
    ]
  }
}

Configuration Notes:

  • Multiple hooks can watch the same tool
  • Use timeout (seconds) for long-running hooks
  • Omit matcher for SubagentStop (applies to all subagents)
  • Hooks execute in order defined

Step 4: Create Hook File

Actions:

  1. Create .claude/hooks/ directory if needed
  2. Write hook script to .claude/hooks/[descriptive-name].sh
  3. Make script executable (not needed on Windows, but document it)
  4. Update or create .claude/settings.local.json

File Creation:

# Use Write tool to create hook script
# Path: .claude/hooks/[name].sh

# Make executable (document for Unix systems)
# chmod +x .claude/hooks/[name].sh

Step 5: Provide Testing Instructions

Sample JSON for PostToolUse Testing (v2.0):

{
  "tool_name": "mcp__task-orchestrator__manage_container",
  "tool_input": {
    "operation": "setStatus",
    "containerType": "task",
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "completed"
  },
  "tool_output": {
    "success": true
  }
}

How to Test:

# Test hook with sample JSON (v2.0 format)
echo '{
  "tool_name": "mcp__task-orchestrator__manage_container",
  "tool_input": {
    "operation": "setStatus",
    "containerType": "task",
    "id": "test-task-id",
    "status": "completed"
  }
}' | .claude/hooks/your-hook.sh

# Check output for errors
# Should see: ✓ Hook completed successfully

Step 6: Document Usage

Add documentation to .claude/hooks/README.md:

## [Hook Name]

**Purpose**: [What this hook does]

**Triggers**: [Event and matcher]

**Actions**:
- [What happens when triggered]

**Configuration**: See `.claude/settings.local.json`

**Testing**:

Test command


**Customization**:
- [How to customize for different needs]

Cascade Events & Flow-Based Behavior (v2.0)

Task Orchestrator v2.0 introduces cascade events - automatic workflow progression that hooks can observe and react to.

Quick Overview

Cascade Events trigger when:

  • First task starts → Feature activates
  • All tasks complete → Feature progresses to testing
  • All features complete → Project completes

Workflow Flows determine behavior:

  • default_flow - Standard development (normal testing)
  • rapid_prototype_flow - Fast iteration (skip tests)
  • with_review_flow - Security/compliance (strict gates)

Hook Integration Approaches

Opinionated (Recommended): Auto-apply when automatic=true - See Template 12 Conservative: Manual confirmation required - See Template 16 Analytics: Log events without action - See Template 15 Custom: React to specific events - See Template 14

Detailed Information

For comprehensive details on cascade events, see reference/cascade-events.md:

  • Cascade event fields and JSON format
  • 4 hook integration patterns with full code examples
  • Flow detection and adaptive behavior
  • Working examples in example-hooks/
  • Configuration and troubleshooting

Common Hook Scenarios

Scenario 1: Auto-Commit on Task Completion

User Says: "I want git commits when tasks are completed"

Your Response:

  1. Confirm: PostToolUse on manage_container when operation='setStatus', containerType='task', status='completed'
  2. Generate: .claude/hooks/task-complete-commit.sh
  3. Script extracts: task ID, operation, status; queries database for title
  4. Action: git add -A && git commit
  5. Test: Provide sample JSON with v2.0 format

Scenario 2: Quality Gate on Feature Completion

User Says: "Run tests before allowing feature completion"

Your Response:

  1. Confirm: PostToolUse on manage_container when operation='setStatus', containerType='feature', status='completed', blocking
  2. Generate: .claude/hooks/feature-complete-gate.sh
  3. Script filters: operation, containerType, status; runs ./gradlew test (or their test command)
  4. Action: Block if exit code != 0
  5. Test: Provide sample JSON with v2.0 format, explain blocking response

Scenario 3: Notification on Subagent Completion

User Says: "Notify me when specialists finish work"

Your Response:

  1. Confirm: SubagentStop event
  2. Generate: .claude/hooks/subagent-notify.sh
  3. Script extracts: session_id, subagent type from transcript
  4. Action: Send notification (email, webhook, etc.)
  5. Test: Provide SubagentStop JSON format

Scenario 4: Metrics Logging

User Says: "Track how long tasks take to complete"

Your Response:

  1. Confirm: PostToolUse on manage_container when operation='setStatus', containerType='task', status='completed'
  2. Generate: .claude/hooks/task-metrics.sh
  3. Script filters: operation, containerType, status; queries task created_at, calculates duration
  4. Action: Append to CSV log file
  5. Test: Provide sample JSON with v2.0 format

Scenario 5: Cascade Event Hooks (v2.0)

User wants cascade event automation ("auto-progress features", "skip tests for prototypes", "track workflow analytics")

Your Response:

  1. Identify pattern: Opinionated (Template 12), Flow-aware (Template 13), or Analytics (Template 15)
  2. Reference: See reference/cascade-events.md for detailed patterns
  3. Copy example: Use ready-made hooks from example-hooks/ directory
  4. Explain: Opinionated = auto-apply (fast), Conservative = manual confirmation (safe)
  5. Test: Provide sample JSON with cascadeEvents array from manage_container response

Troubleshooting Guide

Hook Not Executing

Check:

  1. Is .claude/settings.local.json present? (not .example)
  2. Is hook script executable? chmod +x .claude/hooks/script.sh
  3. Is matcher correct? Tool names must match exactly
  4. Check Claude Code logs for hook errors

Hook Executing but Failing

Debug Steps:

  1. Test hook manually with sample JSON
  2. Check for missing dependencies (jq, sqlite3, etc.)
  3. Verify $CLAUDE_PROJECT_DIR is set correctly
  4. Add set -x at top of script to see execution
  5. Check exit codes (0 = success, 2 = block, other = error)

Database Queries Failing

Common Issues:

  1. Database path wrong - use $CLAUDE_PROJECT_DIR/data/tasks.db
  2. UUID format issues - ensure UUIDs in quotes
  3. Table/column names wrong - check schema
  4. sqlite3 not installed - install or use different approach

Git Commands Failing

Common Issues:

  1. Not in git repository - check .git exists
  2. Nothing to commit - add defensive check
  3. Merge conflicts - hook can't resolve, user must
  4. Permission issues - check git credentials

Advanced Patterns

Chaining Multiple Hooks

Approach: Multiple hooks can watch the same event

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "mcp__task-orchestrator__set_status",
        "hooks": [
          {"type": "command", "command": "hook1.sh"},
          {"type": "command", "command": "hook2.sh"},
          {"type": "command", "command": "hook3.sh"}
        ]
      }
    ]
  }
}

Conditional Logic

Pattern: Use multiple conditions in script

STATUS=$(echo "$INPUT" | jq -r '.tool_input.status')
PRIORITY=$(sqlite3 "$DB" "SELECT priority FROM Tasks WHERE id='$TASK_ID'")

# Only commit high-priority completed tasks
if [ "$STATUS" = "completed" ] && [ "$PRIORITY" = "high" ]; then
  git commit ...
fi

External API Integration

Pattern: Call webhooks or APIs

# Send webhook notification
curl -X POST https://api.example.com/notify \
  -H "Content-Type: application/json" \
  -d "{\"task_id\": \"$TASK_ID\", \"status\": \"$STATUS\"}"

Dependencies and Requirements

Required Tools:

  • bash or compatible shell (Git Bash on Windows)
  • jq - JSON parsing (install: apt install jq / brew install jq)
  • sqlite3 - Database queries (usually pre-installed)

Optional Tools:

  • git - For git automation hooks
  • curl - For webhook/API hooks
  • Project-specific: ./gradlew, npm, pytest, etc.

Check Dependencies:

# Add to hook script
command -v jq >/dev/null 2>&1 || {
  echo "Error: jq is required but not installed"
  exit 2
}

Best Practices

  1. Start Simple: Begin with logging/metrics before blocking hooks
  2. Be Defensive: Always check conditions before acting
  3. Handle Errors: Graceful degradation if dependencies missing
  4. Document Well: Future you will thank present you
  5. Test Thoroughly: Test with various inputs, edge cases
  6. Use Version Control: Commit hook scripts to git
  7. Share Examples: Help community with your hooks

Remember

  • Hooks are observation layer - they don't replace core functionality
  • Keep hooks fast - long-running hooks slow Claude's workflow
  • Make blocking hooks rare - only for critical quality gates
  • Document why hooks exist - help future maintainers
  • Test hooks offline before enabling in Claude Code

Next Steps for Users

After creating a hook:

  1. Test manually with sample JSON inputs
  2. Enable in Claude by activating settings.local.json
  3. Monitor first few executions for errors
  4. Iterate based on real usage
  5. Document in project README for team members
  6. Share successful patterns with community

For more examples, see:

  • examples.md - Complete working hook examples
  • hook-templates.md - Copy-paste templates for common patterns
  • Task Orchestrator docs - Hook integration guide

平台分布

windsurf

28.67%
按下载量换算2,153

OpenCode

25.88%
按下载量换算1,944

Codex

16.41%
按下载量换算1,233

Claude Code

11.43%
按下载量换算859

Antigravity

8.23%
按下载量换算618

Gemini CLI

3.83%
按下载量换算288

安全审计

暂无安全审计结果可展示。

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills