agentleFS
jomashijomashi/fuxi-agent-loop-skill/SKILL.md

fuxi

Skill1 starsChanged 5 months agoMITView on GitHub

Use when a vague, recurring, multi-step, multi-agent, project-monitoring, creative-production, automation, or workflow-management request needs to become a controlled repeatable work loop.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. Yeeshenyuee/fuxi★ 4same name

    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

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never start an unattended loop from a vague request.

    line 14
  2. Distinctive:

    Before running a loop, establish:

    line 18
  3. Distinctive:

    If any field is unknown, make the smallest safe assumption and state it, or ask one necessary question.

    line 31
  4. Distinctive:

    Do the smallest useful next step that moves the loop forward.

    line 37
  5. Distinctive:

    Verify with a different check than the one used to create the result.

    line 38
  6. Distinctive:

    Ask at most one clarification question unless blocked.

    line 47
  7. Distinctive:

    Keep chat separate from deliverables: a user-facing summary is not the working artifact.

    line 49
  8. Distinctive:

    Verify actual files, commands, logs, or outputs before saying done.

    line 50
  9. Distinctive:

    Use this compact state block in a file, memory entry, or handoff message when persistence is needed:

    line 65
  10. Distinctive:

    Stop and ask the user when:

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Fuxi

Overview

Fuxi turns a broad request into a controlled agent loop: discover the real state, define the next handoff, verify independently, persist state, then decide whether to continue, stop, or ask the user.

Core Rule

Never start an unattended loop from a vague request. First produce one safe loop contract, run only the current turn, and stop at the next human checkpoint unless the user already approved automation.

Loop Contract

Before running a loop, establish:

FieldRequired answer
GoalWhat useful state should exist after the loop?
OwnerWhich agent, tool, or project owns each part?
DiscoveryWhich files, repositories, logs, documents, or tools must be inspected?
HandoffWhat exact artifact should the next actor receive?
VerificationHow will success be checked independently?
MemoryWhere should decisions, paths, and status be saved?
Stop ruleWhen must the loop stop instead of guessing?
BudgetMax time, tokens, retries, files, or tool calls for one turn.

If any field is unknown, make the smallest safe assumption and state it, or ask one necessary question.

One Loop Turn

  1. Translate the rough intent into a concrete objective.
  2. Discover the real current state from source artifacts, not memory or habit.
  3. Do the smallest useful next step that moves the loop forward.
  4. Verify with a different check than the one used to create the result.
  5. Persist only durable facts: paths, decisions, blockers, next action.
  6. Report the result, evidence, and next checkpoint.

Inner-Run Discipline

For each agent run:

  • Give one substantive next step before asking questions.
  • Ask at most one clarification question unless blocked.
  • Scale tool depth to risk: quick read for simple tasks, full inspection for code, data, and workflow decisions.
  • Keep chat separate from deliverables: a user-facing summary is not the working artifact.
  • Verify actual files, commands, logs, or outputs before saying done.

Loop Patterns

SituationPattern
User cannot define requirementsTranslate into a task card, then execute the safest first slice.
Multiple agents or tools involvedAssign one owner per artifact and define handoff format.
Repeated creative workflowPreserve user intent, separate generation from review, keep versioned outputs.
Repository or system maintenanceInspect source, patch minimally, run direct validation, record changed paths.
Knowledge-base cleanupInventory first, dedupe second, delete only after a human checkpoint.
Automation ideaSimulate one manual loop before scheduling anything.

State Format

Use this compact state block in a file, memory entry, or handoff message when persistence is needed:

Loop:
Goal:
Current state:
Sources inspected:
Actions taken:
Verification:
Decisions:
Blocked by:
Next action:
Stop rule:
Budget used:

Safety Stops

Stop and ask the user when:

  • Deletion, overwriting, purchase, account, billing, credential, or irreversible external action is required.
  • Discovery sources conflict and the correct source of truth is unclear.
  • Verification fails twice for the same reason.
  • The next step would exceed the agreed budget or scope.
  • The loop would begin acting continuously without explicit approval.

Common Mistakes

MistakeCorrection
Building a grand workflow before one real runRun one manual loop turn first.
Trusting prior summariesRe-open source artifacts when accuracy matters.
Letting the generator verify itselfUse independent checks, tests, logs, or a reviewer pass.
Saving everything to memorySave only durable decisions and next actions.
Continuing because progress feels possibleStop at the checkpoint when risk or uncertainty rises.

Output Shape

For user updates, keep it short:

Conclusion: ...
Evidence: ...
Completed: ...
Verification: ...
Next: ...

For agent handoff, use the State Format instead of prose.

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.