telagod avatar

Building Agent Systems

A comprehensive reference for building production AI agent systems, covering the full stack from single-agent patterns like ReAct and plan-execute to multi-agent coordination with swarm intelligence and file locking. The routing table is particularly useful: it gives you clear decision rules for when to use single vs. multi-agent architectures, with concrete thresholds like "3+ independent files" or "2+ parallel flows" to trigger TeamCreate mode. Also includes RAG pipeline design (chunking strategies, hybrid retrieval, reranking), LLM security hardening against prompt injection and jailbreaks, and evaluation frameworks using RAGAS and LLM-as-Judge. The "scale up is hard, scale down is easy" principle for choosing multi-agent upfront is solid practical advice. Treats prompts as version-controlled code and mandates eval sets before production, which is the right forcing function.

GitHub stars
224
last updated
Jun 10, 2026

Install

$ npx -y skills add telagod/code-abyss --skill building-agent-systems --agent claude-code

Installs into .claude/skills of the current project.

Files

丹鼎秘典 · Agent / LLM 工程

判断先于执行:决定「是否做 / 选什么 / 如何取舍」(栈、方案、架构、权衡)前,先读领域判断内核 skills/_kernel/ml/SKILL.md——它管 judgment,本秘典管 execution;冲突时以内核判断为准。

单 Agent 是器,多 Agent 是阵。先选规模,再选模式。

路由

意图加载核心
单 Agent 开发(工具调用、ReAct)agent-devReAct / Plan-Execute / Reflection
多 Agent 协同(>=3 文件 or >=2 并行)multi-agent-coordination蚁群仿生、文件锁、依赖图
多 Agent 协议细节(消息素、收阵报告)multi-agent-protocolCodex 原生协议、角色定义
LLM 安全(注入、越狱、输出过滤)llm-securityOWASP LLM Top 10 视角
RAG 系统(向量、检索、重排)rag-systemChunking / 混合检索 / Cohere rerank
Prompt + 评估prompt-and-evalFew-shot / CoT / RAGAS / LLM-as-Judge

规模决策

单步任务(一文件、一查询)         → 直接执行(不需要 Agent 框架)
多步任务(计划 + 工具)             → 单 Agent (ReAct)
复杂任务(>5 步、需反思)           → 单 Agent (Plan-Execute / Reflection)
独立并行任务(>=3 文件、>=2 流)    → 多 Agent (TeamCreate)
跨域协作(角色明确)                → 多 Agent (角色分工)

犹豫时优先 TeamCreate — 串行降级容易,并行升级难。

通用原则

Sponsors

Details

Repository
github.com/telagod/code-abyss
Categories
Frontend Development, Security, Documentation, Code Review & Quality, AI & Agent Building, Productivity & Planning
License
MIT
First seen
Jun 11, 2026

More from telagod/code-abyss

All 30
1telagod avatardeveloping-mobile-appstelagod/code-abyssMobile development knowledge reference covering iOS (SwiftUI), Android (Jetpack Compose), React Native, and Flutter. Use when building mobile apps, working with0skills.sh installs
2tzachbon avatarHook Developmenttzachbon/smart-ralphHooks let you intercept Claude Code events to validate operations, block dangerous commands, or inject context at key moments like tool...0skills.sh installs
3udecode avatartestingudecode/better-convexHelps you write React hook tests in Bun without the usual foot-guns.0skills.sh installs
4vamseeachanta avatarorcaflex-model-generatorvamseeachanta/digitalmodelGenerate OrcaFlex models from templates using component assembly with0skills.sh installs
5mindrally avatarnextjs-react-redux-typescript-cursor-rulesmindrally/skillsComprehensive Next.js, React, Redux, and TypeScript development guidelines covering SOLID principles, component architecture, and best practices.868skills.sh installs
6syncfusion avatarsyncfusion-react-dashboard-layoutsyncfusion/react-ui-components-skillsBuild responsive, interactive dashboard layouts with Syncfusion React Dashboard Layout component. Implement draggable and resizable panels, responsive grid syst735skills.sh installs