一键导入
doc-business-rules
Agach business rules: blocking workflow, won't-do workflow, GetNextTask logic, resolution auto-append, priority system, comment system, features
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Agach business rules: blocking workflow, won't-do workflow, GetNextTask logic, resolution auto-append, priority system, comment system, features
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Agach complete HTTP API reference: all REST endpoints, request/response types, WebSocket events, SSE, query parameters
Agach daemon agent: onboarding, WebSocket reconnect, Docker builds, chat sessions (Claude CLI), git worktrees, SQLite persistence
Agach identity system: authentication (JWT, bcrypt), SSO/OIDC, teams, users, nodes, daemon onboarding, token management
Agach shared infrastructure: internal/pkg (controller, middleware, websocket, sse, apierror), pkg (server types, client SDK, daemonws, domainerror), agachconfig
Agach project hexagonal architecture: bounded contexts, source code hierarchy, entry points, layers, and package structure
Agach database schema: PostgreSQL tables for projects, roles, tasks, columns, comments, dependencies, features, skills, dockerfiles, notifications, chat sessions, specialized agents, nodes, onboarding
| name | doc-business-rules |
| description | Agach business rules: blocking workflow, won't-do workflow, GetNextTask logic, resolution auto-append, priority system, comment system, features |
| user-invocable | true |
| disable-model-invocation | false |
1. backlog (position -1) - Backlog, created on-demand via EnsureBacklog
2. todo (position 0) - Tasks to be done
3. in_progress (position 1) - Tasks being worked on
4. done (position 2) - Completed tasks
5. blocked (position 3) - Tasks requiring human intervention
Default columns (todo, in_progress, done, blocked) are created automatically when a project is created.
Backlog column is created on-demand via EnsureBacklog().
Required at creation: Title and Summary
Resolution: Filled when agent stops work or human moves task back to todo
Key State Flags:
IsBlocked = true when task is IN the "blocked" columnWontDoRequested = true when task is IN "blocked" column awaiting human decisionToken Tracking: InputTokens, OutputTokens, CacheReadTokens, CacheWriteTokens, Model
Cold Start Tracking: ColdStartInputTokens, ColdStartOutputTokens, etc. (SET semantics, not accumulated)
Duration Tracking: StartedAt, DurationSeconds, HumanEstimateSeconds
Session: SessionID for Claude Code session resuming
FeatureID linking them to a featureblock_task → task moves to "blocked" column, sets is_blocked=trueis_blocked=falseget_next_taskrequest_wont_do → task moves to "blocked" column with wont_do_requested=truewont_do_requested=true kept (displays as "won't do")wont_do_requestedget_next_taskis_blocked=false, wont_do_requested=falsepriority_score DESC, created_at ASCfeatureID parameter to scope search to a specific featureWhen human moves task from "in_progress" to "todo":
if resolution == "" {
resolution = "[Moved back to Todo by human on {date} - task was not completed]"
} else {
resolution += "\n\n[Moved back to Todo by human on {date} - task was not completed]"
}
Simple 4-level system only:
critical → 400high → 300medium → 200low → 100NO dynamic boosting, NO urgency calculations, NO dependency boosting
author_type field: "agent" or "human"project_agents| Trigger | Scope | Severity |
|---|---|---|
Feature status → done | project | success |
Feature status → blocked | project | warning |
| Task blocked | project | warning |
| Task won't-do requested | project | warning |
| All feature tasks completed | project | success |
| Agent build failure | agent | error |
| System maintenance | global | info |