Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

ai-engineeringAI 工程

Agent Skill

ai-engineering 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

309

周安装

13

GitHub Stars

公开资料未说明

下载量

108
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ai-engineering(AI 工程)
来源仓库:https://github.com/mguinada/agent-skills
仓库路径:skills/ai-engineering
安装命令:
npx skills add https://github.com/mguinada/agent-skills --skill ai-engineering
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mguinada/agent-skills --skill ai-engineering

简介

AI 工程技能用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中获取信息的场景。
  • 通过 npx 命令安装并使用,建议结合原始 README 核验具体用法。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件读写操作。
  • ai-engineering 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

AI Engineering

Overview

Build effective agentic systems using proven patterns. Start simple, add complexity only when needed.

For specialized prompt design guidance (techniques, patterns, examples for agentic systems), see the prompt-engineering skill.

Core Principle

Find the simplest solution first. Agentic systems trade latency and cost for better task performance. Only increase complexity when simpler solutions fall short.

  1. Start with optimized single LLM calls (retrieval, in-context examples)
  2. Add workflows for predictable, multi-step tasks
  3. Use agents when flexibility and autonomous decision-making are required

When to Build an Agent

Before committing to an agent, validate that your use case truly requires agentic capabilities. Consider alternatives first—deterministic solutions are simpler, faster, and more reliable.

Use agents when workflows involve:

CriteriaDescriptionExample
Complex decision-makingNuanced judgment, exceptions, context-sensitive decisionsRefund approval with edge cases
Brittle rule systemsRulesets that are unwieldy, costly to maintain, or error-proneVendor security reviews
Unstructured dataInterpreting natural language, documents, or conversational inputProcessing insurance claims

If your use case doesn't clearly fit these criteria, a deterministic or simple LLM solution may suffice.

Agentic System Taxonomy

Understanding the spectrum of agentic capabilities helps you choose the right level of complexity for your use case.

LevelNameDescriptionUse Case
Level 0Core Reasoning SystemLM operates in isolation, responding based on pre-trained knowledge onlyExplaining concepts, general knowledge
Level 1Connected Problem-SolverLM connects to external tools to retrieve real-time information and take actionsAnswering "What's the score?", querying databases
Level 2Strategic Problem-SolverAgent actively curates context, plans multi-step tasks, and engineers focused queries for each step"Find coffee shops halfway between two locations"
Level 3Collaborative Multi-Agent SystemMultiple specialized agents coordinate under a central manager or through peer handoffsProduct launch with research, marketing, and web dev agents
Level 4Self-Evolving SystemAgents can dynamically create new tools or agents to fill capability gapsAgent creates sentiment analysis agent when needed

Progression guidance: Start at Level 0 or 1. Only increase levels when the current level cannot handle your use case effectively.

Prompt Engineering

Effective prompts are critical to agentic system performance. When designing or refining prompts for LLM calls, workflows, or agents, leverage the prompt-engineering skill if available. It provides specialized guidance for crafting prompts that produce reliable, high-quality outputs.

Context Engineering

Context engineering is the practice of dynamically assembling and managing information within an LLM's context window to enable stateful, intelligent agents. It represents an evolution from prompt engineering—while prompts focus on static instructions, context engineering addresses the entire payload dynamically.

Key principles:

  • Curate attention: Prevent context overload by including only relevant information for each step
  • Dynamic filtering: Transform previous outputs into focused queries for the next step
  • Progressive refinement: Each step should produce a distilled, actionable input for the next

Example: Instead of passing an entire document to summarize, extract key entities first, then retrieve only relevant context about those entities.

For comprehensive guidance on sessions, memory, and context management, see references/context-engineering.md.

Agentic Problem-Solving Process

All autonomous agents operate on a continuous cyclical process. Understanding this loop is fundamental to building effective agents.

The 5-Step Loop:

  1. Get the Mission - Receive a high-level goal from user or automated trigger
  2. Scan the Scene - Gather context from available resources: instructions, session history, available tools, long-term memory
  3. Think It Through - Analyze mission against scene, devise a plan using chain-of-reasoning
  4. Take Action - Execute the first concrete step by invoking a tool or generating response
  5. Observe and Iterate - Observe the outcome, add to context/memory, loop back to step 3

This "Think, Act, Observe" cycle continues until the mission is complete or an exit condition is reached.

Code example (Think, Act, Observe with tools):

import anthropic

client = anthropic.Anthropic()

