Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-engineering-expert

БесплатноБез исполняемых скриптовНе проверен

Build LLM agents that use tools safely: tool design, the agent loop, memory, MCP servers, multi-agent orchestration, sandboxing and prompt-injection defence…

personamanagmentlayerот personamanagmentlayer★ 46 звёзд на GitHub

Об этом скилле

Agent Engineering Expert

An agent is a loop in which a model chooses tools until a goal is met. The difficulty is not the loop — it is that the model's choices are driven by text that may be attacker-controlled, and the tools have real effects.

Core Concepts

The Loop

observe → decide → act → observe …

Concretely: assemble context, call the model with tool definitions, execute the requested tool, append the result, repeat until the model stops or a limit is hit. Every element of that loop needs a bound — iterations, wall time, tokens and cost.

Capability Is the Design

What an agent can do is defined entirely by the tools it holds. Reliability and safety come from designing that surface, not from instructing the model to be careful. A tool the agent does not have is a failure mode that cannot occur.

The Model Is Untrusted Input

Anything the agent reads — a web page, a document, a tool result, an email — may contain instructions aimed at the model. Treat every tool call as a request from an untrusted party and authorise it independently. This is the defining security property of agents, and no amount of prompting removes it.

Autonomy Is a Dial

More steps means more compounding error. A workflow with fixed stages and a model at each decision point is usually more reliable, cheaper and easier to debug than an open-ended agent. Choose the least autonomy that solves the problem.

Designing Tools

The tool description is a prompt. It is the only thing telling the model when to use it.

{
  "name": "search_orders",
  "description": (
      "Search a customer's orders by status and date range. "
      "Use when the user asks about their order history or the state of an order. "
      "Returns at most 50 orders, newest first. "
      "Does not return payment card details. "
      "Use `get_order` instead when you already have an order id."
  ),
  "input_schema": {
      "type": "object",
      "properties": {
          "status": {"type": "string", "enum": ["pending", "shipped", "cancelled"]},
          "since":  {"type": "string", "format": "date"},
          "limit":  {"type": "integer", "minimum": 1, "maximum": 50, "default": 20},
      },
      "required": ["status"],
  },
}

What makes tools work:

  • Few, distinct tools. Beyond roughly twenty, selection accuracy falls. Merge overlapping tools rather than adding one more.
  • Say when not to use it, and name the alternative. Most misuse is a boundary problem between two similar tools.
  • Constrain with enums and ranges, not prose. The schema is enforced; the description is advice.
  • Return structured, bounded results. Truncate, paginate, and say so in the result so the model can ask for more.
  • Errors are prompts too. "since must be ISO 8601, e.g. 2026-01-31" gets a correct retry; "400 Bad Request" gets another guess.
  • Never expose a raw executor. run_sql and execute_shell hand the model — and anything that can talk to it — your database and your host.

The Agent Loop, Bounded

def run(goal: str, tools: ToolRegistry, budget: Budget) -> Result:
    messages = [{"role": "user", "content": goal}]

    for step in range(budget.max_steps):
        if budget.exhausted():
            return Result.stopped("budget exhausted", messages)

        reply = model.call(messages, tools=tools.definitions())
        budget.consume(reply.usage)
        messages.append(reply.message)

        if not reply.tool_calls:
            return Result.finished(reply.text, messages)

        for call in reply.tool_calls:
            decision = policy.authorise(call, actor=budget.actor)
            if decision.requires_human:
                return Result.awaiting_approval(call, messages)
            if not decision.allowed:
                messages.append(tool_error(call, decision.reason))
                continue
            messages.append(tool_result(call, tools.execute(call, actor=budget.actor)))

    return Result.stopped("max steps reached", messages)

Four properties matter more than the shape: every path terminates, every tool call is authorised against the user's permissions rather than the agent's, irreversible actions suspend for approval, and a failed tool returns an error the model can act on rather than raising.

Memory

Context is not memory. Decide deliberately what persists.

Kind Holds Mechanism
Working Current task state The message list, trimmed
Episodic What happened before Summarised transcripts, retrieved by relevance
Semantic Durable facts about the user or domain Extracted, stored, retrieved (see rag-expert)
Procedural How to do a recurring task Pro
Полный SKILL.md на GitHub

Установить agent-engineering-expert в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash(python:*, python3:*, pip:*, pytest:*, npm:*, npx:*, docker:*)
Grep
Glob
WebSearch

Вложенные файлы

references/ORCHESTRATION.mdreferences/SECURITY.md

FAQ

Что делает скилл agent-engineering-expert?

Build LLM agents that use tools safely: tool design, the agent loop, memory, MCP servers, multi-agent orchestration, sandboxing and prompt-injection defence. Use when the user mentions AI agents, tool use or function calling, MCP or Model Context Protocol, autonomous workflows, multi-agent systems, LangChain or Ollama, agent memory, or when the task involves giving a model the ability to act rather than only to answer.

Как установить скилл agent-engineering-expert?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-engineering-expert запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-engineering-expert с