afk
Skill1 starsChanged 7 days agoMITView on GitHub
Prepare an AFK run (a night, an afternoon, any time the owner is away) about an hour before the owner leaves. Checks the machine, gathers what could run, asks the owner every open question up front, writes the job prompts and queue, sets up worktrees and hooks, then waits for "go" to start orchestrating. Use when the user says "afk", "going afk", "night", "prep the night", "prepare tonight", "overnight", or says they will be away for hours.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- jakubkrehel/skillstheir own version, first seen Nov 8, 2026
- alexandrosandre/agentic-engineeringtheir own version, first seen Nov 8, 2026
- alexandrosandre/alice-issue-agenttheir own version, first seen Nov 8, 2026
- shaokeyibb/hikarilan-skillstheir own version, first seen Nov 1, 2026
- Hugovdd/skillstheir own version, first seen Oct 25, 2026
- augbastos/afkswitchtheir own version, first seen Oct 20, 2026
Used with
Projects with it also use fmx-respond, harness-adapters and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
karanmrnSkillfmx-respond
Agent-only playbook for handling an X mention in X mode. Use on an "x-mention <request_id>" check: wake - read the stashed mention (with any in_reply_to conversation context); the direct author is the firstmate's own owner (captain) under owner-only routing, so classify it as an actionable request to act on through the normal lifecycle, a question to answer from live fleet state, or a pure acknowledgment to dismiss without replying; act autonomously (escalating only destructive/irreversible/security-sensitive work). For a request that spawns real work, acknowledge first, act, link the task with bin/fm-x-link.sh, and let the completion follow-up post on the done wake; for a question or completed action, post or preview a short public-safe reply with bin/fm-x-reply.sh; for a pure acknowledgment, call bin/fm-x-dismiss.sh. Clear the inbox file only after a successful reply or dismiss. Loaded only when X mode is enabled.
Also in 3 projects that use this
karanmrnSkillharness-adapters
Agent-only reference for firstmate harness operations. Use before spawning or recovering a crewmate or secondmate, handling a trust dialog, sending a harness-specific skill invocation, interrupting or exiting an agent, resuming an exited agent, or verifying a new harness adapter. Contains verified facts for claude, codex, opencode, and pi.
Also in 3 projects that use this
Hugging FaceSkillsimplify
Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.
Also in 3 projects that use this
GoogleSkillprototype
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Also in 5 projects that use this
GoogleSkillimprove-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Also in 4 projects that use this
MicrosoftSkillwriting-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
Also in 3 projects that use this
- +3 more from karanmrn
- +3 more from google
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- jakubkrehel/skills★ 12ksame name
- kunchenguid/firstmate★ 8.7ksame name
- shaokeyibb/hikarilan-skills★ 25same name
- sherifabdlnaby/skills★ 9same name
- Akindu23/my-agent-skills★ 4same name
- toverux/cantrips★ 3same name
- AlvinShenSSW/afk★ 2same name
- augbastos/afkswitch★ 2same name
- EvanBatten/firstmate-for-windows★ 2same name
- M1hairu/skills★ 2same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Run bin/crow-afk-preflight <path of every repo that might get a job> and act on it:
- Distinctive: line 26
Use AskUserQuestion (self-contained questions with context and a recommendation, at most 4 per call):
- Distinctive: line 28
Every decision a chosen job would otherwise pause on: visual choices with mockups when they exist, product choices, push/merge permissions …
- Distinctive: line 34
Add one fallback job per active project: "next eligible roadmap item, same rules".
- Very specific: line 36
Create each worktree now and check its hooks (commit-msg, pre-push) resolve.
- Distinctive: line 40
start the sleep inhibitor printed by the preflight.
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AFK prep
Goal: a queue that fills the whole window with nothing paused on a question the owner could have answered before leaving. Follow runbooks/afk-runs.md (rules, pacing, report) and use these steps to build the night. Night state lives in local/state/afk/.
1. Archive the last run
Move the last run's job-*.md, queue.md, log.md, reports/, shots/ and report-*.html into local/state/afk/archive/<date that run started>/. Keep preamble-*.md and any decisions-*.md not yet applied.
2. Machine check
Run bin/crow-afk-preflight <path of every repo that might get a job> and act on it:
- FAIL: fix what is yours to fix (install a missing hook, prune a stale worktree). Tell the owner what is theirs (plug in, reboot or relogin for packages upgraded since boot, scrub a denied pattern from pushed history).
- WARN: say it in one line each, in plain words (e.g. "nothing stops the laptop suspending; closing the lid or idling pauses the runs", never just "sleep isn't blocked"). Start the sleep inhibitor only once the owner says go.
3. Gather candidates (scripts, not exploration)
- Runs stopped by a usage limit:
bin/crow-sessionsandbin/crow-runs list. - Pending owner decisions already taken:
local/state/afk/decisions-*.md(they unblock items). - Each registered project in
local/projects.yaml(personal first; work repos only as local-only jobs):logics-manager statusin the repo for the next eligible items, and the "Next eligible" line of its last AFK report. - The
## Crowsection of the state dir'sopen-threads.md(format:runbooks/open-threads.md). Ignore## Meand## Waiting. For each candidate, note what it needs: a database, a GUI, cloud access, a visual choice, an owner decision. Anything the machine can't provide goes on the "needs env" list.
4. Ask the owner, once, before writing anything
Use AskUserQuestion (self-contained questions with context and a recommendation, at most 4 per call):
- Which jobs go in (multiSelect, grouped by project, one line each on what it would deliver by morning).
- Every decision a chosen job would otherwise pause on: visual choices with mockups when they exist, product choices, push/merge permissions in repos with their own push rule.
- The morning time and which accounts may run (show
cdx status). Record the answers inlocal/state/afk/decisions-<today>.md.
5. Write the jobs
- One
job-<project>-<topic>.mdper job: the matching preamble with{RETURN}replaced by the owner's return time, (preamble-personal.mdpushes,preamble-work.mdlocal only) followed by the repo path, the worktree to create (<repo>.wt/<topic>), the expected commit identity fromlocal/projects.yaml, the owner's decisions that apply, files to leave alone ("Protected"), the task, and when to stop. - Add one fallback job per active project: "next eligible roadmap item, same rules".
queue.md: priority order, the account for each job, the numeric floors (5-hour and weekly) under which no new run starts on each account, and the "needs env" list. The queue is the only source of order.- Create each worktree now and check its hooks (
commit-msg,pre-push) resolve.
6. Hand over
Show the owner the queue as a short table (job, account, expected result, stops when) plus the WARNs left. On "go":
- start the sleep inhibitor printed by the preflight;
- append the start line to
log.md; - orchestrate per
runbooks/afk-runs.md, rebuilding the morning page after every finished run.
Whenever you ask the owner to run steps (install, merge, relogin), put the exact copy-pasteable commands in that same message. Never point at "the line above" or a report.
In every job prompt, a paused visual or UX choice must ship with its options rendered to PNG (same framing, one per option, under the run's shots dir) before the run ends. "Paused, not rendered" is a miss (themes run 2026-11-04 left 5 choices unrendered). Cost is not a reason to skip: a cheap render of 2 options beats a text-only question.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

