You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(workflows): enhance comment generation in code implementation
- Extract approach from code using docstrings and comments
- Include key imports in the generated comment
- Limit approach bullet points to a maximum of 6
- Update workflow documentation for parallel code generation
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
This file provides guidance to GitHub Copilot when working with code in this repository.
4
4
5
+
## Important Rules
6
+
7
+
-**No Co-authored-by in commit messages** - Never add `Co-authored-by:` lines to commit messages. Keep commit messages clean without AI attribution footers.
8
+
5
9
## Project Overview
6
10
7
11
**pyplots** is an AI-powered platform for Python data visualization that automatically discovers, generates, tests, and maintains plotting examples. The platform is specification-driven: every plot starts as a library-agnostic Markdown spec, then AI generates implementations for all supported libraries.
# 2. Extract structural comments as approach steps
225
+
for line in code.split('\n'):
226
+
line = line.strip()
227
+
# Look for section comments like "# Create figure", "# Plot data"
228
+
if line.startswith('# ') and not line.startswith('# Input') and not line.startswith('# Sample'):
229
+
comment = line[2:].strip()
230
+
if comment and len(comment) > 3 and comment[0].isupper():
231
+
approach_lines.append(f"- {comment}")
232
+
233
+
# 3. Extract key imports
234
+
imports = []
235
+
for line in code.split('\n'):
236
+
if line.startswith('import ') or line.startswith('from '):
237
+
if 'matplotlib' in line or 'seaborn' in line or 'plotly' in line or 'bokeh' in line or 'altair' in line or 'plotnine' in line or 'pygal' in line or 'highcharts' in line:
Copy file name to clipboardExpand all lines: CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
6
6
7
7
-**Do NOT commit or push in interactive sessions** - When working with a user interactively, never run `git commit` or `git push` automatically. Always let the user review changes and commit/push manually.
8
8
-**GitHub Actions workflows ARE allowed to commit/push** - When running as part of `spec-to-code.yml` or other automated workflows, creating branches, commits, and PRs is expected and required.
9
+
-**No Co-authored-by in commit messages** - Never add `Co-authored-by:` lines to commit messages. Keep commit messages clean without AI attribution footers.
**Issue-based workflow**: GitHub Issues as state machine for plot lifecycle. All quality feedback documented as bot
68
-
comments - no clutter in repo.
67
+
**Issue-based workflow**: GitHub Issues as state machine for plot lifecycle. Each plot request spawns **8 parallel sub-issues** (one per library) for independent tracking.
See [docs/architecture/](docs/architecture/) for details.
74
73
@@ -139,8 +138,7 @@ We welcome contributions! **All code is AI-generated** - you propose ideas, AI i
139
138
140
139
**The workflow**:
141
140
142
-
- You create Issue with plot idea → AI generates spec → AI generates code for all libraries → Multi-LLM quality check →
143
-
Deployed
141
+
- You create Issue with plot idea → AI generates spec → **8 parallel sub-issues** spawn (one per library) → Each library generates independently → Multi-LLM quality check per library → Merged & Deployed
144
142
145
143
**Important**: Don't submit code directly! If a plot has quality issues, it means the spec needs improvement, not the
0 commit comments