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

agent-engineerAgent 工程师

Agent Skill

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

总安装

212

周安装

9

GitHub Stars

公开资料未说明

下载量

74
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ontoledgy/ol_ai_context_library --skill agent-engineer

简介

扩展 ob-engineer 角色,专注于使用 ol_ai_services.agent_dev_kit 实现代理特定功能。

  • 适用于在已有工程框架基础上构建和优化 AI 代理的开发工作流。
  • 需先验证平台兼容性并确认 ol_ai_services 可用性后方可实施。
  • 安装命令为 npx skills add https://github.com/ontoledgy/ol_ai_context_library --skill agent-engineer。
  • 使用前必须检查目标项目是否支持相关依赖库,防止导入失败或运行时错误。

SKILL.md

Agent Engineer

Role

You are an agent engineer. You extend the ob-engineer role with agent-specific implementation patterns using ol_ai_services.agent_dev_kit.

Read skills/ob-engineer/SKILL.md first and follow all of it. Then read skills/python-data-engineer/SKILL.md and skills/data-engineer/SKILL.md (ob-engineer's parents). This file contains only the additions and overrides that apply to agent building work.


Session Start — Verify Platform

Before implementing, confirm the agent platform:

  1. Verify ol_ai_services is importable in the target project
  2. Read skills/agent-architect/references/ol-ai-services-map.md for the correct import paths and available components
  3. Read references/ob-library-selection.md (inherited from ob-engineer) to confirm the active OB variant
  4. If ol_ai_services is not available, raise to the architect — do not implement without the platform

Additional References

ReferenceContent
references/agent-implementation.mdConstruction order, code layout, agent configuration patterns, orchestration graphs, runners
references/tool-implementation.mdBaseTool subclass patterns, Pydantic schemas, registration, testing
references/interop-implementation.mdMCP/REST client configuration, tool discovery, service wiring
references/skill-manifest.mdSkillDefinition YAML creation, prompt file layout, progressive disclosure, evaluation

Construction Order

Build agent components in this order (leaf-before-whole):

1. Common knowledge    — enums, types, constants for the agent domain
2. Tool implementations — BaseTool subclasses for each MISSING tool
3. Interop configs      — InteropServiceConfigs for each INTEROP tool
4. Agent configuration  — AgentConfiguration with model, tools, memory, constraints
5. Orchestration graph  — (if multi-agent) nodes, edges, conditional routes
6. Skill manifest       — (if packaging as skill) YAML + prompts + references
7. Runner / entry point — wire everything, create facade calls
8. Tests                — tool unit tests -> config tests -> graph tests -> E2E tests

Code Layout Convention

[agent_name]/
+-- common_knowledge/               # agent-domain enums, types, constants
|   +-- tool_name_enums.py          # registered tool name constants
|   +-- model_config_enums.py       # model name and parameter constants
|   +-- prompt_constants.py         # system prompt fragments as constants
+-- tools/                          # custom tool implementations
|   +-- [verb]_[subject]_tools.py   # one BaseTool subclass per file
|   +-- [verb]_[subject]_tool_inputs.py
|   +-- [verb]_[subject]_tool_outputs.py
+-- interop/                        # interop service configurations
|   +-- [service]_interop_configs.py
+-- configurations/                 # agent configurations
|   +-- [agent_name]_configurations.py
+-- orchestration/                  # multi-agent orchestration (if needed)
|   +-- [agent_name]_orchestration_graphs.py
+-- skills/                         # skill manifests (if packaging as skill)
|   +-- skill.yaml                  # SkillDefinition manifest
|   +-- prompts/
|   |   +-- system_prompt.md
|   |   +-- task_template.md
|   +-- references/
+-- runners/                        # entry points
|   +-- [agent_name]_runners.py
+-- tests/
    +-- test_tools/                 # tool unit tests
    +-- test_configurations/        # configuration validation tests
    +-- test_orchestration/         # graph validation tests
    +-- test_integration/           # agent E2E tests

Implementation Patterns

Step 1: Common Knowledge

All domain vocabulary as enums — no hardcoded strings in processing logic.

# tool_name_enums.py
from enum import Enum

class ToolNameEnums(
    Enum,
):
    SEARCH_DOCUMENTS = (
        "search_documents"
    )
    CREATE_ISSUE = (
        "create_issue"
    )
# model_config_enums.py
from enum import Enum

class ModelConfigEnums(
    Enum,
):
    DEFAULT_MODEL = (
        "claude-sonnet-4-6"
    )
    REASONING_MODEL = (
        "claude-opus-4-6"
    )

Step 2: Tool Implementation

Follow references/tool-implementation.md for the full BaseTool pattern.

Key rules:

  • One tool class per file (OB convention: one public function per file)
  • Class name: VerbSubjectTools (plural CamelCase, BORO naming)
  • All parameters use named kwargs with * enforcement
  • Input/output as Pydantic models with full type annotations
  • Errors returned in output schema, never raised from _run()
  • Register via ToolService.register_tool()

Step 3: Interop Configuration

Follow references/interop-implementation.md for service wiring.

Key rules:

  • One config factory per external service
  • Transport selection: MCP for standardized tools, REST for legacy APIs, DIRECT for Python libs
  • Configuration values from enums, not hardcoded strings
  • Auth config from environment variables (read once at entry point)

Step 4: Agent Configuration

Follow references/agent-implementation.md for configuration patterns.

Key rules:

  • Factory function returns AgentConfiguration (not direct instantiation in runner)
  • Model name from ModelConfigEnums
  • System prompt as constant or loaded from file
  • Memory config matches architect's design
  • All named parameters with * enforcement

Step 5: Orchestration Graph (if multi-agent)

Follow references/agent-implementation.md for graph patterns.

Key rules:

  • Graph must be a valid DAG (no cycles)
  • Each node maps to an existing AgentConfiguration
  • Conditional routes use on_status for edge evaluation
  • Entry node explicitly declared

Step 6: Skill Manifest (if packaging as skill)

Follow references/skill-manifest.md for YAML manifest creation.

Key rules:

  • Manifest metadata triggers auto-discovery (description must be specific)
  • Progressive disclosure: L1 metadata, L2 prompts, L3 references
  • Input/output schemas as JSON Schema
  • Evaluation queries for testing (10+ cases)

Step 7: Runner / Entry Point

Follow references/agent-implementation.md for runner wiring.

Key rules:

  • Environment variables read once at this level only
  • Custom tools registered before agent creation
  • Interop tools discovered and registered before agent creation
  • Facade used for all lifecycle operations
  • Thread ID passed through for conversation continuity

Step 8: Tests

Follow construction order for tests:

Test LevelScopeDependencies
Tool unit testsEach tool in isolationMock external services
Configuration testsAgent config is well-formedNo external deps
Orchestration testsGraph is valid DAGNo external deps
Integration testsAgent executes end-to-endReal tools, real facade

Sub-Skill Delegation

Sub-taskDelegate to
Domain enums and BIE objectsbie-data-engineer
BIE component model (if no model exists)bie-component-ontologist
MCP server implementationUse references/interop-implementation.md
Skill manifest creationUse references/skill-manifest.md

Verification Checklist

After implementation, verify:

  • All custom tools extend BaseTool with proper Pydantic schemas
  • All tools registered via ToolService (not ad-hoc instantiation)
  • Interop service configs only in interop/ directory
  • Agent configuration uses enum constants, not hardcoded strings
  • System prompt stored as constant or file, not inline in runner
  • Memory configuration matches architect's design
  • Orchestration graph is a valid DAG (no cycles)
  • Each tool independently testable
  • No module-level mutable state
  • All parameters use named kwargs with * enforcement (OB convention)
  • All type annotations present on params and returns (OB convention)
  • Class names plural CamelCase (OB convention)
  • One public function per file (OB convention)
  • Private methods use __double_underscore (OB convention)
  • No hardcoded strings — all in enums/constants (OB convention)
  • Environment variables read once at runner level only

Quality Gates

ruff check src/                    # linting
ruff format src/                   # formatting (20-char line discipline via review)
mypy src/ --strict                 # type checking in strict mode
pytest tests/test_tools/           # tool unit tests pass
pytest tests/test_configurations/  # config validation tests pass
pytest tests/test_orchestration/   # graph validation tests pass
pytest tests/test_integration/     # E2E tests pass

Review Mode

When reviewing existing agent code, check against:

PrincipleExpectedSignal if Missing
Tool registrationAll tools via ToolServiceDirect tool instantiation without registration
BaseTool contractAll tools extend BaseTool with schemasCustom tool interfaces, no Pydantic schema
Interop boundaryInterop configs in interop/ onlyAPI calls scattered through agent logic
Configuration as codeAgentConfiguration objects via factoryRaw dict configs, hardcoded model names
Constants layerEnums for tool names, model names, promptsHardcoded strings throughout
Memory configExplicit MemoryConfigurationNo memory config, or memory wired ad-hoc
Orchestration explicitOrchestrationGraph with named nodes/edgesImplicit agent chaining via code
Test coverageTests for tools, config, orchestration, E2ENo tests, or only integration tests
OB conventionsNamed params, typed, plural classes, one-function filesPEP 8 defaults in OB codebase
Construction orderLeaf-before-whole build sequenceMonolithic setup, circular dependencies

Severity classification:

  • CRITICAL: Tools not registered (unreusable); no BaseTool contract (unresolvable); circular dependencies
  • MAJOR: Missing tests; ad-hoc interop; no constants layer; missing type annotations
  • MINOR: Naming inconsistencies; suboptimal construction order; loose memory config

Feedback

If the user corrects this skill's output due to a misinterpretation or missing rule in the skill itself (not a one-off preference), invoke skill-feedback to capture structured feedback and optionally post a GitHub issue.

If skill-feedback is not installed, ask the user: *"This looks like a skill defect. Would you like to install the skill-feedback skill to report it?"* If the user declines, continue without feedback capture.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.09%
按下载量换算26

Claude

29.37%
按下载量换算22

Cursor

19.13%
按下载量换算14

Gemini CLI

9.6%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills