Logo Ue Debugging Techniques

Ue Debugging Techniques

Cộng đồng
kevinpbuckley
ue-debugging-techniques

Debug Unreal C++ and gameplay code — native debugger usage (VS/Rider, natvis, Live Coding caveats), DrawDebug* world-space helpers (DrawDebugLine, DrawDebugSphere, DrawDebugString, etc.), on-screen messages (GEngine->AddOnScreenDebugMessage), the Visual Logger (UE_VLOG*, timestamped replay of spatial/temporal events), the Gameplay Debugger (FGameplayDebuggerCategory, custom categories), ensure/check as debugging aids, and stat/console commands for runtime interrogation. Use when diagnosing wrong behavior, visualizing traces/ranges/AI state in the world, reproducing intermittent or AI bugs with timeline replay, stepping through a crash, or adding in-game debug overlays to a custom system.

Tổng quan

Nhà phát hànhkevinpbuckley
Kho mãunreal-engine-skills
Tên kỹ năngue-debugging-techniques
Sao
89
Bản fork
9
Tệp đi kèm
3
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ộ.

  • 3 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 kevinpbuckley 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 Ue Debugging Techniques 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/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-debugging-techniques
  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/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-debugging-techniques .claude/skills/ue-debugging-techniques
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 Ue Debugging Techniques 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 Ue Debugging Techniques 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 Ue Debugging Techniques 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.

Debugging techniques

Pick the tool that fits the question:

QuestionTool
What value / did this run?UE_LOG / ensure — see ue-logging-and-assertions
Where in space is this thing?DrawDebug* helpers
What happened over the last N seconds?Visual Logger
What is the AI/gameplay system thinking right now?Gameplay Debugger
Crash / step through logic?Native debugger (VS/Rider)
Frame time, draw calls, physics cost?ue-profiling-and-optimization

When to use this skill

  • Behavior is wrong and you need values, positions, or state visible during play.
  • Visualizing traces, detection ranges, AI targets, nav paths, or spawn points.
  • An intermittent bug whose cause unfolds over several seconds — record with the Visual Logger and scrub the timeline.
  • Stepping through C++ to find a crash or logic error; attaching a debugger and reading a callstack.
  • Adding a custom in-game debug overlay for a new system (Gameplay Debugger custom category).

Logging and assertions — start here

For "what is the value / did this path run" questions, a UE_LOG line is fastest. For invariant violations, prefer ensure over check in gameplay code so the editor survives and surfaces the problem without a crash. Full coverage — log categories, verbosity, UE_LOG, check, ensure, checkf, ensureMsgf — is in ue-logging-and-assertions.

cpp
// Non-fatal invariant — logs callstack, editor keeps running, fires once per session by default
if (!ensure(MyComponent != nullptr))
    return;

// Fatal invariant — crashes intentionally when the assumption is broken in dev builds
check(GetWorld() != nullptr);
checkf(Health >= 0.f, TEXT("Health underflowed to %.1f on %s"), Health, *GetName());

Source: Runtime/Core/Public/Misc/AssertionMacros.h — check:229, checkf:259, ensure block begins at line 368 with DO_ENSURE guard; ensure fires once per call-site per session, ensureAlways fires every time.

Debug drawing (visualize in the world)

DrawDebug* functions render geometry directly into the viewport — lines, spheres, boxes, capsules, text labels, arrows, cones, and more. They require no actor or component; call them from any code that has a UWorld*.

cpp
#include "DrawDebugHelpers.h"

// Line — show a trace or path segment
DrawDebugLine(GetWorld(), TraceStart, TraceEnd, FColor::Red,
              /*bPersistentLines=*/false, /*LifeTime=*/2.f, /*DepthPriority=*/0, /*Thickness=*/1.f);

// Sphere — visualize a detection radius or spawn point
DrawDebugSphere(GetWorld(), GetActorLocation(), DetectionRadius,
                /*Segments=*/16, FColor::Green, false, 0.f);

// Text label at a world position — tag an actor with live data
DrawDebugString(GetWorld(), GetActorLocation() + FVector(0,0,80),
                FString::Printf(TEXT("HP: %d"), Health),
                /*TestBaseActor=*/nullptr, FColor::White, /*Duration=*/0.f);

// Capsule — match a character's collision shape
DrawDebugCapsule(GetWorld(), GetActorLocation(), CapsuleHalfHeight, CapsuleRadius,
                 FQuat::Identity, FColor::Yellow, false, 1.f);

// Directional arrow — show a velocity or AI direction
DrawDebugDirectionalArrow(GetWorld(), Tail, Head, /*ArrowSize=*/20.f,
                          FColor::Cyan, false, 1.f);

