搜索

PythonReactSEOPDF
GitHub Skill

tsk-help

Use this skill when the user asks about tsk commands, delegating development tasks to AI agents, managing sandboxed task execution, or working with the tsk task queue and server.

dtormoen☆ 146 仓库 Stars15 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

tsk

tsk delegates development tasks to AI agents (Claude Code, Codex) running in isolated Docker/Podman containers. Agents work autonomously and produce git branches for review.

Core Commands

Run a task immediately
tsk run --type feat --name add-auth --prompt "Add JWT authentication to the API"

Key flags:

  • --type (-t): Task template (feat, fix, doc, refactor, or custom templates)
  • --name (-n): Human-readable name used in the git branch
  • --prompt (-p): Task prompt (replaces {{PROMPT}} in templates)
  • --agent: Agent to use (claude, codex). Default: claude
  • --edit: Open the full prompt in your editor before sending
Interactive sandbox
tsk shell

Drops you into a container with your repo copy and agent installed. Work interactively, then exit to save changes as a branch.

Queue tasks for background execution
# Start the server with parallel workers
tsk server start --workers 4

# Queue tasks
tsk add -t feat -n user-api -p "Add REST API for user management"
tsk add -t fix -n login-bug -p "Fix session timeout on login page"

# Check status
tsk list
Chain tasks

Child tasks start from where the parent left off:

tsk add -t feat -n add-api -p "Add users API endpoint"
tsk list  # get the task ID
tsk add -t feat -n add-tests -p "Add tests for users API" --parent <taskid>
Other commands

This is the output of tsk help

!tsk help

How it works

  1. tsk copies your repository (including uncommitted changes) into an isolated directory
  2. A Docker/Podman container is started with your language stack and agent installed
  3. Network access is restricted to approved API domains via a Squid proxy
  4. The agent executes the task autonomously
  5. Changes are fetched back as a new branch: tsk/{type}/{name}/{id}

Multi-agent execution

Run the same task with multiple agents to compare results:

tsk add -t feat -n greeting --agent codex,claude -p "Add a greeting feature"

Custom templates

Create templates in ~/.config/tsk/templates/ or .tsk/templates/:

mkdir -p ~/.config/tsk/templates
cat > ~/.config/tsk/templates/issue-bot.md << 'EOF'
Solve the GitHub issue below. Write tests and a descriptive commit message.

{{PROMPT}}
EOF

# Use it
gh issue view 42 | tsk add -t issue-bot -n fix-issue-42

Configuration

tsk is configured via ~/.config/tsk/tsk.toml. Key settings:

container_engine = "docker"  # or "podman"

[defaults]
memory_gb = 12.0
cpu = 8

[server]
auto_clean_enabled = true
auto_clean_age_days = 7.0

[project.my-project]
agent = "claude"
stack = "go"

See tsk help or tsk help <command> for full option details.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!