Logo Skill Evolve

Skill Evolve

Cộng đồng
LeeYudok
skill-evolve

A meta-skill that turns user feedback or an agent's failure cases into rules in this repository's skill SKILL.md files. Use on requests like "fix the skill" (스킬 고쳐줘), "bake this mistake into the skill" (이 실수 스킬에 박아줘), "put it in the skill so it doesn't happen again" (다음부터 안 그러게 스킬에 반영해), "/skill-evolve <skill-name> <feedback>", or when the same mistake happens twice and the skill document needs fixing. Proceeds in the order issue registration → batch branch → tests → user approval → commit.

Tổng quan

Nhà phát hànhLeeYudok
Kho mãagents-scaffold
Tên kỹ năngskill-evolve
Sao
38
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
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 là Markdown thuần túy, không phải 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ộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được LeeYudok công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Skill Evolve 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/LeeYudok/agents-scaffold/tree/main/presets/lang/en/base/.claude/skills/skill-evolve
  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/LeeYudok/agents-scaffold.git /tmp/agents-scaffold
mkdir -p .claude/skills
cp -r /tmp/agents-scaffold/presets/lang/en/base/.claude/skills/skill-evolve .claude/skills/skill-evolve
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 Skill Evolve 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ự tải Skill Evolve 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 Skill Evolve không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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.

Role

You are a meta-agent that evolves skills by converting an agent's failures and the user's feedback into structured guidance. You permanently engrave lessons into the skill document (SKILL.md) so that a mistake made once is never repeated. Going beyond simple text edits, you run an expert-grade, safe workflow: isolated branch creation, enforced convention checks, and apply-after-confirmation.

Trigger

/skill-evolve <skill-name> <feedback>

Workflow

Follow the procedure below strictly in order. No step is skipped.

Phase 1. Diagnose and isolate

  1. Check state: Confirm the working tree is clean (git status -s is empty). python3 <skill-path>/scripts/evolve_guard.py clean does the same thing; if the tree is not clean, it exits 1 and shows the list of changes.
  2. Issue first: Create an issue in the repository tracker. In the body, write the original feedback, the skill to fix, and who makes the call. Use this number in the branch, commit and PR.
  3. Branch: Do not commit directly to main. If there is a batch branch in progress (batch/<agent>-<YYYYMMDD>-<8-digit hex>), build on it; otherwise create a new one from main. Generate the hex fresh for each batch with openssl rand -hex 4 (the same rule as yd-git-ship — a sequence suffix like -2 collides between sessions).
  4. Read the target: Read the whole .claude/skills/<skill-name>/SKILL.md (for opt-in skills, presets/skills/personal/.claude/skills/<skill-name>/SKILL.md) to understand its current content. In an installed project, .agents/skills/<skill-name>/SKILL.md is the source and .claude/skills is a link to it.

Phase 2. Analyze and define rules

Analyze the feedback and recent execution logs to derive a clear rule: what went wrong and how to behave from now on.

  • Add a new gotcha (a common mistake) to the ### Learned warnings section.
  • If an existing procedure is flawed, update the process section.
  • If there is a wrong command template, fix it.

Phase 3. Edit the document (strict editing rules)

Edit SKILL.md (with tools) following these principles so that the repository's skill conventions (.claude/skills/README.md) are not broken.

  • Keep the frontmatter: Do not add keys that were not there. A new skill uses only name and description (keys already present in an existing skill, such as user-invocable, are kept).
  • No emoji: Emoji are strictly forbidden in outputs and skill documents.
  • Preserve existing warnings: Existing warnings in Learned warnings are not deleted unless explicitly invalidated; they accumulate. A date tag ((YYYY-MM-DD)) is mandatory.
  • Apply edits with an exact file-editing tool such as replace_file_content.

After editing, check the rules above mechanically with python3 <skill-path>/scripts/evolve_guard.py check <skill-name>.

  • A Learned warnings line must have the form - (YYYY-MM-DD) ...; a date that does not exist on the calendar is a violation.
  • A warning that existed at the base (--base, default HEAD) and has disappeared is a violation. If the user explicitly invalidated the warning, add --allow-removal.
  • When the task adds a new warning, also check that the section exists with --require-section.
  • If there is a violation, the exit code is 1.
  • If the skill name is missing or escapes the path, the exit code is 2.

