Skip to content

fix: expand Network Mapping and Pattern Heuristics tables in agentic-workflow-designer SKILL.md#40249

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-network-mapping-drift
Jun 19, 2026
Merged

fix: expand Network Mapping and Pattern Heuristics tables in agentic-workflow-designer SKILL.md#40249
pelikhan merged 2 commits into
mainfrom
copilot/fix-network-mapping-drift

Conversation

Copilot AI commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The agentic-workflow-designer SKILL.md had significant coverage gaps: its Network Mapping table covered only 4 of 35 ecosystem identifiers from network.md, and its Pattern Heuristics table covered only 6 of 19 patterns from patterns.md, leaving the designer unable to route 13 patterns or recommend most network identifiers.

Network Mapping (### Network Mapping)

Expanded from 4 → 26 entries to cover all high-frequency ecosystem identifiers plus additional long-tail ones:

  • High-frequency additions: github, github-actions, ruby, rust, dotnet, java, containers, playwright, linux-distros, terraform, local
  • Additional ecosystems: swift, php, dart, haskell, perl, fonts, deno, elixir, bazel, r

Pattern Heuristics (### Pattern Heuristics)

Expanded from 6 → 19 entries, adding all 13 previously unmapped patterns with user-facing phrases aligned to the patterns.md routing rules:

Added pattern Trigger phrase
LabelOps "apply a label-based workflow"
MultiRepoOps "operate across multiple repositories"
Orchestration "coordinate multiple sub-agents"
ProjectOps "manage project board items"
ResearchPlanAssignOps "research, plan, and assign issues"
CorrectionOps "self-correcting / retry on failure"
SideRepoOps "run in a side/fork repo"
SpecOps "write a spec before implementing"
TrialOps "A/B test workflow variants"
WorkQueueOps "process items from a queue"
DeterministicOps "deterministic, no LLM needed"
CentralRepoOps "manage from a central repo"
Monitoring with Projects "track work via GitHub Projects"

Both .github/skills/agentic-workflow-designer/SKILL.md and its embedded copy pkg/cli/data/agentic_workflow_designer_skill.md are updated in sync.

…workflow-designer SKILL.md

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing ecosystem identifiers in SKILL.md fix: expand Network Mapping and Pattern Heuristics tables in agentic-workflow-designer SKILL.md Jun 19, 2026
Copilot AI requested a review from pelikhan June 19, 2026 05:57
@pelikhan pelikhan marked this pull request as ready for review June 19, 2026 06:03
Copilot AI review requested due to automatic review settings June 19, 2026 06:03
@pelikhan pelikhan merged commit 15427ba into main Jun 19, 2026
45 of 56 checks passed
@pelikhan pelikhan deleted the copilot/fix-network-mapping-drift branch June 19, 2026 06:04
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

PR Code Quality Reviewer completed the code quality review.

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. Test Quality Sentinel skipped. The PR only modifies documentation files: .github/skills/agentic-workflow-designer/SKILL.md and pkg/cli/data/agentic_workflow_designer_skill.md.

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Design Decision Gate 🏗️ completed the design decision gate check.

No ADR enforcement needed: PR #40249 does not have the 'implementation' label (has_implementation_label=false) and has only 34 new lines in business logic directories, which is at or below the 100-line threshold (requires_adr_by_default_volume=false).

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands the agentic-workflow-designer skill’s routing tables so the designer can more reliably (a) recommend valid network.allowed ecosystem identifiers and (b) route user intents to all documented workflow patterns.

Changes:

  • Expanded Network Mapping to include many additional ecosystem identifiers (e.g., github, github-actions, containers, playwright, etc.).
  • Expanded Pattern Heuristics to cover all patterns currently indexed in .github/aw/patterns.md.
  • Updated both the source skill and its embedded CLI copy in sync.
Show a summary per file
File Description
.github/skills/agentic-workflow-designer/SKILL.md Adds additional Network Mapping and Pattern Heuristics entries used by the workflow designer.
pkg/cli/data/agentic_workflow_designer_skill.md Keeps the CLI-embedded copy of the designer skill in sync with the expanded tables.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 6

| "uses Elixir / Hex packages" | include `elixir` in `network.allowed` |
| "uses Bazel build" | include `bazel` in `network.allowed` |
| "uses R / CRAN packages" | include `r` in `network.allowed` |
| "no external access" | `network.allowed: [defaults]` (or `[]` if explicitly zero network) |
| "coordinate multiple sub-agents" | `Orchestration` |
| "manage project board items" | `ProjectOps` |
| "research, plan, and assign issues" | `ResearchPlanAssignOps` |
| "self-correcting / retry on failure" | `CorrectionOps` |
| "write a spec before implementing" | `SpecOps` |
| "A/B test workflow variants" | `TrialOps` |
| "process items from a queue" | `WorkQueueOps` |
| "deterministic, no LLM needed" | `DeterministicOps` |
| "uses Elixir / Hex packages" | include `elixir` in `network.allowed` |
| "uses Bazel build" | include `bazel` in `network.allowed` |
| "uses R / CRAN packages" | include `r` in `network.allowed` |
| "no external access" | `network.allowed: [defaults]` (or `[]` if explicitly zero network) |
| "coordinate multiple sub-agents" | `Orchestration` |
| "manage project board items" | `ProjectOps` |
| "research, plan, and assign issues" | `ResearchPlanAssignOps` |
| "self-correcting / retry on failure" | `CorrectionOps` |
| "write a spec before implementing" | `SpecOps` |
| "A/B test workflow variants" | `TrialOps` |
| "process items from a queue" | `WorkQueueOps` |
| "deterministic, no LLM needed" | `DeterministicOps` |
@github-actions github-actions Bot mentioned this pull request Jun 19, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /grill-with-docs — requesting changes on two trigger-phrase accuracy bugs that would cause incorrect pattern routing.

📋 Key Themes & Highlights

Blocking Issues (2)

  • CorrectionOps trigger phrase"self-correcting / retry on failure" routes users to a human-feedback learning pattern when they likely want retry/error-recovery behavior. These are fundamentally different concepts.
  • DeterministicOps trigger phrase"deterministic, no LLM needed" contradicts the pattern which explicitly includes agentic (LLM) analysis as its second step.

Non-blocking Observations (4)

  • TrialOps"A/B test workflow variants" implies concurrent comparison; the pattern is about sequential pre-production validation in isolated repos.
  • SpecOps"write a spec before implementing" misses the spec-propagation lifecycle that defines this pattern.
  • SideRepoOps"fork repo" conflates git forks with companion/satellite repos.
  • Missing network identifiers — 14 identifiers from network.md (e.g. node-cdns, dev-tools, chrome, powershell, kotlin) are still absent. Either add them or clarify in the PR description that coverage is intentionally curated.

Positive Highlights

  • ✅ Excellent coverage expansion: Pattern Heuristics now covers all 19 patterns from patterns.md (was 6)
  • ✅ Both canonical SKILL.md and the embedded CLI copy are updated in sync
  • ✅ Network Mapping additions for the most common ecosystems (go, node, python, rust, java, containers, etc.) are accurate and well-phrased
  • ✅ Purely additive change — no existing routing is disturbed

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · 71.1 AIC · ⌖ 7.93 AIC · ⊞ 6.9K

| "coordinate multiple sub-agents" | `Orchestration` |
| "manage project board items" | `ProjectOps` |
| "research, plan, and assign issues" | `ResearchPlanAssignOps` |
| "self-correcting / retry on failure" | `CorrectionOps` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] The trigger phrase "self-correcting / retry on failure" does not match CorrectionOps.

CorrectionOps is defined in patterns.md as: "improve workflow behavior from trusted human corrections without retraining the model" — it is a human-feedback learning loop, not an automated retry mechanism.

A user describing "self-correcting / retry on failure" behaviour would be incorrectly routed to CorrectionOps.

💡 Suggested fix

Align the phrase with the actual pattern intent:

-| "self-correcting / retry on failure" | `CorrectionOps` |
+| "learn from human corrections without retraining" | `CorrectionOps` |

If retry-on-failure routing is also needed, add a separate row pointing to an appropriate pattern (e.g. BatchOps with retry logic).

| "write a spec before implementing" | `SpecOps` |
| "A/B test workflow variants" | `TrialOps` |
| "process items from a queue" | `WorkQueueOps` |
| "deterministic, no LLM needed" | `DeterministicOps` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] The trigger phrase "deterministic, no LLM needed" contradicts the DeterministicOps pattern definition.

