agentleFS
egagofuregagofur/ai-engineering-loop/.agents/skills/ael/SKILL.md

ael

Skill2 starsChanged 8 days agoMITView on GitHub

Use when the user runs /ael, says "run the engineering loop" or "devil's advocate review", asks to init or refresh living project context, or wants the Maker / Devil's Advocate / Judge engineering loop.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No subagent tool: same budgets in this session as CONTEXT_ISOLATION_ONLY.

    line 15
  2. Very specific:

    Write claimed-vs-reality.md after gate verification passes.

    line 38
  3. Distinctive:

    Never infer human approval.

    line 40
  4. Very specific:

    After each child budget record real usage or --unavailable.

    line 41
  5. Distinctive:

    No secrets or hidden reasoning in activity messages.

    line 42
  6. Very specific:

    When a subagent returned its own result (Grok: its own subagent_id):

    line 46
  7. Very specific:

    When no subagent ran (tool AVAILABLE: mode adds (reason: <why>)):

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
<!-- Generated from skill-src/ by npm run build:skills; do not edit. -->

AI Engineering Loop

Stage details: references/loop-*.md beside this file (also via docs), read only on entering that stage. Specs and references: npx ai-engineering-loop docs <name> [--section <h>]; never read whole spec directories.

Host rules

Same skill on every host. Before the first DA or Judge spawn, read your host's section in loop-hosts (exact tool, allowed keys, fallbacks).

  1. Spawn devil-advocate then judge as fresh siblings with the host's own subagent tool, passing only keys its schema has; wait for each, never in the background or nested; general-purpose only if the named type is rejected. Never use a browser subagent as reviewer.
  2. No subagent tool: same budgets in this session as CONTEXT_ISOLATION_ONLY; never claim independent execution.
  3. A tool says "cannot determine the safety" or returns HTTP 400: stop that tool, do not retry, continue read-only, and tell the user (loop-hosts).
  4. Models: the host catalog (/models, grok models); never type a model name.

Commands

init|status|refresh|sync-hosts|generate-adapter|generate-workflow: run npx ai-engineering-loop <command> (loop-commands); do not commit unless asked. No task: offer workflow interview or a task; no Run. Otherwise: the loop.

Loop

Map (not a second OS) of the 8-stage loop: Specify (stages 0-1), Make (stages 2-4), Review (stages 5-7), Deliver (stage 8). Parent = Maker + orchestrator; Devil's Advocate (DA) and Judge are fresh siblings, never nested or resumed. Gate failures override prose. Never edit state.json/current.json.

Tier (from run --json; it only rises). Do not skip Goal Contract, verification, Devil's Advocate, or Judge gates; the tier only decides who fills them.

  • T0 trivial (docs, typo, lint): quick start "<task>" (run + gate goal), edit, quick finish; no subagents.
  • T1 normal: frozen Goal, red test, verify --related, lean DA, review ingest; Judge only on judgeRequired.
  • T2 risky (HIGH_RISK_PATH, DOT business logic, >10 files): add loop-risky (blast radius, Judge on STRONG_MODEL). Unseen risk: run --new --tier T2 --tier-reason <why>.
  1. run --json [--mode report-only|assisted|unattended] (RUN_DIR = .ai-engineering-loop/runs/<runId>/). Do not run sync-hosts per run; if hostSkills.stale, ask the user. Read .ai-engineering-loop/glossary.md, plus lessons.md/workflow.md if present; heed learnings.
  2. Goal Contract: loop-goal. 2-4. Maker: loop-maker, then gate maker. 5. Verify: loop-verify. 6-7. DA and Judge: loop-review. 8. Deliver: loop-deliver.

Invariants (every tier):

  • AC is a failure table. Do not freeze sunny-path-only. Chat agreement is not freeze.
  • One red test per AC row (bugs: red repro) before the fix.
  • Write claimed-vs-reality.md after gate verification passes. Do not spawn Devil's Advocate if the file is missing or any Claimed row lacks Reality.
  • ITERATE to iteration 3 (or the recipe cap), each with a new DA.
  • Never infer human approval.
  • After each child budget record real usage or --unavailable; never invent counts.
  • No secrets or hidden reasoning in activity messages.

Report header

When a subagent returned its own result (Grok: its own subagent_id):

Execution Mode: TRUE_INDEPENDENT_AGENT
Independent LLM Execution: PROVEN
Native Subagent Invocation: AVAILABLE
Review Method: True Independent Agent

When no subagent ran (tool AVAILABLE: mode adds (reason: <why>)):

Execution Mode: CONTEXT_ISOLATION_ONLY
Independent LLM Execution: NOT PROVEN
Native Subagent Invocation: UNAVAILABLE
Review Method: Clean-Slate Artifact Isolation Barrier

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.