Key parameters shared by most functions:

  • bPersistentLines — if true, stays until FlushPersistentDebugLines is called.
  • LifeTime — seconds the shape is visible; -1 means one frame; 0.f on most shapes means "use duration", which defaults to one frame from the game's perspective.
  • DepthPriority — higher priority draws on top; use SDPG_Foreground (1) to prevent geometry from occluding the shape.
  • Thickness — line thickness in screen pixels for wire shapes.

All functions are guarded by #if ENABLE_DRAW_DEBUG (which evaluates to false in Shipping), so they are automatically stripped from release builds — no manual #if guards needed.

Source: Runtime/Engine/Public/DrawDebugHelpers.h — DrawDebugLine:22, DrawDebugPoint:24, DrawDebugSphere:45, DrawDebugBox:28, DrawDebugCapsule:57, DrawDebugString:52, DrawDebugDirectionalArrow:26, DrawDebugCone:49, DrawDebugCylinder:47, DrawDebugCapsule:57, DrawDebugSolidBox:68, FlushPersistentDebugLines:20.

Full shape catalog and persistent-line patterns: references/draw-debug-and-console.md.

On-screen debug messages

For transient HUD-free readouts — values that update each frame without spamming the log:

cpp
// Keyed message: same key overwrites the previous value each frame
if (GEngine)
{
    GEngine->AddOnScreenDebugMessage(
        /*Key=*/1,                                    // unique int key; INDEX_NONE appends
        /*TimeToDisplay=*/0.f,                        // 0 = one frame, positive = linger
        FColor::Yellow,
        FString::Printf(TEXT("Speed: %.1f"), Speed)
    );
}

Use Key values unique per message so they overwrite rather than stack. INDEX_NONE (-1) appends a new line every call — useful for single-shot notifications, noisy if called every tick. GEngine->ClearOnScreenDebugMessages() removes all messages at once.

Source: Runtime/Engine/Classes/Engine/Engine.h — AddOnScreenDebugMessage (uint64 key):2197, AddOnScreenDebugMessage (int32 key):2200, ClearOnScreenDebugMessages:2206, RemoveOnScreenDebugMessage:2209.

Visual Logger (events over time)

The Visual Logger records text and spatial shapes per-actor with timestamps. After recording you can scrub a timeline in the Visual Logger window and see exactly what each actor saw, decided, and drew at each moment — invaluable for AI and intermittent bugs that plain logging cannot capture. For spatial/temporal bugs, prefer UE_VLOG* over flooding the output log with UE_LOG.

cpp
#include "VisualLogger/VisualLogger.h"

// Text entry — attached to 'this' actor's timeline row
UE_VLOG(this, LogMyAI, Verbose, TEXT("Acquired target %s at dist %.1f"),
        *Target->GetName(), Distance);

// Sphere at a world position — mark a last-known position
UE_VLOG_LOCATION(this, LogMyAI, Verbose, LastKnownPos, /*Radius=*/30.f,
                 FColor::Yellow, TEXT("LKP"));

// Segment between two points — visualize a planned move
UE_VLOG_SEGMENT(this, LogMyAI, Verbose, Start, Goal, FColor::Cyan, TEXT("Path"));

// Wire sphere — perception radius at this frame
UE_VLOG_WIRESPHERE(this, LogMyAI, Verbose, GetActorLocation(), PerceptionRadius,
                   FColor::Green, TEXT("Hear radius"));

// Conditional variant — only logs if the condition is true (avoids branching boilerplate)
UE_CVLOG(bTargetVisible, this, LogMyAI, Verbose, TEXT("Target visible"));

All UE_VLOG* macros are no-ops unless ENABLE_VISUAL_LOG is defined (true in non-Shipping builds). The macros short-circuit on FVisualLogger::IsRecording() so there is no overhead when the Visual Logger is inactive. UE_VLOG_UELOG emits to both the Visual Logger and the standard output log simultaneously.

Source: Runtime/Engine/Public/VisualLogger/VisualLogger.h — macro block starts at line 43; FVisualLogger class at line 223; SetIsRecording:581, IsRecording (static inline):575, SetIsRecordingToFile:693, FVisualLogger::Get():567.

Full macro catalog, redirection, and file recording: references/visual-logger.md.

Gameplay Debugger (live categories in PIE)

