From gaia-ops
Use when the orchestrator injects "Carga la skill agentic-loop" with a goal, eval_command, metric, and threshold
npx claudepluginhub metraton/gaia --plugin gaia-opsThis skill uses the workspace's default tool permissions.
Iterative improvement through small, reversible changes evaluated against a single metric. Each iteration is one hypothesis, one edit, one eval, one decision. The metric decides -- not you.
Triggers research for existing libraries, tools, and patterns before coding new features. Searches npm, PyPI, MCP/skills, GitHub; evaluates matches and decides adopt/extend/build.
Audits cross-stack repos (C++/Android/iOS/Web), classifies files as project/third-party/artifacts, detects embedded libraries, assigns module verdicts, generates interactive HTML reports.
Reorganizes X and LinkedIn networks: review-first pruning of low-value follows, priority-based add/follow recommendations, and drafts warm outreach in user's voice.
Share bugs, ideas, or general feedback.
Iterative improvement through small, reversible changes evaluated against a single metric. Each iteration is one hypothesis, one edit, one eval, one decision. The metric decides -- not you.
goal, eval_command, metric, direction (higher/lower), threshold, max_iterations, files_in_scope, branch
files_in_scope deeply -- understand before changinggit checkout -b {branch}eval_command -- parse METRIC {name}={number} from stdout -- this is your baselinestate.json and worklog.md (schemas in reference.md)git commit -m "baseline: {metric} {value}"eval_command, parse METRIC {name}={number}git add -A then git commit -m "improve: {metric} {old}->{new}"git checkout -- . then git clean -fdworklog.md: run number, what changed, result, insight, next ideastate.json with current valuesfiles_in_scope, review worklog "What's Been Tried", recalibrategit commit -m "final: {metric} {baseline}->{final} in N iterations", write summarystate.json (status: complete/stopped), write summary in worklog.mdInclude loop_status in your json:contract agent_status on every response:
"loop_status": {
"iteration": 5,
"metric": 94.5,
"best": 94.5,
"baseline": 89.0,
"threshold": 98,
"status": "iterating"
}
Do NOT return plan_status: "COMPLETE" until the loop finishes. The user may be away for hours.
git clean -fdx instead of -fd -- destroys untracked config files needed by eval