agentleFS
FabienGreardFabienGreard/TouchGrassBar/.agents/skills/setup-afk-coding/SKILL.md

setup-afk-coding

Skill4 starsChanged 3 months agoMITView on GitHub

Install or update an hourly Codex automation that wakes PR workers and dispatches ready GitHub tickets into isolated AFK coding tasks.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read orchestrator-contract.md, worker-contract.md, and testing-contract.md completely.

    line 14
  2. Very specific:

    Use the tracker conventions in docs/agents/issue-tracker.md.

    line 20
  3. Distinctive:

    Create or update exactly one standalone project automation with:

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Setup AFK Coding

Install one hourly control tower for this repository. The control tower orchestrates; xhigh worker tasks implement.

1. Resolve the installation

Find the automation tool before taking action. Resolve the current repository's saved Codex project and confirm it is a Git repository. Inspect existing automations before creating one; match by project and the exact name <repository name> AFK Coding or by a prompt marker beginning afk-coding-contract:.

Read orchestrator-contract.md, worker-contract.md, and testing-contract.md completely. Compute one SHA-256 over their exact UTF-8 bytes in that order, with one newline between adjacent files.

Completion criterion: the saved project, zero or one matching automation, and the exact contract hash are known. Resolve duplicates explicitly before continuing.

2. Prepare the issue tracker

Use the tracker conventions in docs/agents/issue-tracker.md. Ensure these operational labels exist without changing ticket state:

LabelColorMeaning
agent:claimed1D76DBAn AFK worker owns the issue
agent:blockedD93F0BThe worker needs external or human action
agent:stale-claimFBCA04A dispatcher lease may be abandoned
review:ready0E8A16A verified PR awaits human review

Inspect protection on the default branch. Record whether it requires pull requests, the repository CI check, human approval, and resolved conversations. This is a runtime dispatch gate, not an installation gate: install the automation even when protection is incomplete, and report that it will reconcile existing PRs but create no new workers until the gate passes.

Completion criterion: all four labels exist with the intended meanings, and branch protection has a named pass/fail result.

3. Compile the automation prompt

Build the prompt from this header followed by the three full contracts; preserve the source text instead of paraphrasing it:

afk-coding-contract: v3
contract-sha256: <computed hash>
orchestrator-reasoning: medium
worker-reasoning: xhigh

Execute one hourly AFK coding orchestration cycle for this project. The following contracts are authoritative for this run.

## Orchestrator Contract
<full orchestrator-contract.md>

## Embedded Worker Contract
<full worker-contract.md>

## Embedded Testing Contract
<full testing-contract.md>

The hash makes drift observable while the embedded text lets a run operate without depending on the setup skill being loaded.

Completion criterion: the compiled prompt contains all three full contracts once, the correct hash, medium orchestrator reasoning, and xhigh worker reasoning.

4. Install idempotently

Create or update exactly one standalone project automation with:

  • name <repository name> AFK Coding;
  • active status and an hourly schedule;
  • the resolved project;
  • local execution and destination in the resolved project;
  • the user's configured default model;
  • medium reasoning effort;
  • the compiled prompt.

The control tower may inspect the repository and external control-plane state, but it must not edit, commit, push, or implement in the local project checkout. Worktree isolation belongs to the implementation and recovery workers created by the orchestrator contract.

Use the automation tool rather than writing automation files. Preserve the existing automation id, notification policy, and fields not owned above. Let the application choose its default notification policy for a new automation. Update a matching automation when its schedule, environment, reasoning, status, or contract hash drifts; create only when none exists.

Completion criterion: the automation tool reports one active matching automation and no duplicate was created.

5. Verify the installed control tower

Read the installed automation back through the automation tool. Confirm project, hourly cadence, active status, local controller execution, medium reasoning, prompt hash, all three embedded contracts, and fresh-worktree isolation for implementation and recovery workers. Report the automation id, first eligible run behavior, worker cap, xhigh worker setting, minimum-sufficient-proof policy, notification policy, and branch-protection gate.

The setup is complete only after read-back matches the compiled contract. Do not dispatch a worker directly from this setup run; the hourly automation owns dispatch.

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.