Agent Skills
› iii-experimental/agentos
› lifecycle
lifecycle
GitHub管理Agent会话的生命周期,包括状态转换、当前状态查询及事件反应机制。支持从生成到完成的全流程状态追踪与自动化响应。
Trigger Scenarios
需要切换Agent工作流状态
查询Agent当前运行状态
配置状态变更时的自动反应
Install
npx skills add iii-experimental/agentos --skill lifecycle -g -y
SKILL.md
Frontmatter
{
"name": "lifecycle",
"effort": "normal",
"toolScope": [
"Bash",
"Read"
],
"description": "Session lifecycle management — transitions, state tracking, reactions"
}
Manage agent session lifecycle:
- Transition:
curl -X POST http://localhost:3111/api/lifecycle/transition -H 'Content-Type: application/json' -d '{"agentId": "claude-code", "newState": "working"}' - Get state:
curl http://localhost:3111/api/lifecycle/state/claude-code - Add reaction:
curl -X POST http://localhost:3111/api/lifecycle/reactions -H 'Content-Type: application/json' -d '{"agentId": "claude-code", "from": "blocked", "to": "working", "action": "notify"}'
States: spawning -> working -> blocked -> pr_open -> review -> merged -> done | failed -> recovering | terminated.
Version History
- caca2b4 Current 2026-07-25 09:41