DeterministicOps is defined as: "deterministic data collection steps followed by agentic analysis and reporting" — the second step explicitly uses an LLM. Routing a user who wants a fully LLM-free workflow to DeterministicOps will produce a design that doesn't match their intent.

💡 Suggested fix
-| "deterministic, no LLM needed" | `DeterministicOps` |
+| "deterministic data collection + agentic analysis" | `DeterministicOps` |

For users who truly want no LLM, the correct answer is a plain GitHub Actions workflow — not a pattern in this guide at all.

| "self-correcting / retry on failure" | `CorrectionOps` |
| "run in a side/fork repo" | `SideRepoOps` |
| "write a spec before implementing" | `SpecOps` |
| "A/B test workflow variants" | `TrialOps` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] "A/B test workflow variants" is an imprecise match for TrialOps.

TrialOps is defined as "isolated trial repositories to validate workflows before production rollout" — it's about pre-production safety validation in isolated repos, not running simultaneous A/B comparisons. The phrase "A/B test" implies concurrent variant testing, which isn't what this pattern provides.

💡 Suggested fix
-| "A/B test workflow variants" | `TrialOps` |
+| "validate in an isolated trial repo before production" | `TrialOps` |

| "research, plan, and assign issues" | `ResearchPlanAssignOps` |
| "self-correcting / retry on failure" | `CorrectionOps` |
| "run in a side/fork repo" | `SideRepoOps` |
| "write a spec before implementing" | `SpecOps` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] "write a spec before implementing" is too narrow for SpecOps.

