Logo: Autoresearch Anything

Autoresearch Anything

Communautéit
grandamenium
autoresearch-anything

Build an autonomous experimentation pipeline for any business metric using Karpathy's autoresearch pattern. Use when user wants to optimize a metric continuously, set up automated experimentation, or apply autoresearch to their business.

Iwwersiicht

Editeurgrandamenium
Repositoryautoresearch-anything
Skill-Nummautoresearch-anything
Stären
26
Forks
6
Matgeliwwert Dateien
18
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 18 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    grandamenium huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Autoresearch Anything an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/grandamenium/autoresearch-anything/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/grandamenium/autoresearch-anything.git \
  .claude/skills/autoresearch-anything
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Autoresearch Anything an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Autoresearch Anything automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Autoresearch Anything net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Autoresearch-Anything

This skill guides you through building a custom autonomous experimentation pipeline for ANY business metric. Inspired by Andrej Karpathy's autoresearch - where an AI agent runs experiments in a loop, keeps what works, discards what doesn't, and compounds improvements over time.

You are NOT building a pre-built app. You are guiding the user through scoping, researching, scaffolding, and then building the real infrastructure together.

How This Works

Follow these 8 steps in order. Each step references specific files in this skill folder for detailed instructions.


Step 1: Introduction and Education

Explain autoresearch to the user. Read concepts/autoresearch-principles.md for the full concept overview, then explain in your own words:

  • An AI agent runs experiments autonomously in a tight loop
  • It modifies something (email copy, landing page, ad creative), measures the result against an objective metric, keeps the change if it improved, discards it if it didn't, and repeats forever
  • Over dozens or hundreds of experiments, small wins compound - the system can never go backwards
  • The original was designed for ML by Andrej Karpathy. We're applying the exact same pattern to any business metric

Tell the user: "I'll walk you through a structured Q&A to scope your pipeline, then do deep research on your domain, generate a project scaffold, and build the real connectors with you. By the end, you'll have a fully autonomous experiment pipeline."

If the user needs inspiration for what to optimize, read and share qa/idea-seeds.md.


Step 2: Structured Q&A

Follow the Q&A flow defined in qa/qa-flow.md exactly. Use AskUserQuestion for every question group.

Key points:

  • 6 groups of questions covering: metric, experiment, measurement, deployment, execution, research inputs
  • Each group starts with a brief concept explanation
  • Reference concepts/choosing-your-metric.md during Group 1 to validate the metric choice
  • Statistical thresholds are discussed and agreed upon during Group 3 (contextual to data volume)
  • Notification setup (Telegram/Slack) happens inline during Group 5
  • After all questions, summarize everything back to the user for confirmation

Collect all answers as structured data for template rendering in Step 5.


Step 3: Deep Research

After Q&A is confirmed, research the user's specific domain:

  1. Web research: Use WebSearch to find best practices for the user's specific optimization target. Search for things like:

    • "{metric} optimization best practices"
    • "{platform} API documentation"
    • "how to improve {metric} for {domain}"
    • Proven patterns, common pitfalls, benchmark numbers
  2. User resources: Read any links, docs, or content the user provided during Q&A Group 6.

  3. Synthesize findings into two outputs:

    • Content for research-findings.md (domain-specific + general optimization principles)
    • Content for user-knowledge.md (from what the user provided)

Include general optimization principles in the research findings:

  • Test one variable at a time when possible (but agent has freedom to bundle)
  • Statistical significance requires sufficient sample size
  • Timing matters (day of week, time of day can affect results)
  • Diminishing returns - early experiments often yield the biggest gains
  • Domain-specific principles discovered during research

Step 4: Create Knowledge Files

Create three immutable knowledge files in the project directory:

  1. user-knowledge.md - Everything the user provided during Q&A (their existing knowledge, docs, best practices, domain expertise). The agent reads this but NEVER modifies it.

  2. research-findings.md - Everything discovered during deep research (web search results, synthesized domain knowledge, general optimization principles). Written once, agent reads but NEVER modifies.

  3. constraints.md - All hard rules from Q&A Group 2 (brand guidelines, legal requirements, technical limits, things that must never change). The agent reads and MUST respect every constraint. Violations make an experiment invalid.


Step 5: Scaffold Generation

Create the project directory at the user-chosen path. Generate all files from templates, substituting Q&A answers for placeholders.

Files to generate:

  1. config.json - from templates/config.json.template. Fill all {{placeholders}} with Q&A answers.
  2. program.md - from templates/program.md.template. This is the agent's runtime brain. Fill all placeholders.
  3. CLAUDE.md - from templates/CLAUDE.md.template. Bootstrap instructions for the agent.
  4. results.tsv - from templates/results.tsv.template. Header row only.
  5. resource.md - from templates/resource.md.template. Seed with deep research summary stats placeholder.
  6. user-knowledge.md - from Step 4.
  7. research-findings.md - from Step 4.
  8. constraints.md - from Step 4.
  9. experiment/{experiment_file} - empty stub file for the experiment. Name from Q&A.
  10. connectors/measure.sh - from templates/measure.sh.stub. Copy as-is.
  11. connectors/deploy.sh - from templates/deploy.sh.stub. Copy as-is.
  12. notify.sh - from templates/notify.sh.stub. Copy as-is.
  13. .env.example - list all required API keys based on Q&A answers.
  14. .env - copy of .env.example (user will fill in real values).
  15. .gitignore - ignore .env, logs/, *.log, .crash_count_today.

