Communitygithub.com

智能体工程

采用先评估后执行、任务分解和成本感知的模型路由策略,以智能体工程师的方式运作。适用于规划或执行由智能体端到端完成的工程任务。

智能体工程 是什么?

智能体工程技能旨在为AI智能体主导大部分实现工作、人工负责质量和风险控制的工程工作流提供指导。其核心理念包括:在执行前定义完成标准,将工作分解为智能体能够独立处理的单元,根据任务复杂度选择合适的模型层级,并通过评估和回归检查来衡量进展。该技能详细阐述了“先评估后执行”的循环流程,要求先定义能力和回归评估指标,运行基线并捕获失败特征,再执行实现,最后重新运行评估并对比差异。在任务分解方面,它提出了“15分钟单元规则”,确保每个单元可独立验证、具有单一主要风险并具备清晰的完成条件。此外,技能还涵盖了模型路由策略(如Haiku用于分类和模板转换、Sonnet用于实现和重构、Opus用于架构和根因分析)、会话策略(紧密耦合单元延续会话、重大阶段转换后开启新会话)、AI生成代码的审查重点以及成本跟踪与纪律。该技能适用于Claude Code、Cursor、Codex等AI编程工具,帮助开发者高效、可靠地规划和执行端到端的智能体工程任务。

兼容平台~Claude Code~Codex CLI~Cursor✓Antigravity
npx skills add https://github.com/affaan-m/ECC/tree/main/skills/agentic-engineering

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

智能体工程 是做什么的?

在AI智能体执行大部分实现工作、人工负责质量和风险控制的工程工作流中使用此技能。

操作原则

  1. 在执行前定义完成标准。
  2. 将工作分解为适合智能体处理的单元。
  3. 根据任务复杂度选择模型层级。
  4. 通过评估和回归检查进行衡量。

先评估后执行循环

  1. 定义能力评估和回归评估。
  2. 运行基线并捕获失败特征。
  3. 执行实现。
  4. 重新运行评估并对比差异。

任务分解

应用15分钟单元规则:

  • 每个单元应可独立验证
  • 每个单元应具有单一主要风险
  • 每个单元应暴露清晰的完成条件

模型路由

  • Haiku:分类、模板转换、窄幅编辑
  • Sonnet:实现和重构
  • Opus:架构、根因分析、多文件不变量

会话策略

  • 对于紧密耦合的单元继续当前会话。
  • 在主要阶段转换后开启新会话。
  • 在里程碑完成后压缩,不要在活跃调试期间进行。

AI生成代码的审查重点

优先关注:

  • 不变量和边界情况
  • 错误边界
  • 安全性和身份验证假设
  • 隐藏耦合和发布风险

当自动化格式/检查已强制风格时,不要将审查周期浪费在仅风格不一致上。

成本纪律

跟踪每项任务:

  • 模型
  • 令牌估计
  • 重试次数
  • 实际耗时
  • 成功/失败

仅当较低层级模型因清晰的推理差距失败时,才升级模型层级。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

api-connector-builder

Build a new API connector or provider by matching the target repo

相关技能