Agentia — Development skill for Claude Code
面向应用开发的声明式 agent 服务开发框架:装饰器 + DI 声明四类能力,主 agent 编排执行;每次 run 产出结构化结果与可观测调用树(trace、成本、指标),交付可直接上线的服务.
How to install Agentia
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open retrychx/agentia and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agentia does
面向应用开发的声明式 agent 服务开发框架:装饰器 + DI 声明四类能力,主 agent 编排执行;每次 run 产出结构化结果与可观测调用树(trace、成本、指标),交付可直接上线的服务。
Alternatives in Development
- Root Cause Tracing — Use when errors occur deep in execution and you need to trace back to find the original trigger 102.5k ★
- Engage.Pickup — Resume an engagement from the engine trace — skip completed steps, continue where you left off 348 ★
- Call Graph — Trace callers, callees, or paths using the call graph 193 ★
README
Agentia
[中文](./README.md) · [English](./README.en.md)
[](https://github.com/retrychx/agentia/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@migor/agentia) [](LICENSE)
面向应用开发的声明式 agent 服务开发框架:装饰器 + DI 声明四类能力,主 agent 编排执行;每次 run 产出结构化结果与可观测调用树(trace、成本、指标),交付可直接上线的服务。
安装与配置
npm i @migor/agentia # 框架(项目依赖)
npm i -g @migor/cli # 命令行工具(脚手架 / 生成 / 调试)
agentia create my-app # 脚手架(含 .env / .env.example)
$EDITOR my-app/.env # 填 ANTHROPIC_API_KEY(也可直接 export,真实环境变量优先)
# 可选:ANTHROPIC_BASE_URL(兼容端点)、AGENTIA_MODEL(缺省 claude-opus-5)
框架**不自动**读 `.env`:脚手架 `src/main.ts` 首行的 `loadEnvFile()` 负责把它读进 `process.env`。 真实环境变量优先(CI / docker / 命令行永远赢过文件),`loadEnvFile({ override: true })` 才反过来。
**版本**:`0.5.0`(`@migor/agentia` 与 `@migor/cli` 均已发布到 npm)。`examples/` **刻意**用 `file:../..` 指向本仓库而不是 npm 版本 —— 跑的是**工作区代码**,理由见 [`examples/README.md`](examples/README.md) 的「依赖说明」。
**运行时**:Node ≥ 18(`engines` 唯一要求,CI 在 18/20/22 上守)。按 Node 设计并测试, **未对 Deno / edge 做验证**。唯一碰内置模块的 store 是 `SqliteTaskStore`(需 Node ≥ 22.5 的 `node:sqlite`)—— 未提供时**构造期给可读报错**,不影响包本身被导入。
快速开始
两条路线,按需选一即可(也可混用)。
路线 A:CLI 脚手架
agentia create my-app # 脚手架新项目(依赖 @migor/agentia)
cd my-app && npm install
agentia g tool weather # 生成 src/tools/weather/index.ts 并登记 src/registry.ts
agentia g subagent doc-reviewer # 生成 src/subagents/doc-reviewer/{index.ts,system.md}
agentia g skill note-writer # 生成 src/skills/note-writer/index.ts
agentia g prompt style-guide # 生成 src/prompts/style-guide/{index.ts,a
Related Skills
CC-Trace: Claude Code API Request Interception Assistant
CC-Trace: Claude Code API Request Interception Assistant skill
Skill Eval Harness
Agent Skill evaluation harness for paired variants, trace artifacts, and runner adapters
Bug Fix
Fix bug based on description, stack trace, or file reference
Self Evolution Triage
Decide whether a trace should stop, distill memory, revise a command, or revise a skill.
Agent Trace
Dashboard de trazas de ejecución de agentes con tokens, duración y resultado
Diagnose Deeptrace
Run a ZDX deep trace diagnostics session — start, analyze, or clean up deep traces for a user's device.
Related Agents
Error Trace
You are an error tracking and observability expert specializing in implementing comprehensive error... - wshob
Debug Agent
You are a specialized debugging agent. Your job is to investigate issues, trace through code, analyze logs, an