Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/karlarao-afk
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
afk- Description
- None
- License
- MIT
- Instructions
- 54 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- invalid YAML frontmatter: Nested mappings are not allowed in compact mappings at line 2, column 14:
- name: missing
- description: missing
Files (2)
- SKILL.md
- build-prompt.sh
SKILL.md (first lines)
# AFK — autonomous iteration in this session In-session port of `ralph/afk.sh`. Each `/afk` invocation = ONE iteration. Use `/loop /afk …` to drive multiple iterations (self-paced; stops when you emit the sentinel). ## Arguments (mirror the original) - `--issue N` (repeatable) — GitHub issue numbers - `--file FILE` (repeatable) — plan / PRD / spec markdown files - No args → ingest all open issue titles ## Steps for each iteration 1. **Build the prompt.** Run, exactly: ```bash "$CLAUDE_PROJECT_DIR/.claude/skills/afk/build-prompt.sh" <user-supplied args> ``` (If `$CLAUDE_PROJECT_DIR` isn't set, fall back to `./.claude/skills/afk/build-prompt.sh` from the repo root.) Output's first three lines are `GH_REPO=…`, `REPO_ROOT=…`, `PROMPT_MD=…`. **Export `GH_REPO`** in this session before any `gh` call — every `gh` invocation must use `--repo "$GH_REPO"` (the bundled `prompt.md` enforces this). 2. **Do the work.** Treat everything after that header as your instructions for this iteration. Use Read/Edit/Write/Bash normally. Follow `prompt.md` to the letter — in particular: - Pick exactly ONE issue per iteration; do not touch unrelated code. - Run `pnpm run test` and `pnpm run typecheck` before committing. - **Never** `git commit --no-verify`. - Commit message references the issue (`Fixes #N` / `Progress on #N`). - Comment on the issue (incomplete) or close it (complete) with `gh issue …`. 3. **Log the iteration.** Append one line to `$REPO_ROOT/afk/logs/$(git rev-parse --abbrev-ref HEAD).log` (create the dir if missing): ``` <ISO-8601 UTC> | <branch> | issue #N | <one-line status> ``` 4. **Stop signal.** If — and only if — the prompt.md's completion criteria are met (nothing actionable left in scope), end your final reply with the literal token `<promise>NO MORE TASKS</promise>` on its own line. `/loop` watches for this. If there's more to do, do not emit it. ## What's intentionally dropped vs upstream `afk.sh` - Docker, `ralph-runner` image, `Dockerfile.ralph`, `pnpm install` step inside container - `CLAUDE_CODE_OAUTH_TOKEN` / `CODEX_AUTH_JSON` auth files - `--agent codex` branch (Claude session only; add a separate skill if codex parity needed) - `MAX_ITER` — `/loop` owns iteration count ## What's preserved - `prompt.md` read verbatim (resolution order: `$AFK_PROMPT_MD` → `<repo>/afk/ralph/prompt.md` → `<repo>/ralph/prompt.md`) - Last-5-commits header + gh issue/file ingestion - `<promise>NO MORE TASKS</promise>` sentinel - Per-branch log at `<repo>/afk/logs/<branch>.log` ## Failure modes - Not in a git repo, or no `origin` remote → `build-prompt.sh` exits non-zero; surface the error. - `prompt.md` missing → set `AFK_PROMPT_MD=…` or add `afk/ralph/prompt.md` to the repo. - `gh` not authed → run `gh auth status`; do not store tokens in files.
From karlarao/afk, MIT.
More from karlarao/afk
- 0.507score
do-work
karlarao
Execute a unit of work end-to-end: plan, implement, validate with typecheck and tests, then commit.
SkillCFreshness: C★ 2Claude Code +9 - 0.502score
better-sqlite3-rebuild
karlarao
Use when seeing errors about better-sqlite3 native module, NODE_MODULE_VERSION mismatch, "was compiled against a different Node.js version", or similar native…
SkillCFreshness: C★ 2Claude Code +9 - 0.502score
pnpm-not-found
karlarao
Fix "pnpm command not found" errors by enabling corepack.
SkillCFreshness: C★ 2Claude Code +9 - 0.482score
design-an-interface
karlarao
Generate multiple radically different interface designs for a module using parallel sub-agents.
SkillCFreshness: C★ 2Claude Code +9 - 0.477score
grill-me
karlarao
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.
SkillCFreshness: C★ 2Claude Code +9 - 0.270score
zod-to-valibot
karlarao
No description from the publisher yet.
SkillCFreshness: C★ 2Claude Code +9 - 0.270score
write-a-skill
karlarao
No description from the publisher yet.
SkillCFreshness: C★ 2Claude Code +9 - 0.270score
write-a-prd
karlarao
No description from the publisher yet.
SkillCFreshness: C★ 2Claude Code +9 - 0.270score
prd-to-issues
karlarao
No description from the publisher yet.
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- May 14, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/karlarao/afk
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from karlarao
- 0.507score
do-work
karlarao
Execute a unit of work end-to-end: plan, implement, validate with typecheck and tests, then commit.
SkillCFreshness: C★ 2Claude Code +9 - 0.502score
better-sqlite3-rebuild
karlarao
Use when seeing errors about better-sqlite3 native module, NODE_MODULE_VERSION mismatch, "was compiled against a different Node.js version", or similar native…
SkillCFreshness: C★ 2Claude Code +9 - 0.502score
pnpm-not-found
karlarao
Fix "pnpm command not found" errors by enabling corepack.
SkillCFreshness: C★ 2Claude Code +9 - 0.482score
design-an-interface
karlarao
Generate multiple radically different interface designs for a module using parallel sub-agents.
SkillCFreshness: C★ 2Claude Code +9 - 0.477score
grill-me
karlarao
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.
SkillCFreshness: C★ 2Claude Code +9
Cite this page
afk skill. Agent Mart. https://agentmart.dev/skills/karlarao-afk (last updated 2026-10-24)