lanham-ai-agents
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "lanham-ai-agents" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6825d5fa716ee1cc754492e85818c7d9ee6fb4a4c96b83ac2583fb09bc6b27a5. Verify the upstream source and version against https://skillhub.cn/skills/user_2e3aa695/lanham-ai-agents before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A knowledge base from Michael Lanham's "AI Agents in Action" (Manning, 2025). Intended for reference when applying agent frameworks (e.g., AutoGen, CrewAI, Semantic Kernel, behavior trees), building autonomous assistants, implementing prompt-engineering strategies (e.g., CoT, ToT, RAG), or consulting AI agent architectural patterns.
Introduction source: third_party · user_2e3aa695 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Knowledge base from \"AI Agents in Action\" by Micheal Lanham (Manning, 2025). Use when applying agent frameworks (AutoGen, CrewAI, Semantic Kernel, Behavior Trees), building autonomous assistants, implementing prompt engineering strategies (CoT, ToT, RAG), or referencing AI agent architecture patterns.
- Testing
- Not tested
Browse files
Frontmatter
name: lanham-ai-agents
description: "Knowledge base from \"AI Agents in Action\" by Micheal Lanham (Manning, 2025). Use when applying agent frameworks (AutoGen, CrewAI, Semantic Kernel, Behavior Trees), building autonomous assistants, implementing prompt engineering strategies (CoT, ToT, RAG), or referencing AI agent architecture patterns."<!-- argument-hint: [topic, framework name, or chapter number] -->
AI Agents in Action
Author: Micheal Lanham | Pages: ~346 | Chapters: 11 | Generated: 2026-06-16
How to Use This Skill
- Without arguments — load core frameworks for reference
- With a topic — ask about
behavior trees,RAG,multi-agent,prompt engineering, or another indexed topic; I find and read the relevant chapter - With chapter — ask for
ch05; I load that specific chapter - Browse — ask "what chapters do you have?" to see the full index
When you ask about a topic not covered in Core Frameworks below, I will read the relevant chapter file before answering.
Core Frameworks & Mental Models
Agent Interaction Spectrum (Ch 1)
Use this spectrum to select the right autonomy level for any use case:
- Direct → simple QA, no tools needed
- Proxy → LLM reformulates prompts for another model (e.g., ChatGPT → DALL-E)
- Agent + Confirmation → tool use with user approval step
- Autonomous → independent planning, decision-making, execution
Think of agent autonomy as a spectrum, not a binary. Match the level to the risk/reward profile of the task.
Multi-Agent Systems (Ch 4)
Use AutoGen for conversational, exploratory multi-agent systems (group chat, proxy patterns). Use CrewAI when you need structured, role-based enterprise workflows (sequential/hierarchical task management). Think of multi-agent systems as teams of specialists — a coordinator delegates to experts.
Empowering Agents with Actions (Ch 5)
OpenAI Function Calling is the standard pattern for LLM-tool integration. Define functions with name + description + parameters → LLM decides when to call → execute → return results. Semantic Kernel (SK) adds structure: semantic functions (prompt templates) for "what" and "why", native functions (code) for "how". Use the semantic service layer pattern to cleanly separate LLMs from external APIs.
Behavior Trees for Agent Control (Ch 6)
Use behavior trees when you need structured, reusable control over agent decision-making. Five primary nodes cover most patterns: Selector (try until one succeeds), Sequence (run all, fail on any failure), Action (execute), Condition (check), Decorator (control/block). Agentic Behavior Trees (ABTs) use LLMs to dynamically construct and modify the tree. Always implement Control Barrier Functions as safety guardrails.
RAG and Memory (Ch 8)
Use Retrieval Augmented Generation (RAG) whenever agents need external knowledge. Two phases: Index (load → chunk → embed → store) and Query (embed query → similarity search → augment prompt). Knowledge is document-based (external); memory is experience-based (from interactions). Both augment prompts through retrieval.
Prompt Engineering Strategies (Ch 9)
Six OpenAI strategies map to agent components: Write Clear Instructions → persona/behavior, Provide Reference Text → knowledge/RAG, Split Complex Tasks → subtask decomposition, Give Models Time to "Think" → reasoning/planning, Use External Tools → function calling, Test Changes Systematically → evaluation. Always iterate — prompt engineering is never one-shot.
Reasoning Techniques (Ch 10)
Scale reasoning depth to problem complexity: Direct/Few-Shot for simple tasks, Chain of Thought (CoT) for multi-step reasoning, Self-Consistency for high-reliability needs (multiple paths, majority vote), Tree of Thought (ToT) for complex exploration. Multiple reasoning paths always beat a single path.
Planning and Feedback (Ch 11)
Planning separates agents from chatbots. Use sequential planning when tasks have dependencies (output feeds next step). Build custom JSON planners using prompt engineering to generate step-by-step plans from available functions. Implement feedback mechanisms (corrective, suggestive, epistemic) for continuous improvement. Always set safety guardrails — agents with autonomous actions can go rogue.
Chapter Index
| # | Title | Key Frameworks |
|---|---|---|
| ch01 | Introduction to agents and their world | Agent Interaction Spectrum, Multi-Agent Pattern |
| ch02 | Harnessing the power of large language models | OpenAI API, Message Roles, Temperature |
| ch03 | Engaging GPT assistants | GPT Builder, Custom Actions, Persona/Rules |
| ch04 | Exploring multi-agent systems | AutoGen Studio, CrewAI, Group Chat, AgentOps |
| ch05 | Empowering agents with actions | OpenAI Functions, Semantic Kernel, Semantic Service Layer |
| ch06 | Building autonomous assistants | Behavior Trees, ABTs, Control Barrier Functions |
| ch07 | Assembling and using an agent platform | Nexus Architecture, Personas, Semantic+Native Functions |
| ch08 | Understanding agent memory and knowledge | RAG, Vector DB, Memory Systems |
| ch09 | Mastering agent prompts with prompt flow | 6 Strategies, Agent Profile, Prompt Flow DAG |
| ch10 | Agent reasoning and evaluation | CoT, Self-Consistency, ToT, Evaluation |
| ch11 | Agent planning and feedback | Sequential Planning, JSON Planners, Feedback |
Topic Index
- AgentOps → ch04
- AutoGen / AutoGen Studio → ch04
- Behavior Trees → ch06
- Chain of Thought (CoT) → ch10
- Control Barrier Functions → ch06
- CrewAI → ch04
- Custom Actions / Functions → ch03, ch05
- Few-Shot Prompting → ch10
- Function Calling → ch05
- GPT Assistants / GPT Store → ch03
- Memory (short-term, long-term, semantic) → ch08
- Multi-Agent Systems → ch04
- Native Functions → ch05
- Nexus → ch07
- OpenAI API / Chat Completions → ch02
- Planning / Sequential Planning → ch11
- Prompt Engineering (6 strategies) → ch09
- Prompt Flow → ch09
- RAG (Retrieval Augmented Generation) → ch08
- Reasoning Spectrum → ch10
- Self-Consistency Prompting → ch10
- Semantic Functions / Semantic Kernel → ch05
- Temperature → ch02
- Tokens / Token Counting → ch02
- Tree of Thought (ToT) → ch10
- Vector Database → ch08
Supporting Files
- glossary.md — all key terms with definitions
- patterns.md — all techniques and design patterns
- cheatsheet.md — quick reference tables and decision guides
Scope & Limits
This skill covers the book content only. For hands-on implementation in your codebase, combine with project-specific tools. For topics beyond this book, check related skills or ask the agent directly.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供《AI Agents in Action》系统知识库,覆盖 AutoGen、CrewAI、Semantic Kernel、Behavior Trees 等主流代理框架
- 涵盖提示工程策略(CoT、ToT、RAG)和代理架构模式,适用于构建自主助手和多代理系统
Highlights
- 触发场景描述清晰完整,覆盖无参数加载、按主题查询、按章节加载、浏览目录等多种使用方式
- 边界明确,不易与其他 Skill 重叠
Highlights
- 结构完整,包含使用指南、核心框架、章节索引、主题索引、支持文件和范围说明
- 提供端到端示例和决策指导,frontmatter 规范
Areas to improve
-
引用文件缺失 Reported severity: Major
SKILL.md 引用了 chapters/ch01-introduction-to-agents.md 等 11 个章节文件以及 glossary.md、patterns.md、cheatsheet.md 等支持文件,但当前仅传入 SKILL.md 文件
Recommendation: 请确保所有被引用的章节文件和支持文件一并打包上传,否则用户按章节或主题查询时将无法获取完整内容
Highlights
- 知识库型 Skill 执行流程简单可靠,不涉及复杂外部调用
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.