Logo Server

Server

Tổ chức
skillmds
server

Máy chủ kỹ năng được nhập từ langchain

Add to TypingMind

Tổng quan

Nhà phát hànhskillmds
Kho mãskillmd
Tên kỹ năngserver
Sao
249
Bản fork
3
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 skillmds 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 Server 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/skillmds/skillmd/tree/main/plugins/agents-mcp/skills/server
  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/skillmds/skillmd.git /tmp/skillmd
mkdir -p .claude/skills
cp -r /tmp/skillmd/plugins/agents-mcp/skills/server .claude/skills/server
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 Server 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 Server 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 Server 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.

"""DeepAgents ACP server implementation."""

from future import annotations

import asyncio import uuid from typing import Any, Literal

from acp import ( Agent, AgentSideConnection, PROTOCOL_VERSION, stdio_streams, ) from acp.schema import ( AgentMessageChunk, InitializeRequest, InitializeResponse, NewSessionRequest, NewSessionResponse, PromptRequest, PromptResponse, SessionNotification, TextContentBlock, Implementation, AgentThoughtChunk, ToolCallProgress, ContentToolCallContent, LoadSessionResponse, SetSessionModeResponse, SetSessionModelResponse, CancelNotification, LoadSessionRequest, SetSessionModeRequest, SetSessionModelRequest, AgentPlanUpdate, PlanEntry, PermissionOption, RequestPermissionRequest, AllowedOutcome, DeniedOutcome, ToolCall as ACPToolCall, ) from deepagents import create_deep_agent from langchain_anthropic import ChatAnthropic from langchain_core.messages import AIMessage, AIMessageChunk, ToolMessage from langchain_core.messages.content import ToolCall from langchain_core.tools import tool from langgraph.checkpoint.memory import InMemorySaver from langgraph.graph.state import CompiledStateGraph from langgraph.types import Command, Interrupt

class DeepagentsACP(Agent): """ACP Agent implementation wrapping deepagents."""

def __init__(
    self,
    connection: AgentSideConnection,
    agent_graph: CompiledStateGraph,
) -> None:
    """Initialize the DeepAgents agent.

    Args:
        connection: The ACP connection for communicating with the client
        agent_graph: A compiled LangGraph StateGraph (output of create_deep_agent)
    """
    self._connection = connection
    self._agent_graph = agent_graph
    self._sessions: dict[str, dict[str, Any]] = {}
    # Track tool calls by ID for matching with ToolMessages
    # Maps tool_call_id -> ToolCall TypedDict
    self._tool_calls: dict[str, ToolCall] = {}

async def initialize(
    self,
    params: InitializeRequest,
) -> InitializeResponse:
    """Initialize the agent and return capabilities."""
    return InitializeResponse(
        protocolVersion=PROTOCOL_VERSION,
        agentInfo=Implementation(
            name="DeepAgents ACP Server",
            version="0.1.0",
            title="DeepAgents ACP Server",
        ),
    )

async def newSession(
    self,
    params: NewSessionRequest,
) -> NewSessionResponse:
    """Create a new session with a deepagents instance."""
    session_id = str(uuid.uuid4())
    # Store session state with the shared agent graph
    self._sessions[session_id] = {
        "agent": self._agent_graph,
        "thread_id": str(uuid.uuid4()),
    }

    return NewSessionResponse(sessionId=session_id)

