AGENT SKILL

coderos-workorder

Workspace-native skill for drafting valid typed CoderOS WorkOrder JSON payloads and exercising dry-run work-order dispatch safely without live execution or runtime mutation.

License 许可
MIT
最近更新
2026-10-07
Stars
★ 1
Forks
0

01 前言 Front Matter

name
coderos-workorder
description
Workspace-native skill for drafting valid typed CoderOS WorkOrder JSON payloads and exercising dry-run work-order dispatch safely without live execution or runtime mutation.

02 资源文件 2

03 SKILL.md 正文

CoderOS WorkOrder Drafting & Dry-Run Skill

This workspace skill teaches Antigravity agents how to formulate valid, typed WorkOrder JSON contracts for CoderOS (ChristianV997/CoderOS) and run them through existing policy-gated dry-run dispatch.


1. Persona, Skill, & Department Selection Guide

To draft a valid WorkOrder, choose a valid combination registered in CoderOS:

Persona ID Skill ID Department Allowed Role Default Allowed Paths
planner plan engineering planner ["repo_dev_runtime/"] or []
reviewer review engineering reviewer ["repo_dev_runtime/"] or []

[!IMPORTANT]

  • department must match the persona department (engineering).
  • skill_id must be authorized for the selected persona_id.
  • allowed_paths must stay strictly within the persona's allowed scope (["repo_dev_runtime/"] or empty list []). Specifying paths outside persona scope (such as .agents/ or root) will trigger path_not_allowed_for_persona and block dispatch.

2. WorkOrder Schema & JSON Specification

A valid WorkOrder payload must conform to RepoDev.WorkOrder.v1:

{
  "schema": "RepoDev.WorkOrder.v1",
  "work_order_id": "wo-20260815-001",
  "department": "engineering",
  "persona_id": "planner",
  "skill_id": "plan",
  "prompt": "Decompose the focused context selection foundation into reviewable sub-tasks",
  "priority": "P2",
  "allowed_paths": [
    "repo_dev_runtime/"
  ],
  "timeout_s": 120.0,
  "dry_run": true,
  "created_at": "2026-08-15T12:00:00.000000+00:00"
}

Key Field Rules:

  • schema: Must be "RepoDev.WorkOrder.v1".
  • priority: Valid options: "P0", "P1", "P2", "P3" (Default: "P2").
  • timeout_s: Floating point seconds (Default: 120.0).
  • dry_run: MUST be set to true. Live execution is prohibited and blocked by runtime policy.

3. Dry-Run Dispatch Execution Guide

Antigravity agents must exercise dry-run dispatch via the existing CoderOS CLI without mutating core runtime logic.

Option A: Dispatch from Drafted JSON File (Recommended)

python -m repo_dev_runtime.cli dispatch . --work-order-json .agents/skills/coderos-workorder/resources/workorder-schema-example.json --dry-run

Option B: Dispatch via CLI Command Flags

python -m repo_dev_runtime.cli dispatch . --persona-id planner --skill-id plan --department engineering --prompt "Draft planning request" --dry-run

Expected Success Output Shape:

{
  "artifact_dir": "C:\\Users\\HP\\Documents\\GitHub\\CoderOS\\.dev-runtime\\runs\\<run_id>",
  "created_at": "2026-08-15T12:00:00.000000+00:00",
  "department": "engineering",
  "error_message": "",
  "error_type": "",
  "skill_id": "plan",
  "status": "succeeded",
  "work_order_id": "wo-20260815-001",
  "workflow_run_id": "<run_id>"
}

4. Anti-Collision & Safety Rules

When drafting or dispatching WorkOrders:

  1. Forbidden Touch-List (Do NOT target or mutate):

    • repo_dev_runtime/agent_harness.py
    • repo_dev_runtime/work_order_plans.py
    • repo_dev_runtime/improvement_decision_ledger.py
    • repo_dev_runtime/skill_packs.py
    • repo_dev_runtime/orchestration.py
    • repo_dev_runtime/contracts/models.py
    • repo_dev_runtime/cli.py
    • repo_dev_runtime/runtimes/*
    • repo_dev_runtime/eval/*
    • repo_dev_runtime/sandbox.py
    • infra/aws/*
    • scripts/windows/*
    • .github/workflows/*
  2. Dry-Run Enforcement: Never omit --dry-run or attempt live execution flags.

  3. Additive Scope: Keep generated work-order JSON files inside workspace scratch paths or .agents/ resource subdirectories.


5. Common Dispatch Errors & Troubleshooting

  • invalid_dispatch_request: Missing required parameters (persona_id, skill_id, department, or prompt).
  • path_not_allowed_for_persona: Requested allowed_paths fall outside the persona's allowed paths (["repo_dev_runtime/"]).
  • department_mismatch: Specified department does not match the persona's registered department.
  • skill_not_authorized_for_persona: The requested skill_id is not bound to the persona_id.

04 同仓库更多 Skills