Skip to content

Add data-science.md prompt for chart/trend workflow generation#22032

Closed
Copilot wants to merge 8 commits intomainfrom
copilot/add-data-viz-instructions
Closed

Add data-science.md prompt for chart/trend workflow generation#22032
Copilot wants to merge 8 commits intomainfrom
copilot/add-data-viz-instructions

Conversation

Copy link
Contributor

Copilot AI commented Mar 20, 2026

Provides a single authoritative, self-contained prompt file for the agent dispatcher covering Python data visualization and trending patterns. All content from shared/python-dataviz.md, shared/charts-with-trending.md, and shared/trending-charts-simple.md is distilled and inlined directly — no imports: and no references to shared files.

Changes

  • .github/aw/data-science.md — new fully self-contained prompt covering:

    • Frontmatter template focused on data-science-specific fields only: network, safe-outputs, and a setup step (pip install, directory creation) — generic fields (description, on, permissions, engine, tools, upload-artifact step) are intentionally omitted
    • Five-step agent prompt structure (load history → collect → append & prune → chart → report) as a single numbered list
    • Consolidated Python patterns: history load/append/prune in one snippet, trend chart with moving average, and multi-metric loop
    • Data separation rule (external files only, never inline), 90-day retention, DPI 300 seaborn chart standards
    • Report template using ?raw=true GitHub URL format for embedded chart images
    • Common use-case lookup table with trigger and notes columns
  • .github/agents/agentic-workflows.agent.md — registers data-science.md in the dispatcher:

    • New "Data visualization / data science" bullet in the "What This Agent Does" routing list
    • New "Generate Charts and Trend Visualizations (Data Science)" entry in "Available Prompts" with load-when guidance, direct URL to data-science.md, and five representative use cases covering charts, trend plots, dashboards, and Python-based metric visualization

⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Copilot AI changed the title [WIP] Add data visualization instructions and agentic workflows Add data-science.md prompt for chart/trend workflow generation Mar 20, 2026
Copilot AI requested a review from pelikhan March 20, 2026 21:57
@@ -0,0 +1,210 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot this file should be self container, import the content needed from shared/*

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added imports: frontmatter in 780f8b1 to pull in shared/python-dataviz.md, shared/charts-with-trending.md, and shared/trending-charts-simple.md — the file is now self-contained.

---
description: Guidelines for creating agentic workflows that generate charts and trend visualizations using Python scientific computing libraries with persistent historical data.
imports:
- shared/python-dataviz.md
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot do not use imports: instead distilliate, inline and summary the content of these shared workflows into a prompt that can help regenerator similar workflows that need data science charts. The goal is a self container data-science.md file with no imports and no references to shared/* files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 35c50df. Removed imports: entirely and inlined the essential content from all three shared files directly into data-science.md — environment setup (pip install, directory structure, artifact uploads), cache-memory organization, JSON Lines patterns (append, load, moving average, 90-day retention), chart quality settings, and the report template. No shared/* references remain anywhere in the file.

…, fully self-contained

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/ef56ef3f-3d14-48e2-9091-d0d4985f238a
@pelikhan
Copy link
Contributor

@copilot optimize prompt

Copy link
Contributor Author

Copilot AI commented Mar 20, 2026

@copilot optimize prompt

Done in 56c7835. Reduced from 294 → 147 lines by: collapsing the 5-phase section into a single numbered list, merging four separate trending snippets into one cohesive load/append/prune example, combining the chart quality block with the moving-average chart snippet, tightening the report template, and removing the "Key Reminders" section (now redundant with the inline bold warnings).

@pelikhan
Copy link
Contributor

@copilot make sure this prompt is referenced in the agentic-workflows.agent.md file and advertise for data viz / data sciencew tasks

Copy link
Contributor Author

Copilot AI commented Mar 20, 2026

@copilot make sure this prompt is referenced in the agentic-workflows.agent.md file and advertise for data viz / data sciencew tasks

Done in 8e971c5. Added to agentic-workflows.agent.md:

  • A routing bullet in "What This Agent Does" pointing to the data-science prompt for charts, trend plots, dashboards, and Python-based metric visualization
  • A full "Generate Charts and Trend Visualizations (Data Science)" entry in the "Available Prompts" section with load-when guidance and 5 representative use cases

```markdown
## Visualization Results

![Chart description](https://raw.githubusercontent.com/owner/repo/assets/workflow-name/trend.png)
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot use github url with ?raw=true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 067c529. Updated the report template image URL to use the ?raw=true GitHub URL format: https://github.com/OWNER/REPO/blob/assets/WORKFLOW/chart.png?raw=true.

Comment on lines +13 to +17
description: [what the workflow visualizes]
on:
schedule:
- cron: "0 9 * * 1" # weekly; adjust as needed
workflow_dispatch:
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot remove these lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed in 067c529.

Comment on lines +18 to +22
permissions:
contents: read
actions: read
engine: copilot
tools:
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot remove, not data science specific

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed in 067c529 (permissions:, engine:, and tools: / cache-memory: / bash: all stripped from the template).

Comment on lines +24 to +26
key: trending-${{ github.workflow }}-${{ github.run_id }}
bash:
- "*"
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot not data-science specific, remove

Comment on lines +44 to +51
- name: upload charts
if: always()
uses: actions/upload-artifact@v7.0.0
with:
name: charts
path: /tmp/gh-aw/python/charts/*.png
if-no-files-found: warn
retention-days: 30
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot remove this entry

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed in 067c529.

…n report template

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/d968a547-7632-453c-a0ac-0aea7e6add98
Copilot AI requested a review from pelikhan March 20, 2026 22:42
@pelikhan pelikhan closed this Mar 20, 2026
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.

2 participants