async def _handle_ai_message_chunk(
    self,
    params: PromptRequest,
    message: AIMessageChunk,
) -> None:
    """Handle an AIMessageChunk and send appropriate notifications.

    Args:
        params: The prompt request parameters
        message: An AIMessageChunk from the streaming response

    Note:
        According to LangChain's content block types, message.content_blocks
        returns a list of ContentBlock unions. Each block is a TypedDict with
        a "type" field that discriminates the block type:
        - TextContentBlock: type="text", has "text" field
        - ReasoningContentBlock: type="reasoning", has "reasoning" field
        - ToolCallChunk: type="tool_call_chunk"
        - And many others (image, audio, video, etc.)
    """
    for block in message.content_blocks:
        # All content blocks have a "type" field for discrimination
        block_type = block.get("type")

        if block_type == "text":
            # TextContentBlock has a required "text" field
            text = block.get("text", "")
            if not text:  # Only yield non-empty text
                continue
            await self._connection.sessionUpdate(
                SessionNotification(
                    update=AgentMessageChunk(
                        content=TextContentBlock(text=text, type="text"),
                        sessionUpdate="agent_message_chunk",
                    ),
                    sessionId=params.sessionId,
                )
            )
        elif block_type == "reasoning":
            # ReasoningContentBlock has a "reasoning" field (NotRequired)
            reasoning = block.get("reasoning", "")
            if not reasoning:
                continue

            await self._connection.sessionUpdate(
                SessionNotification(
                    update=AgentThoughtChunk(
                        content=TextContentBlock(text=reasoning, type="text"),
                        sessionUpdate="agent_thought_chunk",
                    ),
                    sessionId=params.sessionId,
                )
            )

async def _handle_completed_tool_calls(
    self,
    params: PromptRequest,
    message: AIMessage,
) -> None:
    """Handle completed tool calls from an AIMessage and send notifications.

    Args:
        params: The prompt request parameters
        message: An AIMessage containing tool_calls

    Note:
        According to LangChain's AIMessage type:
        - message.tool_calls: list[ToolCall] where ToolCall is a TypedDict with:
          - name: str (required)
          - args: dict[str, Any] (required)
          - id: str | None (required field, but can be None)
          - type: Literal["tool_call"] (optional, NotRequired)
    """
    # Use direct attribute access - tool_calls is a defined field on AIMessage
    if not message.tool_calls:
        return

    for tool_call in message.tool_calls:
        # Access TypedDict fields directly (they're required fields)
        tool_call_id = tool_call["id"]  # str | None
        tool_name = tool_call["name"]  # str
        tool_args = tool_call["args"]  # dict[str, Any]

        # Skip tool calls without an ID (shouldn't happen in practice)
        if tool_call_id is None:
            continue

        # Skip todo tool calls as they're handled separately
        if tool_name == "todo":
            raise NotImplementedError("TODO tool call handling not implemented yet")

        # Send tool call progress update showing the tool is running
        await self._connection.sessionUpdate(
            SessionNotification(
                update=ToolCallProgress(
                    sessionUpdate="tool_call_update",
                    toolCallId=tool_call_id,
                    title=tool_name,
                    rawInput=tool_args,
                    status="pending",
                ),
                sessionId=params.sessionId,
            )
        )

        # Store the tool call for later matching with ToolMessage
        self._tool_calls[tool_call_id] = tool_call

async def _handle_tool_message(
    self,
    params: PromptRequest,
    tool_call: ToolCall,
    message: ToolMessage,
) -> None:
    """Handle a ToolMessage and send appropriate notifications.

    Args:
        params: The prompt request parameters
        tool_call: The original ToolCall that this message is responding to
        message: A ToolMessage containing the tool execution result

    Note:
        According to LangChain's ToolMessage type (inherits from BaseMessage):
        - message.content: str | list[str | dict] (from BaseMessage)
        - message.tool_call_id: str (specific to ToolMessage)
        - message.status: str | None (e.g., "error" for failed tool calls)
    """
    # Determine status based on message status or content
    status: Literal["completed", "failed"] = "completed"
    if hasattr(message, "status") and message.status == "error":
        status = "failed"

    # Build content blocks if message has content
    content_blocks = []
    for content_block in message.content_blocks:
        if content_block.get("type") == "text":
            text = content_block.get("text", "")
            if text:
                content_blocks.append(
                    ContentToolCallContent(
                        type="content",
                        content=TextContentBlock(text=text, type="text"),
                    )
                )
    # Send tool call progress update with the result
    await self._connection.sessionUpdate(
        SessionNotification(
            update=ToolCallProgress(
                sessionUpdate="tool_call_update",
                toolCallId=message.tool_call_id,
                title=tool_call["name"],
                content=content_blocks,
                rawOutput=message.content,
                status=status,
            ),
            sessionId=params.sessionId,
        )
    )

