Logo Evolution

Evolution

Cộng đồng
2233admin
evolution

Goal-contract, capability graph, TraceCard, and promotion-gate control plane for self-evolving reverse/security skill routing. Use before macro-routing when the task needs end-to-end completion, route repair, or reusable learning.

Tổng quan

Nhà phát hành2233admin
Kho mãreverse-skill-evolver
Tên kỹ năngevolution
Sao
27
Bản fork
8
Tệp đi kèm
8
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ộ.

  • 8 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 2233admin 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 Evolution 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/2233admin/reverse-skill-evolver/tree/main/skills/evolution
  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/2233admin/reverse-skill-evolver.git /tmp/reverse-skill-evolver
mkdir -p .claude/skills
cp -r /tmp/reverse-skill-evolver/skills/evolution .claude/skills/evolution
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 Evolution 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 Evolution 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 Evolution 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.

Evolution Control Plane

This skill turns the routing pack from "pick a static module" into a closed loop:

GOAL -> capability graph -> macro route -> micro route -> TraceCard -> evaluator feedback -> candidate search -> promotion gate

It does not replace apk-reverse, ida-reverse, js-reverse, pentest-tools, or the CTF skills. It wraps them with a target contract, local capability facts, step-level evidence, and controlled learning.

ACTION REQUIRED

  1. NOW: Create or update a task-local GOAL using goal.template.yaml before choosing a route.
  2. NOW: For OMP native IDA, record the current native tool schema and actual operation result through ../ida-reverse/SKILL.md. For external tools, read ../capability-graph.json if present; otherwise run ../scripts/refresh-tool-index.ps1 and use the generated graph.
  3. NEXT: Use ../routing.json for machine routing and ../routing.md for human-readable fallback context.
  4. ACT: Route to the selected child skill and record each material decision in a TraceCard.
  5. EVOLVE: When changing a skill or route, use the candidate search loop below; do not optimize by editing stable files directly.
  6. END: Classify the result through the promotion gate before changing stable routing or skill docs.
  7. DOGFOOD: When Code Intel emits code-intel-dogfood-finding.v1, read code-intel-dogfood-finding.md; keep the finding in candidate until a re-run oracle proves the proposed tool repair.

Goal Contract

Every non-trivial reverse/security task MUST define:

  • inputs: artifacts, URLs, package names, captures, binaries, scope text, or fixture IDs.
  • authorization_scope: CTF, own asset, lab fixture, bug bounty scope, or explicit engagement boundary.
  • desired_outputs: what the user actually needs, such as function map, bypass replay, decoded algorithm, PoC, report, or diagram.
  • success_oracles: deterministic checks that prove completion.
  • budgets: max time, max tool calls, model/tool escalation limits.
  • stop_conditions: what ends the task or requires user confirmation.

Use goal.template.yaml as the minimum shape. A route that cannot name its oracle is not ready to become an evolved skill.

Capability Graph

The capability graph is a session fact cache, not a wish list.

OMP's native ida is a session-provided interface. Record its live schema, selected native database, and operation evidence instead of requiring the external CLI index to contain idapro. Graph lookup and bootstrap below apply to external tools; a native worker failure follows omp-ida-native setup guidance.

Required fields per tool or service:

  • exact path or startup command
  • version or fixed package identity
  • availability state
  • smoke status
  • service/MCP registration state when relevant
  • owning skill and bootstrap method
  • last_checked

If the graph says a required tool is missing, use the normal bootstrap path. Do not guess paths.

Macro Route

Macro routing chooses the module family:

  • APK / Android -> apk-reverse
  • JS / browser signature -> js-reverse
  • binary / native / stripped -> ida-reverse, radare2, or reverse-engineering
  • patch diff / N-day -> binary-diff plus patch-diff-exploit
  • pwn -> pwn-chain
  • protocol / pcap -> reverse-engineering or CTF protocol skill
  • active security assessment -> pentest-tools, api-security, attack-chain, or related skill

Use routing.json first for machine decisions. Use routing.md when the JSON route is incomplete.

