Objective
Codify the workflow_run vs pull_request trigger selection reasoning as a reusable decision tree pattern in the create-agentic-workflow.md prompt.
Context
From discussion #21704 (Agent Persona Exploration - 2026-03-19), the evaluation found that the agent correctly chooses between workflow_run and pull_request triggers — but this reasoning is implicit. Making it explicit in the prompt library will help new workflow authors understand the tradeoff.
Key insight observed during evaluation:
- Use
workflow_run when CI artifacts are needed (coverage reports, build outputs, deployment results)
- Use
pull_request with path filters when reacting to code changes directly (schema reviews, visual regression)
Approach
- Locate the
create-agentic-workflow.md prompt file (likely in skills/ or .github/)
- Add a "Trigger Selection" section with a decision tree:
- Does the workflow need CI artifacts from a prior run? →
workflow_run
- Is the workflow reacting to code changes (files, PRs)? →
pull_request with paths: filters
- Is it time-based or manual? →
schedule + workflow_dispatch
- Is it release/tag-based? →
push: tags:
- Include the trigger hierarchy pattern:
workflow_run → pull_request (path filters) → schedule + workflow_dispatch → push: tags
- Add a brief rationale for each choice with an example snippet
Files to Modify
- The
create-agentic-workflow.md prompt (check skills/ and .github/ directories)
Acceptance Criteria
Generated by Plan Command for issue #discussion #21704 · ◷
Objective
Codify the
workflow_runvspull_requesttrigger selection reasoning as a reusable decision tree pattern in thecreate-agentic-workflow.mdprompt.Context
From discussion #21704 (Agent Persona Exploration - 2026-03-19), the evaluation found that the agent correctly chooses between
workflow_runandpull_requesttriggers — but this reasoning is implicit. Making it explicit in the prompt library will help new workflow authors understand the tradeoff.Key insight observed during evaluation:
workflow_runwhen CI artifacts are needed (coverage reports, build outputs, deployment results)pull_requestwith path filters when reacting to code changes directly (schema reviews, visual regression)Approach
create-agentic-workflow.mdprompt file (likely inskills/or.github/)workflow_runpull_requestwithpaths:filtersschedule+workflow_dispatchpush: tags:workflow_run→pull_request(path filters) →schedule+workflow_dispatch→push: tagsFiles to Modify
create-agentic-workflow.mdprompt (checkskills/and.github/directories)Acceptance Criteria
workflow_runvspull_requestchoice