async def _handle_todo_update(
    self,
    params: PromptRequest,
    todos: list[dict[str, Any]],
) -> None:
    """Handle todo list updates from the tools node.

    Args:
        params: The prompt request parameters
        todos: List of todo dictionaries with 'content' and 'status' fields

    Note:
        Todos come from the deepagents graph's write_todos tool and have the structure:
        [{'content': 'Task description', 'status': 'pending'|'in_progress'|'completed'}, ...]
    """
    # Convert todos to PlanEntry objects
    entries = []
    for todo in todos:
        # Extract fields from todo dict
        content = todo.get("content", "")
        status = todo.get("status", "pending")

        # Validate and cast status to PlanEntryStatus
        if status not in ("pending", "in_progress", "completed"):
            status = "pending"

        # Create PlanEntry with default priority of "medium"
        entry = PlanEntry(
            content=content,
            status=status,  # type: ignore
            priority="medium",
        )
        entries.append(entry)

    # Send plan update notification
    await self._connection.sessionUpdate(
        SessionNotification(
            update=AgentPlanUpdate(
                sessionUpdate="plan",
                entries=entries,
            ),
            sessionId=params.sessionId,
        )
    )

async def _handle_interrupt(
    self,
    params: PromptRequest,
    interrupt: Interrupt,
) -> list[dict[str, Any]]:
    """Handle a LangGraph interrupt and request permission from the client.

    Args:
        params: The prompt request parameters
        interrupt: The interrupt from LangGraph containing action_requests and review_configs

    Returns:
        List of decisions to pass to Command(resume={...})

    Note:
        The interrupt.value contains:
        - action_requests: [{'name': str, 'args': dict, 'description': str}, ...]
        - review_configs: [{'action_name': str, 'allowed_decisions': list[str]}, ...]
    """
    interrupt_data = interrupt.value
    action_requests = interrupt_data.get("action_requests", [])
    review_configs = interrupt_data.get("review_configs", [])

    # Create a mapping of action names to their allowed decisions
    allowed_decisions_map = {}
    for review_config in review_configs:
        action_name = review_config.get("action_name")
        allowed_decisions = review_config.get("allowed_decisions", [])
        allowed_decisions_map[action_name] = allowed_decisions

    # Collect decisions for all action requests
    decisions = []

    for action_request in action_requests:
        tool_name = action_request.get("name")
        tool_args = action_request.get("args", {})

        # Get allowed decisions for this action
        allowed_decisions = allowed_decisions_map.get(
            tool_name, ["approve", "reject"]
        )

        # Build permission options based on allowed decisions
        options = []
        if "approve" in allowed_decisions:
            options.append(
                PermissionOption(
                    optionId="allow-once",
                    name="Allow once",
                    kind="allow_once",
                )
            )
        if "reject" in allowed_decisions:
            options.append(
                PermissionOption(
                    optionId="reject-once",
                    name="Reject",
                    kind="reject_once",
                )
            )
        # Generate a tool call ID for this permission request
        # We need to find the corresponding tool call from the stored calls
        # For now, use a generated ID
        tool_call_id = f"perm_{uuid.uuid4().hex[:8]}"

        # Create ACP ToolCall object for the permission request
        acp_tool_call = ACPToolCall(
            toolCallId=tool_call_id,
            title=tool_name,
            rawInput=tool_args,
            status="pending",
        )

        # Send permission request to client
        response = await self._connection.requestPermission(
            RequestPermissionRequest(
                sessionId=params.sessionId,
                toolCall=acp_tool_call,
                options=options,
            )
        )

        # Convert ACP response to LangGraph decision
        outcome = response.outcome

        if isinstance(outcome, AllowedOutcome):
            option_id = outcome.optionId
            if option_id == "allow-once":
                # Check if this was actually an edit option
                selected_option = next(
                    (opt for opt in options if opt.optionId == option_id), None
                )
                if selected_option and selected_option.field_meta:
                    # This is an edit - for now, just approve
                    # TODO: Implement actual edit functionality
                    decisions.append({"type": "approve"})
                else:
                    decisions.append({"type": "approve"})
            elif option_id == "edit":
                # Edit option - for now, just approve
                # TODO: Implement actual edit functionality to collect edited args
                decisions.append({"type": "approve"})
        elif isinstance(outcome, DeniedOutcome):
            decisions.append(
                {
                    "type": "reject",
                    "message": "Action rejected by user",
                }
            )

    return decisions

