Logo Rust Ai Native Sweep

Rust Ai Native Sweep

Tổ chức
vibevm
rust-ai-native-sweep

Run the recurring AI-Native discipline sweep on this Rust project — floor gates first, then the health collector's ratchet items, weekly drift and judgment tiers. Use daily or several times a day on an active tree; any single item is a safe stop.

Tổng quan

Nhà phát hànhvibevm
Kho mãvibevm
Tên kỹ năngrust-ai-native-sweep
Sao
285
Bản fork
83
Tệp đi kèm
Chỉ có hướng dẫn
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ộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    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 vibevm 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 Rust Ai Native Sweep 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/vibevm/vibevm/tree/main/vibevm/vibedeps/org.vibevm.fractality.delegation-rules/1.0.0/vibevm/vibedeps/org.vibevm.ai-native.rust-ai-native-lang/1.0.0/vibevm/vibespecs/skills/rust-ai-native-sweep
  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/vibevm/vibevm.git /tmp/vibevm
mkdir -p .claude/skills
cp -r /tmp/vibevm/vibevm/vibedeps/org.vibevm.fractality.delegation-rules/1.0.0/vibevm/vibedeps/org.vibevm.ai-native.rust-ai-native-lang/1.0.0/vibevm/vibespecs/skills/rust-ai-native-sweep .claude/skills/rust-ai-native-sweep
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 Rust Ai Native Sweep 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 Rust Ai Native Sweep 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 Rust Ai Native Sweep 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.