Phase 4. Automated verification (core logic)

Right after the document edit lands on disk, always run the repository tests to confirm mechanically that the structural conventions (frontmatter, document assertions and claims, layout, etc.) were not broken. In this repository that is scripts/dev/run-skill-tests.sh (per-skill tests) and python3 -m unittest discover -s tests -p 'test_*.py' (shared conventions); in other repositories it is that repository's runner (scripts/run_tests.sh, etc.).

  • If the tests fail (exit code > 0), revert only the file this skill edited (git restore -- <path to that skill's SKILL.md>). A pathless git restore . wipes other changes too. python3 <skill-path>/scripts/evolve_guard.py verify <skill-name> runs the tests and reverts in one go, and exits 1 on failure. If the tests pass, the edit is left in place. If no test runner can be found, it exits 2 and the edit is also left in place. Then analyze the cause and edit again. Do not move on to the next step in a violating state.
  • Separately from structural verification, run a mini eval: run the modified skill on the same kind of input that triggered the improvement, and confirm via a before/after comparison that the point that failed before the improvement is actually fixed. (Cherry-picked from the same-named skill in claude-scaffold, 2026-08-16)

Phase 5. Review and commit

  1. After the tests pass, clearly report the changes (diff summary) to the user and get approval to commit.
  2. When the user approves (Y), git add only the edited files, naming them explicitly (git add . and -A are forbidden). The commit title is [<model-name>] docs(<skill-name>): <improvement summary> (#N), and the author is an agent account (-c user.name=claude-ai, etc.) unless a human is committing.
  3. Push and open a PR (or MR). Put Closes #N in the body, and merge with a merge commit (no squash). If the repository has its own rules, follow them.

Output format

When asking the user for approval after the tests pass, use the format below.

text
Proposed improvement
Existing: [quote]
Proposed: [revision]

diff summary:
+ summary of added/changed content
- summary of removed content

Repository tests: [passed]

Commit these changes? (Y/n)

Learned warnings

  • (2026-06-20) Absorbed the external skill-evolve skill: added quoting of existing content and the diff output format.
  • (2026-08-01) Adjusted the target file path (skills/<skill-name>/SKILL.md) and the frontmatter format (only name and description allowed) to fit the doksam-skills structure.
  • (2026-08-01) Flawless upgrade: applied the meta-agent workflow — preventing direct commits, branch isolation, and mandatory tests (run_tests.sh).
  • (2026-10-04) Renamed to yd-skill-evolve. Dropped the evolve/ branch and git add ., and aligned with the global git rules: issue first → batch branch → explicit-file commit → PR with Closes #N (#169).
  • (2026-10-05) Use an 8-digit hex instead of a batch-branch sequence number (-2). Two sessions on the same day picked the same sequence number and collided. Aligned with yd-git-ship (#205).
  • (2026-10-24) With doksam-skills merged into agents-scaffold, this skill became the source. The name is skill-evolve, the target paths are .claude/skills/<skill-name>/ and presets/skills/personal/.claude/skills/<skill-name>/, and the default test runner is scripts/dev/run-skill-tests.sh. Existing skills' frontmatter keys are kept and only new keys are blocked (agents-scaffold #78).

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

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

A meta-skill that turns user feedback or an agent's failure cases into rules in this repository's skill SKILL.md files. Use on requests like "fix the skill" (스킬 고쳐줘), "bake this mistake into the skill" (이 실수 스킬에 박아줘), "put it in the skill so it doesn't happen again" (다음부터 안 그러게 스킬에 반영해), "/skill-evolve <skill-name> <feedback>", or when the same mistake happens twice and the skill document needs fixing. Proceeds in the order issue registration → batch branch → tests → user approval → commit.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/LeeYudok/agents-scaffold/tree/main/presets/lang/en/base/.claude/skills/skill-evolve. TypingMind đọc tệp SKILL.md và cài đặt thành 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 Skill Evolve?

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.

Bạn có thể dùng Skill Evolve 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 Skill Evolve 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 Skill Evolve có miễn phí không?

Có. Kỹ năng này được LeeYudok phát hành trên GitHub theo giấy phép MIT. 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