スキル一覧に戻る
abdelrahman146

agent-workflows

by abdelrahman146

Kyora is a SAAS service that helps social media store owners manage their business and finances

0🍴 0📅 2026年1月26日
GitHubで見るManusで実行

SKILL.md


name: agent-workflows description: 'Core Kyora Agent OS workflows for task routing, delegation, handoffs, and recovery. Use when: routing a new task through the OS, delegating work between agents, creating handoff packets at phase boundaries, recovering/resuming work in a new session. Keywords: route, delegate, handoff, packet, recovery, resume, continue, task, phase.'

Agent Workflows

Core operational workflows for Kyora Agent OS task lifecycle: routing → delegation → phase handoffs → recovery.

Note: These workflows are skill-based (agent-runnable). The deprecated prompt versions (/route-task, /create-delegation-packet, etc.) should not be used by agents.

When to Use This Skill

  • Task Routing: Classifying and routing a new task from PO
  • Delegation: Handing off work from Lead to Implementer (or between agents)
  • Phase Handoff: Documenting completed phase before transitioning
  • Recovery: Resuming unfinished work in a new session

Prerequisites

  • Familiarity with KYORA_AGENT_OS.md
  • Access to workspace for codebase search (routing/recovery)

Workflow 1: Task Routing

When

  • New task from PO needs classification and owner assignment
  • Orchestrator receives ambiguous or cross-stack request

Inputs Required

FieldDescriptionRequired
TitleShort task titleYes
Typefeature | bug | refactor | chore | discovery | planning | design | content | i18n | testing | devops | new-projectYes
Scopesingle-app | cross-stack | monorepo-wideYes
Goal1-3 sentence descriptionYes
Non-goalsWhat is explicitly out of scopeNo
Acceptance criteriaBullet list of success conditionsYes
ConstraintsTechnical/business constraintsNo
Risk hintsauth | payments | PII | schema | dependencies | major UX | data migrationNo
ReferencesScreenshots, endpoints, files, logsNo

Routing Algorithm

  1. Classify Risk:

    • Low: Local change, no schema/deps/auth/PII/major UX
    • Medium: Shared libs, minor contract changes, non-trivial UI flow
    • High: auth/RBAC/tenant safety/payments/PII/schema/migrations/major UX/breaking contract
  2. Select Lane:

    • Repro unclear / unknown area → Discovery
    • Cross-stack / medium-high risk / needs UX spec → Planning
    • Clear requirements + low risk → Implementation
  3. Assign Owners:

    ScopePrimary OwnerSecondary (if cross-stack)
    Backend onlyBackend Lead
    Portal onlyWeb Lead
    Cross-stackOrchestrator coordinatesBackend Lead + Web Lead
    Monorepo-wideDevOps/Platform Lead
  4. Identify Gates:

    • High risk → PO approval required before Implementation
    • Schema changes → PO gate
    • New dependencies → PO gate
    • Auth/RBAC/tenant changes → PO gate

Output: TASK PACKET

TASK PACKET

Title: [title]
Type: [type]
Scope: [scope]
Risk: [Low | Medium | High]

Goal (1-3 sentences):
[goal]

Non-goals (explicitly out of scope):
- [non-goal 1]
- [non-goal 2, or "None specified"]

Acceptance criteria (from PO):
- [ ] [criterion 1]
- [ ] [criterion 2]

Constraints:
- [constraint 1, or "None specified"]

Risk hints:
- [hint 1, or "None specified"]

Classification:
- Lane: [Discovery | Planning | Implementation]
- Primary owner: [role]
- Secondary owner: [role, or "None"]

Gates:
- [ ] [gate 1, or "None required"]

Reuse targets (search results):
- [pattern/component, or "TBD during Discovery"]

SSOT references:
- [instruction file, or "TBD"]

Assumptions:
- [assumption 1, or "None"]

Workflow 2: Delegation

When

  • Lead delegates to Implementer
  • Orchestrator delegates to Lead
  • Any agent-to-agent work handoff

Inputs Required

FieldDescriptionRequired
FromRole handing offYes
ToRole receivingYes
ObjectiveOne sentenceYes
Typefeature | bug | refactor | etc.Yes
Scopesingle-app | cross-stack | monorepo-wideYes
RiskLow | Medium | HighYes
Acceptance criteriaFrom POYes
GatesPO approvals neededYes
Key decisionsImportant decisions already madeNo
AssumptionsExplicit assumptionsNo
Reuse targetsPatterns/components to reuseNo
SSOT referencesInstruction files consultedNo
Files/areasFiles or areas likely touchedYes
Risks/watch-outsPotential issuesNo

Output: DELEGATION PACKET

DELEGATION PACKET

From: [role]
To: [role]
Date: [YYYY-MM-DD]

Objective (1 sentence): [objective]

Classification:
- Type: [type]
- Scope: [scope]
- Risk: [risk]