async def _stream_and_handle_updates(
    self,
    params: PromptRequest,
    agent: Any,
    stream_input: dict[str, Any] | Command,
    config: dict[str, Any],
) -> list[Interrupt]:
    """Stream agent execution and handle updates, returning any interrupts.

    Args:
        params: The prompt request parameters
        agent: The agent to stream from
        stream_input: Input to pass to agent.astream (initial message or Command)
        config: Configuration with thread_id

    Returns:
        List of interrupts that occurred during streaming
    """
    interrupts = []

    async for stream_mode, data in agent.astream(
        stream_input,
        config=config,
        stream_mode=["messages", "updates"],
    ):
        if stream_mode == "messages":
            # Handle streaming message chunks (AIMessageChunk)
            message, metadata = data
            if isinstance(message, AIMessageChunk):
                await self._handle_ai_message_chunk(params, message)
        elif stream_mode == "updates":
            # Handle completed node updates
            for node_name, update in data.items():
                # Check for interrupts
                if node_name == "__interrupt__":
                    # Extract interrupts from the update
                    interrupts.extend(update)
                    continue

                # Only process model and tools nodes
                if node_name not in ("model", "tools"):
                    continue

                # Handle todos from tools node
                if node_name == "tools" and "todos" in update:
                    todos = update.get("todos", [])
                    if todos:
                        await self._handle_todo_update(params, todos)

                # Get messages from the update
                messages = update.get("messages", [])
                if not messages:
                    continue

                # Process the last message from this node
                last_message = messages[-1]

                # Handle completed AI messages from model node
                if node_name == "model" and isinstance(last_message, AIMessage):
                    # Check if this AIMessage has tool calls
                    if last_message.tool_calls:
                        await self._handle_completed_tool_calls(
                            params, last_message
                        )

                # Handle tool execution results from tools node
                elif node_name == "tools" and isinstance(last_message, ToolMessage):
                    # Look up the original tool call by ID
                    tool_call = self._tool_calls.get(last_message.tool_call_id)
                    if tool_call:
                        await self._handle_tool_message(
                            params, tool_call, last_message
                        )

    return interrupts

async def prompt(
    self,
    params: PromptRequest,
) -> PromptResponse:
    """Handle a user prompt and stream responses."""
    session_id = params.sessionId
    session = self._sessions.get(session_id)

    # Extract text from prompt content blocks
    prompt_text = ""
    for block in params.prompt:
        if hasattr(block, "text"):
            prompt_text += block.text
        elif isinstance(block, dict) and "text" in block:
            prompt_text += block["text"]

    # Stream the agent's response
    agent = session["agent"]
    thread_id = session["thread_id"]
    config = {"configurable": {"thread_id": thread_id}}

    # Start with the initial user message
    stream_input: dict[str, Any] | Command = {
        "messages": [{"role": "user", "content": prompt_text}]
    }

    # Loop until there are no more interrupts
    while True:
        # Stream and collect any interrupts
        interrupts = await self._stream_and_handle_updates(
            params, agent, stream_input, config
        )

        # If no interrupts, we're done
        if not interrupts:
            break

        # Process each interrupt and collect decisions
        all_decisions = []
        for interrupt in interrupts:
            decisions = await self._handle_interrupt(params, interrupt)
            all_decisions.extend(decisions)

        # Prepare to resume with the collected decisions
        stream_input = Command(resume={"decisions": all_decisions})

    return PromptResponse(stopReason="end_turn")

