Vercel Composition Patterns
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
One unattended factory foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence on read (not on claims), and report.
$ npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install modu-ai/moai-adk moai-factory-foreman --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/modu-ai/moai-adk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/moai-factory-foreman .claude/skills/moai-factory-foreman && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "moai-factory-foreman" agent skill from https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-factory-foreman into .claude/skills/moai-factory-foreman/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "moai-factory-foreman", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-factory-foremanType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install modu-ai/moai-adk moai-factory-foreman --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modu-ai/moai-adk.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/moai-factory-foreman .agents/skills/moai-factory-foreman && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "moai-factory-foreman" agent skill from https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-factory-foreman into .agents/skills/moai-factory-foreman/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "moai-factory-foreman", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install modu-ai/moai-adk moai-factory-foreman --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modu-ai/moai-adk.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/moai-factory-foreman .cursor/skills/moai-factory-foreman && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "moai-factory-foreman" agent skill from https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-factory-foreman into .cursor/skills/moai-factory-foreman/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "moai-factory-foreman", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/modu-ai/moai-adk.git --path .claude/skills/moai-factory-foreman--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install modu-ai/moai-adk moai-factory-foreman --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modu-ai/moai-adk.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/moai-factory-foreman .gemini/skills/moai-factory-foreman && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "moai-factory-foreman" agent skill from https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-factory-foreman into .gemini/skills/moai-factory-foreman/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "moai-factory-foreman", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install modu-ai/moai-adk moai-factory-foremanInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/modu-ai/moai-adk.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/moai-factory-foreman .github/skills/moai-factory-foreman && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "moai-factory-foreman" agent skill from https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-factory-foreman into .github/skills/moai-factory-foreman/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "moai-factory-foreman", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install modu-ai/moai-adk moai-factory-foreman --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modu-ai/moai-adk.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/moai-factory-foreman .opencode/skills/moai-factory-foreman && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "moai-factory-foreman" agent skill from https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-factory-foreman into .opencode/skills/moai-factory-foreman/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "moai-factory-foreman", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
moai-factory-foremanOne unattended factory foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence on read (not on claims), and report.
Moai Factory Foreman is an agent skill from modu-ai/moai-adk. One unattended factory foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence on read (not on claims), and report. This is the body the project's loop.md driver invokes each iteration of a bare /loop; it can also be invoked directly to test one cycle by hand.
Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for Claude Code
It sits in Development. The repository describes itself as: Agentic development harness for Claude Code — SPEC-driven plan/run/sync, TRUST 5 quality gates, model+effort routing, and Claude×GLM multi-LLM cost control. Single Go binary, 16… The licence is Apache-2.0.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2aab5f7. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadGrepGlobBash(moai gtd:*)Bash(git status:*)Bash(git log:*)Bash(git rev-parse:*)Bash(git diff:*)Bash(git show:*)From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Designed for Claude Code
From compatibility in the SKILL.md frontmatter.
Moai Factory Foreman loads about 3k tokens when it runs. Until then it costs about 90 tokens; SKILL.md has 1,549 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from modu-ai/moai-adk at commit 2aab5f7, republished under its Apache-2.0 licence (© modu-ai). 1,549 words, ~3,000 tokens.
.claude/skills/moai-factory-foreman/SKILL.md (or your agent's skills folder).<!-- moai:role-rules-required -->
[HARD] Before the first action of a session running this skill, read BOTH role-gated rule files in full: .claude/rules/moai/workflow/factory-dispatch.md and .claude/rules/moai/workflow/cross-session-messaging.md. A Codex-only project deploys the same files under .moai/policies/ (for example .moai/policies/workflow/factory-dispatch.md) — read whichever layout this project carries. The always-loaded surface carries only their stubs; the dispatch protocol, the card classes, and the queue boundaries this loop consumes live in those two files.
One unattended pass of the factory foreman: watch the backlog queue, dispatch
the next operator-picked card to an isolated worker, collect completion
evidence, report. The queue surface is moai todo (the moai gtd spelling serves the same queue); the dispatch protocol and
card classes live in the factory dispatch rule (.claude/rules/moai/workflow/factory-dispatch.md).
foreman — an auxiliary role of the leader: the unattended watcher that dispatches the already-picked card to an isolated worker when no leader session is holding the queue.
AskUserQuestion is removed from the tool pool while this skill is active —
that is the mechanical guarantee that the loop cannot stop and ask. Anything
that would have been a question becomes a line in the iteration report, and
anything that genuinely needs the operator's decision becomes a blocked card
under Boundaries below.
Deployment: start a session in the project, run bare /loop, then
background the session — loop tasks carry over to the background session and
keep running without a terminal. Esc cancels the pending wakeup of a
waiting loop. A recurring loop expires seven days after creation; restart it
when the queue still needs a foreman. Background monitors do not survive a
session resume — the first iteration after a resume re-arms the queue watch.
The session's permission settings must already allow what this loop uses (queue reads, git inspection, the worker spawn). A permission prompt that surfaces while unattended stalls the iteration until someone attaches; pre-approving that surface in project settings is the operator's setup step, not something this loop can do for itself.
picked are dispatchable. Never run moai gtd add; never run
moai gtd next <n> — that mutation is the operator's pick. Never invent,
reword, or reorder cards. An empty queue is a legitimate state: say so and
idle. A batch authorization (/moai:todo --auto — the operator's typed
invocation-as-approval) is the card-pick gate's autonomous form
(.claude/rules/moai/workflow/auto-semantics.md §9): within it, serial
consumption on its own judgment, outside the keep-set (bar a [보류 card,
which is ranked last, not excluded), is authorized; queue
ADMISSION stays the operator's. A lane takes its card through
moai factory next --card <id>, never through this loop.picked, name it blocked-for-operator in
the report together with the decision it waits on, and move on.one writer per tree, owned by
.claude/rules/moai/core/agent-common-protocol.md § Background Agent
Execution. The foreman keeps one worker in flight so a failed iteration has
exactly one author to read.isolation: "worktree" on the
spawn; relative paths in the prompt — the worker's CWD is its worktree
root). Nothing writes to the shared checkout.Queue watch. If no backlog monitor is live (first iteration, or after a resume), arm one Monitor on the queue file, re-arming it at each expiry:
command:
# The queue directory, resolved the way factory.StateDirForRoot does for a
# standard git-repository project: <moai-home>/db/<project-key>/todo,
# keyed by the repository's canonical (primary-checkout) root.
mh=${MOAI_HOME:-$HOME/.moai}
root=$(git rev-parse --show-toplevel 2>/dev/null) || root=$PWD
top=$(git worktree list --porcelain 2>/dev/null | sed -n 's/^worktree //p' | head -n 1)
[ -n "$top" ] && root=$top
root=$(cd "$root" && pwd -P)
key=$(basename "$root"); key=$(printf '%s' "$key" | tr -c 'A-Za-z0-9._-' '-')
sum=$(printf '%s' "$root" | sha256sum 2>/dev/null | cut -c1-8)
[ -n "$sum" ] || sum=$(printf '%s' "$root" | shasum -a 256 | cut -c1-8)
d=$mh/db/$key-$sum/todo
last=init
while true; do
cur=$(cksum "$d"/backlog.db "$d"/backlog.db-wal 2>/dev/null)
[ -n "$cur" ] || cur=missing
if [ "$cur" != "$last" ]; then
[ "$last" != init ] && echo "backlog changed"
last=$cur
fi
sleep 5
donetimeout_ms: 1800000
description: backlog queue watch
The persistent option no longer exists — every Monitor now carries a
deadline, timeout_ms is a required input, and the watch above is an
unbounded loop that never ends on its own. 1800000 is the longest
deadline the tool documents accepting; a larger value is capped rather
than honoured. At expiry the loop is killed and one notice arrives with
the event count, so an iteration that still needs the watch re-arms it.
A non-interactive (-p) session is reported to cap the deadline lower
than an interactive one; that lower cap is not observable from the tool
input schema, so treat a shorter-than-requested expiry there as expected
rather than as a fault.
The watch resolves the queue directory the way factory.StateDirForRoot
does for a standard git-repository project — a project-keyed directory
under the moai home (MOAI_HOME when that is set to an absolute path,
otherwise ~/.moai), keyed by the primary checkout's root — so a linked
worktree watches the primary checkout's queue, not a directory local to
its own tree. The queue is the database, and a backlog.json beside it is an export or
a legacy leftover — never the queue — so a watch pointed at the JSON on a
migrated project polls a file that never changes and reports nothing,
forever. The write-ahead log is watched alongside the database because a
committed write can sit in backlog.db-wal with the database image
byte-identical until a checkpoint folds it back; watching the database
alone misses exactly those mutations. The checksum poll emits one line
per change and costs two tiny reads every five seconds. Do not tighten
the interval, and do not arm a second watcher. Each emitted
line, like each scheduled wakeup, is a prompt to run this same idempotent
iteration — an iteration that finds nothing to do ends quickly.
Read the queue. moai gtd list --json (lock-free). A missing queue
file is an empty queue, never an error. Records carry id, text,
spec_id, and state (queued | picked | dropped).
Collect before dispatch. If a worker dispatched by an earlier iteration has returned, read its evidence file first (step 6). If a worker is still running, end the iteration with a one-line status.
Choose the dispatchable card. The oldest picked item with no live
worker and no recorded blocker. queued items are not yours to pick outside
a batch authorization.
Dispatch one worker with the Agent tool, isolation: "worktree". The
dispatch is a fixed-field address block — a pointer, not a copy, ten
lines at most:
card: <id>
spec: <SPEC-ID> # only when the card carries one
cmd: <the card's work in one line; the phase command when a SPEC is attached>
evidence: .moai/reports/<card-id>/evidence.mdRoute the spawn to the agent the card's work matches under the standard
delegation rules; where no specialist matches, a general-purpose spawn
with a domain whitelist. The worker prompt carries the block plus these
standing orders: rename the worktree branch to WT-<slug> (a
descriptive slug, never the card id) first;
implement the card; verify lane-locally; write the evidence file with
decisions, verbatim output tails of the checks run, explicit gaps, and
residual risk; commit by explicit pathspec; never push.
Collect on evidence. When the worker returns, read the evidence file
it names. Advance the card — moai gtd done <t-id> — only when the
evidence shows the work complete: verbatim passing output present, gaps
named. A missing, unreadable, or stale evidence file is a gap: the card
stays picked, the report says why, and the card is not re-dispatched
this iteration. Absence of a failure signal is not a pass.
Report. Close with two to six lines: queue summary, what was dispatched or collected, which evidence was read, blocked cards and the decisions they wait on. This report is what the operator reads on reattach — name what you read, not what you were told.
The single-worker dispatch above is the only mode. Fanning a card out to numbered factory lanes — the multi-lane launcher surface — is separate work; when the foreman grows that routing, it lands here as a second dispatch mode chosen per card. Until then this loop spawns one subagent per card, reads no factory state, and launches no lanes.
Stop the loop (ScheduleWakeup with stop: true), with a one-line reason,
when the loop cannot do its job: the queue file is repeatedly unreadable,
the queue watch cannot be armed, or this skill's own surface is broken. A
transient worker failure is not a loop failure — record it on the card and
let the next iteration decide whether to re-dispatch.
© modu-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/moai-factory-foreman of modu-ai/moai-adk.
Open the folder on GitHubat commit 2aab5f7
Moai Factory Foreman next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Moai Factory Foreman this skillmodu-ai/moai-adk | 1.2k | — | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Vercel Composition Patternssupabase/supabase | 111k | 58 repos | ~726 | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Typescript Advanced Typesrolling-scopes/rsschool-app | 10k | 25 repos | ~4.2k | Automated safety check: Pass | MPL-2.0 | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 4 repos | ~1.1k | Automated safety check: Pass | MIT |
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
rolling-scopes/rsschool-app
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
onyx-dot-app/onyx
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.
modu-ai/moai-adk
Builds hand-editable SVG diagrams from computed layout coordinates, lints the source and renders a 2x PNG, with rules for when mermaid is the better choice.
modu-ai/moai-adk
Reference for MoAI-ADK's core development principles: TRUST 5 quality gates, SPEC-first domain-driven workflow, agent delegation and token budgeting.
modu-ai/moai-adk
Manages SPEC documents for MoAI-ADK development, with GEARS or EARS requirement notation, acceptance criteria and a link into the Plan-Run-Sync workflow.
modu-ai/moai-adk
Drives test-first development through the RED, GREEN, REFACTOR cycle, with a config switch that selects between TDD and a DDD workflow for existing code.
modu-ai/moai-adk
Gives each SPEC its own Git worktree with a registry of active workspaces, base-branch sync and cleanup of merged ones, inside the MoAI-ADK workflow.
modu-ai/moai-adk
Watches a pull request's CI checks after creation, separates required from auxiliary failures, applies limited safe fixes and escalates anything semantic to you.
Categories
One unattended factory foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence on read (not on claims), and report. Moai Factory Foreman is an agent skill from modu-ai/moai-adk. One unattended factory foreman iteration: watch the backlog queue, dispatch the next operator-picked card to an isolated worker, collect completion evidence on read (not on claims), and report.
Moai Factory Foreman fits situations like: development work in your project.
Run `npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a claude-code`. Or copy the skill folder (.claude/skills/moai-factory-foreman in modu-ai/moai-adk) into .claude/skills/moai-factory-foreman in your project. Claude Code loads it when a task matches its description.
Run `npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a codex`. Or copy the skill folder (.claude/skills/moai-factory-foreman in modu-ai/moai-adk) into .agents/skills/moai-factory-foreman in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add modu-ai/moai-adk --skill moai-factory-foreman -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/moai-factory-foreman, .gemini/skills/moai-factory-foreman, .github/skills/moai-factory-foreman and .opencode/skills/moai-factory-foreman in your project.
SKILL.md names no scripts, command-line tools or credentials: Moai Factory Foreman is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Grep, Glob, Bash(moai gtd:*), Bash(git status:*), Bash(git log:*), Bash(git rev-parse:*), Bash(git diff:*), Bash(git show:*). Compatibility (from SKILL.md): Designed for Claude Code.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Moai Factory Foreman is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Moai Factory Foreman: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
modu-ai (a GitHub organization) maintains it in modu-ai/moai-adk, which has 1,230 GitHub stars. The repository holds 48 skills in this directory. The repository was last updated on October 9, 2026.
Source: modu-ai/moai-adk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.