/gabbe-coordination:self-optimizefrom gabbe-coordination
Tunes skill/guide/persona/model selection per project for quality and cost. Reads gabbe.config.json, applies autonomy levels and alignment hierarchy. Use when optimizing project configuration or adapting to a project.
Ships in gabbe-coordination. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Continuously tune how the system works to the current project and task — which skills/guides/templates/personas/model-tiers to use, how much to clarify, how much to spend — optimizing for best engineering principles, quality, and cost simultaneously. It reads the per-project policy (project/gabbe.config.json), applies the configured autonomy level, honors a 3-layer alignment hierarchy, and records every material decision so the optimization is auditable and reversible. This complements coordination/meta-optimize.skill (which improves the skills themselves); self-optimize improves the selection and posture for the project at hand.
project/gabbe.config.jsonA runtime-agnostic file any agent reads (the optional gabbe CLI reads it too). All keys optional; sensible defaults apply. See docs/SCHEMA.md.
{
"autonomy": "hybrid",
"budgets": { "max_cost_usd": 5.0, "max_tokens_per_run": 100000 },
"model_tiers": { "cheap": "<model id>", "default": "<model id>", "sota": "<model id>" },
"enabled_mcps": ["context7", "filesystem"],
"registries": ["https://skills.sh", "google/skills"],
"protected_files": ["pyproject.toml", "package.json", "*.lock", "Dockerfile", ".github/**"]
}
Name no product as a routing rule: use the cheapest model tier that passes the task, and ask the human before the top tier. The model_tiers values are the project's own model ids.
The GABBE_AUTONOMY knob maps to concrete levels so behavior is predictable:
| Level | Posture | Behavior |
|---|---|---|
| L0 | ask (suggest-only) | Propose actions; do nothing without explicit approval. |
| L1 | ask | Ask before each non-trivial action, then act on approval. |
| L2 | hybrid (default) | Act autonomously when cheap + reversible + unambiguous; ask for expensive/SOTA/irreversible/ambiguous. |
| L3 | auto (act-and-report) | Act on cheap/reversible work silently and report; STILL pause for expensive/SOTA/irreversible/external-code actions. |
No level ever permits irreversible, SOTA-cost, or externally-sourced-code actions without human approval.
Honor three layers; on conflict, most-restrictive-wins:
project/gabbe.config.json, project-specific CONSTITUTION articles.The optimization loop, run once per task:
project/gabbe.config.json + budget posture + the 00-index summaries (from preflight.skill).context_cost; tier models via brain/cost-benefit-router.skill and coordination/persona-selector.skill).AUDIT_LOG.md; version the active policy/ruleset so a later decision is reproducible.## SELF-OPTIMIZE — [task]
- Autonomy level: [L0–L3 / ask|hybrid|auto]
- Selected: skills=[…] guides=[…] persona=[…] model-tier=[cheap|default|sota]
- Alignment check: [macro/meso/micro — any conflict → escalate]
- Cost vs quality rationale: [one line]
- Logged to AUDIT_LOG.md
project/gabbe.config.json. On a malformed or unknown value fall back to the default (hybrid) and report it; never raise autonomy above what the human set.AUDIT_LOG.md.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/agentic-linterEnforce architecture layer boundaries defined in AGENTS.md — detect and fix import violations. Use when: architecture lint, boundary, import violation, layer check, ADD, circular dependency, dependency check./agentic-patternsImplements advanced AI patterns like Reflection, ReAct, Planning, and Tool Use. Use when: agentic, reflection, react pattern, planning, memory, tool use./agent-interopManage connections, handshakes, and protocol negotiation between agents (MCP, A2A, ACP). Use when: Connect to agent [Name], Negotiate protocol, Send A2A message, Establish handshake, Join swarm./agent-protocolDefines and validates standard communication protocols between agents (A2A). Use when: protocol, handshake, ipc, agent-messaging, a2a./agent-workflow-patternsBuild LLM systems from composable workflow patterns (prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer) and decide workflow vs. autonomous agent. Use when: prompt chaining, routing workflow, parallelization sectioning, orchestrator workers, evaluator optimizer, workflow vs agent, build effective agents, fan-out fan-in./meta-optimizeSelf-refining engine — analyze repeated failures in other skills and rewrite their prompts/logic to improve future runs. Use when: optimize skill, refine prompt, improve agent, meta-learning, self-evolution, fix recurring error.npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-coordinationOther plugins' skills for the same job