dashboard-widget
Skill by postmill-ai
Guides developers through adding a new widget, card or metric tile to the Postmill /dashboard page. It covers the backend endpoint, the SWR hook, the widget component and the SectionCard wrapper.
Install dashboard-widget
Built from the published package, never by AI.
git clone --depth 1 https://github.com/postmill-ai/postmill-app /tmp/postmill-app && mkdir -p ~/.claude/skills && cp -r /tmp/postmill-app/agents/skills/dashboard-widget ~/.claude/skills/dashboard-widgetRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/postmill-ai/postmill-app /tmp/postmill-app && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/postmill-app/agents/skills/dashboard-widget ~/.gemini/antigravity-cli/skills/dashboard-widgetAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a step-by-step procedure for adding a new widget, card or metric tile to the /dashboard page of the Postmill codebase. It covers the backend aggregation endpoint in the dashboard controller and service, a SWR data hook, the widget component, and the SectionCard shell that wraps it. It also covers registering the section so users can show or hide it.
The procedure starts by checking whether the data already exists behind a dashboard endpoint. It then lists the required hook spec, the stable SectionCard id, the permission match between frontend and backend, and the verify commands using vitest and eslint. It is aimed at developers working on the Postmill frontend and backend who need to extend the dashboard.
Written from the project's SKILL.md and checked against it.
What it can do
- Data source checkChecks whether the data already exists behind a /dashboard endpoint before adding one.
- Backend endpointAdds a GET route in the dashboard controller with aggregation logic in DashboardService.
- SWR hookCreates a per-resource data hook that fetches from the dashboard endpoint with SWR.
- Hook specAdds a colocated spec that tests SWR options, loading state, success and error handling.
- Widget componentCreates the widget with loading and empty states using the analytics kit components.
- SectionCard wrapWraps the widget in SectionCard with a stable id, title and permission.
- Section registrationAdds the section to DASHBOARD_SECTIONS so users can toggle it in the Customize popover.
- Grid placementPlaces the card in the dashboard grid with column span and order classes.
What you need
- Access to the Postmill repository
- pnpm
- Redis, used by the dashboard service for caching
Try asking
- Add a new metric tile to the /dashboard page showing weekly active users.
- Create a dashboard widget that fetches data from a new /dashboard/usage endpoint.
- Wrap my new dashboard card in SectionCard and register it in DASHBOARD_SECTIONS.
Good to know
- Written for the Postmill codebase and its file layout, not a general dashboard tool.
- Frontend permission gating is UX only; the backend OrgRbacGuard is the real access check.
- Hook specs are required, and new hooks without one fail review.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agents/skills/dashboard-widget/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to dashboard-widget
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
dashboard-widget: common questions
Where does dashboard aggregation logic go in Postmill?
The source says all aggregation logic belongs in libraries/nestjs-libraries/src/dashboard/dashboard.service.ts, and the controller should only validate and delegate.
Why must the SectionCard id stay stable?
The source says the id keys data-section-id and the user's hide/show preferences in localStorage, so renaming it breaks them.
How do I verify a new dashboard widget?
The source lists vitest runs for the frontend and the backend dashboard spec, an eslint run on the dashboard folder, and a manual check of /dashboard on port 4200.
How do I install dashboard-widget?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dashboard-widget free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is dashboard-widget safe to use?
It scores 70 of 100. Grades: maintenance A, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to dashboard-widget?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
