Logo Skillopt

Skillopt

Tổ chức
skillberry-ai
skillopt

Chạy vòng lặp tối ưu hóa một nhánh SkillOpt, tổ chức hill-climb thành các epoch trên các minibatch tác vụ train theo một tốc độ học dạng văn bản — ngân sách chỉnh sửa là số nguyên và giảm dần theo lịch constant|linear|cosine — rồi kết thúc mỗi epoch bằng một bước hợp nhất bổ sung có kiểm định. Phương án cha luôn là ứng viên tốt nhất hiện tại; cổng kiểm định ý nghĩa thống kê trên tập val quyết định việc chấp nhận. Dùng khi bạn muốn các chỉnh sửa ban đầu rộng, về sau thu hẹp dần và hợp nhất một lần mỗi epoch, thay vì đề xuất một lần trên toàn bộ tập train như hill-climb hoặc dùng biên Pareto như gepa.

Add to TypingMind

Tổng quan

Nhà phát hànhskillberry-ai
Kho mãcap-evolve
Tên kỹ năngskillopt
Sao
67
Bản fork
18
Tệp đi kèm
6
Giấy phépApache-2.0
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ộ.

  • 6 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 skillberry-ai 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 Skillopt 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/skillberry-ai/cap-evolve/tree/main/skills/algorithms/skillopt
  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/skillberry-ai/cap-evolve.git /tmp/cap-evolve
mkdir -p .claude/skills
cp -r /tmp/cap-evolve/skills/algorithms/skillopt .claude/skills/skillopt
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 Skillopt 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 Skillopt 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 Skillopt 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.

skillopt — annealed single-lineage climb (epochs × mini-batches)

SkillOpt (arXiv:2605.23904, Executive Strategy for Self-Evolving Agent Skills) organizes a hill-climb into epochs × mini-batches under a decaying integer edit budget. The name is the paper's; the algorithm edits whatever the selected capability owns — a prompt, a tool surface, a skill package — and never assumes which.

Read the shared step first, then this file. Parent materialization, the optimizer call, the val evaluation, the significance gate, accept/reject, snapshot/best, the memory and handover files: all of that is harness.run_step, documented once in algorithms/hill-climb/SKILL.md § "One iteration, end to end" and algorithms/hill-climb/references/run-step.md. This file states only what SkillOpt does differently.

Know the bound before reaching for this algorithm: run_step lets a caller vary exactly two things — parent_dir and instructions. SkillOpt pins parent_dir to the current best, identical to hill-climb, so everything novel lives in the instructions string plus the choice to run one extra step per epoch. It is prompt shaping and step scheduling, not a different search.

What SkillOpt does differently

  1. A decaying integer edit budget L. lr_schedule.build_schedule emits one integer per step over constant | linear | cosine, clamped to [--min-edit-budget, --edit-budget] (core/cap_evolve/lr_schedule.py:42-55). L is stated to the optimizer in prose — "at most L bounded edits" — and is never mechanically enforced. See the next section before you tune it.
  2. A per-epoch rejected-edit list. Each reject appends its candidate id and val Δ, and the next step's prompt asks the optimizer to avoid them (skillopt.py:120-125, :330-335). It carries no description of what the rejected edit changed, so treat it as a weak signal — the run-global LEDGER.md that run_step already injects names the tasks each prior edit broke and fixed, which is strictly more useful.
  3. One extra gated step per epoch boundary (from epoch 2). It compares the epoch-start candidate against the current best, buckets tasks as regressed / persistent-failure / stable-success, and asks for a consolidating edit that fixes regressions without breaking the stable passes. It goes through the same run_step and the same val gate — it is never force-accepted (skillopt.py:493-499). Disable with --no-slow-update. A fourth bucket, improved, is computed and logged but is not exclusive with the others and never reaches the prompt (skillopt.py:184-191, :139-166).

Epochs shuffle the train ids seeded by epoch number, so a rerun is reproducible. steps_per_epoch = ceil(len(train) / (batch_size × accumulation)).

The textual learning rate, stated without the analogy

