Create a formal specification for an existing GitHub Actions CI/CD workflow, optimized for AI consumption and workflow maintenance.
Create GitHub Actions Workflow Specification
Create a comprehensive specification for the GitHub Actions workflow: ${input:WorkflowFile}.
This specification serves as a specification for the workflow's behavior, requirements, and constraints. It must be implementation-agnostic, focusing on what the workflow accomplishes rather than how it's implemented.
AI-Optimized Requirements
Token Efficiency: Use concise language without sacrificing clarity
Structured Data: Leverage tables, lists, and diagrams for dense information
Semantic Clarity: Use precise terminology consistently throughout
Implementation Abstraction: Avoid specific syntax, commands, or tool versions
Maintainability: Design for easy updates as workflow evolves
Specification Template
Save as: /spec/spec-process-cicd-[workflow-name].md
---
title: CI/CD Workflow Specification - [Workflow Name]
version: 1.0
date_created: [YYYY-MM-DD]
last_updated: [YYYY-MM-DD]
owner: DevOps Team
tags: [process, cicd, github-actions, automation, [domain-specific-tags]]
---
## Workflow Overview
**Purpose**: [One sentence describing workflow's primary goal]
**Trigger Events**: [List trigger conditions]
**Target Environments**: [Environment scope]
## Execution Flow Diagram
```mermaid
graph TD
A[Trigger Event] --> B[Job 1]
B --> C[Job 2]
C --> D[Job 3]
D --> E[End]
B --> F[Parallel Job]
F --> D
style A fill:#e1f5fe
style E fill:#e8f5e8
Jobs & Dependencies
Job Name
Purpose
Dependencies
Execution Context
job-1
[Purpose]
[Prerequisites]
[Runner/Environment]
job-2
[Purpose]
job-1
[Runner/Environment]
Requirements Matrix
Functional Requirements
ID
Requirement
Priority
Acceptance Criteria
REQ-001
[Requirement]
High
[Testable criteria]
REQ-002
[Requirement]
Medium
[Testable criteria]
Security Requirements
ID
Requirement
Implementation Constraint
SEC-001
[Security requirement]
[Constraint description]
Performance Requirements
ID
Metric
Target
Measurement Method
PERF-001
[Metric]
[Target value]
[How measured]
Input/Output Contracts
Inputs
# Environment VariablesENV_VAR_1: string # Purpose:[description]ENV_VAR_2: secret # Purpose:[description]# Repository Triggerspaths:[list of path filters]branches:[list of branch patterns]