dashboard¶
paper-draftingDashboard¶
Generate or refresh project_dashboard.html — a single scrollable HTML page with everything about the project.
Input: $ARGUMENTS — optional subcommand.
Subcommands¶
/dashboard or /dashboard refresh — Rebuild from current state¶
Scan the project and regenerate all sections of project_dashboard.html:
- Scan data:
find data/ -type f— count files, sizes, categories. Classify each asdownloadedormanual download. - Scan scripts:
find scripts/ -type f -name "*.R" -o -name "*.py" -o -name "*.jl"— list with status. - Scan quality reports:
find quality_reports/ -type f— timeline entries. - Scan plans:
find quality_reports/plans/ -type f— active plans with status from frontmatter. - Read CLAUDE.md: Extract project name, target journal, paper status.
- Read git log: Recent commits for history section.
- Preserve changelog: Never overwrite existing changelog entries — only append.
- Preserve research content: Overview (question, causal chain, contributions, risks), identification strategy, literature — these are authored content. Refresh operational sections only unless
createmode.
Output: Write/update project_dashboard.html in project root.
/dashboard create — Generate from scratch¶
Full generation including research design sections. Use after /discover and /strategize have produced outputs. Prompts user for:
- Research question (one sentence)
- Causal chain (nodes)
- Contributions (2-4 bullets)
- Risk matrix entries
Then generates all 10 sections with the operational ones populated from disk scan.
/dashboard add-changelog TITLE — Append a changelog entry¶
Append a new entry to the changelog section with today's date. Prompts for: - Tag type (data/design/code/paper/infra/review) - Bullet points describing what happened
Section Structure (10 sections, this order)¶
| # | Section | Nav ID | Content |
|---|---|---|---|
| 1 | Overview | #overview |
Question, causal chain, contributions, risk matrix |
| 2 | Data | #data |
Role inventory + file-level tables with sizes |
| 3 | Identification | #identification |
IV/design, specifications, threats, fallback |
| 4 | Literature | #literature |
Positioning, proximity, gaps |
| 5 | Code | #code |
Scripts list with run status |
| 6 | Quality | #quality |
Component scores and gate status |
| 7 | History | #history |
Timeline of quality reports |
| 8 | Plans | #plans |
Active plans (DRAFT/APPROVED/COMPLETED) |
| 9 | Paper | #paper |
Figures/tables plan, word allocation |
| 10 | Changelog | #changelog |
Reverse-chronological milestone log |
Data Section Order¶
File-level detail sections must follow the same order as the master inventory table. The master inventory defines the canonical order by role:
- TREATMENT — the shock/exposure variable
- IV components — instruments (soil, wind, etc.)
- OUTCOME 1 — primary outcome
- OUTCOME 2 — secondary outcome
- MECHANISM — intermediate channel variables
- CROSSWALK — boundary harmonization files
- APPENDIX — supplementary/heterogeneity data
When generating or refreshing the data section, always emit file-level subsections in this order. The sub-nav links must match.
Data Status Labels¶
Only two statuses. No ambiguity.
| Label | Pill class | Meaning |
|---|---|---|
downloaded |
pill-pass |
File is on disk in data/raw/ |
manual download |
pill-warn |
Requires registration or browser interaction — flag for collaborators |
Design System¶
Use the clo-author HTML design system:
- CSS variables for colors (supports dark mode via prefers-color-scheme + manual toggle)
- Sticky main nav at top with smooth scroll
- Section sub-navs where data has many subsections
- Pills for status badges
- Cards for key items (bordered-left with accent color)
- report-table for structured data
- Monospace for file paths and dates
- Serif for section titles
- Footer: "Generated YYYY-MM-DD by clo-author"
Rules¶
- One file — always
project_dashboard.html, never split - Refresh is safe — operational sections (data, code, quality, history) are rebuilt from disk. Research sections (overview, identification, literature) are preserved unless
createmode. - Changelog is append-only — never delete or rewrite existing entries
- Run after milestones — data downloads, completed analyses, paper submissions. Or anytime with
/dashboard refresh. - Collaborator-friendly — use clear language, link to download instructions for
manual downloaditems