SpecOps is defined as "maintain formal specifications and propagate spec updates to consuming implementations" — it's a durable spec-lifecycle pattern, not just spec-first development. A user wanting spec-driven design for an existing system (updating a spec and pushing changes downstream) won't match this phrase.

💡 Suggested fix
-| "write a spec before implementing" | `SpecOps` |
+| "maintain a formal spec and propagate updates to implementations" | `SpecOps` |

| "uses Deno or JSR packages" | include `deno` in `network.allowed` |
| "uses Elixir / Hex packages" | include `elixir` in `network.allowed` |
| "uses Bazel build" | include `bazel` in `network.allowed` |
| "uses R / CRAN packages" | include `r` in `network.allowed` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] 14 ecosystem identifiers from network.md are still absent from this table after the expansion.

The PR description claims to cover "all high-frequency ecosystem identifiers plus additional long-tail ones", but network.md lists 39 identifiers total and the SKILL.md now covers 26 — leaving these still unmapped:

clojure, julia, kotlin, lua, node-cdns, ocaml, powershell, scala, zig, dev-tools, chrome, latex, lean, python-native

Some of these (node-cdns, dev-tools, chrome, powershell, kotlin) are plausible choices in CI/CD workflows.

💡 Suggested additions

High-priority missing entries:

User says... Maps to
"uses CDN / jsdelivr / unpkg" include node-cdns in network.allowed
"uses Renovate / Codecov / shields.io" include dev-tools in network.allowed
"runs Chrome or Chromium" include chrome in network.allowed
"uses PowerShell Gallery" include powershell in network.allowed
"uses Kotlin / JetBrains packages" include kotlin in network.allowed