The discipline sweep (Rust stack) {#root}

@fact:RUNNING-THE-STANDING-SWEEP You are running the standing sweep from the Discipline's Sweep Playbook (spec://org.vibevm.ai-native/core-ai-native/04-SWEEP-PLAYBOOK — the shipped copy is at vibedeps/flow-core-ai-native/<version>/spec/04-SWEEP-PLAYBOOK.md; read it once per session if you have not). @status:impl/done

@fact:two-truths-lead The two truths: @status:impl/done

  • @fact:TRUTH-GATES-ARE-THE-FLOOR the gates are the floor, the sweep is the ceiling, @status:impl/done
  • @fact:TRUTH-GATE-IS-TRUTH and the gate is truth, the collector is a guide. @status:impl/done

@fact:NEVER-SWEEP-ON-A-RED-TREE Never sweep on a red tree. @status:impl/done

@fact:ACT-ON-COLLECTOR-FACTS Act on collector facts, never on memory. @status:impl/done

@fact:ALL-COMMANDS-ARE-THE-SHIPPED-TOOLCHAIN All commands below are the shipped toolchain. @status:impl/done

@fact:IF-NOT-ON-PATH-INSTALL-OR-RUN-IN-PLACE If rust-ai-native is not on PATH, either install it once — cargo install --path vibedeps/<stack-slot>/crates/rust-ai-native-cli — or run it in place: cargo run --manifest-path vibedeps/<stack-slot>/Cargo.toml -p rust-ai-native-cli --bin rust-ai-native -- <args>. @status:impl/done

@fact:PROJECT-MAY-KEEP-ITS-OWN-WRAPPER (A project may also keep its own wrapper, e.g. a dev repo's cargo xtask — same engine, either way.) @status:impl/done

Tier 0 — the hard floor (ALWAYS first) {#tier-zero}

sh
rust-ai-native floor

@fact:RED-FLOOR-ADMITS-ONLY-GREENING-WORK Red? The only legal work is making it green — fix, do not proceed. @status:impl/done

@fact:CHECK-THE-PRINTED-POLICY-ORIGIN-LINES Check the printed policy-origin lines: conform: NO conform.toml — topology default in force, nothing is gated means the project is not bootstrapped (rust-ai-native init), and a green on a defaulted policy is vacuous. @status:impl/done

Tier 1 — the ratchet (every run) {#tier-one}

sh
rust-ai-native health

@fact:READ-THE-HEALTH-SUMMARY Read the summary (the JSON at discipline/health/latest.json is the work-list; its git diff is the trend). @status:impl/done

@fact:take-cheapest-wins-lead Take one or two cheapest wins, in this order: @status:impl/done

  1. @fact:RATCHET-DANGER-BAND-FILES danger_band_files — split any file at the top of the [540,600) band before an edit trips the 600 budget. Idioms: tests-out to a sibling foo/tests.rs (#[cfg(test)] #[path] mod tests;) first, responsibility split second; every new module keeps the parent's scope! URI (GUIDE §14 has the gotchas). @status:impl/done
  2. @fact:RATCHET-PUB-DOCTEST-PROMOTION-CANDIDATES pub_doctest_promotion_candidates — a gated crate at 0 typed-gap enters gated_pub_doctest in conform.toml for free; run rust-ai-native conform check to confirm the collector's prediction. @status:impl/done
  3. @fact:RATCHET-PUB-DOCTEST-DRAIN-BACKLOG pub_doctest_drain_backlog — document the smallest-gap crate's types (the four doctest idioms, GUIDE §14), then promote it. @status:impl/done
  4. @fact:RATCHET-DEVIATION-DEBT deviation_debt — re-justify each #[spec(deviates)]: a deviation whose invariant is now encodable in a type is removed and restructured. @status:impl/done
  5. @fact:RATCHET-CENSUS-REGRESSIONS Census regressions (unwrap_domain / env_nonroot / unsafe_nonaudit / error_enums_missing_req non-zero on a gated crate) — drain immediately; restructure beats testify. On an ungated crate they are the adoption backlog: flip a crate into [rust] gated only after it drains to zero. @status:impl/done

Tier 2 — drift (weekly) {#tier-two}

  • @fact:DRIFT-TRIPWIRE rust-ai-native tripwire — re-disposition every touched-and-open debt entry; file new deficiencies into discipline/registry/debt.json, never leave them as prose. @status:impl/done
  • @fact:DRIFT-LEDGER-RENDER rust-ai-native ledger render --check — the human views (discipline/DEBT.md / INTENT.md) match their registries; stale → re-render and commit (a registry edit without a re-render is exactly the drift this catches). @status:impl/done
  • @fact:DRIFT-DOC-CODE Doc/code drift: WAL freshness (if the project keeps one — see 06-WAL-CONVENTION), architecture docs vs the real tree, roadmap staleness. File stale-doc debt. @status:impl/done
  • @fact:DRIFT-MARKER-CENSUS Marker census: rg -n 'TODO|FIXME|REVIEW|XXX|HACK' over the source roots — graduate load-bearing markers into the registries, delete trivial ones. @status:impl/done
  • @fact:DRIFT-GOLDEN-TRANSCRIPTS Golden transcripts (discipline/golden/): must fail loudly, re-captured deliberately (capture.sh), never auto-updated. @status:impl/done

Tier 3 — deep judgment (weekly) {#tier-three}

@fact:WALK-THE-WISH-RULES Walk the WISH rules over the week's diff (typed seams, cell isolation/oracles, uniformity, contract-first ordering, lying prose, closed-vocabulary naming — GUIDE §1–§10). @status:impl/done

@fact:CAMPAIGN-SIZED-BACKLOG-BECOMES-A-RAID If a Tier-1 backlog has grown campaign-sized, plan a raid instead: 03-RAID-PLAYBOOK + 05-CAMPAIGN-FORM. @status:impl/done

Closing a sweep {#closing-a-sweep}

@fact:TOPIC-GROUPED-COMMITS Topic-grouped commits, one logical unit each, citing the sweep item. @status:impl/done

@fact:COMMIT-THE-REFRESHED-HEALTH-JSON Commit the refreshed discipline/health/latest.json in the same run. @status:impl/done

@fact:RESUME-POINTER Resume pointer: with a WAL — bump its standing line at any milestone move; without — the closing commit message carries the summary (floor state, items taken, next candidate). @status:impl/done

@fact:NEVER-LEAVE-STATE-ONLY-IN-THE-CONVERSATION Never leave the sweep's state only in this conversation. @status:impl/done

The generation-time assistant (before you edit, not instead of the floor) {#generation-time-assistant}

@fact:STACK-SHIPS-AN-AGENTIC-TYPE-ORACLE The stack ships an agentic type oracle. @status:impl/done

@fact:check-the-hypothetical-content-lead Before writing a nontrivial .rs edit, check the HYPOTHETICAL content instead of paying a red floor iteration: @status:impl/done

sh
vibe bin exec rust-ai-native-tcg -- validate src/cells/<cell>.rs \
    --content-from - --root .   # the edit on stdin; exit 1 = would fail

@fact:MCP-ALTERNATIVE or, when the vibevm MCP server is mounted, call tcg_validate with language: "rust" and the content argument (plus tcg_scope / tcg_complete / tcg_type for in-scope symbols, type-valid completions, and quick info). @status:impl/done

@fact:RESPONSES-CARRY-THE-SAME-CONFORM-FINDINGS Responses carry the SAME conform findings as the gate, flagged baselined or new, with guide-citing advice — a new finding in the answer means the floor WILL go red if you write that edit. @status:impl/done

@fact:ORACLE-PREREQUISITE Prerequisite: rust-analyzer on the machine (rustup component add rust-analyzer — a stack obligation). @status:impl/done

@fact:ORACLE-HONESTY Honesty: the oracle is rust-analyzer, not rustc; a clean answer shortens the distance to green, and the floor stays the truth (TCG-ORACLE-RUST §5). @status:impl/done

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

Kỹ năng AI Rust Ai Native Sweep làm được gì?

Run the recurring AI-Native discipline sweep on this Rust project — floor gates first, then the health collector's ratchet items, weekly drift and judgment tiers. Use daily or several times a day on an active tree; any single item is a safe stop.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/vibevm/vibevm/tree/main/vibevm/vibedeps/org.vibevm.fractality.delegation-rules/1.0.0/vibevm/vibedeps/org.vibevm.ai-native.rust-ai-native-lang/1.0.0/vibevm/vibespecs/skills/rust-ai-native-sweep. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để 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 Rust Ai Native Sweep?

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 Rust Ai Native Sweep 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 Rust Ai Native Sweep 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 Rust Ai Native Sweep có miễn phí không?

Kỹ năng này được vibevm 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 👇