Rubric self-check
Rubric self-check
Purpose
Turns your rubric and your own work (a PDF) into an Excel self-check sheet. Per item you enter the level you see and where the evidence is (page, figure). Formulas give the level used, expected points, total, %, and the criterion one level up.
The AI transcribes the rubric, builds the file, suggests evidence locations, and drafts "Fix" and "To do" lines. It never edits rubric text, never cites evidence missing from your work, and never presents expected points as a grade.
Input
- Required: the rubric text (items, max points, criterion and points per level). If missing, ask one thing: "Please send the rubric as a photo or text."
- Helpful: your PDF with page numbers, due date, assignment brief, past feedback.
- No points per level: ask once, else use 100/75/50/25 % of the max and title the sheet "provisional points".
- No PDF: evidence cells stay blank and score 0 until filled.
- If your school or instructor gave you a grading form, that form comes first; this sheet is a practice copy.
Output
1. `make_rubric.py` and `rubric_check.xlsx` (sheets `Round 1`, `Round 2`, `Rubric`).
2. In the chat, only "Points to check", 3–7 lines: expected total, items at 0 for lack of evidence, "unsure" items, the item with most to gain, vague criteria to ask about, Round 2 date.
3. If Python cannot run, give the script and commands, claim no workbook, and label points "hand-added".
Rules
1. Steps
1) Copy the rubric into `RUBRIC` word for word, original order and points.
2) Split each criterion into conditions; note the page and figure, table, or equation number for each.
3) Pick a level. Torn between two: confidence "unsure".
4) Fill in `ROUNDS`, run `python make_rubric.py`, read the summary row first. Max total not 100: recheck the transcription.
5) Write fixes, largest "Pts to gain" first.
6) Score again on `Round 2` three days before the due date. Keep `Round 1`.
2. Sheets and cells
- `Rubric`: one row per level; 5 items × 4 levels = 20 rows. Scoring sheets: one row per item.
- Blue on light yellow: you type. Green: pulled from `Rubric`. Black: formulas.
- Summary: total, %, items without evidence, unsure marks, gain from evidence alone, item with most to gain, max points check.
- Rows without evidence turn red and say "no evidence"; color is never the only signal.
- Print: A4 landscape, one page per sheet, footer "sheet · page / pages". Excel 2007 functions only.
3. Transcribing
- Paste exactly, typos included. A photo is checked line by line; unreadable words become `[check needed]`.
- Other level names (A–D): change `LEVELS`. Three levels: three (points, text) pairs per item.
- The script stops if an item's level count or top points do not match.
4. Evidence locations
- Page plus number: `p.4 Fig. 2`, `p.5 Table 3`, `p.9 Eq. (4)`, `p.2 Sec. 1.2`. Use the page numbers printed on the PDF you submit.
- Blank, or containing "whole" or "various": 0 points. If you cannot point to it, the grader will not find it.
- Locations the AI found are "suggested" until you confirm them. Without a PDF, none are invented.
5. Against optimism
- Torn between two levels: the lower. "Unsure" drops one level.
- "Excellent" needs evidence for every condition: "flow rate, temperature, and pressure" needs three.
- Write where it is, not what you meant.
- Never "you will get 80". Say "points backed by evidence: 80".
- Vague criteria ("sufficient") are not rewritten; they go to "Points to check".
6. When to score
- Round 1 seven days before the due date, Round 2 three days before (the sheet computes due − 3).
- After Round 2, no new analysis: only evidence, captions, axis units, citations.
7. Fix and to-do lines
- A fix names one place and one action. A to-do has a date and duration: `Dec 6 (Sun) 1 h`.
- Before → after
- "Improve results section" → "Build a literature-comparison table as Table 5 in Sec. 4.2"
- "Make figures cleaner" → "Add the unit (kg/h) to the y-axis label of Fig. 3"
- "Fix formatting" → "Dec 10 (Thu) 30 min: use one citation style, [number]"
8. The files
Both were run end to end on a hypothetical case: a hydrogen production design report rubric, 5 items × 4 levels, 100 points. Costs stay in KRW as hypothetical units. For another assignment, change `LEVELS`, `DUE`, `RUBRIC`, `ROUNDS`.
- `make_rubric.py`: `pip install openpyxl`, then `python make_rubric.py`.
- `verify.py`: `soffice --headless --convert-to xlsx --outdir recalc rubric_check.xlsx`, then `python verify.py recalc/rubric_check.xlsx` compares LibreOffice's results with Python's.
- This run: Round 1 = 40 (2 items without evidence, +30 from evidence alone), Round 2 = 80 (+40), both matching Python, 0 formula errors.
9. Final check
- Max total 100? Rubric text identical to the original?
- Blanks and "whole report" scored 0? "Unsure" one level down? Total by hand: 11 + 19 + 0 + 10 + 0 = 40?
- No `#N/A` or `#REF!`? One A4 page per sheet? Said whether you built the file or gave only the script?
Attachment 1 · make_rubric.py (Python)
```python
make_rubric.py — builds the rubric self-check workbook (rubric_check.xlsx). Run: python make_rubric.py
Paste the rubric into RUBRIC word for word. All points and totals are Excel formulas, never typed values.
import sys
from datetime import date
from openpyxl import Workbook
from openpyxl.formatting.rule import FormulaRule
from openpyxl.styles import Alignment, Border, Font, PatternFill, Side
from openpyxl.worksheet.datavalidation import DataValidation
LEVELS = ["Excellent", "Good", "Fair", "Poor"] # levels 4, 3, 2, 1 from the top
DUE = date(2026, 12, 11) # due date
1) Rubric text (hypothetical case): (item, max points, [(points, criterion) in LEVELS order])
RUBRIC = [
("Problem definition and design targets", 15, [
(15, "Design targets are given as numbers (production kg/day, purity %, target cost KRW/kg), with the reason for the targets and the constraints."),
(11, "Design targets are numeric, but the reason for the targets or the constraints are missing."),
(7, "Design targets are stated, but only some are numeric."),
(3, "Design targets are described in words only.")]),
("Process design and assumptions", 25, [
(25, "The flow diagram gives flow rate, temperature, and pressure for every stream, mass and energy balances close within 1 %, and every assumption is justified."),
(19, "Flow diagram and mass balance are present, but the energy balance or the justification of some assumptions is missing."),
(12, "A flow diagram is present, but balances cover only some streams."),
(5, "No flow diagram or balance calculation.")]),
("Results and verification", 25, [
(25, "Main results are compared with literature values or hand calculations, with the difference in %, and sensitivity to two or more key variables is analyzed."),
(19, "Results are compared and verified, but sensitivity covers only one variable."),
(12, "Results are given without verification."),
(5, "Results are described in words, with no table or figure.")]),
("Economic analysis", 20, [
(20, "LCOH (KRW/kg) is given with its formula, every cost assumption has a unit and a source, and LCOH is shown against electricity price."),
(15, "LCOH is calculated, but some assumptions lack a unit or a source."),
(10, "Costs are listed but not combined into an LCOH."),
(4, "No economic analysis.")]),
("Report format", 15, [
(15, "Every figure and table is numbered, captioned, and cited in the text, axis labels have units, and one citation style is used."),
(11, "Figures and tables are numbered and captioned, but axis units or the citation style are inconsistent."),
(7, "Half or more of the figures and tables lack a number or caption."),
(3, "Format requirements are mostly not followed.")]),
]
2) My scoring (hypothetical): sheet -> (date, per item (my level, confidence, evidence, fix, to do))
ROUNDS = {
"Round 1": (date(2026, 12, 4), [
("Good", "sure", "p.2 Sec. 1.2, Table 1", "Add the reason for the targets (campus hydrogen bus demand) to Sec. 1.2, 2nd sentence", "Dec 5 (Sat) 30 min"),
("Excellent", "unsure", "p.4 Fig. 2, p.5 Table 3", "Add an energy-balance error (%) row at the bottom of Table 3", "Dec 6 (Sun) 1 h"),
("Good", "sure", "", "Build a literature-comparison table as Table 5 in Sec. 4.2", "Dec 6 (Sun) 2 h"),
("Fair", "sure", "p.9 Table 6", "Combine the cost items into LCOH (KRW/kg) with Eq. (4)", "Dec 7 (Mon) 2 h"),
("Good", "sure", "whole report", "Check axis units of Fig. 1-7 page by page and note the pages", "Dec 7 (Mon) 1 h")]),
"Round 2": (date(2026, 12, 8), [
("Excellent", "sure", "p.2 Sec. 1.2, Table 1", "none", "-"),
("Excellent", "sure", "p.4 Fig. 2, p.5 Table 3 (balance error 0.6 %)", "none", "-"),
("Good", "sure", "p.7 Table 5, Fig. 4", "Add electrolyzer efficiency as a second sensitivity variable", "Dec 9 (Wed) 1 h"),
("Good", "unsure", "p.9 Eq. (4), Table 6", "Add a source next to the electricity price in Table 6", "Dec 9 (Wed) 30 min"),
("Good", "sure", "p.3-11 Fig. 1-7, p.12 references", "Use one citation style, [number]", "Dec 10 (Thu) 30 min")]),
}
N, K = len(LEVELS), len(RUBRIC) # number of levels, number of items
LAST = 3 + N * K # last row of the Rubric sheet
R0, R1 = 7, 6 + K # item rows on a scoring sheet
T = R1 + 1 # total row
ARR = "{" + ",".join(f'"{v}"' for v in reversed(LEVELS)) + "}" # {"Poor",...,"Excellent"} -> level 1...N
FONT, BLUE, GREEN = "Calibri", "0000FF", "008000" # blue = you type here, green = pulled from the Rubric sheet
LINE = Side(style="thin", color="BFBFBF")
FILL = {"head": "E7E6E6", "input": "FFF9E5", "none": "F8D7DA", "vague": "FCE4D6"}
def put(ws, ref, v, color="000000", bold=False, fill=None, fmt=None, size=10):
if ":" in ref:
ws.merge_cells(ref)
ref = ref.split(":")[0]
c = ws[ref]
c.value = v
c.font = Font(name=FONT, size=size, bold=bold, color=color)
c.alignment = Alignment(wrap_text=True, vertical="top")
c.border = Border(left=LINE, right=LINE, top=LINE, bottom=LINE)
if fill:
c.fill = PatternFill("solid", fgColor=FILL[fill])
if fmt:
c.number_format = fmt
def rb(col): # one column of the Rubric sheet (absolute reference)
return f"'Rubric'!${col}$4:${col}${LAST}"
def pts(r, lv): # points of this row's item at level lv
return f"SUMIFS({rb('F')},{rb('A')},$A{r},{rb('D')},{lv})"
def text(r, lv): # criterion of this row's item at level lv (verbatim), prefixed with [level name]
key = f'MATCH($A{r}&"-"&{lv},{rb("H")},0)'
return f'"["&INDEX({rb("E")},{key})&"] "&INDEX({rb("G")},{key})'
def setup(ws, area, widths): # column widths, print area, A4 landscape, fit to one page
for i, w in enumerate(widths):
ws.column_dimensions[chr(65 + i)].width = w
ws.print_area = area
ws.page_setup.orientation = "landscape"
ws.page_setup.paperSize = ws.PAPERSIZE_A4
ws.page_setup.fitToWidth = ws.page_setup.fitToHeight = 1
ws.sheet_properties.pageSetUpPr.fitToPage = True
ws.print_options.horizontalCentered = True
ws.oddFooter.center.text = "&A · &P / &N"
def build(out):
wb = Workbook()
wb.remove(wb.active)
head = ["No.", "Item", "Max", "My level", "Confidence", "Evidence (page, fig., table)", "Level used", "Expected pts",
"Criterion at level used (verbatim)", "Criterion one level up (verbatim)", "Pts to gain", "Fix (place + one action)", "To do before due"]
prev = None
for name, (day, rows) in ROUNDS.items():
assert len(rows) == K, f"{name}: item count differs from the rubric"
ws = wb.create_sheet(name)
setup(ws, f"A1:M{T}", [5, 15, 6, 9, 9, 17, 12, 8, 35, 35, 8, 26, 15])
put(ws, "A1:M1", f"Rubric self-check · {name} · hypothetical case: hydrogen production process design, final report", bold=True, size=13)
put(ws, "A2:B2", "Due", bold=True)
put(ws, "C2:D2", DUE, BLUE, fill="input", fmt="yyyy-mm-dd")
put(ws, "E2:F2", "This round", bold=True)
put(ws, "G2:H2", day, BLUE, fill="input", fmt="yyyy-mm-dd")
put(ws, "I2", "Round 2 suggested (3 days before due)", bold=True)
put(ws, "J2", "=C2-3", fmt="yyyy-mm-dd")
put(ws, "K2:M2", f"=\"vs {prev}: \"&TEXT(H{T}-'{prev}'!H{T},\"+0;-0;0\")&\" pts\"" if prev
else "Type only in blue cells. Green comes from the Rubric sheet; black cells are formulas.", bold=bool(prev))
for ref, label in (("A3:C3", "Expected total"), ("D3:E3", "Achieved"), ("F3", "Items without evidence"), ("G3:H3", "Unsure marks"),
("I3", "Gain from evidence alone"), ("J3", "Item with most to gain"), ("K3:M3", "Max points check")):
put(ws, ref, label, bold=True, fill="head")
put(ws, "A4:C4", f"=H{T}", bold=True, size=14, fmt='0" pts"')
put(ws, "D4:E4", f'=IF(C{T}=0,"",H{T}/C{T})', bold=True, size=14, fmt="0.0%")
put(ws, "F4", f"=COUNTIF(G{R0}:G{R1},0)", bold=True, size=14, fmt="0")
put(ws, "G4:H4", f'=COUNTIF(E{R0}:E{R1},"unsure")', bold=True, size=14, fmt="0")
put(ws, "I4", f"=SUMIF(G{R0}:G{R1},0,K{R0}:K{R1})", bold=True, size=14, fmt='+0" pts";-0" pts";0" pts"')
mx = f"MAX(K{R0}:K{R1})"
put(ws, "J4", f'=IF({mx}=0,"none",INDEX(B{R0}:B{R1},MATCH({mx},K{R0}:K{R1},0))&" +"&{mx}&" pts")', bold=True)
put(ws, "K4:M4", f'=IF(C{T}=100,"Max total 100: matches the rubric","Max total "&C{T}&": recheck the rubric text")', bold=True)
put(ws, "A5:M5", "Evidence blank, or containing 'whole' or 'various': 0 pts · confidence 'unsure': one level down · "
"expected points are an estimate, not a grade", color="595959")
for j, h in enumerate(head):
put(ws, f"{chr(65 + j)}6", h, bold=True, fill="head")
for i, (lv, conf, ev, fix, todo) in enumerate(rows):
r, src, g = R0 + i, 4 + i * N, f"$G{R0 + i}"
claim = f"MATCH($D{r},{ARR},0)" # my level -> 1...N
want = f'IF($E{r}="unsure",MAX(1,{claim}-1),{claim})' # unsure: one level down
ok = f'AND(LEN(TRIM($F{r}))>0,ISERROR(SEARCH("whole",$F{r})),ISERROR(SEARCH("various",$F{r})))'
cells = [
(i + 1, None, "0"), (f"='Rubric'!B{src}", GREEN, None), (f"='Rubric'!C{src}", GREEN, "0"),
(lv, BLUE, None), (conf, BLUE, None), (ev, BLUE, None),
(f'=IF($D{r}="","",IF({ok},{want},0))', None, '"Level "0;;"no evidence"'),
(f'=IF({g}="","",IF({g}=0,0,{pts(r, g)}))', None, "0"),
(f'=IF({g}="","",IF({g}=0,"No evidence location: 0 pts",{text(r, g)}))', None, None),
(f'=IF({g}="","",IF({g}=0,"First add the evidence location (page, figure no.)",'
f'IF({g}={N},"Already the top level",{text(r, f"({g}+1)")})))', None, None),
(f'=IF({g}="","",IF({g}=0,{pts(r, want)},IF({g}={N},0,{pts(r, f"({g}+1)")}-$H{r})))', None, "0"),
(fix, BLUE, None), (todo, BLUE, None)]
for j, (v, color, fmt) in enumerate(cells):
put(ws, f"{chr(65 + j)}{r}", v, color or "000000", fill="input" if color == BLUE else None, fmt=fmt)
ws.row_dimensions[r].height = 66
put(ws, f"A{T}:B{T}", "Total", bold=True, fill="head")
for col in "CDEFGHIJKLM":
put(ws, f"{col}{T}", f"=SUM({col}{R0}:{col}{R1})" if col in "CHK" else None, bold=True, fill="head", fmt="0")
red = dict(fill=PatternFill("solid", fgColor=FILL["none"]), font=Font(color="9C0006", bold=True))
ws.conditional_formatting.add(f"A{R0}:M{R1}", FormulaRule(formula=[f"AND(ISNUMBER($G{R0}),$G{R0}=0)"], **red))
ws.conditional_formatting.add(f"E{R0}:E{R1}", FormulaRule(
formula=[f'$E{R0}="unsure"'], fill=PatternFill("solid", fgColor=FILL["vague"])))
ws.conditional_formatting.add("F4", FormulaRule(formula=["$F$4>0"], **red))
for col, opts in (("D", ",".join(LEVELS)), ("E", "sure,unsure")):
dv = DataValidation(type="list", formula1=f'"{opts}"', allow_blank=True)
ws.add_data_validation(dv)
dv.add(f"{col}{R0}:{col}{R1}")
ws.freeze_panes = f"C{R0}"
prev = name
rs = wb.create_sheet("Rubric")
setup(rs, f"A1:H{LAST}", [5, 22, 6, 6, 9, 6, 90, 7])
put(rs, "A1:H1", "Rubric, verbatim: paste the text you received as is. Do not edit or shorten it (hypothetical case)", bold=True, size=13)
put(rs, "A2:H2", "One row per level. The scoring sheets use the key (a formula) to look up criteria and points.", color="595959")
for j, h in enumerate(["No.", "Item", "Max", "Level", "Name", "Pts", "Criterion (verbatim)", "Key"]):
put(rs, f"{chr(65 + j)}3", h, bold=True, fill="head")
for n, (item, full, levels) in enumerate(RUBRIC, 1):
assert len(levels) == N and levels[0][0] == full, f"{item}: level count or top points differ from the max"
for k, (p, sentence) in enumerate(levels):
r = 4 + (n - 1) * N + k
for j, v in enumerate([n, item, full, N - k, LEVELS[k], p, sentence]):
put(rs, f"{chr(65 + j)}{r}", v, BLUE, fill="input")
put(rs, f"H{r}", f'=A{r}&"-"&D{r}')
rs.row_dimensions[r].height = 30
wb.save(out)
print("saved", out, "| sheets:", ", ".join(wb.sheetnames))
if __name__ == "__main__":
build(sys.argv[1] if len(sys.argv) > 1 else "rubric_check.xlsx")
```
Attachment 2 · verify.py (Python)
```python
verify.py — reads rubric_check.xlsx after LibreOffice recalculated it and compares it with Python's own calculation.
python verify.py out/recalc/rubric_check.xlsx
import sys
from openpyxl import load_workbook
from make_rubric import LEVELS, N, R0, ROUNDS, RUBRIC, T
wb = load_workbook(sys.argv[1], data_only=True)
errors = [f"{ws.title}!{c.coordinate}={c.value}" for ws in wb for row in ws.iter_rows() for c in row
if isinstance(c.value, str) and c.value.startswith(("#", "Err:"))]
assert not errors, f"formula errors: {errors}"
prev_total = None
for name, (day, rows) in ROUNDS.items():
ws = wb[name]
total = gain_if_evidence = 0
for i, (lv, conf, ev, fix, todo) in enumerate(rows):
r = R0 + i
claim = N - LEVELS.index(lv)
want = max(1, claim - 1) if conf == "unsure" else claim
ok = bool(ev.strip()) and "whole" not in ev.lower() and "various" not in ev.lower()
level = want if ok else 0
score = RUBRIC[i][2][N - level][0] if ok else 0
if not ok:
gain_if_evidence += RUBRIC[i][2][N - want][0]
got = (ws.cell(r, 7).value, ws.cell(r, 8).value)
assert got == (level, score), f"{name} item {i + 1}: sheet {got} != Python {(level, score)}"
total += score
full = sum(x[1] for x in RUBRIC)
assert ws.cell(T, 8).value == total and ws.cell(T, 3).value == full, f"{name}: totals differ"
assert abs(ws["D4"].value - total / full) < 1e-9 and ws["I4"].value == gain_if_evidence
print(f"{name}: total {total}/{full}, {total / full:.1%}, items without evidence {ws['F4'].value}, "
f"gain from evidence alone +{gain_if_evidence}, most to gain: {ws['J4'].value}" + (f", {ws['K2'].value}" if prev_total is not None else ""))
prev_total = total
print("verify OK: sheet formula values = Python calculation, 0 formula errors")
```
Connect ChatGPT or Claude and use this prompt now · More prompts