Add data-science.md prompt for chart/trend workflow generation#22032
Add data-science.md prompt for chart/trend workflow generation#22032
Conversation
…cher Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/gh-aw/sessions/41a439a6-1ec6-4873-a05a-f208b0b23e6f
| @@ -0,0 +1,210 @@ | |||
| --- | |||
There was a problem hiding this comment.
@copilot this file should be self container, import the content needed from shared/*
There was a problem hiding this comment.
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.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/gh-aw/sessions/5a732eef-0ee7-4160-b82d-d14d7d8a64fd
.github/aw/data-science.md
Outdated
| --- | ||
| 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 |
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
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
|
@copilot optimize prompt |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/gh-aw/sessions/5198ff9c-8642-46a2-ae6b-2d9c299ae4a3
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). |
|
@copilot make sure this prompt is referenced in the agentic-workflows.agent.md file and advertise for data viz / data sciencew tasks |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/gh-aw/sessions/692b0ef5-d578-4a70-abbc-293f43df9399
Done in 8e971c5. Added to
|
.github/aw/data-science.md
Outdated
| ```markdown | ||
| ## Visualization Results | ||
|
|
||
|  |
There was a problem hiding this comment.
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.
.github/aw/data-science.md
Outdated
| description: [what the workflow visualizes] | ||
| on: | ||
| schedule: | ||
| - cron: "0 9 * * 1" # weekly; adjust as needed | ||
| workflow_dispatch: |
.github/aw/data-science.md
Outdated
| permissions: | ||
| contents: read | ||
| actions: read | ||
| engine: copilot | ||
| tools: |
.github/aw/data-science.md
Outdated
| key: trending-${{ github.workflow }}-${{ github.run_id }} | ||
| bash: | ||
| - "*" |
.github/aw/data-science.md
Outdated
| - 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 |
…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
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, andshared/trending-charts-simple.mdis distilled and inlined directly — noimports:and no references to shared files.Changes
.github/aw/data-science.md— new fully self-contained prompt covering:network,safe-outputs, and asetupstep (pip install, directory creation) — generic fields (description,on,permissions,engine,tools,upload-artifactstep) are intentionally omitted?raw=trueGitHub URL format for embedded chart images.github/agents/agentic-workflows.agent.md— registersdata-science.mdin the dispatcher: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.