Skip to content
Back to skills

Alpacawork Modelpickoptimizer

ASecurity

An alpacawork add-on that optimizes the choice of model and effort over time. Owners and coordinators use it when placing work that may run lighter before a review, when requesting work under a rule with a trial mark, when the user asks to survey past turns for settings that cost more than they need and to check a hypothesis by replaying them, and when proposing a model rule. Skip it when the user named the model or effort for this work.

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added December 2, 2026
ai-agentsrailsdebugging

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add alpacakit/alpacawork --skill alpacawork-modelpickoptimizer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Alpacawork Modelpickoptimizer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Alpacawork Modelpickoptimizer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alpacakit-alpacawork-modelpickoptimizer/badge)](https://www.skillsdirectory.com/skills/alpacakit-alpacawork-modelpickoptimizer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: alpacawork-modelpickoptimizer
description: An alpacawork add-on that optimizes the choice of model and effort over time. Owners and coordinators use it when placing work that may run lighter before a review, when requesting work under a rule with a trial mark, when the user asks to survey past turns for settings that cost more than they need and to check a hypothesis by replaying them, and when proposing a model rule. Skip it when the user named the model or effort for this work.
---

# alpacawork-modelpickoptimizer (optimize the choice of model and effort)

These rules are added on top of the alpacawork skill. The project policy may list model rules: bullets that map a kind of work to an agent, a model and an effort, read from the top with the first fitting bullet used. This skill is how those rules get cheaper, in model and in effort, without growing. It does not change the alpacawork skill's guardrails, and the scope of approval follows "Approval defaults" there.

For work under an applicable rule with a trial mark, follow [Requesting work under a marked rule (印の行で頼むとき)](references/marked-rule.md). After observation ends, use the approved rule as written.

Sections 1 and 2 apply while placing ordinary work. Section 3 is a run the user asks for. Section 4 applies to both.

## 1. Start point

- The start point is the model and effort the work would get without a trial, chosen as [alpacawork's request procedure](../alpacawork/references/request.md) says: what the user named for this work, else the first fitting model rule, else the default AI in the configuration.
- When the policy has no model rules, the default AI is the start point for every piece of work. Trials and proposals below work the same way; the first passing trial proposes the first rule.

## 2. Try lighter, or not

- **Try** one step lighter than the start point when all of these hold. One step is one level lower effort on the same model, or the next cheaper model.
  - The work will be reviewed before anyone uses its result (a build that is reviewed, an investigation whose answer is checked).
  - It can wait for a review and, if that fails, a second run.
  - The user named neither the model nor the effort, and "Which to lower" below finds a step to take.
  - The start point has no AI mark (standalone or inherited from a group) and does not already name a lighter builder and its reviewer. Use an adopted lighter rule as written.
  - No earlier trial of the same kind of work failed on that step (in the task records and, when present, the project's ledger, `addons/alpacawork-modelpickoptimizer/ledger.md`), unless the models offered have changed since. Undecided cases leave that step eligible for another case.
- **Do not try** otherwise: use the start point as it is, and write nothing about it.
- **One step, one change.** Lower either the effort or the model, never both at once, so a failed review shows which one was too light.
- **Which to lower.** Take the first that fits; if neither fits, do not try.
  - **The effort**, when it is not already the model's lowest and the work does not lean on reasoning. It keeps the model's knowledge and instruction following, so it is usually the smaller change. It fits work that is well specified, or mostly reading, searching and tool calls. It does not fit work with many dependent reasoning steps (planning, debugging, a design choice) or a long run on its own, where a low effort skips checks, stops early or reports done without verifying.
  - **The model**, when the work is routine and its quality depends on following clear instructions rather than on reasoning or knowledge (sorting, extracting, summarizing within a clear frame, a small change that follows an existing pattern). It does not fit work that needs broad knowledge, a long context, judgment on an ambiguous request, or reliable tool use across many steps. After changing the model, use that model's usual effort, since effort levels are not equivalent across models.
- **How.** Choose the [trial reviewer](#choose-the-trial-reviewer) before running the lighter work. The reviewer checks the result in a separate conversation from the builder's. Ask them to give evidence for any major issue they consider independent of the lighter setting. Have the lighter builder handle small fixes. If the result needs major rework, do the work again at the start point.
- **Judge.** The trial passes when it needs no major rework (a change of approach, rework of a large part, or a missed requirement). A stronger reviewer can find issues that would also affect the start point, such as a gap in the request itself. If the reviewer gives evidence that the major issue is unrelated to the lighter setting, leave the case undecided and try a different case. Otherwise record what the failure points to, such as shallow reasoning for effort or missing knowledge for model choice.
- **Record.** Use `--placed-as lighter` when placing or launching the trial. Record how you took the returned result with `--decision` on your next instruction or release. Read the trial Run’s tools, tests and basis with `run summary --run <ID>`. In the task report, name the builder and reviewer settings, the trial verdict and the evidence behind it.

### Choose the trial reviewer

1. Use the reviewer the user named for this work. Otherwise use the trial reviewer named in the project policy. If the named reviewer you would use is unavailable, for example because of a usage limit or missing configuration, skip the trial and do the work at the start point.
2. When neither names a reviewer, use the first available profile and settings in `references/trial-reviewers.md`, if present. Check the effective agents in `alpacawork config get`. Use the start point for review if the file is absent or no entry is available.
3. If the selected reviewer would use the same model and effort as the lighter builder, use the start point for review.

## 3. Optimization run

When the user asks to survey past work for settings that cost more than they need, follow [references/run.md](references/run.md): it reads the project's ledger first, surveys turns with `analysis turns`, writes hypotheses and the turns each needs, replays them in isolation, reports, and updates the ledger.

## 4. Rewrite the model rules

- **Propose, do not write.** The project policy is the only place that says which model does what; trial records and reports are grounds. After a passing daily trial, the owner proposes the exact wording in one line of its task report. After an optimization run, the report shows the current and proposed wording and asks the user. When the user agrees, the coordinator [writes and marks the rule](references/marked-rule.md#record-an-agreed-change). A failed trial leaves the rules as they are.
- **Describe the work by its nature.** Write a rule by the work's scope, the weight of its judgment and how much it reads, not by a task's title or topic, so it fits the next task of the same kind. Widen an existing rule before adding a new one.
- **Keep the first match right.** Place a rule above any broader rule it overlaps.
- **Stay within the limit.** Keep the rules within the limit the policy states (15 bullets and 1500 characters if it states none). When an addition would exceed it, merge rules of similar nature into one, then drop supporting notes such as why a rule was chosen.

Files in this skill

  • SKILL.md7.2 KB
  • references/comparison.md1.4 KB
  • references/marked-rule.md4.5 KB
  • references/replay.md3.4 KB
  • references/run.md12.8 KB
  • references/trial-reviewers.md568 B
  • scripts/fence.py2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.