Logo Prune Gotchas

Prune Gotchas

Tổ chức
TSS-Blue-AI-Lab
prune-gotchas

Interactively review and consolidate existing gotchas.md files within an explicitly selected skills root. Use when lessons have accumulated, overlap, conflict, contain stale or sensitive context, or need clearer scope and conditions.

Tổng quan

Nhà phát hànhTSS-Blue-AI-Lab
Kho mãai-lab-agent-skills
Tên kỹ năngprune-gotchas
Sao
26
Bản fork
3
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 TSS-Blue-AI-Lab 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 Prune Gotchas 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/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/prune-gotchas
  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/TSS-Blue-AI-Lab/ai-lab-agent-skills.git /tmp/ai-lab-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-lab-agent-skills/skills/prune-gotchas .claude/skills/prune-gotchas
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 Prune Gotchas 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 Prune Gotchas 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 Prune Gotchas 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.

Gotchas Pruning — Interactive Review

Improve existing gotcha collections without losing useful context or changing guidance without approval. Work one file and one proposal at a time.

Constraints

  • Operate only on existing gotchas.md files beneath a skills root selected by the user or established by the current repository.
  • Never create a new gotchas file as part of pruning.
  • Never merge, remove, refine, sanitize, or relocate an entry without explicit approval for that proposal.
  • Show the exact before and proposed after text, except that secret values and sensitive identifiers must always be redacted.
  • Preserve the target file's organization and conventions unless the user separately approves restructuring.
  • Distinguish repository-local guidance from shared or globally installed skills. Editing a shared or global file requires explicit approval for that scope.
  • Base removals and conflict resolution on evidence, not subjective obviousness or timestamp recency.
  • Do not create backup files automatically.

Step 1 — Establish scope

Identify the skills root to inspect and state its absolute path. If multiple repository-local, user-level, or installed roots are plausible, ask the user which root is in scope.

Determine whether the selected root is:

  • repository-local;
  • user-level or shared; or
  • part of an installed package or plugin.

Scan recursively for existing files named gotchas.md. Do not assume a one-directory-deep layout or require a particular shell command. Exclude dependency, cache, generated, and version-control directories unless the selected skills root intentionally lives within one.

If no existing files are found, report that there is nothing to prune and stop.

Step 2 — Inventory the files

Read enough of each file to understand its structure and count its logical entries. Derive the entry boundary from the file's actual conventions, such as headings, list items, numbered records, or structured blocks. Do not assume every entry begins with a bold list marker.

Present a summary:

Skill or pathScopeApproximate entriesStructureReview signal
<skill>repository/shared<count><observed format><overlap, size, stale context, sensitive content, or none>

Label a count as approximate when the format is ambiguous. A size threshold may be used as a configurable review hint, with 30 entries as a default, but it is never proof that pruning is needed. Files with fewer entries may deserve review when they contain conflicts or sensitive information.

Ask which file to review first. Do not edit several files as one approval unit.

Step 3 — Understand the selected file

Read the complete file and identify its existing:

  • sections and category scheme, if any;
  • entry format;
  • timestamp or provenance conventions;
  • intended scope; and
  • rules for ordering or grouping.

Do not impose categories such as BUG, ARCHITECTURE, or MISUNDERSTANDING when the file uses another structure.

When an entry refers to behavior that may have changed, verify the current behavior from authoritative local evidence when possible. Examples include current code, tests, configuration, documentation, or tool output. If it cannot be verified, present it as uncertain rather than declaring it obsolete.

Step 4 — Identify proposals

Assign each candidate one action:

  • MERGE: multiple entries express the same lesson under the same relevant conditions.
  • REMOVE: the guidance is demonstrably false, fully duplicated, or no longer applicable and has no continuing historical value.
  • REFINE: the lesson is useful but vague, overgeneralized, misleading, or missing an important condition or prevention.
  • SANITIZE: the lesson exposes or unnecessarily preserves identifying, proprietary, or sensitive context.
  • RELOCATE: the lesson is valid but belongs at a different scope, such as repository-local guidance instead of a shared skill.
  • KEEP: the entry is distinct, accurate, actionable, appropriately scoped, and safe.

Do not remove an entry merely because it appears simple or project-specific. A project-specific lesson may be valid repository guidance. Before relocating or removing it from a shared file, identify an approved existing repository-local destination or leave it in place until the user chooses a durable home.

Step 5 — Sanitize safely

Check entries for:

  • project, organization, product, person, and customer names;
  • private paths, hosts, URLs, repository names, tickets, identifiers, and branch names;
  • proprietary code, schemas, business rules, data, and internal terminology; and
  • credentials, tokens, cookies, keys, connection strings, or other secret values.

Generalize identifying context while preserving the conditions that make the lesson useful. Name the category of a secret, never its value.

If a secret or sensitive identifier is present, do not reproduce it in the proposal. Show a redacted reference with the file and narrowest available location, propose sanitized replacement text, and warn that exposed credentials may require rotation through the user's normal security process.

Step 6 — Present one proposal at a time

For each proposed action, show:

  • target file and scope;
  • action;
  • evidence or reasoning;
  • current entry or entries, safely redacted when necessary;
  • exact proposed replacement, destination, or removal; and
  • any uncertainty or information that would be lost.

Use a neutral example format such as:

markdown
Action: REFINE

Current:
- A request can fail when optional configuration is absent.

Proposed:
- When an optional integration is disabled, skip its request path and report the unavailable capability instead of constructing an incomplete request.

Reason: The current entry identifies a symptom but not the triggering condition or prevention.

Ask the user to accept, edit, or skip the proposal. A skipped proposal remains unchanged. Approval for one proposal does not approve later proposals.

For conflicts, present the competing guidance and current evidence. Do not automatically preserve the newest timestamp; retain the entry supported by current behavior, or keep the conflict unresolved when evidence is insufficient.

Step 7 — Apply approved changes

After the user finishes reviewing proposals for one file:

  1. Apply only the accepted changes.
  2. Preserve unrelated content, formatting, ordering, and metadata.
  3. Use the version-control diff as the reviewable recovery record when available.
  4. If version control is unavailable and the user wants a backup, ask where to place it before creating one.
  5. Re-read the result for malformed structure, lost conditions, sensitive content, and unintended changes.
  6. Show the final diff or exact changed entries.

Report:

  • entries before and after, noting approximate counts;
  • proposals merged, removed, refined, sanitized, relocated, kept, and skipped;
  • unresolved conflicts or uncertain entries; and
  • the exact files changed.

Then ask whether to review another existing file or stop.

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

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

Interactively review and consolidate existing gotchas.md files within an explicitly selected skills root. Use when lessons have accumulated, overlap, conflict, contain stale or sensitive context, or need clearer scope and conditions.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/prune-gotchas. 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 Prune Gotchas?

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

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