Code submission README
Code submission README
Purpose
This prompt writes `README.md`, `requirements.txt`, and `.gitignore` for a course assignment or team project repository. Someone opening the repo for the first time (a TA, the instructor, a new teammate) should get from install to a reproduced result with the README alone. It covers a one-line description, commands that run when pasted, the environments you tested, the folder layout, data sources and terms of use, how to reproduce the results, who did what, and known issues.
The AI runs the commands for real, pins versions, sets the minimum Python version, captures the app screen, and checks every number in the README against actual output. It never calls a command "working" without running it. It does not invent data sources, licenses, or teammate names; those stay `[check needed]` or `[name]`. It does not describe features the code does not have.
Input
- Required: the repository files (a zip or a folder listing) and how you run it. If either is missing, ask one thing only: "Please send the repository folder and the command you normally use to run it."
- Helpful: the assignment brief (required README sections, how to submit), teammates and their parts, where the data came from and its terms, the OS and Python version the team uses, a screenshot or numbers from a run, the commit log.
- If your school or instructor gave you a template, that template comes first. Follow its section order and fill only the missing parts with the rules below.
- Write teammate names and student numbers exactly as given. Do not edit sentences the user marked "keep as is" (course title, team name).
Output
1. `README.md`, `requirements.txt`, `.gitignore`. If code can run here, also a real screenshot `docs/screenshot.png` and a record of what was run.
2. In the chat, only a "Please check" list of 3–7 lines: commands actually run and their results, OS and versions not tested, the minimum Python and why, sources or licenses left as `[check needed]`, and whether the README numbers match the run.
3. If this environment cannot run code, set every result cell in the check table to "Not tested" and leave the image slot empty. Never make up a screenshot or an output value.
Rules
1. Steps
1) Copy the repo into a new folder as if freshly cloned. Leave out the virtual environment, caches, and raw data.
2) Run the README commands top to bottom exactly as written. Note the last output line and exit code of each.
3) Take pinned versions from what is actually installed (`pip freeze`). Set the minimum Python from each package's Requires-Python.
4) Run the install once on the minimum version and once on the version below it. If you cannot, write "Not tested".
5) For an app, capture the screen to `docs/screenshot.png`.
6) Write the README, then compare every number in it with the run output.
7) Preview it on GitHub or as pandoc HTML. Tables, code blocks, and images must not break. Then run section 9.
2. First screen (top 20 lines)
- The line after the title says in one sentence what the project does, ending with what it shows: "A Streamlit dashboard that … and shows …". One more sentence for course, term, and team.
- Then one screenshot, captured 1280 px wide. The alt text says what is on screen.
- Then Quick start. The install command must be visible within one scroll.
- Link images with repo-relative paths (`docs/screenshot.png`). GitHub paths are case-sensitive: save `Screenshot.PNG` on Windows, link `screenshot.png`, and the image shows on your PC but breaks on GitHub.
- Keep each PNG under 1 MB. Use only `#` (title) and `##` (sections). No badges, no emoji.
3. Commands
- One code block that runs top to bottom when pasted. No prompt symbols (`$`, `>`); they get copied along.
- Lines that differ by OS get an end-of-line comment: `# Windows PowerShell: .venv\Scripts\Activate.ps1`.
- Give the address and port. Streamlit's default is http://localhost:8501.
- Say which folder to run from. Relative paths like `data/sample/…` resolve from the current folder, so `streamlit run campus-pv-dashboard/app.py` from the parent folder cannot find the data.
- Search the README and code for personal paths such as `C:\Users\…` or `/home/…`.
- Write tests as `python -m pytest -q`. Plain `pytest` may not find the package, because the repo folder is not on the import path.
- Minimum Python = the highest Requires-Python among the pinned packages. In this case it is 3.12, because of `numpy==2.5.5`.
4. Check table
- Columns: command · result · environment (OS, Python version, date).
- A result is one of three: "Works", "Fails: (one-line error)", "Not tested". Never write "should work" for something you did not run.
- If you changed a command to run it, say so. Example: added `--server.headless true` on a server with no display.
5. requirements.txt and .gitignore
- Pin with `==` only the packages the code imports directly. Do not paste the whole `pip freeze`; it mixes in OS-specific packages.
- First-line comment: date pinned, OS and Python tested, minimum Python and the reason. Test tools go under a `# tests` comment.
- `.gitignore` blocks the virtual env (`.venv/`), caches (`__pycache__/`, `.pytest_cache/`), raw data (`data/raw/`), secrets (`.env`, `.streamlit/secrets.toml`), and editor and OS files. After `git add -A`, check with `git status --short`.
- GitHub rejects a push with any file over 100 MB. Do not commit large data; say in the README how to get it.
6. Data, reproduction, team, known issues
- Data table: data · source · terms of use · in repo or not. Do not commit data someone gave you until you have confirmed you may share it.
- One line on CSV columns, units, time zone, and whether a timestamp marks the start or the end of its interval.
- Reproduction: seed, command, and a table of the numbers that should appear. Compute those numbers with code and compare them with the README.
- Team table: name · part · main files. It must agree with the commit log.
- Known issues: symptom · cause (as far as known) · workaround. End an untested workaround with "(not tested)".
7. Sentences (before → after)
- "This project is a web dashboard project for solar data visualization." → "A Streamlit dashboard that reads 15-minute rooftop PV output from three campus buildings and shows daily energy and capacity factor."
- "Install the requirements and run it." → one code block of five lines, from `python -m venv .venv` to `streamlit run app.py`, with the Windows command as a comment on the activate line.
- "The data was provided by the school." → "15-minute output (real): campus facilities office [check needed]. Permission to share publicly [check needed]. Not committed (`data/raw/`)."
- "Runs on Windows, Mac, and Linux." → "Tested on Ubuntu, Python 3.13.18. Windows and macOS not tested."
8. The three files
The three files below were checked end to end on a hypothetical case: a Renewable Energy course team project, "Campus PV Dashboard", with a hypothetical June 2025 sample of 15-minute output from three buildings. The data, buildings, capacities, and teammate names are all hypothetical. The files the README points to (`app.py`, `pvdash/`, `scripts/make_sample.py`, `tests/`) were also written and run with it; they are not printed here.
- Checked 2026-11-28. Python 3.13.18: the five Quick start lines, `python -m pytest -q` (3 passed), and the Streamlit screenshot. Python 3.12.3: install and tests pass. Python 3.11.18: install fails, no `numpy==2.5.5`. `git status` showed `.venv/`, `data/raw/`, and `.env` left out. The numbers in "Reproduce the results" matched the values computed by the code and the values on the page.
- The two warnings in section 3 were run too. Plain `pytest` stops with `ModuleNotFoundError: No module named 'pvdash'`. `streamlit run campus-pv-dashboard/app.py` from the parent folder shows `FileNotFoundError` on the page.
- The Windows PowerShell line and macOS were not run, and the README says so.
- The check ran Streamlit on port 8531 because other jobs share the server. The table in the README records that change.
- Code blocks inside the README use tildes (~~~) so they can sit inside this document. GitHub renders them the same as backtick fences.
9. Final check
- Do the top 20 lines hold the one-sentence description, the screenshot, and the install command?
- Were the README commands run top to bottom in a new folder? Does the check table separate what ran from what did not?
- Does the minimum Python match the Requires-Python of the pinned versions?
- Does `requirements.txt` pin with `==` only the packages the code uses directly?
- Is `git status` free of `.venv/`, raw data, and secrets?
- Is nothing invented in data sources or terms of use? Is every unknown cell `[check needed]`?
- Are the numbers and the screenshot in the README real run output? Did you say what you ran and what you only wrote?
Attachment 1 · README.md (Markdown)
```markdown
Campus PV Dashboard
A Streamlit dashboard that reads 15-minute rooftop PV output from three campus buildings and shows daily energy and capacity factor. Team 3 project for the Renewable Energy course, Fall 2026.

Quick start
Needs Python 3.12 or newer (`numpy==2.5.5` installs from 3.12 on). In the folder you cloned into, paste these lines top to bottom.
~~~bash
python -m venv .venv
source .venv/bin/activate # Windows PowerShell: .venv\Scripts\Activate.ps1
pip install -r requirements.txt
python scripts/make_sample.py # writes the hypothetical sample data
streamlit run app.py # then open http://localhost:8501
~~~
Run the tests with `python -m pytest -q`. Plain `pytest` may not find `pvdash`.
Tested on
| Command | Result | Environment |
| Quick start, all five lines | Works. Same screen as above | Ubuntu, Python 3.13.18, 2026-11-28. Server with no display, so added `--server.headless true --server.port 8531` |
| `python -m pytest -q` | Works. 3 passed | Same |
| Install and tests | Works. 3 passed | Python 3.12.3 |
| `pip install -r requirements.txt` | Fails: `No matching distribution found for numpy==2.5.5` | Python 3.11.18 |
| Windows PowerShell activate line | Not tested | — |
| macOS | Not tested | — |
Folder layout
~~~text
campus-pv-dashboard/
├── app.py Streamlit page
├── pvdash/
│ ├── load.py read CSV, check columns, negative output to 0
│ └── metrics.py daily energy (kWh), capacity factor (%)
├── scripts/make_sample.py writes the hypothetical sample (seed 20261128)
├── data/
│ ├── sample/ hypothetical sample: pv_sample_2025-06.csv, sites.csv
│ └── raw/ place for the real raw data, not committed (.gitignore)
├── tests/test_metrics.py 3 calculation tests
├── docs/screenshot.png the screenshot at the top of this README
├── requirements.txt pinned versions
└── .gitignore
~~~
Data
| Data | Source | Terms of use | In repo |
| 15-minute output, June 2025, 3 buildings | Hypothetical values from `scripts/make_sample.py` | Made by the team | `data/sample/` |
| Capacity per building (kWp) | Hypothetical: Library 120, Student Union 80, Research Hall 200 | Made by the team | `data/sample/sites.csv` |
| 15-minute output (real) | Campus facilities office [check needed] | Permission to share publicly [check needed] | No (`data/raw/`) |
CSV columns: `timestamp` (local time, UTC+9, start of the 15-minute interval), `site`, `power_kW`. No code license chosen yet [check needed]. The repo stays private until we choose one.
Reproduce the results
1. Run the first four Quick start lines. `make_sample.py` uses a fixed seed, so it writes the same files every time.
2. If the first screen of `streamlit run app.py` shows these numbers, you have reproduced it (checked 2026-11-28).
| Building | June energy | Capacity factor |
| Library | 13.02 MWh | 15.1 % |
| Student Union | 8.60 MWh | 14.9 % |
| Research Hall | 21.75 MWh | 15.1 % |
Capacity factor = energy ÷ (capacity × days with data × 24 h).
Team
| Name | Part | Main files |
| Alex Kim | Data loading, column and unit checks | `pvdash/load.py` |
| Jordan Lee | Energy and capacity factor, tests | `pvdash/metrics.py`, `tests/` |
| Sam Park | Dashboard page, sample data, README | `app.py`, `scripts/`, `README.md` |
Known issues
- Student Union has 6 empty values on 2025-06-12, 13:00–14:15 (a logger dropout built into the hypothetical sample). That day's energy is the sum without them, and a warning shows at the bottom of the page.
- Raw data timestamps may be local time or UTC [check needed]. For now they are read as local time.
- If PowerShell blocks activation with "running scripts is disabled on this system", run `Set-ExecutionPolicy -Scope CurrentUser RemoteSigned` once (not tested).
- `streamlit run campus-pv-dashboard/app.py` from the parent folder shows `FileNotFoundError`. Data paths are relative to the folder you run from, so run it inside `campus-pv-dashboard/`.
```
Attachment 2 · requirements.txt (pip)
```text
Pinned 2026-11-28. Install and run checked on Ubuntu, Python 3.13.18. Needs Python 3.12+ because of numpy 2.5.5
streamlit==1.67.0
pandas==3.1.1
numpy==2.5.5
tests
pytest==9.2.0
```
Attachment 3 · .gitignore (gitignore)
```gitignore
Virtual environment and caches
.venv/
__pycache__/
*.pyc
.pytest_cache/
.ipynb_checkpoints/
Raw data: not committed (source and terms in the README "Data" section)
data/raw/
*.parquet
Secrets: API keys, accounts
.env
.streamlit/secrets.toml
Editors and OS
.vscode/
.idea/
.DS_Store
Thumbs.db
```
Connect ChatGPT or Claude and use this prompt now · More prompts