Agents Best Practices
DenisSergeevitch/agents-best-practices
A skill your agent uses when designing, generating an MVP blueprint for, auditing, troubleshooting, refactoring, or explaining an agentic harness for any domain.
Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them.
$ npx skills add fabricioctelles/skills --skill loop-architect -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install fabricioctelles/skills loop-architect --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/fabricioctelles/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/loop-architect .claude/skills/loop-architect && 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 "loop-architect" agent skill from https://github.com/fabricioctelles/skills/tree/main/skills/loop-architect into .claude/skills/loop-architect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop-architect", 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/fabricioctelles/skills/tree/main/skills/loop-architectType 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 fabricioctelles/skills --skill loop-architect -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install fabricioctelles/skills loop-architect --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fabricioctelles/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/loop-architect .agents/skills/loop-architect && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "loop-architect" agent skill from https://github.com/fabricioctelles/skills/tree/main/skills/loop-architect into .agents/skills/loop-architect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop-architect", 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 fabricioctelles/skills --skill loop-architect -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install fabricioctelles/skills loop-architect --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fabricioctelles/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/loop-architect .cursor/skills/loop-architect && 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 "loop-architect" agent skill from https://github.com/fabricioctelles/skills/tree/main/skills/loop-architect into .cursor/skills/loop-architect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop-architect", 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/fabricioctelles/skills.git --path skills/loop-architect--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 fabricioctelles/skills --skill loop-architect -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install fabricioctelles/skills loop-architect --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fabricioctelles/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/loop-architect .gemini/skills/loop-architect && 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 "loop-architect" agent skill from https://github.com/fabricioctelles/skills/tree/main/skills/loop-architect into .gemini/skills/loop-architect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop-architect", 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 fabricioctelles/skills loop-architectInstalls 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 fabricioctelles/skills --skill loop-architect -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/fabricioctelles/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/loop-architect .github/skills/loop-architect && 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 "loop-architect" agent skill from https://github.com/fabricioctelles/skills/tree/main/skills/loop-architect into .github/skills/loop-architect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop-architect", 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 fabricioctelles/skills --skill loop-architect -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install fabricioctelles/skills loop-architect --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fabricioctelles/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/loop-architect .opencode/skills/loop-architect && 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 "loop-architect" agent skill from https://github.com/fabricioctelles/skills/tree/main/skills/loop-architect into .opencode/skills/loop-architect/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop-architect", 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.
loop-architectDesign well-structured agent loops with best-practice coaching and cross-model review gates before you run them.
Loop Architect is an agent skill from fabricioctelles/skills. Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them. Use when the user wants to design, build, or set up an agent loop, iterative agent workflow, self-review loop, LLM-as-judge loop, multi-model council, reviewer/judge gate, or goal-driven looping process. Guides goal refinement, typed verification criteria, reviewer/judge selection, privacy boundaries, termination guards, and observability, then emits a RUNINSESSION.md handoff prompt plus portable…
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 26 other files, including scripts and reference files (for example `examples/ai-workflow-mapping/LOOP.md`, `examples/ai-workflow-mapping/README.md` and `examples/ai-workflow-mapping/RUN_IN_SESSION.md`).
It sits in Agent Workflows, covering Autonomous loops, LLM evaluation and Human-in-the-loop approvals. The repository describes itself as: A collection of skills for AI agents (Kiro, Cursor, Windsurf, Claude Code, and others). Each skill is a reusable module that teaches the agent to perform complex tasks with… The licence is MIT.
11 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit f1de632. 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/ (Python, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom 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.
Loop Architect loads about 2.1k tokens when it runs, and up to ~4.6k if it reads all its reference files. Until then it costs about 147 tokens; SKILL.md has 692 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 noted patterns worth knowing about, such as sudo or a known installer.
- Default redaction globs: `.env`, `.env.*`, `secrets/**`, `**/*.key`.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 fabricioctelles/skills at commit f1de632, republished under its MIT licence (© fabricioctelles). 692 words, ~2,140 tokens.
.claude/skills/loop-architect/SKILL.md (or your agent's skills folder). This skill also uses 21 other files; get the full folder from GitHub.A loop design coach for Kiro CLI. Interviews you, critiques your design against
built-in best-practice rubrics, wires in cross-model reviewers or judges, shows
the loop as an ASCII flow preview, and writes portable artifacts you can run
immediately with /goal or later with the Python runner.
Based on Looper by Kevin Simback, MIT License. Adapted for Kiro CLI by ft.ia.br.
Kiro CLI ships /goal (autonomous loop with self-verification) and subagents
(parallel pipelines with review loops). These execute a loop. Loop Architect
helps you design one worth executing — with a coached goal, typed
verification, a cross-model gate, and explicit termination guards.
/goal | Subagent pipeline | Loop Architect | |
|---|---|---|---|
| Layer | execution | execution | design (pre-flight) |
| Coaches your goal | no | no | yes |
| Typed verification | no | no | yes (programmatic / judge / human) |
| Reviewer model | same model | configurable | different model, by default |
| Portable artifact | no | no | loop.yaml + resolved spec |
| Runs the loop | yes | yes | yes, via handoff |
Resolve the target path from the user. Default: ./loop-architect-output. If
the target contains an existing loop.yaml, treat as edit/resume.
Load the relevant rubric only when entering that stage:
references/goal-rubric.mdreferences/verification-rubric.mdreferences/council-rubric.mdreferences/control-rubric.mdreferences/model-detection.mdInterview in seven stages: goal, verification, host model, council, gates/control, confirmation flow preview, emit/run option. In the control stage, cover execution boundary, isolation, no-progress signals, state, and run logging.
Critique each stage before accepting it. Prefer concrete alternatives over vague warnings. Push weak goals toward outcome, scope, context, and done state. Push weak verification toward programmatic checks first, then judge rubrics, then human signoff.
Keep reviewer and judge roles distinct. A reviewer writes notes. A judge
returns a structured verdict. revise_until_clean must name a judge member
or human as verdict_source.
Require multiple termination guards: max_iterations, a revision cap on
each gate, a no-progress stop, and either a budget cap or an explicit human
stop point.
Before any cross-vendor council member is selected, state what context will leave the user's machine, which CLI receives it, which redaction globs apply, and that both execution paths require first-send consent.
Show an ASCII flow preview and ask for confirmation before final emission.
Emit these files into the target:
loop.yamlloop.resolved.jsonLOOP.mdRUN_IN_SESSION.mdrun-loop.pyloop-workspace/README.mdAfter writing loop.yaml, compile it:
python3 ~/.kiro/skills/loop-architect/scripts/looper.py compile \
<target>/loop.yaml \
--out <target>/loop.resolved.json \
--render <target>/LOOP.md \
--session-prompt <target>/RUN_IN_SESSION.mdAsk whether the user wants to run the loop now. If yes:
RUN_IN_SESSION.md directly, or suggest a /goal
one-liner derived from the definition_of_done.review_loop
capability, offer to execute via a subagent pipeline with native review
loops.run-loop.py is available for running
later or outside the session./goal (simplest)When the loop is straightforward and the host is the current Kiro session:
/goal --max 12 <definition_of_done from loop.yaml>This uses Kiro's native self-verification loop. No cross-model review, but fast and zero-config.
When a cross-model reviewer is needed and the host has subagent capability:
Implement the loop following RUN_IN_SESSION.md. Use a subagent as reviewer
with trigger "NEEDS_CHANGES" and max 3 iterations per gate.This leverages Kiro's native loop_to mechanism for the plan and delivery
gates.
python3 ./loop-architect-output/run-loop.pyFor scheduled runs, CI integration, or when you need strict budget enforcement.
.env, .env.*, secrets/**, **/*.key.loop.yaml human-readable and commented.RUN_IN_SESSION.md as the default/easy execution handoff.templates/run-loop.py exactly unless the user asks to edit it.Detect model CLIs:
python3 ~/.kiro/skills/loop-architect/scripts/looper.py detect-models --writeRegister a custom CLI:
python3 ~/.kiro/skills/loop-architect/scripts/looper.py register-model <id> \
--invoke kiro-cli chat --trust-all-tools -p --authedCompile and render:
python3 ~/.kiro/skills/loop-architect/scripts/looper.py compile <target>/loop.yaml \
--out <target>/loop.resolved.json \
--render <target>/LOOP.md \
--session-prompt <target>/RUN_IN_SESSION.md+--------------------------------+
| 1. Goal + context |
| read sources |
+--------------------------------+
|
v
+--------------------------------+
| 2. Draft plan.md |
| state -> state.json |
+--------------------------------+
|
v
+--------------------------------+
| 3. Plan gate |
| verdict: reviewer-1 |
+--------------------------------+
| needs work -> revise <= 3 -> step 2
| pass
v
+--------------------------------+
| 4. Write delivery-N.md |
| log -> run-log.md |
+--------------------------------+
|
v
+--------------------------------+
| 5. Delivery gate |
| verdict: reviewer-1 |
+--------------------------------+
| needs work -> revise <= 3 -> step 4
| pass
v
+--------------------------------+
| 6. Final output |
| all gates clean |
+--------------------------------+
Stops: pass gates | max 12 iterations | no progress x2 | budget 30m, $5.0programmatic, judge, or human.revise_until_clean gate has a valid verdict_source.loop_control has iteration, revision, no-progress, and budget caps.run-log.md and state.json path.loop.resolved.json, LOOP.md, RUN_IN_SESSION.md)
pass validation before handoff.© fabricioctelles, 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 21 other files (scripts, references) in skills/loop-architect of fabricioctelles/skills.
Open the folder on GitHubat commit f1de632
Loop Architect 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 |
|---|---|---|---|---|---|---|
| Loop Architect this skillfabricioctelles/skills | 106 | — | ~2.1k | Automated safety check: Notes | MIT | |
| Agents Best PracticesDenisSergeevitch/agents-best-practices | 2.4k | — | ~7.4k | Automated safety check: Pass | MIT | |
| Looperksimback/looper | 710 | — | ~2.7k | Automated safety check: Notes | MIT | |
| Autoresearchbyungjunjang/jangpm-meta-skills | 120 | — | ~6k | Automated safety check: Warn | None | |
| Improving MCP ToolsPostHog/posthog | 40k | — | ~1.5k | Automated safety check: Pass | Custom licence | |
| Inngest AgentsAsymmetric-al/core | 381 | — | ~2.6k | Automated safety check: Pass | AGPL-3.0 |
DenisSergeevitch/agents-best-practices
A skill your agent uses when designing, generating an MVP blueprint for, auditing, troubleshooting, refactoring, or explaining an agentic harness for any domain.
ksimback/looper
Scaffold a well-designed agent loop with best-practice coaching and a cross-model review council.
byungjunjang/jangpm-meta-skills
Autonomously optimize a Claude Code skill or agent system by running it repeatedly, scoring outputs against evals, mutating owned artifacts (prompt, references, scripts, agent definitions), and…
PostHog/posthog
Run an improve-my-MCP campaign: an autoresearch-style loop that measures the MCP agent experience with the eval harness, picks the highest-impact tool problem from production data, makes one bounded…
Asymmetric-al/core
A skill your agent uses when building durable AI agents or agentic workflows with Inngest and AgentKit, including model calls, tool calls, multi-agent networks, human approval, realtime progress…
ericrisco/rsc-harness
A skill your agent uses when authoring a NEW rsc skill or editing an existing one — scoping it to one job, writing the description that decides whether it ever loads, splitting the body into…
fabricioctelles/skills
Produce a short motion-graphics video ad — a 15s Facebook/Instagram/TikTok spot — as a rendered MP4.
fabricioctelles/skills
Audit, score, and compare repositories containing portable Agent Plugins against the official Agent Plugins specification.
fabricioctelles/skills
This skill should be used when the user needs to consume the Pier Cloud (Lighthouse) API for cloud cost management — including JWT authentication, listing contexts, workspaces, workspace groups, and…
fabricioctelles/skills
Automated iterative agent runner for spec-based development in Kiro.
fabricioctelles/skills
Runs security audits on codebases — full scans, diff reviews, threat models, vulnerability triage, remediation guidance, and finding tracking.
fabricioctelles/skills
Evaluate any agent skill against a merged framework — Anthropic's Claude Code best practices plus Matt Pocock's writing-great-skills methodology — across 4 axes (Trigger, Structure, Steering…
Categories
Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them. Loop Architect is an agent skill from fabricioctelles/skills. Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them.
Loop Architect fits situations like: the user wants to design; set up an agent loop; iterative agent workflow; self-review loop.
Run `npx skills add fabricioctelles/skills --skill loop-architect -a claude-code`. Or copy the skill folder (skills/loop-architect in fabricioctelles/skills) into .claude/skills/loop-architect in your project. Claude Code loads it when a task matches its description.
Run `npx skills add fabricioctelles/skills --skill loop-architect -a codex`. Or copy the skill folder (skills/loop-architect in fabricioctelles/skills) into .agents/skills/loop-architect 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 fabricioctelles/skills --skill loop-architect -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/loop-architect, .gemini/skills/loop-architect, .github/skills/loop-architect and .opencode/skills/loop-architect in your project.
Going by SKILL.md and its folder, Loop Architect needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. 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.
Loop Architect is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.6k 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 2.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Loop Architect: Agents Best Practices (DenisSergeevitch/agents-best-practices, 2.4k stars), Looper (ksimback/looper, 710 stars), Autoresearch (byungjunjang/jangpm-meta-skills, 120 stars) and Improving MCP Tools (PostHog/posthog, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
fabricioctelles (a GitHub user) maintains it in fabricioctelles/skills, which has 106 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 4, 2026.
Source: fabricioctelles/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.