@web42/stask
v0.2.3
Published
SQLite-backed task lifecycle CLI with Slack sync for AI agent teams
Maintainers
Readme
stask
SQLite-backed task lifecycle CLI with Slack sync — designed for AI agent teams.
stask enforces a spec-first workflow where tasks flow through defined statuses (To-Do, In-Progress, Testing, Ready for Human Review, Done) with guards that prevent illegal transitions. A human approves specs and merges PRs; AI agents (Lead, Workers, QA) handle everything in between. Every mutation syncs bidirectionally with a Slack List.
Prerequisites
- Node.js 20+
- GitHub CLI (
gh) - A Slack app with Lists API access (
SLACK_TOKEN)
Install
npm install -g @web42/staskSetup
- Create the global data directory:
mkdir -p ~/.stask- Copy the example config and customize it:
cp config.example.json ~/.stask/config.json
# Edit ~/.stask/config.json with your paths, Slack IDs, and agent names- Create a
.envfile with your Slack credentials:
cat > ~/.stask/.env << 'EOF'
SLACK_TOKEN=xoxb-your-slack-bot-token
LIST_ID=your-slack-list-id
EOF- Run any command to initialize the database:
stask listQuick Start
# Create a task (uploads spec to Slack)
stask create --spec specs/my-feature.md --name "Add login page"
# Human approves (or via Slack checkbox)
stask approve T-001
# Lead creates subtasks and starts work
stask subtask create --parent T-001 --name "Build form component" --assign worker-1
stask transition T-001 In-Progress
# Worker marks subtask done (after commit + push)
stask subtask done T-001.1
# QA submits verdict
stask qa T-001 --report qa-reports/t001.md --verdict PASS
# Lead creates PR, transitions to review
stask transition T-001 "Ready for Human Review"
# Human merges PR on GitHub -> task auto-completesAgent Integration
The skills/ folder contains role-specific documentation for AI agents:
skills/stask-general.md— Full framework overview, lifecycle, guards, CLI referenceskills/stask-lead.md— Lead agent workflow and decision treesskills/stask-worker.md— Worker agent workflow and worktree rulesskills/stask-qa.md— QA agent testing workflow and report format
Add the relevant skill file to your agent's context to teach it the stask workflow.
Config
Config lives at ~/.stask/config.json. See config.example.json for the full schema.
| Field | Description |
|-------|-------------|
| specsDir | Directory where spec markdown files live |
| projectRepoPath | Git repository for worktrees and PRs |
| worktreeBaseDir | Where task worktrees are created |
| human | Human reviewer (name, Slack ID, GitHub username) |
| agents | Agent definitions (name, role, Slack user ID) |
| slack | Slack List column IDs, status option IDs, type option IDs |
License
MIT
