Claude 助手
- 作者仓库星标 0
- 作者仓库 skills-registry
Claude Code Agent Teams
Execute coding tasks asynchronously with automatic notifications on completion.
Tools
| Tool | Description |
|---|---|
invoke_task |
Execute a coding task asynchronously |
list_sessions |
List all active sessions |
get_session |
Get session ID for a project directory |
remove_session |
Remove a session mapping |
check_env |
Validate environment configuration |
test_notification |
Send test notification |
Quick Start
# 1. Set API key
export ANTHROPIC_API_KEY="sk-xxx"
# 2. Install hooks (one-time setup)
./main.sh install-hooks
# 3. Run a task
./main.sh invoke "Create a snake game" /path/to/project
Setup
Prerequisites
# Install dependencies
sudo apt-get install jq curl # Ubuntu/Debian
brew install jq curl # macOS
npm install -g @anthropic-ai/claude-cli
Configuration
Configuration priority: Environment Variables > settings.json > Defaults
| Priority | Source | Use Case |
|---|---|---|
| 1 (Highest) | Environment variables | API keys, secrets, temporary overrides |
| 2 | config/settings.json |
Team-shared configuration |
| 3 (Lowest) | Built-in defaults | Default values if not configured |
Environment variables (recommended for secrets):
export ANTHROPIC_API_KEY="sk-xxx" # Required
export ANTHROPIC_BASE_URL="https://..." # Optional
export ANTHROPIC_MODEL="claude-sonnet-4-6" # Optional
Config file (config/settings.json):
{
"api_base_url": "https://coding.dashscope.aliyuncs.com/apps/anthropic",
"model": "claude-sonnet-4-6",
"notify": {
"channels": ["feishu"],
"feishu": { "chat_id": "user:ou_xxx" }
}
}
Tip: Use environment variables for sensitive data (API keys) and
settings.jsonfor shareable configuration (notification channels).
Usage
# Auto session (recommended)
./main.sh invoke "Fix login bug" /path/to/project
# Force new session
./main.sh invoke "Refactor module" /path/to/project new
# Custom session ID
./main.sh invoke "Hotfix" /path/to/project hotfix-001
# Manage sessions
./main.sh list-sessions
./main.sh get-session /path/to/project
./main.sh remove-session /path/to/project
# Check environment
./main.sh check-env
# Test notification
./main.sh test-notify
Notification Channels
Configure in config/settings.json:
Feishu:
{"notify": {"channels": ["feishu"], "feishu": {"chat_id": "user:ou_xxx"}}}
Discord:
{"notify": {"channels": ["discord"], "discord": {"webhook_url": "https://discord.com/api/webhooks/..."}}}
Telegram:
{"notify": {"channels": ["telegram"], "telegram": {"bot_token": "123456:ABC...", "chat_id": "@channel"}}}
Workflow
Invoke task → Validate env → Get/Create session → Start notification
↓
Run Claude Code in background → Task completes → Hook triggers
↓
Send completion notification → Write results
Output Files
Default: ~/.openclaw/data/claude-code-results/
| File | Description |
|---|---|
task-output.txt |
Full Claude Code output |
task-meta.json |
Task metadata (status, exit code) |
Troubleshooting
# Check environment
./main.sh check-env
# Test notification
./main.sh test-notify
# Reinstall hooks
./main.sh remove-hooks && ./main.sh install-hooks
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: damiangao/agent-skills — distributed by TomeVault.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 需要 · Anthropic
- 检测到的系统要求
- macOS · Linux
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 读取环境变量
- 检测到的网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Quick Start
Quick Start
Workflow
Workflow
# Claude Code Agent Teams
Execute coding tasks asynchronously with automatic notifications on completion.
## Tools
| Tool | Description |
|------|-------------|
| `invoke_task` | Execute a coding task asynchronously |
| `list_sessions` | List all active sessions |
| `get_session` | Get session ID for a project directory |
| `remove_session` | Remove a session mapping |
| `check_env` | Validate environment configuration |
| `test_notification` | Send test notification |
## Quick Start
```bash
# 1. Set API key
export ANTHROPIC_API_KEY="sk-xxx"
# 2. Install hooks (one-time setup)
./main.sh install-hooks
# 3. Run a task
./main.sh invoke "Create a snake game" /path/to/project
```
## Setup
### Prerequisites
```bash
# Install dependencies
sudo apt-get install jq curl # Ubuntu/Debian
brew install jq curl # macOS
npm install -g @anthropic-ai/claude-cli
```
### Configuration
Configuration priority: **Environment Variables > settings.json > Defaults**
| Priority | Source | Use Case |
|----------|--------|----------|
| 1 (Highest) | Environment variables | API keys, secrets, temporary overrides |
| 2 | `config/settings.json` | Team-shared configuration |
| 3 (Lowest) | Built-in defaults | Default values if not configured |
**Environment variables** (recommended for secrets):
```bash
export ANTHROPIC_API_KEY="sk-xxx" # Required
export ANTHROPIC_BASE_URL="https://..." # Optional
export ANTHROPIC_MODEL="claude-sonnet-4-6" # Optional
```
**Config file** (`config/settings.json`):
```json
{
"api_base_url": "https://coding.dashscope.aliyuncs.com/apps/anthropic",
"model": "claude-sonnet-4-6",
"notify": {
"channels": ["feishu"],
"feishu": { "chat_id": "user:ou_xxx" }
}
}
```
… 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Tools → Quick Start → Setup → Prerequisites → Configuration → Usage
要点 -> Environment Variables > settings.json > Defaults · Environment variables · Config file · Tip · Feishu · Discord · Telegram
文件/命令 -> invoketask · listsessions · getsession · removesession · checkenv · testnotification · config/settings.json · settings.json
内容 SHA-256 -> 2ed8c6e9d87d
方法与流程
适用与边界
原文中的明确线索
invoketask、listsessions、getsession、removesession、checkenv、testnotification、config/settings.json、settings.json