🎯 Repository Quality Improvement Report - Workflow Markdown Authoring Experience #8482
Replies: 1 comment 1 reply
-
|
/plan review existing commands |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Analysis Date: 2026-01-01
Focus Area: Workflow Markdown Authoring Experience
Strategy Type: Custom
Custom Area: Yes - This focus addresses the core user experience of gh-aw: making it easy, fast, and error-free to write agentic workflows in markdown format.
Executive Summary
With 178 workflow markdown files in
.github/workflows/, the Workflow Markdown Authoring Experience is critical to gh-aw's value proposition. Analysis reveals significant opportunities to improve the developer experience through better IDE support, clearer validation feedback, comprehensive starter templates, and integrated authoring tools. Currently, developers face inconsistent engine specifications (16 malformed entries), limited IDE autocomplete support, and minimal guidance for complex configurations like tool definitions and safe-outputs. Improving this experience will directly reduce time-to-first-workflow, lower error rates during compilation, and increase user satisfaction.Full Analysis Report
Focus Area: Workflow Markdown Authoring Experience
Current State Assessment
The repository contains a mature workflow ecosystem with 178 workflow markdown files demonstrating diverse use cases. However, the authoring experience reveals several friction points that slow down workflow creation and increase compilation errors.
Metrics Collected:
Findings
Strengths
Areas for Improvement
gh aw lintorgh aw validateto check workflows before committinggh aw initcommand to generate workflow boilerplateDetailed Analysis
1. IDE Support Gap
Current State: Only
.vscode/settings.jsonexists with basic Copilot enablement. No JSON schemas for YAML frontmatter validation.Impact:
engine,tools,permissions,safe-outputs, etc.Example Pain Point:
These errors aren't caught until
gh aw compileruns, wasting developer time.2. Inconsistent Engine Specifications
Found:
engine: copilotengine: claudeengine:fieldsengine: codexImpact: Blank or malformed engine fields cause compilation failures or unexpected behavior.
3. Limited Workflow Templates
Current Templates in
examples/:label-trigger-simple.mdlabel-trigger-pull-request.mdlabel-trigger-discussion.mdnetwork-python-project.mdnetwork-node-project.mdnetwork-multi-language.mdMissing Templates:
4. Tool Configuration Complexity
Analysis: 134 workflows configure tools, but tool syntax varies significantly:
No standardized patterns or IDE support make this error-prone.
5. Validation Feedback Quality
Found: 177 lines of validation error handling in
pkg/workflow/*.go, but:gh aw compile6. Documentation Gaps
Current Documentation:
docs/src/content/docs/guides/network-configuration.md)Missing:
🤖 Tasks for Copilot Agent
NOTE TO PLANNER AGENT: The following tasks are designed for GitHub Copilot agent execution. Please split these into individual work items for Claude to process.
Improvement Tasks
The following code regions and tasks should be processed by the Copilot agent. Each section is marked for easy identification by the planner agent.
Task 1: Create JSON Schema for Workflow Frontmatter Validation
Priority: High
Estimated Effort: Medium
Focus Area: Workflow Markdown Authoring Experience
Description:
Create a comprehensive JSON schema file that validates workflow frontmatter YAML, enabling IDE autocomplete, hover documentation, and real-time validation. This schema should cover all frontmatter fields:
description,on,permissions,engine,tools,safe-outputs,safe-inputs,network,timeout-minutes,imports,features,runtimes, andsandbox.The schema should be placed in
schemas/workflow-frontmatter.schema.jsonand referenced in.vscode/settings.jsonto enable YAML language server integration.Acceptance Criteria:
enginefield (copilot, claude, codex, custom)tools,permissions, andsafe-outputs.vscode/settings.jsonupdated to associate*.mdfiles in.github/workflows/with the schemaCode Region:
schemas/workflow-frontmatter.schema.json(new file),.vscode/settings.jsonTask 2: Add Workflow Linting Command (
gh aw lint)Priority: High
Estimated Effort: Medium
Focus Area: Workflow Markdown Authoring Experience
Description:
Implement a new CLI command
gh aw lint (workflow.md)that validates workflow markdown files without full compilation. This command should check:The linting should provide clear, actionable error messages with line numbers.
Acceptance Criteria:
gh aw lintcommand accepts workflow file path(s)gh aw lint .github/workflows/*.mdCode Region:
pkg/cli/lint_command.go(new file),cmd/gh-aw/main.goTask 3: Create Workflow Starter Templates Library
Priority: Medium
Estimated Effort: Large
Focus Area: Workflow Markdown Authoring Experience
Description:
Expand the
examples/directory with 10+ comprehensive workflow starter templates covering common use cases. Each template should be fully documented with inline comments explaining frontmatter fields, tool configurations, and workflow logic.Template Categories:
Acceptance Criteria:
examples/workflows/examples/workflows/README.mdcreated with template index and usage guideCode Region:
examples/workflows/*.md(new files),examples/workflows/README.md(new file)Task 4: Build Workflow Scaffolding Tool (
gh aw init)Priority: Medium
Estimated Effort: Large
Focus Area: Workflow Markdown Authoring Experience
Description:
Implement an interactive CLI command
gh aw initthat guides users through creating a new workflow via prompts. The tool should ask about:After collecting inputs, generate a workflow markdown file with appropriate frontmatter and boilerplate.
Acceptance Criteria:
gh aw initcommand provides interactive prompts.github/workflows/(workflow-name).mdfile--templateflag to use starter templates--non-interactivemode with CLI flagsCode Region:
pkg/cli/init_command.go(new file),cmd/gh-aw/main.goTask 5: Enhance Validation Error Messages with Fix Suggestions
Priority: Medium
Estimated Effort: Medium
Focus Area: Workflow Markdown Authoring Experience
Description:
Improve validation error messages in
pkg/workflow/validation.goto include:Transform generic errors like "invalid engine value" into actionable messages like "Invalid engine 'coppilot' at line 3. Did you mean 'copilot'? Valid engines: copilot, claude, codex, custom. See (redacted)
Acceptance Criteria:
Code Region:
pkg/workflow/validation.go,pkg/workflow/frontmatter_parser.go📊 Historical Context
Previous Focus Areas
This is the first focus area analysis run. Future runs will track diversity and impact.
🎯 Recommendations
Immediate Actions (This Week)
Create JSON Schema (Task 1) - Priority: High
Add Workflow Linting (Task 2) - Priority: High
Short-term Actions (This Month)
Expand Starter Templates (Task 3) - Priority: Medium
Enhance Error Messages (Task 5) - Priority: Medium
Long-term Actions (This Quarter)
📈 Success Metrics
Track these metrics to measure improvement in Workflow Markdown Authoring Experience:
Tracking Method:
gh aw lintusage via telemetryNext Steps
Generated by Repository Quality Improvement Agent
Next analysis: 2026-01-02 - Focus area will be selected based on diversity algorithm (60% custom, 30% standard, 10% reuse)
Beta Was this translation helpful? Give feedback.
All reactions