Or, if the intent is intentional curation rather than exhaustive coverage, update the PR description to say so.

| "manage project board items" | `ProjectOps` |
| "research, plan, and assign issues" | `ResearchPlanAssignOps` |
| "self-correcting / retry on failure" | `CorrectionOps` |
| "run in a side/fork repo" | `SideRepoOps` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] "run in a side/fork repo" conflates two distinct concepts.

SideRepoOps is defined as "low-friction reporting/automation from a side repository targeting a primary repository" — a side repo is a satellite/companion repository, not a git fork. Saying "fork repo" risks routing users who want to work with forked repositories (a common GitHub concept) into a pattern that's actually about companion automation repos.

💡 Suggested fix
-| "run in a side/fork repo" | `SideRepoOps` |
+| "run automation from a companion/satellite repository" | `SideRepoOps` |

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REQUEST_CHANGES — good coverage expansion, but three of the newly added heuristics map to wrong/misleading values that will cause designer agents to produce incorrect output.

### Blocking issues in this PR's added lines

1. Orchestration is not a pattern name (line 210) — both doc files declare title: OrchestratorOps. Inline comment posted.

2. TrialOps trigger phrase is wrong (line 216) — TrialOps is isolated trial-repo validation, not A/B testing. There is a separate A/B Experiments feature. Inline comment posted.

3. CorrectionOps trigger phrase is wrong (line 213) — already flagged in a prior review thread. CorrectionOps is a human-correction learning loop, not a retry-on-failure mechanism. This issue remains unresolved.

4. DeterministicOps trigger phrase is wrong (line 218) — already flagged in a prior review thread. DeterministicOps explicitly combines deterministic steps with AI agent reasoning; calling it "no LLM needed" contradicts its own documentation. This issue remains unresolved.

Fix all four before merging. The two-file sync (SKILL.md ↔ pkg/cli/data/agentic_workflow_designer_skill.md) must be applied consistently.

🔎 Code quality review by PR Code Quality Reviewer · 85.6 AIC · ⌖ 7.13 AIC · ⊞ 5.1K

| "run manually with input parameters" | `DispatchOps` |
| "apply a label-based workflow" | `LabelOps` |
| "operate across multiple repositories" | `MultiRepoOps` |
| "coordinate multiple sub-agents" | `Orchestration` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong pattern name: Orchestration does not exist — the canonical name is OrchestratorOps and will not match any documentation link or search.

💡 Suggested fix

Both pattern doc files (orchestration.md and orchestrator-ops.md) declare title: OrchestratorOps. Using Orchestration here means every agent following this heuristic will recommend a pattern name that users cannot find in the docs.

-| "coordinate multiple sub-agents" | `Orchestration` |
+| "coordinate multiple sub-agents" | `OrchestratorOps` |

Apply the same fix to pkg/cli/data/agentic_workflow_designer_skill.md.

| "self-correcting / retry on failure" | `CorrectionOps` |
| "run in a side/fork repo" | `SideRepoOps` |
| "write a spec before implementing" | `SpecOps` |
| "A/B test workflow variants" | `TrialOps` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trigger phrase mismatches pattern purpose: TrialOps is about validating workflows in isolated trial repositories before deployment — not A/B testing variants.

💡 Details and suggested fix

The TrialOps docs describe a gh aw trial command that spins up a temporary private repo to safely validate one workflow before shipping it. There is also a separate A/B Experiments feature (experimental/experiments.md) for actual variant comparison.

A user asking to "A/B test workflow variants" will be steered to TrialOps when they likely need A/B Experiments or simply want to run two different workflows side-by-side.

Suggested trigger phrase that actually describes TrialOps:

-| "A/B test workflow variants" | `TrialOps` |
+| "validate a workflow in an isolated test repo before deploying" | `TrialOps` |

Apply the same fix to pkg/cli/data/agentic_workflow_designer_skill.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants