Logo Never Twice

Never Twice

Tổ chức
off-grid-ai
never-twice

Turn each pull request review into a sharper engineering standard, so the same mistake doesn't come back. Your agent keeps only the general lessons from a review, writes each into code-check with a signal a grep can catch, and logs its source. Use when you say "learn from this review", "/never-twice", "update the standard from these comments", or at the end of safe-to-merge.

Tổng quan

Nhà phát hànhoff-grid-ai
Kho mãskills
Tên kỹ năngnever-twice
Sao
189
Bản fork
23
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 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 off-grid-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 Never Twice 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/off-grid-ai/skills/tree/main/review/skills/never-twice
  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/off-grid-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/review/skills/never-twice .claude/skills/never-twice
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 Never Twice 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 Never Twice 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 Never Twice 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.

Learn from every review

The code-check skill is only as good as the mistakes it has learned to catch. Every review is a free lesson. This skill decides which lessons are worth keeping, and folds those, and only those, back into code-check so the next PR starts from a higher bar. The discipline is as much about what you REFUSE to add as what you add: a bloated standard is an ignored standard.

Where the standard lives. code-check/SKILL.md (its PLAN, AUDIT and Standards sections) and its provenance log code-check/LEDGER.md, wherever your agent installed the skill (for example .claude/skills/, .agents/skills/, or the project's own skills folder). If the team keeps its standard elsewhere (a CONTRIBUTING.md, an engineering handbook), fold lessons there instead and keep the same ledger beside it.

Input. The review comments for a PR: from safe-to-merge Phase 2, or gh pr view <n> --comments plus gh api repos/{owner}/{repo}/pulls/{n}/comments, or a set the user pastes. Include your own AUDIT findings and any bug that slipped past the test suite: a shipped regression is the highest-signal lesson there is ("why did the suite stay green?").


Step 1: For each comment, classify GENERIC or SPECIFIC

Promote a lesson into the standard only if all five hold:

  1. Recurs. It is a class of mistake, not this feature's domain bug. The test: "Would this exact comment be valid on an unrelated PR, in another repo?" If it only makes sense for this feature, it is SPECIFIC: discard.
  2. Maps to a section. It sharpens an existing rule, tell or anti-pattern in one Standards section (Separation of concerns, Avoid local state, SOLID, SSOT / DRY, One seam across platforms, Testing, Design, Copy, Branch / PR / honesty, Mechanical gates), or it shows a genuinely missing section. Name the section.
  3. Detectable. You can state it as a rule with a tell: a concrete signal a reviewer or a grep can catch next time (kind ===, a hardcoded hex color, expect(x).toHaveBeenCalled(), a duplicated constant). "Write better code" is not a tell: discard.
  4. Not already covered. Search the current skill. If the rule is already there, do NOT duplicate it; at most tighten the existing wording. Most near-misses land here.
  5. Portable. It belongs in the cross-repo standard. Repo-specific facts (a path, a command, a token name) go to that repo's agent instructions (CLAUDE.md, AGENTS.md, .cursor/rules, or the equivalent), not here. Anything a formatter or linter already enforces is not a lesson: it is a gate config (Mechanical gates).

Discard (do not touch the skill) when: it is a one-off domain bug; a style preference the formatter or linter owns; project-specific (it goes to the repo's agent instructions); already covered; or a nit with no general signal. Discarding is the common, correct outcome: most comments are SPECIFIC.

Output a short table: each comment, GENERIC or SPECIFIC, and for a generic one the target section and the tell.

Step 2: Fold the GENERIC lessons in, minimally

For each GENERIC lesson:

  • Prefer sharpening an existing bullet over adding a new one. Add the missing tell or anti-pattern to the rule that already exists. Add a new bullet only when no existing rule covers it. Add a new section only when a whole dimension is missing (rare; justify it).
  • Write in the skill's voice: an imperative rule, the tell, and optionally the anti-pattern. Terse. Match the density of the text around it. No preamble, no hedging.
  • Keep it tight. The bar for this skill is high signal, no bloat. If your addition makes a section longer without making it sharper, cut it back. One vivid tell beats three paragraphs.
  • One section per lesson. If a comment spans two sections, split it.

Step 3: Show the diff, apply, log

  • Show the exact before and after edit to code-check/SKILL.md for each accepted lesson. Keep edits surgical (a tightened sentence, an added tell); never rewrite a section.
  • Apply the edits.
  • Log provenance in code-check/LEDGER.md, one line per accepted lesson: YYYY-MM-DD · <repo> PR #<n> · <section> · <the one-line lesson>. The ledger is the audit trail: it lets anyone see why a rule exists and revert a bad addition. Use absolute dates. Keep only the one-liner in the ledger; the content lives in the skill.
  • Report: N comments reviewed, M generic (folded into which sections), N minus M specific (discarded, with why in one phrase). If M is 0, say so plainly. A review with no general lesson is normal and honest; do not invent one to justify an edit.

Guardrails

  • The skill must not only grow. When you add, look for a rule the new tell makes redundant, and merge them. Net size stays roughly flat; density rises.
  • Never weaken a rule to match a shipped mistake. Lessons raise the bar, never lower it (as with coverage: raise, never lower).
  • A shipped regression changes the test class, not just the code. If the lesson is "the suite stayed green while the feature broke", the edit is a sharper Testing tell about the missing corner or seam. Then search the codebase for tests of the same shape.
  • Don't over-fit to one loud reviewer. One bot's style preference is not a standard. The "would it recur elsewhere?" test must pass on its own merits.

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

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

Turn each pull request review into a sharper engineering standard, so the same mistake doesn't come back. Your agent keeps only the general lessons from a review, writes each into code-check with a signal a grep can catch, and logs its source. Use when you say "learn from this review", "/never-twice", "update the standard from these comments", or at the end of safe-to-merge.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/off-grid-ai/skills/tree/main/review/skills/never-twice. 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 Never Twice?

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

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