def agent_loop(mission: str, max_iterations: int = 10):
    """Run the Think-Act-Observe loop until mission complete."""
    context = f"Mission: {mission}\nAvailable tools: search, read_page, finish"

    for i in range(max_iterations):
        # THINK: LLM analyzes current state and plans next action
        response = client.messages.create(
            model="claude-sonnet-4-6",
            messages=[{"role": "user", "content": context}],
            tools=[search_tool, read_page_tool, finish_tool]
        )

        # Extract the model's reasoning and intended action
        for block in response.content:
            if block.type == "text":
                print(f"Thought: {block.text}")
            elif block.type == "tool_use" and block.name == "search":
                # ACT: Execute the tool
                result = search(block.input["query"])
                # OBSERVE: Add result to context, loop continues
                context += f"\nObservation: {result}"
            elif block.type == "tool_use" and block.name == "finish":
                # EXIT: Mission complete
                return block.input["summary"]

    return "Max iterations reached"

Pattern Selection Guide

PatternUse WhenKey Benefit
Augmented LLMSingle task needing external data/toolsRetrieval, tools, memory
Prompt ChainingTask decomposes into fixed subtasksTrade latency for accuracy
RoutingDistinct categories need separate handlingSeparation of concerns
ParallelizationSubtasks are independent OR multiple attempts neededSpeed OR confidence
Orchestrator-WorkersSubtasks unpredictable, input-dependentDynamic task breakdown
Evaluator-OptimizerClear evaluation criteria, iteration adds valueIterative refinement
Autonomous AgentOpen-ended problems, unpredictable stepsFlexibility at scale

Decision Framework

Is the task solvable with a single well-crafted prompt?
├─ Yes → Optimize with retrieval/examples → Done
└─ No → Are subtasks fixed and predictable?
    ├─ Yes → Use Workflow (chaining/routing/parallelization)
    └─ No → Are subtasks input-dependent?
        ├─ Yes → Use Orchestrator-Workers
        └─ No → Is the problem open-ended with unpredictable steps?
            ├─ Yes → Use Autonomous Agent
            └─ No → Reconsider approach

Workflow Patterns

For detailed workflow implementations with code examples, see references/workflows.md.

When to use workflows: Tasks with predictable, multi-step steps where subtasks are fixed or input-dependent.

Quick reference:

  • Prompt Chaining - Sequential LLM calls, each processing previous output
  • Routing - Classify input and direct to specialized handler
  • Parallelization - Sectioning (independent subtasks) or Voting (multiple attempts)
  • Orchestrator-Workers - Central LLM breaks down tasks, delegates to workers, synthesizes results
  • Evaluator-Optimizer - One LLM generates, another evaluates and provides feedback in a loop

Code example (Orchestrator-Workers):

# Orchestrator breaks down task
subtasks = llm(f"Break down: {task}")

# Workers execute in parallel
results = [execute(s) for s in subtasks]

# Orchestrator synthesizes
final = llm(f"Synthesize results: {results}")

Code example (Prompt Chaining - complete):

import anthropic

client = anthropic.Anthropic()

def analyze_document(text: str) -> str:
    """Complete prompt chaining: extract → summarize → recommend."""

    # STEP 1: Extract key entities
    step1 = client.messages.create(
        model="claude-sonnet-4-6",
        messages=[{
            "role": "user",
            "content": f"Extract all entities (people, orgs, dates) from:\n{text}"
        }]
    )
    entities = step1.content[0].text

    # STEP 2: Summarize using extracted entities
    step2 = client.messages.create(
        model="claude-sonnet-4-6",
        messages=[{
            "role": "user",
            "content": f"Summarize this document using these entities: {entities}\n\nDocument: {text}"
        }]
    )
    summary = step2.content[0].text

    # STEP 3: Generate recommendations based on summary
    step3 = client.messages.create(
        model="claude-sonnet-4-6",
        messages=[{
            "role": "user",
            "content": f"Based on this summary, provide 3 actionable recommendations:\n{summary}"
        }]
    )

    return step3.content[0].text

Error Handling & Guardrails

Guardrails are a layered defense. No single layer is sufficient—combine multiple specialized checks for resilient agents.

Layered Defense Pattern:

Input → Relevance Check → Safety Filter → Agent → Tool Safeguards → Output Validation → Response
            ↓block          ↓block                  ↓risk-rating          ↓block

For a complete implementation with code examples and tests, see references/agent-design.md.

Agent Design

For comprehensive agent design patterns, characteristics, and best practices, see references/agent-design.md.

Core agent characteristics:

  1. Explicit Role & Responsibility - Clearly defined mandate
  2. Single-Purpose Focus - Narrow scope, high performance
  3. Minimal, Purpose-Built Tooling - Only necessary tools
  4. Deterministic Orchestration - Clear execution structure
  5. Cooperation & Delegation - Structured interaction
  6. Self-Constraint & Guardrails - Prevents scope creep
  7. State Awareness - Session memory for tasks
  8. Long-Term Memory - Curated, retrievable knowledge
  9. Observability - Inspectable decisions and outcomes
  10. Failure Awareness - Graceful recovery

