Skip to content

[spec-extractor] docs: add package specifications for cli, parser, and workflow#26190

Merged
pelikhan merged 1 commit intomainfrom
spec-extractor/add-cli-parser-workflow-readmes-165b68fad0a9d4b5
Apr 14, 2026
Merged

[spec-extractor] docs: add package specifications for cli, parser, and workflow#26190
pelikhan merged 1 commit intomainfrom
spec-extractor/add-cli-parser-workflow-readmes-165b68fad0a9d4b5

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Package Specification Updates

This PR adds README.md specifications for three packages that were missing documentation, identified as Priority 2 (no existing README.md) in the round-robin spec-extractor run.

Package Status Exported Symbols
pkg/cli ✅ Created 50+ commands, 30+ types, 60+ functions
pkg/parser ✅ Created 15 types, 50+ functions across 40 source files
pkg/workflow ✅ Created 60+ types, 100+ functions across 320+ source files

What Changed

  • pkg/cli/README.md: Comprehensive specification covering all 30+ command groups (add, compile, run, audit, logs, mcp, update, health, fix, trial, deps, etc.), key config/options/result types, and exported functions. Includes usage examples and design philosophy notes.

  • pkg/parser/README.md: Full specification of the frontmatter parsing pipeline — extraction, import processing, GitHub URL parsing, remote fetching, MCP configuration extraction, schedule parsing, JSON schema validation, and error formatting. Includes the parse-to-compile architecture diagram.

  • pkg/workflow/README.md: Largest specification covering the compilation engine, engine interface hierarchy (Engine, CapabilityProvider, WorkflowExecutor, etc.), frontmatter config types, permissions system, tools configuration, safe outputs, network permissions, action pinning, YAML utilities, secret handling, and the full workflow compilation pipeline. Includes architecture diagram.

Extraction Method

  • Source code analysis of exported symbols (grep -n "^func [A-Z]\|^type [A-Z]")
  • Package doc comment extraction (especially pkg/parser/doc.go)
  • Dependency graph analysis via import statements
  • Type structure inspection via view tool

Round-Robin State

  • Packages processed this run: cli, parser, workflow
  • Packages without README before this run: cli, parser, workflow (3/20)
  • Remaining packages without README: none (17/20 already had READMEs)
  • Total packages: 20
  • Coverage after this PR: 20/20 packages have specifications

Auto-generated by Package Specification Extractor workflow (§24394465007)

Generated by Package Specification Extractor · ● 2.4M ·

  • expires on Apr 17, 2026, 10:50 AM UTC

Add README.md specifications for the three packages that were missing
documentation:

- pkg/cli: CLI command implementations for the gh aw extension including
  all command groups (add, compile, run, audit, logs, mcp, update, etc.),
  key types, and exported functions

- pkg/parser: Markdown frontmatter parsing, import resolution, GitHub URL
  handling, schema validation, and schedule parsing

- pkg/workflow: Workflow compilation, validation, engine integration,
  safe-outputs, and GitHub Actions YAML generation — the compilation core

Each README follows W3C specification style with types, functions,
usage examples, design decisions, and dependency documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added automation documentation Improvements or additions to documentation pkg-specifications labels Apr 14, 2026
@pelikhan pelikhan merged commit ec011f0 into main Apr 14, 2026
@pelikhan pelikhan deleted the spec-extractor/add-cli-parser-workflow-readmes-165b68fad0a9d4b5 branch April 14, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation pkg-specifications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant