Skip to content

[plan] Surface artifact-reading pattern in create-agentic-workflow prompt for test coverage scenarios #18260

Description

@github-actions

Objective

Update the create-agentic-workflow prompt to guide the agent toward reading pre-computed coverage artifacts (via gh run download or the actions toolset) instead of re-running the full test suite inside the workflow.

Context

From Agent Persona Exploration discussion #18250, QA-1 (Test Coverage PR Analyzer) scored 4.2/5.0. The agent doesn't proactively distinguish between "read coverage from existing CI artifacts" vs "run coverage yourself", leading to suggestions of slow, resource-intensive test reruns.

Approach

  1. Locate the create-agentic-workflow prompt (likely in skills/ or .github/workflows/)
  2. Add guidance that distinguishes two patterns:
    • Preferred: Fetch pre-computed coverage artifacts from a previous CI run using gh run download or the actions toolset
    • Fallback: Run tests to compute fresh coverage (only when no prior artifacts exist)
  3. Add an example snippet showing gh run download --name coverage-report pattern
  4. Optionally add a reference workflow for test coverage PR analysis

Files to Modify

  • Update: the create-agentic-workflow prompt/skill file with artifact-reading guidance
  • Optionally create: .github/workflows/coverage-pr-analyzer.md as a reference workflow

Acceptance Criteria

  • Prompt guidance distinguishes artifact-reading vs test-running approaches
  • Agent recommends gh run download or actions toolset for coverage artifacts by default
  • Guidance is clear enough that agent scores ≥ 4.5 on test coverage scenarios

Generated by Plan Command for issue #discussion #18250

  • expires on Feb 27, 2026, 4:46 AM UTC

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions