/wakita-toolkit:frontend-dashboard-layout-specfrom wakita-toolkit
【前端看板/运维页规范】看板页面布局 + 信息架构。布局:全屏填充 -> flex 比例分割 -> min-size 保底 -> overflow 滚动兜底;信息架构:观察窗口优先于统计报表、指标用判据计数、自检告警先证伪。当编写或重构 Dashboard/Monitor/Analysis/调度页时使用。触发词:看板布局、dashboard、监控页、调度页、观察窗口、统计报表、指标口径、进度分母、自检告警、全屏布局、flex 布局。
Ships in wakita-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
看板类页面必须按以下优先级布局:
布局之前先定页面回答问题的方式。运维/调度/监测类页面的价值在定位,不在汇报。
自检灯条是「某一次读数的快照」,上线前必须用真实生产数据推演:
┌──────────────────────────────────────────┐
│ top-section(flex: 0 0 auto,内容高度) │
├──────────────────────────────────────────┤
│ │
│ charts-section(flex: 1,撑满剩余) │
│ min-height: 400px │
│ min-width: 680px │
│ │
└──────────────────────────────────────────┘
.page-container {
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
min-height: 0;
min-width: 0;
}
.top-section { flex: 0 0 auto; }
.charts-section { flex: 1; min-height: 400px; min-width: 680px; }
若顶部有跑马灯/实时播报,也设为 flex: 0 0 auto 放在 top-section 和 charts-section 之间。
侧边栏内多张卡片用 flex: 1 等分高度:
.side-panel {
display: flex;
flex-direction: column;
gap: 12px;
min-height: 0;
min-width: 320px;
}
.side-card {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
padding: 16px;
}
卡片内部横排布局(饼图左 + 图例/数值右):
.card-body {
flex: 1;
min-height: 0;
display: flex;
align-items: center;
gap: 12px;
}
.chart-area {
flex-shrink: 0;
min-height: 100px;
min-width: 100px;
}
.legend-area {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: 4px;
}
内容区同时处理水平和垂直溢出。注意页面容器不要设 overflow: hidden,否则子内容超出时被裁剪而非冒泡到外层滚动容器:
.content-wrapper {
flex: 1;
overflow: auto;
padding: 16px 24px;
display: flex;
flex-direction: column;
min-height: 0;
min-width: 0;
}
flex 比例分空间时,无约束的组件会被极大拉伸变形。科学的做法是三层分离:
到达 max 后停止等比缩放,多余空间变成留白,而不是继续放大让组件失真。
完整的形状保形三层约束代码示例、按组件类型速查表、4K 下 max-size 处理方式见 references/layout-params.md。
<template>
<div class="page-container">
<section class="top-section"><!-- 指标卡/筛选栏 --></section>
<section class="charts-section"><!-- 图表区 --></section>
</div>
</template>
<style scoped>
.page-container {
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
min-height: 0;
min-width: 0;
overflow: auto;
}
.top-section { flex: 0 0 auto; }
.charts-section { flex: 1; min-height: 400px; min-width: 680px; }
</style>
详细的 720P 最小尺寸计算基准(含 Dashboard 骨架参考值表与高度参考计算)、形状保形策略三层约束的完整代码示例与按组件类型速查表、4K 下 max-size 处理方式见 references/layout-params.md。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aaaakita/wakita-plugins --plugin wakita-toolkit39 skills in this plugin
/ai-code-failure-modesAI 生成代码特有的失败模式审查——查 stub/假数据冒充核心逻辑、只覆盖快乐路径、调用不存在的 API 或依赖包、 配置变更没验证、测试只断言当前实现、静默兜底掩盖失败。当用户说“AI 写的代码看着能跑但心里没底” “是不是 stub 冒充”“测试全过但功能没做”“AI 加了个不存在的包”“配置改了没生效”时使用。 也作为 clean-home 清理房间的第 4 步被加载。只审 AI 特有失败模式,不重复测试规范与静默失败审计。
/brainstorm创作性头脑风暴——在动手写代码前,和 AI 一起发散思考、对比方案、画架构图。 不是工作流程,是一种思考姿态。不写业务代码,只做设计讨论和方案探索。 触发词:头脑风暴、帮我想想、设计一下、分析方案、对比方案、架构怎么设计、 技术选型、brainstorm、design discussion、想清楚再动手、先别写代码、 先想想、方案对比、tradeoff、利弊分析。
/canvas-interaction-spaceCanvas/WebGL 与 DOM 叠加层错位、指针吸附/命中手感差、缩放后交互容差变化时的排查与设计规范。 核心:屏幕空间与模型空间是两套坐标系。先验证 devicePixelRatio 与 canvas CSS 尺寸,再怀疑锚点; 交互容差按屏幕像素定义再换算成模型单位;坐标转换只保留一个来源。 触发词:Canvas 错位、CSS2D 标签飘移、叠加层偏移、WebGL 坐标、devicePixelRatio、dpr、 setSize、updateStyle、吸附不灵、命中半径、点击选不中、缩放后手感、屏幕像素、模型单位、 screen space、model space、overlay alignment。
Other plugins' skills for the same job