maroffo/claude-forge/autoresearch-prompt
Claude Code and agent skill by maroffo/claude-forge
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
Autonomous prompt optimization via eval-driven experiment loop (Karpathy autoresearch pattern). Use when user says autoresearch, prompt optimization, optimize prompt, or eval loop.
Install
npx vskill@latest install maroffo/claude-forge/autoresearch-promptSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as maroffo/claude-forge/autoresearch-prompt.
ABOUTME: Skill definition for autonomous prompt optimization via eval loop
ABOUTME: Karpathy autoresearch pattern applied to LLM prompt engineering
Autoresearch Prompt
Autonomous prompt optimization using Karpathy's autoresearch pattern. An agent edits prompt.md, runs eval against labeled examples, keeps improvements, reverts regressions.
Quick start
The default model and per-token pricing live in src/autoresearch_prompt/models.toml. Override the default at runtime with the AUTORESEARCH_MODEL env var.
Architecture
Scoring
Per-field accuracy computed from expected_* fields in eval_set.jsonl. Weighted score via --weights:
- Each
expected_*field is compared case-insensitively against the LLM response JSON key (prefix stripped) - Fields not present in an example are skipped for that example's accuracy
- When no comparisons possible for a field: accuracy = 1.0 (vacuous truth)
Output format
Dynamic, based on which expected_* fields exist in the eval set:
Running the optimization loop
Follow program.md instructions. The loop:
- Run baseline eval
- Analyze failures
- Make ONE change to prompt.md
- Re-eval
- Keep improvement or revert regression
- Log to results.tsv
- Repeat (max 10 iterations)
Eval set format
Convention-over-configuration JSONL. Non-expected_* keys = inputs (rendered into {{key}} in prompt template). expected_* keys = outputs to score (prefix stripped, compared against LLM response JSON).
Works with any schema, not just newsletters:
Prompt template format
prompt.md uses ## System / ## User markdown headers. Template variables: {{field_name}} for each input field in the eval set.
Classify (single input)
Pipe any JSON to stdin. All keys become input fields:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/autoresearch-prompt/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
templateCustom templates for code generation
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/maroffo/claude-forge/autoresearch-prompt)