Logo Autoresearch Anything

Autoresearch Anything

Cộng đồng
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.

Tổng quan

Nhà phát hànhgrandamenium
Kho mãautoresearch-anything
Tên kỹ năngautoresearch-anything
Sao
26
Bản fork
6
Tệp đi kèm
18
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 18 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được grandamenium công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Autoresearch Anything trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/grandamenium/autoresearch-anything/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/grandamenium/autoresearch-anything.git \
  .claude/skills/autoresearch-anything
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Autoresearch Anything trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Autoresearch Anything ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Autoresearch Anything với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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)

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Autoresearch Anything làm được gì?

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.

Vì sao nên dùng Autoresearch Anything trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Autoresearch Anything là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Autoresearch Anything trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/grandamenium/autoresearch-anything/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Autoresearch Anything?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Autoresearch Anything với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Autoresearch Anything với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Autoresearch Anything có miễn phí không?

Kỹ năng này được grandamenium phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