agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/human-in-the-loop/SKILL.md

human-in-the-loop

Skill1 starsChanged 19 days agoMITView on GitHub

Requires explicit user approval during Phase 6 and Phase 7 before modifying critical files (auth, migrations, payments, .env) or proceeding when implementation confidence is low.

  • Reads credentials

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 5

    Distinctive

    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:

    Critical File Detection: Before modifying or creating any file, check whether it belongs to a critical category:

    line 14
  2. Distinctive:

    If the file is critical, STOP immediately before editing.

    line 19
  3. Distinctive:

    Low-Confidence Gate: If implementation confidence is low (ambiguous edge cases, unclear side effects, risky refactors, or repeated failed …

    line 20
  4. Distinctive:

    Never modify critical files autonomously without user confirmation.

    line 34
  5. Distinctive:

    Never guess or force through a low-confidence change silently.

    line 35

“Common” is measured: kept by at least 6 in 10 of the 6 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

Human In The Loop

Trigger

Mandatory during Phase 6 (Implementation) and Phase 7 (Audit).

Process

  1. Critical File Detection: Before modifying or creating any file, check whether it belongs to a critical category:
    • Authentication, authorization, session, or RLS security policies
    • Database schemas and migrations
    • Payment, billing, or financial transaction logic
    • Environment, secrets, CI/CD, or security configuration files (.env*, .github/workflows/) If the file is critical, STOP immediately before editing.
  2. Low-Confidence Gate: If implementation confidence is low (ambiguous edge cases, unclear side effects, risky refactors, or repeated failed fix attempts), STOP immediately instead of guessing.
  3. Request Explicit Approval: Prompt the user clearly using this format: "I need to modify [file], which is a critical file. Do you approve this change?" Include a brief summary of the intended change and risk, and wait for explicit approval before touching the file.

Output Contract

Explicit user approval obtained before modifying any critical file or proceeding on a low-confidence change.

Checklist

  • Target file screened against critical categories (auth, migrations, payments, .env)
  • Implementation confidence verified before proceeding
  • Explicit user approval received for every critical-file edit

Prohibitions

  • Never modify critical files autonomously without user confirmation.
  • Never guess or force through a low-confidence change silently.

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.