Skip to content

Remove inline reporting guidelines from 33 workflows duplicating shared/reporting.md#19079

Merged
pelikhan merged 2 commits intomainfrom
copilot/remove-inline-reporting-guidelines
Mar 1, 2026
Merged

Remove inline reporting guidelines from 33 workflows duplicating shared/reporting.md#19079
pelikhan merged 2 commits intomainfrom
copilot/remove-inline-reporting-guidelines

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

43 workflows contained inline copies of Report Formatting Guidelines (Header Levels, Progressive Disclosure, Report Structure Pattern, Design Principles) that duplicated shared/reporting.md, creating a maintenance burden where guideline updates required changes in 43+ places.

Changes

  • Removed ~1,522 lines of redundant ## 📝 Report Formatting Guidelines sections across 33 workflow files
  • Preserved workflow-specific content: sections that mixed formatting guidelines with phase instructions or report templates (e.g., copilot-pr-nlp-analysis.md, daily-testify-uber-super-expert.md) had only the standard guidelines removed — content following the "Maintain consistency" design principle bullet was kept in place
  • Fixed org-health-report.md: ### Phase 6: Create Discussion Report was nested inside the formatting guidelines section; extracted it back as a proper phase step after removing the guidelines
  • Updated stale references in cli-version-checker.md and weekly-issue-summary.md that pointed to the now-removed "section above", redirecting to shared/reporting.md

