Help us improve
Share bugs, ideas, or general feedback.
From skills
Use when the user wants to set up autonomous research/optimization on their repo — creates a GOAL.md fitness function and runs an improvement loop
npx claudepluginhub james-s-tayler/lazy-developer --plugin job-securityHow this skill is triggered — by the user, by Claude, or both
Slash command
/skills:autoresearchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are setting up autonomous goal-driven optimization for the user's project. Follow these steps exactly in order.
Guides interactive setup of optimization goals, metrics, and scope; runs autonomous git-committed experiment loops: code changes, testing, measurement, keep improvements or revert. For performance tuning in git repos.
Iterates autonomously to optimize a measurable metric (bundle size, test coverage, query time) by repeatedly modifying code, verifying, and keeping improvements.
Sets up autonomous experiment loops for code optimization targets. Gathers goal/metric/files, creates git branch/benchmark script/logging, runs baseline via subagent. For 'run autoresearch' or iterative experiments.
Share bugs, ideas, or general feedback.
You are setting up autonomous goal-driven optimization for the user's project. Follow these steps exactly in order.
Before doing anything else, study the GOAL.md specification:
gh api repos/jmilinovich/goal-md/contents/template/GOAL.md -q .content | base64 -d to read the canonical templateexamples/api-test-coverage.mdexamples/perf-optimization.mdexamples/docs-quality.mdexamples/browser-grid.mdgh api repos/jmilinovich/goal-md/contents/README.md -q .content | base64 -dUnderstand the five required elements: Fitness Function, Improvement Loop, Action Catalog, Operating Mode, and Constraints.
Do NOT proceed until you have read the template and at least 2 examples.
Scan the current repository to understand:
Use the AskUserQuestion tool to ask the following questions one at a time, in order. Wait for each answer before asking the next.
Question 1:
What measurable metric would you like to optimize?
Provide options based on what you discovered about the project in Step 2 (e.g., test coverage, latency, build time, code quality score, etc.), plus an "Other" option for custom input. If the user passed $ARGUMENTS, use that context to inform your suggested options.
Question 2:
Would you like to minimize it, maximize it, or set a target?
Options:
If they choose "Set a target", ask a follow-up to get the target value.
Question 3:
What are the constraints I must obey?
Provide options based on common constraints for the project type (e.g., "Don't modify the public API", "Don't add new dependencies", "Tests must keep passing", "Don't change the database schema"), and allow multi-select plus custom input.
Using the user's answers from Step 3 and what you learned about the project in Step 2, write a GOAL.md in the repository root following the template format exactly. It must include ALL of these sections:
bash command that outputs a score. Write a scoring script if one doesn't exist. The script MUST output JSON with at least score and max keys. Score must be an integer. Exit 0 even on bad scores.iterations.jsonl formatRun the fitness function command to verify it works and record the baseline score in the Bootstrap section.
Use the AskUserQuestion tool to ask clarifying questions about constraints that might not have been stated but should be considered. Think about:
Frame these as specific yes/no or multiple-choice questions relevant to what you know about the project. Do NOT ask generic questions — make them specific to the codebase you scanned.
If the user provides additional constraints, update the Constraints section of GOAL.md accordingly.
Once GOAL.md is finalized:
iterations.jsonl, and repeat[S:NN->NN] component: what changed