/cc-authoring:autoresearch-is-code-metric-optimizerfrom cc-authoring
The `/autoresearch:autoresearch` Claude Code skill is a CODE-METRIC OPTIMIZER (modify → verify → keep/discard loop). Use when: (1) you are about to invoke `/autoresearch:autoresearch` to do literature / web research (it does NOT fetch papers, search the web, or synthesize cited reports — use `/deep-research` for that); (2) you have a measurable target (test pass rate, perf delta, p&l, win rate, composite metric) AND code-or-config that can be modified to hit it — that IS the right use case, including non-traditional optimization targets like trading strategy backtest results; (3) you're confused about when to reach for the BASE skill vs the sub-skills `:reason` (adversarial debate) or `:probe` (8-persona interrogation) — the base skill is for iterative optimization with a clear verify function; the sub-skills are for qualitative investigation when there is no verify function.
Ships in cc-authoring. 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.
Two common misreadings of /autoresearch:autoresearch:
Misreading 1: "It's a web research skill." It is NOT. It does not fetch papers, search the web, or synthesize cited reports. That is /deep-research.
Misreading 2: "It only works for traditional 'code' metrics like test coverage." Also wrong. The skill works for ANY iterative-modification problem with a measurable verify function. That includes:
modify → measure → keep/discard.If your problem has a clear "did this change improve the metric?" check, the base skill IS the right tool. The "code" in "code-metric optimizer" is just shorthand for "an artifact you can re-generate" — not specifically Python source.
Use the BASE /autoresearch:autoresearch when:
Use the sub-skills when:
:reason — you have a CLAIM (not an artifact) you want adversarially debated by judges:probe — you have a TOPIC you want interrogated by N personas to surface considerations:plan — convert a goal into scope/metric/direction:scenario — what-if analysisUse /deep-research when:
Do you have a measurable verify function (test, benchmark, backtest, eval)?
├── YES → /autoresearch:autoresearch (the base skill optimizes against it)
└── NO → Do you need web sources?
├── YES → /deep-research
└── NO → /autoresearch:autoresearch:probe (qualitative interrogation)
or /autoresearch:autoresearch:reason (adversarial debate)
The base /autoresearch skill uses structured keyword args (not --flags) and universal flags. The actual invocation form:
/autoresearch
Goal: <what you want to achieve — describes the optimization target>
Scope: <which files/components can be modified>
Metric: <the numeric or pass/fail measure — e.g., "gain_factor × win_rate">
Verify: <shell command that returns pass/fail or a scalar score>
Iterations: N (default: 25; use "unlimited" to opt-in to unbounded)
Universal flags (apply to all looping subcommands):
--evals — add mid-loop checkpoints + final summary--evals-interval N — override checkpoint frequency--chain <targets> — sequential handoff after completion (e.g., --chain evals)The "modify → verify → keep/discard" loop runs for up to Iterations: cycles.
Results land in autoresearch/autoresearch-{YYMMDD}-{HHMM}/.
For competition-style iteration (trading, perf tuning, config search), the invocation looks like:
/autoresearch
Goal: Produce a strategy.py that passes gain > 1.0 AND win_rate >= 0.5
Scope: strategy.py (parameter values, signal logic, position sizing)
Metric: composite = gain_factor × win_rate; gate: gain > 1.0 AND win_rate >= 0.5
Verify: uv run python backtest.py --strategy strategy.py
Iterations: 5
Note: no --modify, --target, or --judges flags in the base skill — those are
sub-skill flags. The base skill's only knobs are Goal/Scope/Metric/Verify/Iterations
and the universal flags above.
After choosing the skill, sanity-check: "If a human ran this same loop manually — modify file, run script, check score — would the loop be coherent without external context (papers, web)?" If yes → base autoresearch is right. If no → you need a research-flavored skill.
A trading competition iterates strategy.py against:
{gain, win_rate}gain > 1.0 AND win_rate >= 0.5/autoresearch
Goal: Find strategy parameters that clear the pass gate (gain>1.0, win_rate>=0.5)
Scope: strategy.py — signal logic, indicator periods, position sizing
Metric: composite = gain_factor × win_rate; gate: gain > 1.0 AND win_rate >= 0.5
Verify: uv run python backtest.py --strategy attempts/<iter>/strategy.py
Iterations: 5
Even though the domain is "trading research," the LOOP is "modify code → run backtest → keep if better." Use the base skill, not :probe/:reason.
"Investigate which market-making algorithms cite the Stoikov-Avellaneda paper, summarize the field, and tell me the SOTA."
There's no artifact to modify. There's no verify function. You want web sources. Use /deep-research.
:probe/:reason. v1.1 (this version) corrects that: if you have a verify function, use the base skill.modify → verify → keep loop scales from tiny per-file metric tweaks to whole-strategy iteration. The boundary is the verify function, not the domain.:reason and :probe remain valid choices when there is NO programmatic verify function — e.g., "which of these 3 strategy ideas is theoretically strongest?" where you can't run a backtest yet.~/Projects/workspace/nautilus-competition-run.~/.claude/plugins/cache/autoresearch/autoresearch/2.1.2/skills/autoresearch/SKILL.md/deep-research:reason/:probe; this skill corrects the mental model.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cajias/claude-skills --plugin cc-authoring16 skills in this plugin
/apm-marketplace-authoring-gotchasEight APM-marketplace-authoring gotchas discovered during real
migrations from hand-authored .claude-plugin/marketplace.json to
APM-managed and from CC-native plugin authoring.
Use when: (1) running APM's packaging step (with or without
`--dry-run`) or its marketplace-check command in a repo with an
`apm.yml`; (2) wiring CI for an APM
marketplace; (3) the CI staleness check (repack, then `git diff
--quiet`) fails despite a clean local; (4) prettier reformats
`marketplace.json` after APM's packer writes it; (5) APM exit code 1 on
local-path-only marketplaces; (6) confused by `packages:` in apm.yml
vs `plugins:` in marketplace.json; (7) commitlint rejects a commit
with `footer-leading-blank` despite no apparent footer; (8) `apm
compile -t claude` exits 0 with zero output and no compiled plugin
appears; (9) husky+lint-staged pre-commit blocks the FIRST marketplace
commit with markdownlint `MD040/fenced-code-language` errors on a
SKILL.md file copied verbatim from `~/.claude/skills/`. The gotchas
form a chain — fixing one usually surfaces the next.
/apm-plugin-distribution-pathsCanonical authoring layout for an APM (microsoft/apm)
package, plus the decision matrix for whether you need a `marketplace:` block.
Use when: (1) you've run `apm init` and are unsure where SKILL.md / agent .md
/ command .md files belong (answer: under `.apm/`, NOT at repo root); (2)
you've authored CC-native files at `commands/agents/skills/` at repo root and
wonder if that's "right" (it works as fallback layout #3 "Claude plugin", but
it's not the canonical authoring path); (3) you're trying to choose between
the three layouts APM recognizes (one-skill repo, multi-primitive `.apm/`,
Claude plugin); (4) `apm targets` fails with "No such command" in CLI 0.12.1
(subcommand doesn't exist); (5) `apm validate` fails with "No such command"
in CLI 0.12.1 (use APM's packaging command in dry-run mode instead); (6) wondering whether
`apm compile -t claude` will generate output for a hand-authored CC-native
plugin (it won't; it's a no-op for layout #3); (7) wondering if you need a
`marketplace:` block in apm.yml (you don't, for a single-plugin repo).
Covers the canonical `.apm/` source layout, the source-to-plugin remap
table, the three-layout choice, and the four distribution paths.