The Gameplay Debugger is an in-game overlay activated by the apostrophe key (') in PIE. Built-in categories cover the AI subsystem (Behavior Trees, EQS, perception, navigation), abilities, and more. You can add custom categories to visualize your own systems alongside the built-in data.

Registering a custom category

cpp
// In your module's StartupModule():
#if WITH_GAMEPLAY_DEBUGGER
    IGameplayDebugger& GDB = IGameplayDebugger::Get();
    GDB.RegisterCategory(
        TEXT("MySystem"),
        IGameplayDebugger::FOnGetCategory::CreateStatic(
            &FMySystemDebuggerCategory::MakeInstance),
        EGameplayDebuggerCategoryState::EnabledInGameAndSimulate
    );
    GDB.NotifyCategoriesChanged();
#endif

// In ShutdownModule():
#if WITH_GAMEPLAY_DEBUGGER
    if (IGameplayDebugger::IsAvailable())
    {
        IGameplayDebugger::Get().UnregisterCategory(TEXT("MySystem"));
    }
#endif

Implementing the category

cpp
// MySystemDebuggerCategory.h
#if WITH_GAMEPLAY_DEBUGGER
#include "GameplayDebuggerCategory.h"

class FMySystemDebuggerCategory : public FGameplayDebuggerCategory
{
public:
    static TSharedRef<FGameplayDebuggerCategory> MakeInstance()
    {
        return MakeShared<FMySystemDebuggerCategory>();
    }

    // [AUTH] — runs on server/standalone, collects data to replicate
    virtual void CollectData(APlayerController* OwnerPC, AActor* DebugActor) override;

    // [LOCAL] — runs on client, draws the collected data
    virtual void DrawData(APlayerController* OwnerPC,
                          FGameplayDebuggerCanvasContext& CanvasContext) override;
};
#endif

In CollectData, call AddTextLine(TEXT("{yellow}Key: {white}Value")) and AddShape(...) to populate replicated data. In DrawData, the lines and shapes added by CollectData render automatically before your custom draw code runs.

WITH_GAMEPLAY_DEBUGGER is not defined in Shipping builds by default; guard all category code with it. Add SetupGameplayDebuggerSupport(Target) to your Build.cs to link correctly.

Source: Runtime/GameplayDebugger/Public/GameplayDebugger.h — IGameplayDebugger interface, RegisterCategory:78, UnregisterCategory:79, NotifyCategoriesChanged:80. Runtime/GameplayDebugger/Public/GameplayDebuggerCategory.h — FGameplayDebuggerCategory:48, CollectData:56, DrawData:59, AddTextLine:68, AddShape:71.

Full custom-category walkthrough: references/gameplay-debugger.md.

Native debugger (C++ breakpoints and inspection)

Attach Visual Studio or Rider to the Unreal Editor process (or launch with -debug). Unreal ships .natvis files so the watch window renders FString, FName, TArray, TMap, and FVector as readable values rather than raw memory.

Practical habits:

  • Break on ensure failures: in VS, add a conditional breakpoint on FDebug::EnsureFailed or use "Break on all exceptions" for C++ in the Exception Settings.
  • For crash callstacks, read from the top down; the first frame in project code is usually where the bad pointer or bad assumption lives.
  • checkNoEntry() marks code paths that should be unreachable; hitting one in the debugger means the control flow is wrong, not the data.

Live Coding

Live Coding (Ctrl+Alt+F11) recompiles function bodies without restarting the editor. It is safe for changing logic inside existing functions. It cannot handle:

  • Adding or removing UPROPERTY / UFUNCTION members.
  • Changing class layout (new member variables, changed base classes).
  • Changes to header files that affect other translation units.

After any of these, restart the editor for a full hot reload or use Unreal Build Tool. The common failure mode is that Live Coding "succeeds" on a structural change but the old CDO or Blueprint instance retains the stale layout, causing silent data corruption or crashes on the next frame. When in doubt after a crash following Live Coding, do a full rebuild.

Console commands and cvars

Open the console with the tilde key (~). Useful dev commands:

CommandWhat it shows
stat fpsFrame rate overlay
stat unitGame/render/GPU thread timing
stat gamePer-system game-thread costs
stat aiAI tick costs
showdebug aiAI state overlay (overlaps with Gameplay Debugger)
showdebug inputCurrent input action states
showdebug collisionCollision channel visualization
displayall ClassName PropertyNameLive broadcast of a UPROPERTY value for all instances
dumpticksLists all ticking actors and their tick group
r.VisualizeOccludedPrimitives 1Highlights culled primitives
ToggleDebugCameraDetaches the camera from the pawn for free-fly inspection
Slomo 0.1Slows time by 10x (via UCheatManager)
t.MaxFPS 10Caps frame rate for slow-motion inspection

CVars follow the pattern r.* (rendering), s.* (streaming), p.* (physics), t.* (time), ai.* (AI). Use DumpConsoleCommands or start typing in the console to search.

Exec functions on any UObject in the input chain (pawn, controller, game mode, cheat manager) can be marked UFUNCTION(Exec) and invoked from the console by name. UCheatManager (on APlayerController) is the canonical home for dev-only cheats.

cpp
// In your PlayerController or CheatManager subclass:
UFUNCTION(Exec)
void ToggleMyDebugVis()
{
    bShowMyDebugOverlay = !bShowMyDebugOverlay;
}

Source: Runtime/Engine/Classes/GameFramework/CheatManager.h — UCheatManager:98, UFUNCTION(exec) cheat examples: FreezeFrame:160, Fly:172, God:184, Slomo:188.

Full stat commands, cvar authoring, and displayall: references/draw-debug-and-console.md.

Decision guide

Bug type                        → Tool
──────────────────────────────────────────────────────
Wrong value / missing execution → UE_LOG / ensure
Wrong position / shape / range  → DrawDebug* or UE_VLOG_LOCATION
AI makes wrong decision         → Gameplay Debugger + Visual Logger
Intermittent / race / sequence  → Visual Logger (scrub timeline)
Crash / access violation        → Native debugger + callstack
Perf regression (fps/ms)        → ue-profiling-and-optimization

Gotchas

  • DrawDebug* and GEngine->AddOnScreenDebugMessage in Shipping — both are stripped. They are dev tools; never rely on them for gameplay feedback.
  • Live Coding after structural changes — silent staleness or immediate crash; do a full hot-reload restart instead.
  • UE_LOG spam every tick instead of the Visual Logger — produces GBs of output; use UE_VLOG* for spatial/temporal information.
  • check when ensure was wanted — crashes the editor and loses unsaved work; prefer ensure in gameplay code for non-fatal invariants.
  • UE_VLOG* with no owner — pass this (an AActor or UObject); a null owner silently drops the entry.
  • Forgetting #if WITH_GAMEPLAY_DEBUGGER — linker error in Shipping if the GameplayDebugger module is excluded; always guard category code.
  • DrawDebugString with a non-null TestBaseActor — the string position is relative to that actor, which can be confusing if the actor moves; pass nullptr for absolute positions.
  • LifeTime = -1.f — in DrawDebugLine/DrawDebugSphere, -1.f means "use the default duration" (one frame), NOT "persist forever". Use bPersistentLines = true for persistence, then call FlushPersistentDebugLines to clear.

References & source material

Engine source (UE 5.8, under Engine/Source/):

  • Runtime/Engine/Public/DrawDebugHelpers.h — DrawDebugLine:22, DrawDebugPoint:24, DrawDebugSphere:45, DrawDebugBox:28, DrawDebugCapsule:57, DrawDebugString:52, DrawDebugDirectionalArrow:26, DrawDebugCone:49, DrawDebugSolidBox:68; ENABLE_DRAW_DEBUG macro:14.
  • Runtime/Engine/Classes/Engine/Engine.h — AddOnScreenDebugMessage (uint64):2197, AddOnScreenDebugMessage (int32):2200, ClearOnScreenDebugMessages:2206, RemoveOnScreenDebugMessage:2209.
  • Runtime/Engine/Public/VisualLogger/VisualLogger.h — UE_VLOG macro:43, UE_VLOG_LOCATION:55, UE_VLOG_SEGMENT:49, UE_VLOG_SPHERE:58, UE_VLOG_UELOG:46; FVisualLogger:223, SetIsRecording:581, IsRecording:575, FVisualLogger::Get():567.
  • Runtime/GameplayDebugger/Public/GameplayDebugger.h — IGameplayDebugger:50, RegisterCategory:78, UnregisterCategory:79, NotifyCategoriesChanged:80.
  • Runtime/GameplayDebugger/Public/GameplayDebuggerCategory.h — FGameplayDebuggerCategory:48, CollectData:56, DrawData:59, AddTextLine:68, AddShape:71.
  • Runtime/Core/Public/Misc/AssertionMacros.h — check:229, checkf:259, ensure block:368 (see also ue-logging-and-assertions).
  • Runtime/Engine/Classes/GameFramework/CheatManager.h — UCheatManager:98, example UFUNCTION(exec) cheat bodies:160–217.

Official docs (UE 5.8):

Related skills: ue-logging-and-assertions, ue-ai-and-navigation, ue-profiling-and-optimization.

Deep-dive references in this skill:

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 Ue Debugging Techniques làm được gì?

Debug Unreal C++ and gameplay code — native debugger usage (VS/Rider, natvis, Live Coding caveats), DrawDebug* world-space helpers (DrawDebugLine, DrawDebugSphere, DrawDebugString, etc.), on-screen messages (GEngine->AddOnScreenDebugMessage), the Visual Logger (UE_VLOG*, timestamped replay of spatial/temporal events), the Gameplay Debugger (FGameplayDebuggerCategory, custom categories), ensure/check as debugging aids, and stat/console commands for runtime interrogation. Use when diagnosing wrong behavior, visualizing traces/ranges/AI state in the world, reproducing intermittent or AI bugs w...

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-debugging-techniques. 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 Ue Debugging Techniques?

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

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