principal-workflow

Coordinates AWK automation workflow phases from kickoff to PR review via contract-driven routing and dispatch synchronization.

2|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/silver2dream/ai-workflow-kit --skill principal-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: principal-workflow
Source: https://github.com/silver2dream/ai-workflow-kit/tree/main/.ai/skills/principal-workflow
Command: npx skills add https://github.com/silver2dream/ai-workflow-kit --skill principal-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill orchestrates the AWK principal workflow, unifying kickoff, main loop, dispatch, check, and review/merge steps to reduce manual coordination and cycle time.

Core Features & Use Cases

  • Centralized control: manages the end-to-end automation cycle from kickoff to merge.
  • Phase routing: loads phase instructions, validates contracts, and routes tasks automatically.
  • Autonomy readiness: designed to run within Claude Code workflows for consistent results.

Quick Start

Start the principal workflow with: awkit kickoff, then observe the main loop and follow prompts to advance NEXT_ACTIONs.

Frequently Asked Questions about principal-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I orchestrate an end-to-end automation workflow with task coordination and PR review?

Workflow orchestration coordinates multi-phase automation from kickoff through task generation, dispatch, result checking, and PR review. Start with `awkit kickoff`, then follow the main loop to route tasks via NEXT_ACTION, execute them through dispatch_worker, and automatically trigger PR review on completion.

What is contract-driven routing and how does it enforce task constraints?

Contract-driven routing validates required fields and task structure before dispatch using analyze_next.sh. It enforces a standardized contract—ensuring tasks meet specifications—and returns to the main loop on violations, preventing malformed tasks from reaching execution.

Can I use this workflow to automate GitHub PR review within Claude Code?

Yes, the workflow integrates GitHub PR review as a final governance phase. After task execution completes, review_pr automatically processes pull requests, enabling end-to-end automation from code generation through merge within Claude Code environments.

How do loop safety limits prevent runaway automation?

Loop safety limits enforce a maximum iteration count before the workflow returns to the main loop or halts. This prevents infinite loops during task generation and execution, ensuring the orchestration terminates cleanly even if dispatch or check phases cycle unexpectedly.

What does the main loop do and when should I advance NEXT_ACTION?

The main loop loads phase instructions, validates task contracts, and waits for NEXT_ACTION routing decisions. Advance NEXT_ACTION after each phase completes—kickoff loads initial tasks, dispatch_worker executes them, check_result verifies outcomes, and review_pr handles merge logic.

Does this workflow require external dependencies or run standalone?

The workflow runs standalone with no external dependencies listed. It operates entirely within Claude Code and AWK environments, using built-in phase scripts (analyze_next.sh, dispatch_worker.sh) and standardized logging for orchestration across automation phases.