After generating files:

bash
cd {project_path}
git init
git add -A
git commit -m "autoresearch: initial scaffold for {pipeline_name}"

Step 6: Build Phase

This is where you and the user build the real infrastructure together. The stubs must become working scripts.

6a: Build measure.sh

"Now let's build your measurement connector. Based on your Q&A, you're using {platform} to track {metric}."

  1. Research the platform's API documentation (use WebSearch if needed)
  2. Write the real connectors/measure.sh that:
    • Connects to the platform's API using credentials from .env
    • Queries the current metric value
    • Outputs in the required format: metric_value:, sample_size:, timestamp:, experiment_id:
  3. Help the user get their API key and add it to .env
  4. Test: bash connectors/measure.sh - verify it returns real data

6b: Build deploy.sh

"Now let's build your deployment connector."

  1. Based on the deployment method from Q&A, write the real connectors/deploy.sh
  2. Must support --dry-run flag
  3. Must read the experiment file and deploy it to the platform
  4. Test: bash connectors/deploy.sh --dry-run - verify it works without deploying

6c: Set up notifications

Based on the user's choice from Q&A Group 5:

  • Telegram: Verify BOT_TOKEN and CHAT_ID are in .env. Test: bash notify.sh "Test notification from autoresearch"
  • Slack: Verify SLACK_WEBHOOK_URL is in .env. Test: bash notify.sh "Test notification from autoresearch"
  • Terminal only: No setup needed. notify.sh will echo to stdout.

6d: Create baseline experiment

Using the knowledge files (user-knowledge.md + research-findings.md + constraints.md), create the initial version of the experiment file. This is the baseline that all future experiments will try to beat.

6e: Establish baseline measurement

  1. Deploy the baseline: bash connectors/deploy.sh
  2. Wait for data (or measure existing data if available): bash connectors/measure.sh
  3. Record in results.tsv as the baseline entry
  4. Seed resource.md with the deep research findings

Step 7: Persistence Setup

Based on the user's choice from Q&A Group 5:

If Local (launchd + tmux):

Read persistence/local-setup.md for the full step-by-step instructions.

  1. Create scripts/ directory in the project
  2. Generate scripts/agent-wrapper.sh from persistence/agent-wrapper.sh.template - fill in pipeline name and project path
  3. Make it executable: chmod +x scripts/agent-wrapper.sh
  4. Generate the launchd plist at ~/Library/LaunchAgents/com.autoresearch.{pipeline_name}.plist
    • Detect the PATH for claude: which claude
    • Set working directory to project path
    • Set KeepAlive to true, ThrottleInterval to 10
  5. Create a convenience start script scripts/start.sh:
    bash
    #!/bin/bash
    launchctl load ~/Library/LaunchAgents/com.autoresearch.{pipeline_name}.plist
    echo "Pipeline started. Attach: tmux attach -t autoresearch-{pipeline_name}"
  6. Load the service: launchctl load ~/Library/LaunchAgents/com.autoresearch.{pipeline_name}.plist
  7. Verify: tmux has-session -t autoresearch-{pipeline_name}

If GitHub Actions:

Read persistence/github-actions-setup.md for the full step-by-step instructions.

  1. Create GitHub repo: gh repo create {pipeline_name}-autoresearch --private --source=. --push
  2. Add secrets: gh secret set ANTHROPIC_API_KEY + platform-specific keys
  3. Generate .github/workflows/autoresearch.yml from persistence/autoresearch.yml.template
  4. Convert the loop interval to a cron expression
  5. Push: git add -A && git commit -m "add autoresearch workflow" && git push
  6. Verify: gh run list --workflow=autoresearch.yml
  7. Trigger test run: gh workflow run autoresearch.yml

Step 8: Launch

  1. Final git commit with all built infrastructure:

    bash
    git add -A
    git commit -m "autoresearch: {pipeline_name} ready to launch"
  2. Confirm the persistence mechanism is running (tmux session active OR GitHub Actions workflow scheduled)

  3. Tell the user:

    • "Your pipeline is live."
    • "You'll receive notifications at {channel} after each experiment."
    • "The agent will run its first experiment on the next loop cycle ({interval})."
    • If local: "Attach to watch: tmux attach -t autoresearch-{pipeline_name}"
    • If local: "Stop: launchctl unload ~/Library/LaunchAgents/com.autoresearch.{pipeline_name}.plist"
    • If GH Actions: "Monitor: gh run list --workflow=autoresearch.yml"
    • "View results: cat results.tsv"
    • "View learnings: cat resource.md"
  4. Remind them of the file mutability rules:

    • They can edit: constraints.md, user-knowledge.md, program.md, experiment file
    • The agent manages: resource.md, results.tsv, experiment file
    • Nobody touches: connectors/measure.sh, connectors/deploy.sh (unless rebuilding)

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Autoresearch Anything?

Build an autonomous experimentation pipeline for any business metric using Karpathy's autoresearch pattern. Use when user wants to optimize a metric continuously, set up automated experimentation, or apply autoresearch to their business.

Firwat Autoresearch Anything op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Autoresearch Anything besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Autoresearch Anything an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/grandamenium/autoresearch-anything/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Autoresearch Anything benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Autoresearch Anything benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Autoresearch Anything domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Autoresearch Anything gratis?

grandamenium huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