All 33 affected workflows already import shared/reporting.md via runtime imports in their compiled lock files, so runtime behavior is unchanged.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw ithub/workflows/--norc rgo/bin/bash bash --no�� --noprofile sort bin/bash (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw k/gh-aw/gh-aw/.g--norc p/bin/bash bash --no�� --noprofile grep ache/node/24.13.1/x64/bin/bash port Structure Ggrep ithub/workflows/-n ash bash (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw ithub/workflows/--norc /home/REDACTED/wor--noprofile bash --no�� --noprofile bash sh port Structure Gbash ithub/workflows/--norc ache/uv/0.10.7/x--noprofile awk (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha /php.ini bash '~E_ALL' --noprofile all("session") a--norc cal/bin/bash /systemd-executor --no�� --noprofile bash n-dir/bash --noprofile (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb --jq .object.sha --noprofile bash 64/bin/bash --noprofile (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha --noprofile bash $name) { hasDiscussionsEnabled } } --noprofile (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[refactoring] Remove inline reporting guidelines from 43 workflows that duplicate shared/reporting.md</issue_title>
<issue_description>### Skill Overview

43 workflows contain inline copies of the Report Structure Guidelines (Header Levels, Progressive Disclosure, Report Structure Pattern) that duplicate the content already provided by shared/reporting.md. This creates a maintenance burden: any update to the guidelines requires changes in 43+ places. 30 of these workflows already import shared/reporting.md, making their inline copies completely redundant. The remaining 13 should add the import and remove their inline copies.

Current Usage

Workflows with inline guidelines that ALREADY import shared/reporting.md (redundant, ~30 workflows including):

  • agent-performance-analyzer.md
  • audit-workflows.md
  • auto-triage-issues.md
  • breaking-change-checker.md
  • ci-coach.md
  • daily-code-metrics.md
  • daily-compiler-quality.md
  • daily-observability-report.md (lines 39–87, ~48 lines)
  • daily-performance-summary.md
  • daily-team-evolution-insights.md
  • daily-team-status.md
  • pr-triage-agent.md
  • weekly-issue-summary.md
  • (and ~17 more)

Workflows with inline guidelines that do NOT import shared/reporting.md (need import added, ~13 workflows including):

  • copilot-pr-merged-report.md (gets it transitively via copilot-pr-analysis-base.md)
  • copilot-pr-nlp-analysis.md
  • copilot-pr-prompt-analysis.md
  • deep-report.md
  • firewall-escape.md
  • portfolio-analyst.md
  • repo-audit-analyzer.md
  • semantic-function-refactor.md

Proposed Fix

Remove inline guideline sections (typically titled ## 📝 Report Formatting Guidelines or similar) from all 43 workflows and rely solely on shared/reporting.md. Add the import to any missing workflows.

Impact

  • Workflows affected: 43 workflows
  • Lines saved: ~40–48 lines per workflow × 43 = ~1,700–2,064 lines of redundant content removed
  • Maintenance benefit: Guidelines changes only need updating in shared/reporting.md
  • Consistency benefit: All workflows will use exactly the same reporting guidelines, not slightly diverged inline copies

Implementation Plan

  1. Audit all 43 workflows to identify exact inline sections to remove (search for ## 📝 Report Formatting Guidelines or ### 1. Header Levels patterns)
  2. For each workflow already importing shared/reporting.md: remove the inline reporting section
  3. For each workflow NOT importing shared/reporting.md: add shared/reporting.md to imports AND remove inline section
  4. Run make recompile to regenerate all affected lock files
  5. Spot-check 3–5 workflows to confirm guidelines are still present via import

Related Analysis

This recommendation comes from the Workflow Skill Extractor analysis run on 2026-03-01.

Generated by Workflow Skill Extractor

  • expires on Mar 3, 2026, 4:19 PM UTC

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…hared/reporting.md

- Removed ~1,522 lines of redundant formatting guidelines across 33 workflow files
- For files with standard-format guidelines: removed heading through 'Maintain consistency' bullet, preserving workflow-specific content (templates, phase instructions) that followed
- For files with brief bold-text guidelines without standard subsections: removed entire section
- Restored Phase 6 content in org-health-report.md (was inside the removed section)
- Updated stale references in cli-version-checker.md and weekly-issue-summary.md
- All workflows already import shared/reporting.md directly or transitively
- Verified all 162 workflow files compile successfully via make recompile

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor workflows to remove duplicate reporting guidelines Remove inline reporting guidelines from 33 workflows duplicating shared/reporting.md Mar 1, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

Hey @Copilot 👋 — great refactor! Removing ~1,522 lines of duplicated reporting guidelines across 33 workflows is exactly the kind of maintenance work that keeps the codebase clean and makes future guideline updates a one-stop-shop in shared/reporting.md. The careful handling of edge cases (e.g. extracting ### Phase 6 from inside the guidelines block in org-health-report.md, updating stale references in cli-version-checker.md and weekly-issue-summary.md) shows solid attention to detail.

One thing to confirm before moving out of draft:

  • Validate compiled lock files — no test files were changed, and since this is a pure markdown content refactor the standard unit tests don't cover it. The crucial validation step here is make recompile to regenerate all 33 affected .lock.yml files and confirm the guidelines are still present at runtime via the shared/reporting.md import. The PR description mentions runtime behavior is unchanged because the lock files already include the shared import — but it's worth making that explicit with a spot-check or by confirming make recompile was run clean.

If you'd like a hand with the final validation, you can assign this prompt to your coding agent:

For PR #19079 (remove inline reporting guidelines from 33 workflows):

1. Run `make recompile` from the repository root and confirm it exits with code 0.
2. Spot-check 3 of the affected compiled lock files (e.g. `.github/workflows/agent-performance-analyzer.lock.yml`, `audit-workflows.lock.yml`, `weekly-issue-summary.lock.yml`) and verify each still contains the `shared/reporting.md` content inline after compilation.
3. If any workflow that previously lacked a `shared/reporting.md` import (e.g. `copilot-pr-nlp-analysis.md`, `deep-report.md`, `portfolio-analyst.md`) had its inline guidelines removed, confirm those files now explicitly import `shared/reporting.md` in their frontmatter.
4. Report the results and mark the PR ready for review if everything checks out.

Generated by Contribution Check

@pelikhan pelikhan marked this pull request as ready for review March 1, 2026 17:09
Copilot AI review requested due to automatic review settings March 1, 2026 17:09
@pelikhan pelikhan merged commit 8ead508 into main Mar 1, 2026
@pelikhan pelikhan deleted the copilot/remove-inline-reporting-guidelines branch March 1, 2026 17:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes duplicated inline “Report Formatting Guidelines” sections from many workflow prompt files and relies on the shared reporting guidance instead, reducing maintenance overhead.

Changes:

  • Deleted redundant inline reporting-guidelines blocks across 33 workflow markdown files.
  • Updated a couple of in-file references to point to shared/reporting.md instead of “the section above”.
  • Unnested/extracted org-health-report.md Phase 6 content so it remains a proper workflow step after guideline removal.

Reviewed changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
.github/workflows/weekly-issue-summary.md Removes inline guidelines and updates the report-formatting reference to shared/reporting.md.
.github/workflows/static-analysis-report.md Removes inline report-formatting guidance before “Phase 5” discussion creation.
.github/workflows/org-health-report.md Removes inline guidelines and leaves “Phase 6: Create Discussion Report” as a standalone phase step.
.github/workflows/daily-testify-uber-super-expert.md Removes duplicated inline guidelines while preserving the workflow-specific issue template.
.github/workflows/daily-team-status.md Removes duplicated inline guidelines from the daily status prompt.
.github/workflows/daily-team-evolution-insights.md Removes duplicated inline guidelines from the evolution-insights workflow prompt.
.github/workflows/daily-syntax-error-quality.md Removes duplicated inline guidelines from the “Create Issue with Suggestions” phase.
.github/workflows/daily-secrets-analysis.md Removes duplicated inline guidelines from the discussion-report generation section.
.github/workflows/daily-safe-outputs-conformance.md Removes duplicated inline guidelines prior to generating agentic tasks/issues.
.github/workflows/daily-safe-output-optimizer.md Removes duplicated inline guidelines in the output requirements area.
.github/workflows/daily-repo-chronicle.md Removes duplicated inline guidelines from the chronicle workflow prompt.
.github/workflows/daily-regulatory.md Removes duplicated inline report-formatting guidance from the regulatory review prompt.
.github/workflows/daily-performance-summary.md Removes the inline “Phase 5.5” formatting section before discussion creation.
.github/workflows/daily-observability-report.md Removes duplicated inline guidelines near the top of the workflow prompt.
.github/workflows/daily-news.md Removes duplicated inline report-formatting guidelines while keeping workflow-specific instructions intact.
.github/workflows/daily-multi-device-docs-tester.md Removes duplicated inline guidelines from the “If Issues ARE Found” section.
.github/workflows/daily-mcp-concurrency-analysis.md Removes duplicated inline guidelines from the output requirements area.
.github/workflows/daily-firewall-report.md Removes duplicated inline guidelines from the firewall report prompt.
.github/workflows/daily-compiler-quality.md Removes duplicated inline report-formatting guidance before the discussion title/template.
.github/workflows/daily-code-metrics.md Removes duplicated inline report-formatting guidance before the report template section.
.github/workflows/daily-cli-performance.md Removes duplicated inline report-formatting guidance before summary report creation.
.github/workflows/copilot-session-insights.md Removes duplicated inline guidelines from the “Create Analysis Discussion” phase.
.github/workflows/copilot-pr-prompt-analysis.md Removes duplicated inline guidelines from the analysis discussion phase.
.github/workflows/copilot-pr-nlp-analysis.md Removes duplicated inline guidelines from the analysis discussion phase.
.github/workflows/copilot-pr-merged-report.md Removes duplicated inline guidelines from the merged-report generation section.
.github/workflows/copilot-cli-deep-research.md Removes duplicated inline guidelines from the research prompt (keeps workflow-specific output format).
.github/workflows/commit-changes-analyzer.md Removes duplicated inline guidelines before the developer report structure.
.github/workflows/cli-version-checker.md Removes duplicated inline guidelines and updates the “structure pattern” reference to shared/reporting.md.
.github/workflows/ci-coach.md Removes duplicated inline guidelines before the PR structure template.
.github/workflows/breaking-change-checker.md Removes the in-file formatting-guidelines section from the reporting step.
.github/workflows/auto-triage-issues.md Removes duplicated inline guidelines from the triage agent prompt.
.github/workflows/audit-workflows.md Removes duplicated inline guidelines and embedded report template from the audit workflow prompt.
.github/workflows/agent-performance-analyzer.md Removes duplicated inline guidelines from the performance analyzer prompt.

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

Comment on lines +171 to 172
**Follow the Report Structure Pattern defined in `shared/reporting.md`.**

Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

This update correctly points readers to shared/reporting.md, but there’s still a later instruction that says to “adapt to use Report Structure Pattern above”. Since the pattern is no longer inline, that phrasing becomes misleading—please update the later reference to point to shared/reporting.md as well.

Copilot uses AI. Check for mistakes.
Comment on lines 143 to 145
---

## 📝 Report Formatting Guidelines

**CRITICAL**: Follow these formatting guidelines to create well-structured, readable reports:

### 1. Header Levels
**Use h3 (###) or lower for all headers in your report to maintain proper document hierarchy.**

The discussion title serves as h1, so all content headers should start at h3:
- Use `###` for main sections (e.g., "### Weekly Overview", "### Key Trends")
- Use `####` for subsections (e.g., "#### Issue Breakdown by Label")
- Never use `##` (h2) or `#` (h1) in the report body

### 2. Progressive Disclosure
**Wrap long sections in `<details><summary><b>Section Name</b></summary>` tags to improve readability and reduce scrolling.**

Use collapsible sections for:
- Full issue lists with titles and descriptions
- Detailed breakdowns by label or type
- Historical comparisons or verbose data

Example:
```markdown
<details>
<summary><b>Full Issue List</b></summary>

[Long list of issues...]

</details>
```

### 3. Report Structure Pattern

Your report should follow this structure for optimal readability:

1. **Weekly Overview** (always visible): 1-2 paragraph summary of the week's issue activity, highlighting key trends
2. **Key Trends** (always visible): Notable patterns like increased activity, common issue types, or emerging topics
3. **Summary Statistics** (always visible): Total counts, comparisons to previous week, breakdown by state/label
4. **Detailed Issue Breakdown** (in `<details>` tags): Complete list of issues with titles, numbers, authors, and labels
5. **Recommendations for Upcoming Week** (always visible): Actionable suggestions based on the analysis

### Design Principles

Create reports that:
- **Build trust through clarity**: Most important info (overview, trends, key stats) immediately visible
- **Exceed expectations**: Add helpful context, week-over-week comparisons, trend analysis
- **Create delight**: Use progressive disclosure to reduce overwhelm for detailed data
- **Maintain consistency**: Follow the same patterns as other reporting workflows

---
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

After removing the inline guidelines, this leaves two horizontal rules back-to-back (--- then another ---) with no content between. Consider deleting one of them to avoid redundant separators and keep the workflow prompt easier to scan.

Copilot uses AI. Check for mistakes.
Comment on lines 146 to 147
---

Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

After removing the inline guidelines, this now renders as two consecutive horizontal rules (--- followed by another ---) with nothing between. Removing one of the separators would avoid redundant markdown noise.

Suggested change
---

Copilot uses AI. Check for mistakes.
Comment on lines 157 to 158
---

Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

Now that the inline guidelines are removed, this section has two horizontal rules back-to-back (--- / blank / ---). Consider keeping just one separator to reduce redundant markdown and improve readability.

Suggested change
---

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[refactoring] Remove inline reporting guidelines from 43 workflows that duplicate shared/reporting.md

3 participants