agentleFS
Nicolas-RigaudyNicolas-Rigaudy/cr-0w/.claude/skills/afk/SKILL.md

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

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.
  • karanmrnSkill

    fmx-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

  • karanmrnSkill

    harness-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 FaceSkill

    simplify

    Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.

    Also in 3 projects that use this

  • GoogleSkill

    prototype

    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

  • GoogleSkill

    improve-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

  • MicrosoftSkill

    writing-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

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
  1. Very specific:

    Run bin/crow-afk-preflight <path of every repo that might get a job> and act on it:

    line 14
  2. Distinctive:

    Use AskUserQuestion (self-contained questions with context and a recommendation, at most 4 per call):

    line 26
  3. Distinctive:

    Every decision a chosen job would otherwise pause on: visual choices with mockups when they exist, product choices, push/merge permissions …

    line 28
  4. Distinctive:

    Add one fallback job per active project: "next eligible roadmap item, same rules".

    line 34
  5. Very specific:

    Create each worktree now and check its hooks (commit-msg, pre-push) resolve.

    line 36
  6. Distinctive:

    start the sleep inhibitor printed by the preflight.

    line 40

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-sessions and bin/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 status in the repo for the next eligible items, and the "Next eligible" line of its last AFK report.
  • The ## Crow section of the state dir's open-threads.md (format: runbooks/open-threads.md). Ignore ## Me and ## 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):

  1. Which jobs go in (multiSelect, grouped by project, one line each on what it would deliver by morning).
  2. 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.
  3. The morning time and which accounts may run (show cdx status). Record the answers in local/state/afk/decisions-<today>.md.

5. Write the jobs

  • One job-<project>-<topic>.md per job: the matching preamble with {RETURN} replaced by the owner's return time, (preamble-personal.md pushes, preamble-work.md local only) followed by the repo path, the worktree to create (<repo>.wt/<topic>), the expected commit identity from local/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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.