Micro Route

Before each costly or irreversible step, choose the next action using current evidence:

  • If static analysis stops producing new facts, switch to dynamic verification.
  • If Java-layer evidence points to native validation, branch to IDA/radare2.
  • If browser observation lacks the signing function, switch to CDP/hook/sourcemap recovery.
  • If a tool fails twice for the same reason, record the failure and choose an alternate edge.
  • If the required oracle cannot be tested, downgrade the conclusion to candidate or forensic memory.

Record the decision in trace-card.template.yaml format.

Evidence and Unknowns

Every substantive finding MUST distinguish observed evidence, inference, and unknowns. Each TraceCard step MUST have an evidence_refs list; use [] when the step produced no evidence. A reference records its source and version, GOAL input, examined coverage, and limitations. Prefer a durable evidence ID or path over copied terminal prose. An evidence ID helps locate a record; it does not prove the record is authentic or that its conclusion is true.

Record unresolved questions in the TraceCard with supporting and contradicting evidence references, plus the authority, environment, or observation still needed to resolve them. Each unknown requires affects_outcome: true|false. Use unknowns: [] when none remain. Mark an unknown resolved only when at least one supporting or contradicting evidence ID addresses it. IDs must be nonempty and resolve to uniquely identified evidence records in this card's steps. Unresolved questions affecting the requested outcome block validated and promotion-candidate claims.

Each oracle result records oracle_id, status (pass|fail|not_run), and evidence_refs (in-card evidence IDs); pass and fail require evidence. Every listed oracle is required: validated and promotion_candidate: true require a nonempty oracle list with every oracle passed. Promotion candidacy additionally requires the validated tier; it never promotes automatically. Step evidence arrays may remain empty when no evidence was produced.

Validate JSON TraceCards at the real acceptance boundary: python "<PACK_ROOT>/scripts/run.py" tracecard-validate --input trace-card.json. The stdlib reverse_skill.evolution.validate_trace_card enforces structure, unique IDs and reference consistency beyond JSON Schema's structural checks. This proves neither authenticity nor truth of external evidence; human review and independent verification still govern promotion.

Claims of absence or equivalence require complete, comparable coverage of the relevant target and method. Missing, truncated, paginated, or incompatible evidence means “unknown,” not “absent.” Static differences are leads, not proof of runtime causation.

Lead the final report with the concise result, then link claims to evidence and state coverage, limitations, and remaining unknowns. New TraceCards use schema version 2; retain older version-1 records unchanged.

Candidate Search Loop

The repository includes a bounded OMP-backed route-selection optimizer. It is scoped to the routing prompt and local fixtures; it does not run child reverse-engineering skills or prove their task outcomes.

From any working directory, using paths within the complete installed package:

console
python "<PACK_ROOT>/scripts/run.py" evolve --candidate "<SKILL_ROOT>/routing.md" --catalog "<SKILL_ROOT>/routing.json" --fixtures "<SKILL_ROOT>/evolution/fixtures/route-selection.json" --output candidate-runs/run-001 --max-evaluations 3 --max-reflections 1

The command uses the configured OMP model without a model override, disables tools, skills, rules, extensions, and session persistence, then evaluates the no-skill baseline, curated prompt, and each proposed prompt on the same complete frozen fixture suite. Reflection receives the full frozen routing catalog (including relevant route/fallback definitions), exact failed tasks, expected/observed routes, invalid-response diagnostics, untouched failed responses, and successful-case context. One bounded targeted proposal is evaluated at a time. Per-track pass rates and invalid responses determine the Pareto frontier; no source prompt is promoted or overwritten.

results.json retains every evaluated candidate's text, UTF-8 SHA-256 identity, artifact path, input digests, and proposal parent ID/digest—even candidates outside the final frontier. The empty no-skill baseline is retained too. catalog.json and fixtures.json archive the exact bytes read once for the run; their SHA-256 identities bind every evaluation to the same frozen inputs. Reflection contexts and exact reflection responses are also retained for audit.

