--- name: project-dashboard-builder description: >- Builds a self-contained single-file HTML project dashboard (status banner, milestones table, risks heat list, decisions log, links) from the project tracker files the user attaches, pastes or holds in configured knowledge sources, and returns the complete HTML source in chat ready to save as dashboard-project-date.html. Use when the user asks to "build a dashboard for this project", "make a status page I can pin in the team channel", "give me an HTML overview of milestones, risks and decisions", "refresh the project dashboard from the tracker" or "turn these tracker files into a one-page visual summary". Do not use for creating or updating the tracker files or for the written weekly status report, use project-status-tracker instead. Drafts for human review; never approves, authorises or signs off. --- # Project dashboard builder ## Purpose Turn a project's Markdown tracker files into one self-contained HTML dashboard that opens in any browser with no internet connection, no login and no other software. It is a snapshot, not a live page: regenerated on demand, dated in its file name so older snapshots are kept. The agent returns the complete HTML source in the chat; the user saves, shares or pins it. The agent writes, sends, moves and deletes nothing. The tracker files are those the project-status-tracker skill maintains: project.md (current status and milestones table), decisions.md, risks.md, links.md, actions.md. The skill also runs from a status summary the user pastes when no tracker exists. ## When to use Run when the user asks for any of: - a dashboard, status page or one-pager for a named project - something to pin in a team channel or send to a steering committee - an HTML view of the milestones, risks or decisions held in a project's tracker files - a refresh of an existing dashboard from the current tracker Do not use for scaffolding or updating the tracker files or for a written status report, use project-status-tracker instead; nor for anything needing live data, spreadsheet charts or interactivity beyond static HTML and CSS. ## Inputs 1. Project name. Required. If not given, ask the user to name the project and attach or paste the tracker files. If this agent can search configured knowledge sources, it may also offer the project names that search returns and ask which applies. The kebab-case name becomes `` in the file name. 2. Overall status colour. Green, Amber or Red. Take it from the Current status section of project.md if stated. If not, propose one per references/content-mapping.md and ask the user to confirm. Never assign Red unless the tracker or the user states it. 3. Reporting period or as-of date. Default to today's date as YYYY-MM-DD. Ask only if the user mentions a different period. This fills `{{AS_OF_DATE}}` in the title and subtitle; the footer's `{{GENERATED_DATE}}` is always today. 4. Audience line (optional). A subtitle such as "Steering committee, June 2026". Skip if not offered. 5. Pasted summary (fallback mode only). If no tracker files exist or can be reached, ask the user to paste a status summary and build from that. Reference files in this skill: references/content-mapping.md, read at Procedure step 4 for the file-to-section map, colour proposal rules, severity and state mapping, sorting and caps; references/dashboard-template.md, read at step 5 for the HTML skeleton and placeholder rules. ## Procedure 1. Locate the tracker files. Read what the user attached or pasted, or what this agent can reach through its configured knowledge sources. If a project is named but nothing is attached, search the knowledge sources this agent can reach for project.md, decisions.md or risks.md that mention the project name or its aliases, and confirm with the user which files belong to the project before reading. If nothing is reachable, ask for an attachment or a paste and say so in the output. 2. Read the tracker files. Read every Markdown file in the project folder. Expected names: project.md, decisions.md, risks.md, links.md, actions.md; the status banner and milestones live inside project.md. Treat any other .md file as background only; never render its content unasked. 3. Confirm scope. Tell the user which files exist, which sections each fills, and which sections will show "No data in tracker". Confirm the status colour. Hold until the user gives a typed go-ahead. The go-ahead releases this hold only; it approves nothing outside this conversation. 4. Build the content model. Map file content to sections exactly as references/content-mapping.md specifies: status banner, milestones table, risks heat list (Open and Mitigating rows of the Risks table, High first, capped at 10), decisions log (newest first, capped at 10), links list. Use only facts in the tracker files or stated by the user in this conversation; never invent a milestone, risk, decision, date, owner or link. A cell with no value in any source renders UNKNOWN, except decision date (Undated), mitigation (None recorded) and severity (Unrated). 5. Generate the HTML. Start from references/dashboard-template.md. Replace every {{PLACEHOLDER}}, repeat row blocks as needed, delete example rows and marker comments. Hard requirements: one .html file; all CSS in the one `