一键导入
dashboard-styling
Guide for ReviewFlow dashboard styling conventions. Use when creating/modifying dashboard UI, optimizing styles, or resolving layout issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide for ReviewFlow dashboard styling conventions. Use when creating/modifying dashboard UI, optimizing styles, or resolving layout issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Follow-up review that never trusts a commit message — always re-reads the actual diff before resolving a thread. Cites a real source for new issues, matching review-advanced.
Rigorous sequential-audit code review with a dedicated security block and cited pedagogical lessons. Customize for your project.
Review de suivi qui ne fait jamais confiance à un message de commit — relit toujours le diff réel avant de résoudre un thread. Cite une source réelle pour les nouveaux problèmes, comme review-advanced.
Code review rigoureuse à audits séquentiels, avec bloc sécurité dédié et leçons pédagogiques sourcées. À personnaliser pour votre projet.
Complete review of a documentation-focused MR/PR with 5 sequential audits oriented for documentation projects (markdown-quality, link-validity, terminology, freshness, examples-validity). No code-architecture audits, no React patterns, no SOLID. An orchestrator runs each audit one by one. Generates an .md report and posts it directly on the MR/PR. Direct mode with sourced lessons.
Follow-up review to verify corrections on a MR. Sequential execution to avoid memory spikes. Checks blocking issues, detects new problems, and posts a concise report on GitLab.
| name | dashboard-styling |
| description | Guide for ReviewFlow dashboard styling conventions. Use when creating/modifying dashboard UI, optimizing styles, or resolving layout issues. |
Note: ReviewFlow does not use TailwindCSS or React. The dashboard is built with plain HTML, CSS custom properties, and vanilla JavaScript. This skill covers the styling conventions for the dashboard.
This skill activates for:
CSS Custom Properties → Semantic naming → Consistent spacing
Always use existing CSS custom properties (design tokens) before adding new values.
Tokens are defined as CSS custom properties in src/interface-adapters/views/dashboard/styles.css:
:root {
/* Backgrounds */
--nsc-bg-base: #0b1220;
--nsc-bg-elevated: #111a2b;
--nsc-bg-surface: #162235;
--nsc-bg-surface-strong: #1c2a40;
/* Borders */
--nsc-border-soft: rgba(163, 192, 224, 0.16);
--nsc-border-strong: rgba(163, 192, 224, 0.28);
/* Text */
--nsc-text-primary: #e8efff;
--nsc-text-secondary: #b2c1dd;
--nsc-text-muted: #8393b0;
/* Accent colors */
--nsc-focus: #7ad8ff;
--nsc-action: #60c7ff;
--nsc-warning: #f4bc71;
--nsc-success: #62d3a8;
--nsc-danger: #f07f88;
}
/* Use tokens */
background: var(--nsc-bg-surface);
color: var(--nsc-text-primary);
border: 1px solid var(--nsc-border-soft);
/* Avoid hardcoded values */
background: #162235;
color: #e8efff;
Use semantic, BEM-inspired class names:
/* Good: semantic and descriptive */
.review-card { }
.review-card__header { }
.review-card__score { }
.review-card--critical { }
/* Bad: generic or cryptic */
.card1 { }
.blue-box { }
.mt20 { }
Recommended order in declarations:
display, flex, grid)position, top, left)margin, padding, width, height)font-, text-, line-height)background, border, color)cursor, opacity, transition)Extract repeated patterns into shared classes:
/* Reusable surface pattern */
.surface {
background: var(--nsc-bg-surface);
border: 1px solid var(--nsc-border-soft);
border-radius: 8px;
padding: 16px;
}
.surface--elevated {
background: var(--nsc-bg-elevated);
}
/* Base styles = mobile */
.dashboard-grid {
display: flex;
flex-direction: column;
gap: 16px;
}
/* Tablet and above */
@media (min-width: 768px) {
.dashboard-grid {
flex-direction: row;
flex-wrap: wrap;
}
}
/* Desktop */
@media (min-width: 1024px) {
.dashboard-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
}
src/interface-adapters/views/dashboard/
├── index.html # Dashboard HTML template
└── styles.css # All dashboard styles
styles.css/* Inline styles in HTML */
style="background-color: #2a4054"
/* Hardcoded colors instead of tokens */
color: #e8efff; /* Use var(--nsc-text-primary) */
/* !important (except extreme cases) */
padding: 16px !important;
/* Deep nesting */
.dashboard .main .section .card .header .title { }
/* Prefer: .card__title { } */
/* Magic numbers without explanation */
margin-top: 37px;
/* Use custom properties consistently */
.status-badge {
background: var(--nsc-bg-surface-strong);
color: var(--nsc-text-secondary);
border: 1px solid var(--nsc-border-soft);
border-radius: 4px;
padding: 4px 8px;
font-size: 0.75rem;
}
.status-badge--success {
color: var(--nsc-success);
border-color: var(--nsc-success);
}
.status-badge--danger {
color: var(--nsc-danger);
border-color: var(--nsc-danger);
}
:root selector