async def authenticate(self, params: Any) -> Any | None:
    """Authenticate (optional)."""
    # Authentication not required for now
    return None

async def extMethod(self, method: str, params: dict[str, Any]) -> dict[str, Any]:
    """Handle extension methods (optional)."""
    raise NotImplementedError(f"Extension method {method} not supported")

async def extNotification(self, method: str, params: dict[str, Any]) -> None:
    """Handle extension notifications (optional)."""
    pass

async def cancel(self, params: CancelNotification) -> None:
    """Cancel a running session."""
    # TODO: Implement cancellation logic
    pass

async def loadSession(
    self,
    params: LoadSessionRequest,
) -> LoadSessionResponse | None:
    """Load an existing session (optional)."""
    # Not implemented yet - would need to serialize/deserialize session state
    return None

async def setSessionMode(
    self,
    params: SetSessionModeRequest,
) -> SetSessionModeResponse | None:
    """Set session mode (optional)."""
    # Could be used to switch between different agent modes
    return None

async def setSessionModel(
    self,
    params: SetSessionModelRequest,
) -> SetSessionModelResponse | None:
    """Set session model (optional)."""
    # Not supported - model is configured at agent graph creation time
    return None

async def main() -> None: """Main entry point for running the ACP server.""" # from deepagents_cli.agent import create_agent_with_config # from deepagents_cli.config import create_model # from deepagents_cli.tools import fetch_url, http_request, web_search # # # Create model using CLI configuration # model = create_model() # # # Setup tools - conditionally include web_search if Tavily is available # tools = [http_request, fetch_url] # if os.environ.get("TAVILY_API_KEY"): # tools.append(web_search) # # # Create CLI agent with shell access and other CLI features # # Using default assistant_id "agent" for ACP server # agent_graph, composite_backend = create_agent_with_config( # model=model, # assistant_id="agent", # tools=tools, # sandbox=None, # Local mode # sandbox_type=None, # system_prompt=None, # Use default CLI system prompt # auto_approve=False, # Require user approval for destructive operations # enable_memory=True, # Enable persistent memory # enable_skills=True, # Enable custom skills # enable_shell=True, # Enable shell access # ) # # Define default tools

from langchain.agents.middleware import HumanInTheLoopMiddleware

@tool()
def get_weather(location: str) -> str:
    """Get the weather for a given location."""
    return f"The weather in {location} is sunny with a high of 75°F."

# Create the agent graph with default configuration
model = ChatAnthropic(
    model_name="claude-sonnet-4-5-20250929",
    max_tokens=20000,
)

agent_graph = create_deep_agent(
    model=model,
    tools=[get_weather],
    checkpointer=InMemorySaver(),
    middleware=[
        HumanInTheLoopMiddleware(
            interrupt_on={
                "get_weather": True,
            }
        )
    ],
)

# Start the ACP server
reader, writer = await stdio_streams()
AgentSideConnection(lambda conn: DeepagentsACP(conn, agent_graph), writer, reader)
await asyncio.Event().wait()

def cli_main() -> None: """Synchronous CLI entry point for the ACP server.""" asyncio.run(main())

if name == "main": cli_main()

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

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

Máy chủ kỹ năng được nhập từ langchain

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/skillmds/skillmd/tree/main/plugins/agents-mcp/skills/server. 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 Server?

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

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