Acceptance criteria (from PO):
- [ ] [criterion 1]
- [ ] [criterion 2]

Gates (PO approvals needed):
- [ ] [gate 1, or "None"]

Key decisions already made:
- [decision 1, or "None yet"]

Assumptions (explicit):
- [assumption 1, or "None"]

Reuse targets (patterns/components):
- [target 1, or "TBD"]

SSOT references (instruction files):
- [reference 1]

Files/areas likely touched:
- [file/area 1]

Risks/watch-outs:
- [risk 1, or "None identified"]

Validation command(s):
- [command, or "TBD"]

Workflow 3: Phase Handoff

When

  • Completing Phase 0/1/2/3
  • Transitioning between lanes
  • Pausing work mid-task (token limit, time)

Inputs Required

FieldDescriptionRequired
Phase completedPhase 0 | Phase 1 | Phase 2 | Phase 3Yes
Current laneDiscovery | Planning | Implementation | Review | ValidationYes
Next laneDiscovery | Planning | Implementation | Review | Validation | DoneYes
What changedFacts about modifications (files, endpoints)Yes
What's verifiedCommands run and resultsYes
What remainsNext 3-7 steps in orderYes
Open questionsPending gates or questionsNo
Backend contract statusstable | changed | pending | N/AYes
Portal integration statusnot started | WIP | done | N/AYes
i18n keys statusnot started | WIP | done | N/AYes
E2E/RTL validation statusnot started | WIP | done | N/AYes

Output: PHASE HANDOFF PACKET

PHASE HANDOFF PACKET

Phase just completed: [phase]
Current lane: [lane]
Next lane: [lane]

What changed (facts only):
- [change 1]
- [change 2]

What's verified (commands run + result):
- [command]: [result]

What remains (next 3-7 steps in order):
1. [step 1]
2. [step 2]
3. [step 3]

Open questions / pending gates:
- [question 1, or "None"]

Status matrix:
| Area | Status |
|------|--------|
| Backend contract | [stable \| changed \| pending \| N/A] |
| Portal integration | [not started \| WIP \| done \| N/A] |
| i18n keys | [not started \| WIP \| done \| N/A] |
| E2E/RTL validation | [not started \| WIP \| done \| N/A] |

Next owner: [role]

Workflow 4: Recovery

When

  • New session continues unfinished work
  • Token limit hit mid-task
  • Context loss after break

Inputs Required

FieldDescriptionRequired
GoalOne sentence overall objectiveYes
Last known laneDiscovery | Planning | Implementation | Review | ValidationYes
What's doneBased on git changes/testsYes (can be investigated)
What's brokenFailing tests or errorsNo
Next stepSmallest verifiable next stepYes
Commands to run firstCommands to verify stateYes
Pending gatesPO approvals still neededNo
Assumptions to confirmAssumptions to re-verifyNo

Recovery Procedure

  1. Investigate state (if inputs unclear):

    • Check git status/changes: git status && git diff --stat
    • Run relevant tests: make test.quick or make portal.check
    • Check for errors: make portal.check or go build ./...
  2. Reconstruct context:

    • Read last handoff packet if available
    • Review recent git commits
    • Check TODO.md for task context
  3. Emit Recovery Packet (required before continuing work)

Output: RECOVERY PACKET

RECOVERY PACKET

Goal (1 sentence): [goal]
Last known lane: [lane]

What's already done (based on git changes/tests):
- [done item 1]
- [done item 2, or "Unknown - needs investigation"]

What's broken / failing (if any):
- [failure 1, or "None known"]

Next smallest verifiable step:
- [step]

Commands to run first:
- [command 1]
- [command 2]

Pending gates (PO approvals still needed):
- [gate 1, or "None"]

Assumptions to confirm before continuing:
- [assumption 1, or "None"]

Recommended next action: [action]

Approval Needed Template

When an agent needs PO approval during any workflow:

---
## ⚠️ APPROVAL NEEDED

**Decision Required**: [Brief description]
**Context**: [Why this decision point was reached]
**Options**:
1. [Option A] — [pros/cons]
2. [Option B] — [pros/cons]

**Risks if proceeding without approval**: [List risks]

**To continue**: Reply with your decision or ask for more context.
---

Success Checklist

  • Correct workflow selected for the situation
  • All required inputs collected (or investigated)
  • Packet emitted in correct format
  • No narrative/explanation added beyond the packet
  • Gates identified and flagged for PO if needed
  • Next owner/action clearly specified

Deprecated Prompts

The following prompts are deprecated for agent use (agents cannot trigger prompts):

  • /route-task → Use Workflow 1 above
  • /create-delegation-packet → Use Workflow 2 above
  • /create-phase-handoff-packet → Use Workflow 3 above
  • /create-recovery-packet → Use Workflow 4 above

These prompts remain available for PO manual invocation but should not be referenced in agent instructions or handoffs.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です