Skip to content

armgit / agtx

Public Imported from GitHub
0

πŸ„πŸΌβ€β™‚οΈ The blackboard for coding agents - agentic development environment for claude code, codex, cursor, opencode, grok and more.

feat: add sweep skill (#75)

Fynn Fluegge0c087d7abd5b
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
new file mode 100644
index 0000000..d29da8c
--- /dev/null
+++ b/.claude-plugin/marketplace.json
@@ -0,0 +1,14 @@
+{
+ "name": "agtx-marketplace",
+ "description": "Marketplace for agtx plugins",
+ "owner": {
+ "name": "fynnfluegge"
+ },
+ "plugins": [
+ {
+ "name": "agtx",
+ "description": "Manage and decompose work into feature-level tasks on the agtx kanban board",
+ "source": "./"
+ }
+ ]
+}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
new file mode 100644
index 0000000..7c442b4
--- /dev/null
+++ b/.claude-plugin/plugin.json
@@ -0,0 +1,24 @@
+{
+ "name": "agtx",
+ "version": "0.1.0",
+ "description": "Manage and decompose work into feature-level tasks on the agtx kanban board",
+ "author": {
+ "name": "fynnfluegge",
+ "url": "https://github.com/fynnfluegge/agtx"
+ },
+ "license": "MIT",
+ "keywords": [
+ "kanban",
+ "agents",
+ "worktrees",
+ "tasks",
+ "orchestration"
+ ],
+ "mcpServers": {
+ "agtx": {
+ "type": "stdio",
+ "command": "agtx",
+ "args": ["mcp-serve", "."]
+ }
+ }
+}
diff --git a/.codex/hooks.json b/.codex/hooks.json
new file mode 100644
index 0000000..06bb45d
--- /dev/null
+++ b/.codex/hooks.json
@@ -0,0 +1,10 @@
+{
+ "hooks": {
+ "SessionStart": [
+ {
+ "type": "command",
+ "command": "echo 'agtx MCP available. Tools: list_tasks, create_task, create_tasks_batch. When user asks to sweep or push to board: call list_tasks first, extract work items from conversation, confirm with user, then create_tasks_batch. Sweeping only β€” do not implement.'"
+ }
+ ]
+ }
+}
diff --git a/commands/agtx-sweep.toml b/commands/agtx-sweep.toml
new file mode 100644
index 0000000..90b187e
--- /dev/null
+++ b/commands/agtx-sweep.toml
@@ -0,0 +1,2 @@
+description = "Sweep this conversation into agtx tasks and push them to the kanban board"
+prompt = "Sweep the conversation so far into agtx kanban tasks. Call list_tasks first to check for duplicates. Extract every actionable work item, determine dependencies, present the proposed task list for confirmation, then use create_tasks_batch to push them to the board. Sweeping only β€” do not implement anything."
diff --git a/commands/sweep.md b/commands/sweep.md
new file mode 100644
index 0000000..944d4b9
--- /dev/null
+++ b/commands/sweep.md
@@ -0,0 +1,14 @@
+---
+description: Sweep this conversation into agtx tasks and push them to the kanban board
+argument-hint: Optional focus area (e.g. "backend tasks only")
+allowed-tools: ["mcp__plugin_agtx_agtx__list_tasks", "mcp__plugin_agtx_agtx__create_task", "mcp__plugin_agtx_agtx__create_tasks_batch", "mcp__plugin_agtx_agtx__get_task"]
+---
+
+Sweep the conversation into agtx kanban tasks. $ARGUMENTS
+
+Use the agtx skill for guidance. Follow the Sweep workflow:
+1. Call list_tasks to check for duplicates
+2. Extract actionable work items from the conversation
+3. Present proposed task list for user confirmation
+4. Push to board with create_tasks_batch (or create_task for a single task)
+5. Report created task IDs
diff --git a/skills/agtx/SKILL.md b/skills/agtx/SKILL.md
new file mode 100644
index 0000000..e079b92
--- /dev/null
+++ b/skills/agtx/SKILL.md
@@ -0,0 +1,143 @@
+---
+name: agtx
+description: "Use when planning features, decomposing work into tasks, creating or managing tasks on a kanban board, coordinating parallel coding agent sessions across git worktrees, or when the user wants to sweep/push conversation results to the agtx board. Also use when asked about agtx setup, MCP configuration, or task workflow."
+---
+
+# agtx β€” Terminal Kanban for Coding Agents
+
+agtx is a kanban board that manages parallel coding agent sessions (Claude Code, Codex, Gemini, Copilot, OpenCode). Each task gets its own git worktree, branch, tmux window, and agent session β€” producing one reviewable PR per task.
+
+**You are an orchestrator.** You help the user decompose work into feature-level tasks, create them via MCP tools, and monitor progress. The user can enter any task's agent session via tmux to course-correct.
+
+## How It Works
+
+```
+You (orchestrator session, project root)
+β”œβ”€β”€ create_tasks_batch β†’ Task A (worktree, branch, agent session) β†’ PR
+β”œβ”€β”€ create_tasks_batch β†’ Task B (worktree, branch, agent session) β†’ PR
+└── create_tasks_batch β†’ Task C (depends on A) β†’ blocked until A in Review
+```
+
+**Tasks are like subagents, but with superpowers:**
+- Each runs in its own worktree with full git isolation
+- Each has a visible tmux session the user can enter anytime
+- Each persists across TUI restarts (tmux survives)
+- Each produces a reviewable, mergeable PR
+- Each can be a different agent (Claude, Codex, Gemini, etc.)
+
+The task agent handles its own internal planning β€” it can use `/plan`, spawn subagents, or use any workflow. You don't micromanage implementation details.
+
+## Task Lifecycle
+
+```
+Backlog β†’ Planning β†’ Running β†’ Review β†’ Done
+```
+
+| Phase | What happens |
+|-------|-------------|
+| **Backlog** | Created by you via MCP. Sits on the board until user is ready. |
+| **Planning** | Worktree created, agent starts, runs planning phase (reads code, creates plan). |
+| **Running** | Agent implements the feature. May use subagents internally. |
+| **Review** | PR created. User reviews. Can resume to address feedback. |
+| **Done** | Merged. Worktree cleaned up, branch kept. |
+
+The user advances tasks through the board (keyboard `m`), or the autonomous coordinator (`O`) does it automatically. You create and organize tasks β€” the board handles execution.
+
+## Decomposition Strategy
+
+When asked to plan or break down work:
+
+1. **Think in PRs** β€” each task = one reviewable, independently mergeable PR
+2. **Use dependencies** β€” if task B needs task A's code, wire it via `depends_on`
+3. **Keep tasks atomic** β€” "Add OAuth + rate limiting + caching" = 3 tasks, not 1
+4. **Don't micromanage** β€” each task's agent handles subtask decomposition internally
+5. **Group only if must ship together** β€” otherwise, separate PRs
+
+**Ask strategic questions** ("should auth come before the DB migration?"), not tactical ones ("should we use a factory pattern?"). The task agent handles tactical decisions.
+
+## What Makes a Good Task
+
+**Title**: short imperative phrase, ≀ 8 words
+> "Add streaming CSV export endpoint"
+
+**Description**: 2–5 sentences β€” what to build, why, key constraints, approach hints from
+the conversation. Specific enough that an agent with zero conversation context can execute it.
+
+**Plugin**: `agtx` (default) for most tasks. `gsd` for structured spec-driven work. `void` for
+plain sessions with no prompting.
+
+## MCP Tools
+
+You have access to these tools via the agtx MCP server. Tool parameters are self-documented β€” call any tool to see its schema.
+
+| Tool | Purpose |
+|------|---------|
+| `list_tasks` | List all tasks, optionally filter by status |
+| `get_task` | Get task details + `allowed_actions` |
+| `create_task` | Create a single backlog task |
+| `create_tasks_batch` | Batch create with index-based dependencies |
+| `update_task` | Modify backlog task (title, description, deps) |
+| `delete_task` | Delete backlog task |
+| `move_task` | Advance task (move_forward, escalate_to_user) |
+| `read_pane_content` | Read agent's tmux output (last N lines) |
+| `send_to_task` | Send message to agent's tmux pane |
+| `check_conflicts` | Check merge conflicts for Review tasks |
+
+### Batch Creation Example
+
+```json
+create_tasks_batch({
+ "tasks": [
+ { "title": "Add users table migration", "description": "Create users table with email, password_hash, created_at" },
+ { "title": "Add user API endpoints", "description": "CRUD endpoints for /api/users", "depends_on": [0] },
+ { "title": "Add auth middleware", "description": "JWT-based auth middleware", "depends_on": [0] },
+ { "title": "Add integration tests", "description": "Test auth flow end-to-end", "depends_on": [1, 2] }
+ ]
+})
+```
+
+Tasks 1 and 2 run in parallel (both depend on 0). Task 3 waits for both.
+
+## Sweep β€” Push Conversation to Board
+
+When the user asks to sweep, push, or hand off the conversation to the board:
+
+1. Call `list_tasks` β€” check for duplicates
+2. Extract every actionable work item from the conversation
+3. Present proposed task list for confirmation:
+ ```
+ [0] Add streaming CSV export endpoint
+ Implement GET /export/csv with streaming response
+ depends on: none
+ [1] Add date range filter to export
+ Query params ?from=&to= applied before streaming
+ depends on: [0]
+ ```
+4. After confirmation: use `create_tasks_batch` for multiple tasks, `create_task` for one
+5. Report created IDs:
+ ```
+ βœ“ a1b2c3 Add streaming CSV export endpoint
+ βœ“ d4e5f6 Add date range filter to export
+ ```
+
+## Setup Verification
+
+Before creating tasks, verify the MCP connection:
+
+1. Call `list_tasks` β€” if it works, you're connected
+2. If it fails, the user needs to install agtx and register the MCP server:
+ ```bash
+ claude mcp add agtx -- agtx mcp-serve .
+ ```
+ See the [agtx README](https://github.com/fynnfluegge/agtx) for full installation instructions.
+
+## Rules
+
+- Only create tasks at the **feature/PR level** β€” not subtask level
+- Check `list_tasks` before creating to avoid duplicates
+- Always check `allowed_actions` via `get_task` before calling `move_task`
+- Include clear descriptions with enough context for the task agent to work independently
+- Reference relevant files, code paths, or architectural decisions in descriptions
+- Blocked tasks (unresolved dependencies) cannot be advanced β€” respect this
+- Do NOT implement anything yourself β€” your role is orchestration and task creation only
+- Flag vague/exploratory items as open questions rather than tasks