The knob is real: L decays, it is an integer, and the schedules are correct. The justification is weaker than the ML vocabulary implies, and pretending otherwise would mislead anyone tuning it.

What plausibly holds: the gate accepts or rejects a whole candidate. A candidate bundling six edits where five help and one hurts is rejected entirely, and you learn nothing about which edit was the problem. Fewer edits per candidate means an accepted candidate is more likely to contain only good edits and a rejected one is cheaper to attribute and revert. That argues for small edits — it does not by itself argue for decay.

What does not transfer: in SGD, LR decay exists because nothing stops a large step from overshooting near an optimum. Here the val significance gate already rejects an overshooting edit before it can become the parent. The overshoot protection is the gate, so the decay is not doing that job.

What is unmeasured: no ablation in this repo isolates the schedule's effect. At realistic step counts the choice barely exists — over 12 steps from 4 down to 2, linear and cosine differ at 2 of 12 positions. Prefer constant or linear and spend your tuning budget on --n-trials and the gate instead. This is a heuristic that has not been isolated; do not present it as a proven one.

Known gaps

These are shipped-behavior defects in core/cap_evolve/skillopt.py. The skill describes what the code does today, not what it intends to do. Line numbers are against current main — check them; if one no longer says what it is cited for, the gap has moved and this section is what needs re-deriving.

  • The mini-batch never reaches the optimizer (issue #371). Mini-batch ids come from train (skillopt.py:237, sliced at :291) but are handed to ctx.instructions (:300) to filter the parent's val rows (harness.py:2270-2272; the same train-vs-val mismatch at :323, :327), and splits are disjoint slices (splits.py:117-119). So the focus summary always renders 0 solid / 0 flaky / 0 failing of 0 focused task(s) of N on val, the failure index is empty, and ## Failure patterns still unsolved never appears — while the (mini-batch of N train tasks, L=…) label still prints, which is why it looked healthy. (The whole-val protect-these-ids block is populated, from harness.py:2279 — that is the only per-task content a step gets, and #391 added the of N on val scope precisely so those two numbers stop contradicting each other.) Until #371 lands the per-step signal is the label plus the L sentence, so the epoch/mini-batch structure is bookkeeping rather than focus. PR #370 fixed the same defect in hill-climb's cyclic/hardest-first modes.
  • The epoch-boundary re-evaluation scores the whole train split, not a sample. skillopt.py:467-472 calls evaluate_candidate(..., split="train") twice with no ids=, then discards everything outside the ~20 sampled ids (:473-475). Budget it as 2 × len(train) × n_trials rollouts per boundary.
  • When an epoch accepted nothing, the comparison is vacuous. The re-eval is guarded by prev_epoch_best_id != run_dir.best_id (skillopt.py:464); if nothing moved, both sides stay current_val — the same list — so 0 regressed and 0 improved are reported over val tasks while the log line claims a train sample size (:478-482). The consolidation step still runs.
  • requested_edits vs applied_changes surfaces nothing, and the number is wrong. _changed_components (skillopt.py:406-435) counts files whose bytes differ, not edits, and applied_changes is written at :346/:353 and read nowhere — no dashboard column, no check, no warning. It also over-counts, because its ignore list (:420) matches seven .md basenames while run_step injects a whole read-context — guidance/, trajectories/, prior_iterations/*/diff.patch — that _SNAPSHOT_IGNORE keeps out of the parent snapshot, so every injected file reads as an applied edit. Measured zero-API on examples/toy_calc at L=4: a step whose optimizer edited exactly one file logged applied_changes: 10 (9 injected + 1 real), and the next step logged 10 again with the capability file byte-identical to its parent. The metric has no zero, so it cannot detect the one thing it exists to detect: an optimizer that made no edit at all.
  • "skill" leaks into the live prompt. skillopt.py:147 tells the optimizer to compare "the skill" regardless of which capability is under optimization. An algorithm must be capability-agnostic; this text is not.

Key flags

--epochs, --batch-size, --accumulation (mini-batches per step; multiplies the effective batch), --edit-budget / --min-edit-budget / --lr-schedule, --slow-update-sample, --no-slow-update. --resume, --no-regression, --n-trials, --workers, --gate-mode, --k-se, --protected-paths, --store behave as in hill-climb.

--max-iterations is accepted and ignored — the loop is epoch-driven, so cap-evolve run's iteration cap has no effect here (scripts/run.py:42-43, whose help text now says so). Control the step count with --epochs/--batch-size.

bash
python scripts/run.py --run-dir .capevolve/run_X --project .capevolve/project \
  --optimizer 'python .../run-optimizer/scripts/run.py --name mock --workdir {workdir} --prompt {prompt}' \
  --epochs 4 --batch-size 8 --accumulation 1 \
  --edit-budget 4 --lr-schedule linear --min-edit-budget 2 --n-trials 4

Requires baseline.json first, like its sibling algorithms.

References

  • references/concepts.md — the loop step by step, the schedule shapes with worked values, and the buffer / consolidation mechanics. Load it when you need to change the loop or reason about its rollout cost, not to run it.

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 Skillopt làm được gì?

Chạy vòng lặp tối ưu hóa một nhánh SkillOpt, tổ chức hill-climb thành các epoch trên các minibatch tác vụ train theo một tốc độ học dạng văn bản — ngân sách chỉnh sửa là số nguyên và giảm dần theo lịch constant|linear|cosine — rồi kết thúc mỗi epoch bằng một bước hợp nhất bổ sung có kiểm định. Phương án cha luôn là ứng viên tốt nhất hiện tại; cổng kiểm định ý nghĩa thống kê trên tập val quyết định việc chấp nhận. Dùng khi bạn muốn các chỉnh sửa ban đầu rộng, về sau thu hẹp dần và hợp nhất một lần mỗi epoch, thay vì đề xuất một lần trên toàn bộ tập train như hill-climb hoặc dùng biên Pareto...

Vì sao nên dùng Skillopt 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. Skillopt 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 Skillopt trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/skillberry-ai/cap-evolve/tree/main/skills/algorithms/skillopt. 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 Skillopt?

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 Skillopt 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 Skillopt 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 Skillopt có miễn phí không?

Có. Kỹ năng này được skillberry-ai phát hành trên GitHub theo giấy phép Apache-2.0. 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ả
Logo của firecrawl

Firecrawl Build Search

firecrawl
Tổ chứcPhổ biến

Tích hợp Firecrawl `/search` vào mã sản phẩm và quy trình làm việc của tác nhân AI. Dùng khi ứng dụng cần tìm kiếm trước khi trích xuất, khi tính năng bắt đầu bằng truy vấn thay vì URL hoặc khi hệ thống cần…

9.8K
181.6K
Hướng dẫn
Xem
Logo của firecrawl

Firecrawl Build

firecrawl
Tổ chứcPhổ biến

Tích hợp Firecrawl vào mã ứng dụng bất cứ khi nào sản phẩm, tác nhân AI hoặc quy trình làm việc cần dữ liệu web bên trong ứng dụng — như tìm kiếm web, kết quả tìm kiếm trực tiếp, thu thập dữ liệu trang, trích xuất có cấu trúc hoặc tương tác…

9.8K
181.6K
6 tệp
Xem
Logo của Shubhamsaboo

Advisor Orchestrator Worker

Shubhamsaboo
Cộng đồngPhổ biến

Dùng khi một tác vụ quá lớn để xử lý trong một lượt của mô hình, cần nghiên cứu hoặc tạo nội dung song song cho nhiều phần việc (chẳng hạn nghiên cứu hàng tá đối thủ cùng lúc), hoặc người dùng muốn điều phối…

20.4K
138.7K
4 tệp
Xem
Logo của openai

Openai Docs

openai
Tổ chứcPhổ biến

Dùng cho các chủ đề về mô hình/giá của Codex, tác vụ theo lịch, kỹ năng, cài đặt, thiết lập, khắc phục sự cố, tùy chỉnh, tự động hóa và kiến thức về chính Codex — bao gồm các từ như “bạn”, “của bạn”, “ứng dụng này” hoặc “tác nhân lập trình này” khi…

19.9K
127.4K
15 tệp
Xem

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 👇