PUA Loop
tanweai/pua
Runs an unattended iterate-until-verified loop in which a user-set verify command, not the agent's own claim, decides when the task is finished.
Single entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff.
$ npx skills add majiayu000/spellbook --skill flowguard -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install majiayu000/spellbook flowguard --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/majiayu000/spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/flowguard .claude/skills/flowguard && 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 "flowguard" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/flowguard into .claude/skills/flowguard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flowguard", 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/majiayu000/spellbook/tree/main/skills/flowguardType 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 majiayu000/spellbook --skill flowguard -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install majiayu000/spellbook flowguard --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/flowguard .agents/skills/flowguard && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "flowguard" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/flowguard into .agents/skills/flowguard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flowguard", 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 majiayu000/spellbook --skill flowguard -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install majiayu000/spellbook flowguard --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/flowguard .cursor/skills/flowguard && 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 "flowguard" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/flowguard into .cursor/skills/flowguard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flowguard", 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/majiayu000/spellbook.git --path skills/flowguard--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 majiayu000/spellbook --skill flowguard -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install majiayu000/spellbook flowguard --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/flowguard .gemini/skills/flowguard && 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 "flowguard" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/flowguard into .gemini/skills/flowguard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flowguard", 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 majiayu000/spellbook flowguardInstalls 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 majiayu000/spellbook --skill flowguard -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/flowguard .github/skills/flowguard && 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 "flowguard" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/flowguard into .github/skills/flowguard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flowguard", 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 majiayu000/spellbook --skill flowguard -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install majiayu000/spellbook flowguard --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/flowguard .opencode/skills/flowguard && 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 "flowguard" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/flowguard into .opencode/skills/flowguard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flowguard", 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.
flowguardSingle entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff.
Flowguard is meant for work likely to drift, lose context or get expensive: multi-step tasks, autonomous loops, bug fixes, pull request readiness checks, compaction handoffs and resumes. It coordinates other skills, such as systematic-debugging and comprehensive-testing, rather than replacing them. The agent first picks a route: `execute_direct` for clear, small or cheaply verified work, `plan_first` for work spanning many files, sessions or risky sequencing, and `clarify_first` when the goal or permissions are unclear.
An operating contract sets the limits. No long loop starts before route, scope and stop conditions are explicit, remembered summaries are not trusted until the repo, git and runtime state are checked, and completion needs fresh evidence from the current session. The agent restates its objective and a plan of at most five steps before major phase changes, and it asks for explicit human approval, via `review-gate` or an equivalent review pack, before commit, push, PR or merge. A state-contract reference and a snapshot script support handoffs.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ed52af7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
cargogonpxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.
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.
Flowguard Task Guard loads about 2.1k tokens when it runs, and up to ~3.1k if it reads all its reference files. Until then it costs about 89 tokens; SKILL.md has 1,040 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); the scripts in this folder are not scanned.
The full file from majiayu000/spellbook at commit ed52af7, republished under its MIT licence (© majiayu000). 1,040 words, ~2,057 tokens.
.claude/skills/flowguard/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Use this skill as the single lifecycle entrypoint for agent work that can drift, lose context, or become expensive. It routes the task, verifies current state, runs bounded execution loops, and leaves a resumable handoff.
This skill coordinates other skills; it does not replace them. Use task-specific skills such as systematic-debugging, comprehensive-testing, codex-retrospective, or vibeguard only when their trigger is clearly met.
review-gate or produce the same review pack and wait for explicit human approval.Choose one route before editing files or running a long loop:
| Route | Use When | Action |
|---|---|---|
execute_direct | Goal, context, constraints, and done-when are clear; scope is small or verification is cheap. | Work directly with short checkpoints. |
plan_first | Work spans many files, sessions, agents, architecture decisions, migrations, or risky sequencing. | Create a brief execution plan or use the relevant planning skill before edits. |
clarify_first | Goal, target files, constraints, done-when, destructive permission, production impact, or ownership is unclear. | Ask the smallest blocking question before continuing. |
Do not hide ambiguity inside assumptions. If a wrong assumption would cause large rewrites, production risk, data loss, credential exposure, or wasted long-loop cost, use clarify_first.
AGENTS.md for files that may be edited.# From the installed flowguard skill directory, the directory containing this SKILL.md:
scripts/workflow_state_snapshot.sh /path/to/target/repoWhen already in the target repo, pass . as the target to the installed script, for example /path/to/installed/flowguard/scripts/workflow_state_snapshot.sh ..
Before substantial work, write or state the compact preflight:
route:
goal:
context:
constraints:
done_when:
out_of_scope:
verification_commands:
stop_conditions:
handoff_location:
objective_restatement:
plan_5_steps_or_less:For short direct tasks, this can be one concise paragraph. For long tasks, make it explicit and keep it available for compaction or resume.
Use a step-test-update loop:
Stop and re-evaluate when any condition occurs:
execute_direct, but new evidence shows missing goal, constraints, or done-when. Stop and re-route.Do not claim completion from expectation or older output. Report fresh evidence from this session.
Pick checks from the repo, AGENTS.md, and changed surface. Common defaults:
| Stack | Before Completion | Before Submission |
|---|---|---|
| Rust | cargo check | cargo test |
| TypeScript | npx tsc --noEmit | project test command |
| Go | go build ./... | go test ./... |
| Python | focused import/type/lint check if present | pytest |
If a check cannot run, say why and name the nearest useful fallback that did run.
Before landing agent-generated changes, produce a concise review pack or use the
review-gate skill. The pack must include intent, diff summary, changed files,
risks, verification, open questions, and the exact action needing approval.
Human approval for one action does not automatically authorize a different
action such as merge.
Read references/state-contract.md when asked to create a handoff, resume after compaction, continue a previous task, or prepare automation.
Required handoff fields:
Resume must start by comparing the handoff with current local truth. If cwd, branch, files, tests, or user priority changed, update the plan before editing.
Use parallel agents only when file ownership is disjoint and merge ownership is explicit. A delegation must name:
If two agents need to write the same file, do not run them in parallel.
Skill workflows are manual first. Automate only after the workflow has been manually validated on real tasks. Scheduled automation should start as read-only: state scans, handoff drafts, stale-worktree reports, or verification summaries. Code edits, deploys, credential changes, or PR submissions require explicit user intent unless a separate trusted automation contract exists.
scripts/workflow_state_snapshot.sh <path>: read-only snapshot for cwd, git state, nearby agent instructions, dirty files, and likely verification commands.references/state-contract.md: templates for preflight, checkpoints, handoff, resume, loop guards, and automation readiness.review-gate: review pack and explicit human approval before landing agent-generated diffs.© majiayu000, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, references) in skills/flowguard of majiayu000/spellbook.
Open the folder on GitHubat commit ed52af7
Flowguard Task Guard 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 |
|---|---|---|---|---|---|---|
| Flowguard Task Guard this skillmajiayu000/spellbook | 287 | — | ~2.1k | Automated safety check: Pass | MIT | |
| PUA Looptanweai/pua | 20k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Show Me Your Work Decision Logcursor/plugins | 11k | 8 repos | ~1.6k | Automated safety check: Pass | None | |
| Harness Engineering10xChengTu/harness-engineering | 102 | 1 repos | ~1k | Automated safety check: Pass | None | |
| Ultragoal Multi-Goal LedgerYeachan-Heo/gajae-code | 2.9k | — | ~8.4k | Automated safety check: Pass | MIT | |
| Requirement Ledger Workflowadand-91/gpt-6-astra-skill | 125 | — | ~6.3k | Automated safety check: Pass | MIT |
tanweai/pua
Runs an unattended iterate-until-verified loop in which a user-set verify command, not the agent's own claim, decides when the task is finished.
cursor/plugins
Keeps a TSV decision log for long or unattended agent runs, one row per decision with what, why, evidence and result, so a reviewer can check the work later.
10xChengTu/harness-engineering
Set up and improve harness engineering (AGENTS.md, docs/, lint rules, eval systems, project-level prompt engineering) for AI-agent-friendly codebases.
Yeachan-Heo/gajae-code
Breaks a brief into ordered goals, keeps a durable ledger under .omc/ultragoal and prints handoff text so a Claude /goal run survives session restarts.
adand-91/gpt-6-astra-skill
Takes over one selected project on request, reports progress in a fixed Chinese-language format, and runs bounded reviews, handoffs and verifications from explicit sources.
jtaroreh/agystack
Runs an iterative verification loop on Google Antigravity: make one edit, run a test command, and reschedule until the command passes or the iteration budget runs out.
majiayu000/spellbook
Audits and repairs how coding-agent Skills are owned, copied and exposed across runtimes, from canonical sources to quarantine and retirement.
majiayu000/spellbook
Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.
majiayu000/spellbook
Plans, produces or diagnoses evidence-backed product demo videos: script, capture plan, pacing checks and verified final media built on real product behavior.
majiayu000/spellbook
Scans a repository, its lockfiles and node_modules for known malicious npm package versions and install-time indicators, using a read-only Python scanner.
majiayu000/spellbook
Product management helpers: a RICE scoring script, an interview transcript analyzer and PRD templates for prioritizing features, synthesizing research and writing requirements.
majiayu000/spellbook
Audits a repository's agent-readable context, from AGENTS.md and CLAUDE.md to skills and PRODUCT or TECH specs, and recommends the smallest useful improvements.
Categories
Single entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff. Flowguard is meant for work likely to drift, lose context or get expensive: multi-step tasks, autonomous loops, bug fixes, pull request readiness checks, compaction handoffs and resumes. It coordinates other skills, such as systematic-debugging and comprehensive-testing, rather than replacing them.
Flowguard Task Guard fits situations like: continuing a multi-session task from a previous summary or handoff; running a bounded autonomous loop with explicit scope and stop conditions; checking whether a change is ready for a pull request before anything is pushed.
Run `npx skills add majiayu000/spellbook --skill flowguard -a claude-code`. Or copy the skill folder (skills/flowguard in majiayu000/spellbook) into .claude/skills/flowguard in your project. Claude Code loads it when a task matches its description.
Run `npx skills add majiayu000/spellbook --skill flowguard -a codex`. Or copy the skill folder (skills/flowguard in majiayu000/spellbook) into .agents/skills/flowguard 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 majiayu000/spellbook --skill flowguard -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flowguard, .gemini/skills/flowguard, .github/skills/flowguard and .opencode/skills/flowguard in your project.
Going by SKILL.md and its folder, Flowguard Task Guard needs a shell for the scripts in its folder and the command-line tools its instructions call (cargo, go and npx).
SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Flowguard Task Guard is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Flowguard Task Guard: PUA Loop (tanweai/pua, 20k stars), Show Me Your Work Decision Log (cursor/plugins, 11k stars), Harness Engineering (10xChengTu/harness-engineering, 102 stars) and Ultragoal Multi-Goal Ledger (Yeachan-Heo/gajae-code, 2.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
majiayu000 (a GitHub user) maintains it in majiayu000/spellbook, which has 287 GitHub stars. The repository holds 97 skills in this directory. The repository was last updated on October 8, 2026.
Source: majiayu000/spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.