Agent skill

Gated Module Implementation

by AlephantAI in AlephantAI/AIephant-AI-Agent-Gateway

Plan-first, one-time human plan approval; batched execution in either Gated (human confirms between batches) or Auto-loop (continuous run after plan approval); strict task-state updates; automatic…

GPL-3.0Auto-check passedDevelopment

Install Gated Module Implementation

skills CLI
$ npx skills add AlephantAI/AIephant-AI-Agent-Gateway --skill gated-module-implementation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AlephantAI/AIephant-AI-Agent-Gateway gated-module-implementation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AlephantAI/AIephant-AI-Agent-Gateway.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/gated-module-implementation .claude/skills/gated-module-implementation && rm -rf skills-src

Use ~/.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/

Facts

Skill name
gated-module-implementation
GitHub stars
114
Token cost
~2.7k tokens
SKILL.md length
1,407 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
GPL-3.0

At a glance

Plan-first, one-time human plan approval; batched execution in either Gated (human confirms between batches) or Auto-loop (continuous run after plan approval); strict task-state updates; automatic…

  • Works in 5 steps: Plan (Required Before Any Code) → Three Rounds of Audit → Human Review — Plan Approval Only (Once) → …
  • Audit then implement
  • SKILL.md covers Overview, Phase 1: Plan (Required Before…, Phase 2: Three Rounds of Audit and Phase 3: Human Review — Plan…, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Gated Module Implementation is an agent skill from AlephantAI/AIephant-AI-Agent-Gateway. Plan-first, one-time human plan approval; batched execution in either Gated (human confirms between batches) or Auto-loop (continuous run after plan approval); strict task-state updates; automatic 3-round code review. Use for "audit then implement" or "plan first, then execute". Say "auto-loop" or "frad-dotclaude" for Auto-loop mode.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code review and Workflow automation. It works with x402, DeepSeek, OpenAI and n8n. The repository describes itself as: Alephant is an open-source AI Agent Gateway for routing, tracking, and controlling LLM usage across AI agents, members, and workflows, and for publishing agent capabilities as… The licence is GPL-3.0.

When your agent uses it

  • Audit then implement
  • Tasks that involve Code review
  • Tasks that involve Workflow automation

Example prompts

  • “audit then implement”
  • “plan first, then execute”
  • “auto-loop”
  • “/gated-module-implementation”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Plan (Required Before Any Code)
  2. Three Rounds of Audit
  3. Human Review — Plan Approval Only (Once)
  4. Execute the Plan (Tasks in Order, Batch by Batch)
  5. Automatic 3-Round Code Review (No Human Between Rounds)

What it can do on your machine

Read from SKILL.md and the folder at commit baf26d5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gated Module Implementation loads about 2.7k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 1,407 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from AlephantAI/AIephant-AI-Agent-Gateway at commit baf26d5, republished under its GPL-3.0 licence (© AlephantAI). 1,407 words, ~2,663 tokens.

Download SKILL.mdSave it as .claude/skills/gated-module-implementation/SKILL.md (or your agent's skills folder).
name
gated-module-implementation
description
Plan-first, one-time human plan approval; batched execution in either Gated (human confirms between batches) or Auto-loop (continuous run after plan approval); strict task-state updates; automatic 3-round code review. Use for "audit then implement" or "plan first, then execute". Say "auto-loop" or "frad-dotclaude" for Auto-loop mode.

Gated Module Implementation

Overview

  • (1) Plan + (2) Audit: Write the implementation plan, run three rounds of plan audit, fix gaps.
  • (3) Human — Plan only: Only one human gate: approve the plan before any task runs. No human approval between code review rounds (those are automatic).
  • (4) Execute in order by batch: Tasks (e.g. 1–10) run in order. Behavior depends on Execution mode (below).
  • (5) Automatic 3-round review: After all tasks and tests pass, run exactly 3 rounds of code review automatically: round 1 → fix Critical/Important → round 2 → fix → round 3. No human confirmation between rounds.

Unit tests: full coverage. E2E: pass. Test report: generated. No skipped tests.

Execution mode
ModeWhen to usePhase 4 behavior
Gated (default)User does not ask for auto-run.After each batch: report → wait for human confirmation ("continue" / "go") → next batch.
Auto-loopUser says "auto-loop", "frad-dotclaude mode", "audit then implement and run everything automatically", or equivalent.After plan approval: run all batches in sequence with no human between batches. After each batch: report and update task state, then immediately proceed to next batch until all tasks done → then Phase 5.

Announce at start: "I'm using the gated-module-implementation skill for this module." If Auto-loop: also say "Auto-loop mode: I will run all execution batches continuously after plan approval."


Phase 1: Plan (Required Before Any Code)

  1. Clarify scope and dependencies

    • Identify the module boundary, upstream/downstream services, and shared contracts (API, DB, events).
    • Document in a short "Context & Dependencies" section (can live in the plan file or a linked doc).
  2. Write the implementation plan

    • REQUIRED SUB-SKILL: Use writing-plans.
    • Save the plan to the correct project plan/ path (see writing-plans for the table).
    • Plan must include explicit tasks for: unit tests (full coverage), E2E tests (fully runnable), and test report generation. No "skip tests" or "TODO tests."
  3. Deliverable

    • One plan file at <project>/plan/YYYY-MM-DD-<feature-name>.md with header, goal, architecture, and bite-sized tasks including test steps.

Phase 2: Three Rounds of Audit

Run three audit rounds on the plan (and any linked context). Do not proceed to execution until all three are done and issues are addressed.

Round 1 — Completeness & Scope
  • Goal and acceptance criteria are clear and testable.
  • All touched files (create/modify/test) are listed with exact paths.
  • Dependencies on other modules/APIs/DB are documented; no hidden coupling.
  • Edge cases and error paths are covered in tasks or tests.

Output: Short checklist result; list any gaps. Fix the plan if gaps found.

Round 2 — Dependencies & Interfaces
  • API contracts (request/response, status codes) are specified where the module touches boundaries.
  • DB schema changes (if any) are stated; migrations are in the task list.
  • Integration points (policy-service, gateway, SaaS, data-warehouse) respect project boundaries (see .cursor/rules/project.mdc).

Output: Short checklist result; list any conflicts or missing interface specs. Update plan if needed.

Round 3 — Test Strategy & Rollout
  • Unit test tasks exist for all new/edited behavior; plan states "full coverage" (or equivalent) and no skipped tests.
  • E2E test tasks exist and are runnable (commands and expected pass condition stated).
  • A task generates a test report (e.g. coverage report, E2E summary); artifact path or command documented.
  • Rollback or feature-flag approach is considered if relevant.

Output: Short checklist result; list any missing test or report steps. Update plan until satisfied.

After Round 3, present a one-paragraph Audit Summary (all three rounds) and say: "Plan ready for human review. Please confirm before execution."


Phase 3: Human Review — Plan Approval Only (Once)

Only one human review is required: approve the plan before any task execution. No human approval is needed before or between code review rounds (those are automatic). In Auto-loop mode, there is no human confirmation between Phase 4 batches — only this single plan approval.

Single checkpoint — Approve plan (before first task)
  • Present: plan path, goal, audit summary, and any open risks.
  • Do not start Phase 4 until the human explicitly confirms (e.g. "approved" / "go ahead" / "execute").
  • If the human requests plan changes, update the plan and optionally re-run the relevant audit round(s), then ask for confirmation again.
Between execution batches (Gated mode only)
  • Gated mode: After each batch (e.g. tasks 1–3 done): report what was done, show verification, wait for human confirmation before starting the next batch (e.g. 4–6). Tasks run in order; between batches you need "continue" / "go".
  • Auto-loop mode: Do not wait for human between batches. After each batch: report and update task state, then proceed immediately to the next batch until all tasks are done.

Show full SKILL.md (677 more words)Show less

Phase 4: Execute the Plan (Tasks in Order, Batch by Batch)

  1. REQUIRED SUB-SKILL: Use executing-plans.

  2. Execute all tasks in order (e.g. Task 1 → 2 → … → 10). Work in batches (e.g. first 3, then next 3, then rest). Behavior by mode:

    • Gated: After each batch: report → wait for human confirmation → next batch. Continue until all tasks are done.
    • Auto-loop: After plan approval: run batch 1 → report and update task state → immediately batch 2 → report → … → last batch. Do not stop for human between batches. Only after all tasks are done (and tests pass, report generated) proceed to Phase 5.
  3. Task state discipline (mandatory — do not forget):

    • Before starting a task: Mark it in_progress (e.g. TodoWrite or plan checklist).
    • Immediately after completing a task: Mark it completed.
    • Before each batch report: Verify every task in that batch is marked completed; if any is still in_progress or unchecked, update it first.
    • Rationale: Forgetting to update task state loses track of progress and makes batch reporting inaccurate; always update state when starting and finishing a task.
    • Per-batch self-check before "Ready for feedback": All tasks in this batch are marked completed; no task left in in_progress.
  4. Testing requirements (non-negotiable):

    • Unit tests: Achieve full coverage for new/changed code; do not skip or disable tests.
    • E2E tests: All E2E tests must run and pass; document the exact run command and result.
    • Test report: Generate and attach or link the test report (e.g. coverage HTML, E2E summary). If the project has a standard place (e.g. coverage/, test-results/), put it there and mention the path.
  5. If execution is blocked (e.g. test failure, missing dep), stop and ask; do not skip tests to "unblock."


Phase 5: Automatic 3-Round Code Review (No Human Between Rounds)

Multi-round review means run exactly 3 review rounds automatically: round 1 → fix Critical/Important → round 2 → fix → round 3. No human confirmation between rounds; all three rounds run automatically without inserting a human gate in the middle.

  1. After all plan tasks are complete and tests pass with report generated:
  2. Round 1: Dispatch the code-reviewer (plan + scope, correct BASE_SHA/HEAD_SHA). Fix all Critical and Important issues; re-run unit and E2E tests; regenerate test report if needed.
  3. Round 2: Dispatch the code-reviewer again (BASE_SHA = previous HEAD_SHA, HEAD_SHA = current HEAD). Fix all Critical and Important issues; re-run tests and update report if needed.
  4. Round 3: Dispatch the code-reviewer again (BASE_SHA = previous HEAD_SHA, HEAD_SHA = current HEAD). After round 3, consider the module done (fix any remaining Critical/Important from the report as needed).
  5. Do not stop to ask human between rounds — run all three rounds automatically.

Workflow Summary

PhaseActionGate (Gated)Gate (Auto-loop)
1Clarify deps + write plan (writing-plans)Plan savedPlan saved
2Audit Round 1–3 (plan audit)Checklist passChecklist pass
3Human: approve plan onceExplicit approval to executeExplicit approval to execute
4Execute batch 1; update task state each start/completeReport; human confirmsReport; no stop
4Execute batch 2, … remainingReport; human confirms eachContinue to next batch
4All tasks done; unit + E2E pass; report generated—No human between batches
5Automatic code review: round 1 → fix → round 2 → fix → round 33 rounds, no human3 rounds, no human

Red Lines

  • Do not start Phase 4 without human approval of the plan (once).
  • Gated mode only: Do not start the next execution batch without human confirmation after the previous batch. Auto-loop mode: After plan approval, you may run all batches continuously without human between batches.
  • Do not skip or disable unit or E2E tests; no "skip" in test config for this module.
  • Do not forget to mark tasks in_progress when starting and completed when finishing; verify batch task states before each report.
  • Do not stop to ask human between code review rounds — run all 3 rounds automatically.
  • Do not consider the module complete without a generated test report and all 3 code review rounds completed.

References

© AlephantAI, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/gated-module-implementation of AlephantAI/AIephant-AI-Agent-Gateway.

Open the folder on GitHubat commit baf26d5

Compare with similar skills

Gated Module Implementation 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.

Gated Module Implementation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gated Module Implementation this skillAlephantAI/AIephant-AI-Agent-Gateway114—~2.7kAutomated safety check: PassGPL-3.0
Deep Reviewdyad-sh/dyad22k—~1.4kAutomated safety check: PassCustom licence
Apify Integration Developmentapify/agent-skills2.4k—~3.1kAutomated safety check: PassNone
Makeericrisco/rsc-harness156—~3.1kAutomated safety check: NotesMIT
N8nericrisco/rsc-harness156—~2.6kAutomated safety check: NotesMIT
Zapierericrisco/rsc-harness156—~2.8kAutomated safety check: NotesMIT

Similar skills

  • Deep Review

    dyad-sh/dyad

    Deep multi-agent code review run locally — a fleet of parallel finder agents reviews the diff from independent angles, then adversarial verifier agents reproduce each finding before it is reported.

    22k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    Guides designing and building an official Apify integration for a company's product: workflow-automation apps, AI agent plugins, AI framework packages or direct API clients.

    2.4k GitHub stars~3.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Make

    ericrisco/rsc-harness

    A skill your agent uses when operating Make.com (formerly Integromat) programmatically — driving its REST API v2 or the Make MCP server from code or an agent to create, read, update, activate, run…

    156 GitHub stars~3.1k tokensUpdated today
    Backend & APIsAuto-check: notes
  • N8n

    ericrisco/rsc-harness

    A skill your agent uses when operating a live n8n instance programmatically — its REST API ({host}/api/v1, X-N8N-API-KEY) or the n8n-mcp server — to create, validate, test, activate, update, delete…

    156 GitHub stars~2.6k tokensUpdated today
    Productivity & AutomationAuto-check: notes
  • Zapier

    ericrisco/rsc-harness

    A skill your agent uses when operating Zapier from an agent through the official hosted Zapier MCP server — connecting with a bearer key, discovering an app's actions, enabling one, and invoking a…

    156 GitHub stars~2.8k tokensUpdated today
    Productivity & AutomationAuto-check: notes
  • ClawRouter LLM Gateway

    BlockRunAI/ClawRouter

    Describes ClawRouter, a local proxy that forwards each LLM request to the blockrun.ai gateway, which routes to a cheaper capable model, paid by USDC wallet or API key credit.

    6.6k GitHub stars~6.8k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed

Questions about Gated Module Implementation

What does Gated Module Implementation do?

Plan-first, one-time human plan approval; batched execution in either Gated (human confirms between batches) or Auto-loop (continuous run after plan approval); strict task-state updates; automatic…. Gated Module Implementation is an agent skill from AlephantAI/AIephant-AI-Agent-Gateway. Plan-first, one-time human plan approval; batched execution in either Gated (human confirms between batches) or Auto-loop (continuous run after plan approval); strict task-state updates; automatic 3-round code review.

When should I use Gated Module Implementation?

Gated Module Implementation fits situations like: audit then implement; tasks that involve Code review; tasks that involve Workflow automation.

How do I install Gated Module Implementation in Claude Code?

Run `npx skills add AlephantAI/AIephant-AI-Agent-Gateway --skill gated-module-implementation -a claude-code`. Or copy the skill folder (.cursor/skills/gated-module-implementation in AlephantAI/AIephant-AI-Agent-Gateway) into .claude/skills/gated-module-implementation in your project. Claude Code loads it when a task matches its description.

How do I install Gated Module Implementation in Codex?

Run `npx skills add AlephantAI/AIephant-AI-Agent-Gateway --skill gated-module-implementation -a codex`. Or copy the skill folder (.cursor/skills/gated-module-implementation in AlephantAI/AIephant-AI-Agent-Gateway) into .agents/skills/gated-module-implementation in your project. Codex loads it when a task matches its description.

Can I use Gated Module Implementation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AlephantAI/AIephant-AI-Agent-Gateway --skill gated-module-implementation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gated-module-implementation, .gemini/skills/gated-module-implementation, .github/skills/gated-module-implementation and .opencode/skills/gated-module-implementation in your project.

What does Gated Module Implementation need to run?

SKILL.md names no scripts, command-line tools or credentials: Gated Module Implementation is instructions for the agent only.

Does Gated Module Implementation access the network?

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.

Is Gated Module Implementation safe to install?

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.

What licence does Gated Module Implementation use?

Gated Module Implementation is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gated Module Implementation use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gated Module Implementation?

Skills that share tags, products or a category with Gated Module Implementation: Deep Review (dyad-sh/dyad, 22k stars), Apify Integration Development (apify/agent-skills, 2.4k stars), Make (ericrisco/rsc-harness, 156 stars) and N8n (ericrisco/rsc-harness, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gated Module Implementation?

AlephantAI (a GitHub organization) maintains it in AlephantAI/AIephant-AI-Agent-Gateway, which has 114 GitHub stars. The repository was last updated on June 12, 2026.

Source: AlephantAI/AIephant-AI-Agent-Gateway on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.