Key topics:

  • Autonomous Agents and the Run Loop - The "Think, Act, Observe" cycle with exit conditions
  • Guardrails - Layered defense: relevance classifiers, safety filters, PII filters, tool safeguards
  • Multi-Agent Patterns - Manager (agents as tools), Decentralized (handoffs), Sequential, Iterative Refinement
  • Real-World Examples - Customer support agents, coding agents with test verification

Agent-Computer Interface (ACI)

Tool design matters as much as prompt engineering. For comprehensive tool design patterns, see references/aci.md.

Core principles:

  • Give tokens to think - Don't force the model into corners
  • Keep formats natural - Match patterns from training data
  • Minimize overhead - Avoid line counting, escape sequences
  • Publish tasks, not APIs - Tools should encapsulate user-facing actions

Key patterns:

  • Tool Types - Information Retrieval, Action/Execution, System/API Integration, Human-in-the-Loop
  • Output Design - Return references for large data, descriptive error messages for recovery
  • Input Validation - Schema validation for runtime checks and LLM guidance
  • Documentation - Clear descriptions, examples, edge cases, parameter constraints

Model Context Protocol (MCP)

MCP is an open standard for connecting AI applications to external tools and data sources. For comprehensive coverage, see references/mcp.md.

What it solves: The "N×M integration problem" - without a standard, every model-tool pairing requires custom connectors.

Core architecture:

  • Host - Manages UX, orchestrates tools, enforces security
  • Client - Maintains server connections, manages sessions
  • Server - Advertises tools, executes commands, handles governance

Key capabilities:

  • Tools - Standardized function definitions with JSON Schema
  • Resources - Static data access (validate trusted sources only)
  • Prompts - Reusable prompt templates (use rarely - security risk)
  • Sampling - Server can request LLM completion from client
  • Elicitation - Server can request user input via client UI

When to use MCP:

  • Multi-environment deployments
  • Sharing tools across applications
  • Dynamic tool discovery needs
  • Ecosystem participation

Security considerations:

  • Dynamic Capability Injection, Tool Shadowing, Confused Deputy
  • Requires multi-layered defense: HIL → API Gateway → SDK Allowlists → Schema Validation

Implementation Guidance

For practical implementation guidance including model selection, task decomposition, and debugging, see references/implementation.md.

Quick start:

# Single call with retrieval
response = claude.messages.create(
    model="claude-sonnet-4-6",
    messages=[{"role": "user", "content": query}],
    tools=[search_tool, database_tool]
)

Key topics:

  • Start Simple - Optimize single calls first, add complexity only when needed
  • Framework Considerations - Claude Agent SDK, Agno, CrewAI, LangChain (or direct APIs)
  • Model Selection - Prototype with best, optimize cost/latency with smaller models
  • Task Decomposition - Break down until each step is automatable or human-gated
  • Performance & Scalability - Context window management, dynamic tool loading, state management
  • Debugging - Common issues: tool usage, loops, edge cases, compounding errors

Operations & Security

For production operations, security, and agent learning patterns, see references/operations.md.

Agent Ops (GenAIOps):

  • Evaluation Strategy - Define success metrics first, use LM as Judge, metrics-driven development
  • Observability - OpenTelemetry traces for full trajectory: prompts, reasoning, tool calls, observations
  • Human Feedback Loop - Collect failures, convert to test cases, "close the loop" on error classes

Agent Identity & Security:

  • Agent as Principal - Distinct from users and service accounts, requires verifiable identity with least privilege
  • Security Layers - Deterministic guardrails (rules) + Reasoning-based defenses (guard models)
  • Tool Security Threats - Dynamic Capability Injection, Tool Shadowing, Confused Deputy, Malicious Definitions

Multi-Layered Defense:

Human-in-the-Loop → API Gateway → SDK Allowlists → Schema Validation → Secure Design

Quality & Evaluation

For comprehensive agent quality frameworks, evaluation strategies, and observability practices, see references/quality-evaluation.md.

Four Pillars of Agent Quality:

  • Effectiveness - Goal completion, accuracy, instruction following
  • Efficiency - Latency, cost per interaction, token usage
  • Robustness - Edge case handling, error recovery, consistency
  • Safety - Guardrails, content filtering, policy compliance

Evaluation Hierarchy:

  • End-to-End (Black Box) - Measure final outputs against golden dataset
  • Trajectory (Glass Box) - Inspect intermediate steps, tool calls, reasoning

Evaluators:

  • Automated Metrics - Exact match, similarity scores, rule-based checks
  • LLM-as-a-Judge - Use powerful model to assess against rubric
  • Agent-as-a-Judge - Specialized evaluator agent critiques outputs
  • Human-in-the-Loop - Authoritative feedback for edge cases

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.02%
按下载量换算37

Claude

28.88%
按下载量换算31

Cursor

18.73%
按下载量换算20

Gemini CLI

10.55%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills