AFK = Away From Keyboard — Autonomous development workflow CLI + Skills system
Cross-platform issue tracking automation (GitLab/GitHub) powered by Claude AI agents and TypeScript.
- Cross-platform — Unified GitLab and GitHub CLI (issues, MRs/PRs)
- Skills Suite — Claude Code skills covering the full development lifecycle plus quality governance
- TUI Dashboard — Interactive issue tracking dashboard
- Background Automation — tmux-based workflow scheduler
- TDD Integration — Built-in test-driven development methodology
git clone https://github.com/easyhaloo/afk.git
cd afk
npm install && npm run build
npm link
afk --versionSee Getting Started Guide for detailed setup.
AFK provides a full Claude Code skill suite that can be integrated as a plugin (v1.0.5).
Use the slash command directly in Claude Code:
/plugin install afk@afk# Add marketplace
claude plugin marketplace add easyhaloo/afk --scope user
# Install plugin
claude plugin install afk@afkAdd to Claude Code's settings.json (global or project-level .claude/settings.json):
{
"extraKnownMarketplaces": {
"afk": {
"source": {
"source": "github",
"repo": "easyhaloo/afk"
}
}
}
}Supported source types:
"github"— Load from GitHub repository"local"— Load from local filesystem
Link the skills/ directory to the global skills directory:
mkdir -p ~/.claude/skills
ln -s /path/to/afk/skills/* ~/.claude/skills/Run /afk-grill-me in Claude Code to confirm skills are loaded.
# Issue Management
afk issue get <id>
afk issue list --label "stage::ready-for-implement"
afk issue create "Title" --label "feature"
afk issue edit <id> --label "bug"
afk issue comment <id> "message"
afk issue link <src> <project>:<iid> # cross-project link
afk issue run <iid> --project <repo> # cross-project workflow
# MR/PR Operations
afk mr create "feat: add login" --source feat/login --target main
afk mr merge <id> --delete-source-branch
afk mr approve <id>
afk mr close <id>
afk mr reopen <id>
# Workflow & Automation
afk board # Interactive TUI panel
afk kanban # Kanban board
afk workflow run --iid <id> # Issue → MR pipeline
afk loop start # Continuous integration loop
afk scheduler start --max-concurrent 3 # Background scheduler
afk qa run # QA verification
# Infrastructure
afk worktree create <iid> # Git worktree management
afk tmux create-session # Tmux session management
afk isolate up # DB service isolation
# Debug & Escalation
afk debug reproduce <cmd> # Debug loop
afk escalate create "title" # File GitLab issue
# Signal Management
afk signal goal-complete # Workflow signal communicationFull command reference: afk --help
| Skill | Purpose | When to Use |
|---|---|---|
/afk-grill-me |
Requirements interview | Ambiguous requirements or likely gaps |
/afk-grill-me-context |
Gap-fill interview | Existing drafts/docs need verification |
/afk-to-prd |
Generate PRD | After requirements alignment |
/afk-to-issues |
Decompose to issues | After PRD approved |
/afk-do |
Task orchestration | Clear feature or task description |
/afk-research |
Technical research | Need to understand existing implementation before coding |
/afk-prototype |
Validate approach | Need to validate tech approach before committing |
/afk-implement |
TDD implementation | Clear implementation target |
/afk-qa |
Independent verification | MR/PR ready to merge |
/afk-diagnose |
Quick fix | Specific, reproducible failure |
/afk-pipeline |
Phase routing | Unsure which skill to use |
/afk-branch-migrate |
Cross-branch migration | Cherry-pick between divergent branches |
/afk-hand-off |
Work handoff | Transfer task to another developer |
/afk-scheduler |
Background scheduling | Multiple issues with dependency-aware execution |
/afk-skill-craft |
Skill authoring | Create, diagnose, or refactor skills |
/software-complexity-governance |
Complexity & smells | Measure complexity, map smells, recommend refactorings |
/api-workflow |
API testing | Multi-step API chains with browser testing |
/md-to-pdf |
Markdown to PDF | Export docs with Mermaid diagrams |
/reasoning-guard |
Reasoning guard | Multi-turn reasoning degradation in coding agents |
/reasoning-watchdog |
Auto reasoning monitor | Hooks-based automatic reasoning degradation interception |
See Skills Guide for detailed documentation.
AFK uses TrackerProvider interface to abstract GitLab and GitHub differences:
interface TrackerProvider {
getIssue(id: number): Promise<TrackedIssue>;
createMR(options: CreateMROptions): Promise<number>;
mergeMR(id: number, options?: MergeMROptions): Promise<void>;
// ... more operations
}Platform auto-detected, no command switching needed. See Architecture Design and Execution Environment Design.
Three core workflow patterns:
- Issue → Implementation → MR Pipeline — From issue discovery to merge request
- Scheduler Workflow — Background dependency-aware execution
- Skills Workflow — TDD methodology integration
npm install
npm run build # Build TypeScript
npm test # Run tests
npm link # Install globally- Getting Started — 5-minute AFK setup
- Architecture Design — Cross-platform abstraction + CLI command mapping
- Workflows — Issue → MR pipeline, scheduler, Skills integration
- Skills Guide — Core skills design and usage
MIT