Route answers must be one complete JSON object with exactly route_id; leading prose, additional JSON documents, trailing text and fenced JSON are invalid. OMP print framing is narrowly defined as at most one exact leading Working... line (LF or CRLF), after leading whitespace. Only that line is removed; matching lines inside or after an answer are never discarded. The entire remaining answer is validated, while the untouched stdout is saved.

Task and reflection prompts already travel on stdin, not argv. Candidate system prompts use --append-system-prompt. Before the first model call, the curated candidate is checked against the Windows CreateProcessW limit; every actual subprocess argv and every reflected candidate are checked as well. The bound includes Python's Windows quoting, executable/options/cwd, UTF-16 code units, and the terminating NUL (32,767 units). Oversized candidates are refused, not truncated; no speculative prompt-file transport is introduced.

max_evaluations counts complete candidate-suite runs (baseline, curated, proposals); reflections have a separate max_reflections cap. The command requires budget for at least three evaluations and one reflection, but stops without proposing when every frontier candidate passes. An independent full-suite verification remains necessary for promotion and is outside this search budget. The built-in route fixture set checks route selection only; expand or replace it with validated fixtures before treating results as representative of other tasks.

Memory Tiers

Write field-journal output into one of three tiers:

  • validated: oracle passed, route worked, safe to retrieve for future routing.
  • candidate: promising but not regression-tested; may inform, must not control routing.
  • forensic: failed, ambiguous, sensitive, or adversarial; useful for analysis only.

All memory entries MUST include provenance: source trace, tool versions, verification time, and applicable environment.

Code Intel dogfood findings are advisory evidence, not an authority override. Consume their artifact digests through code-intel-dogfood-finding.md, then retain them in candidate until the cited project has been re-run after a repair.

Promotion Gate

Stable routing or child skill docs may change only when a candidate passes:

  • oracle success for the source task
  • no regression in the mini benchmark or relevant fixtures
  • clear tool/capability requirements
  • no sensitive or un-anonymized data
  • rollback path documented

Use promotion-record.template.yaml. If evidence is incomplete, keep the entry in candidate.

Completion Check

  • GOAL exists and names at least one success oracle.
  • OMP native IDA schema and operation evidence were recorded, or the external capability graph was read/refreshed.
  • Macro route and any micro-route switches are recorded.
  • TraceCard records reproducible actions, evidence references, coverage, limitations, and unresolved questions.
  • Field-journal tier is selected.
  • Stable routing changes passed the promotion gate.

无人值守模式(Overnight)

本控制面的 Phase 0-3 全闭环无人值守运行由 overnight-run/ 提供:slot 填表 ↔ goal.template.yaml,.night/REPORT.md ↔ TraceCard,Phase 结局 ↔ 记忆分层,早上 review ↔ promotion gate。详见 overnight-run/SKILL.md。Overnight 产出的经验必须经 promotion gate 回流 field-journal/{validated,candidate,forensic}/ 后才允许改 stable 路由。

Fleet Sync

This repo can run on more than one machine in the operator's fleet. Session-local artifacts -- skills/field-journal/candidate/*.md, skills/field-journal/validated/*.md, skills/capability-graph.json, skills/tool-index.md -- only exist on whichever machine produced them until manually synced.

Run skills/scripts/fleet-sync.ps1 -RemotePath <remote-repo-path> -Direction Pull|Push after a session adds new candidate/ entries and you are about to switch machines, or periodically to keep both machines' capability graphs roughly aligned. The script only copies files that do not already exist on the destination by filename (collision-safe additive merge) -- it never overwrites and never deletes on either side. Filename collisions are reported, not resolved automatically; resolve by hand and re-run.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

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

Goal-contract, capability graph, TraceCard, and promotion-gate control plane for self-evolving reverse/security skill routing. Use before macro-routing when the task needs end-to-end completion, route repair, or reusable learning.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/2233admin/reverse-skill-evolver/tree/main/skills/evolution. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm 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 Evolution?

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

Có. Kỹ năng này được 2233admin 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 👇