comp-html-guidelines
Skill2 starsChanged 5 months agoMITView on GitHub
Default skill for ALL HTML outputs from Comp skills. A lightweight, self-contained visual style guide (Comp palette black #1F1B17 + red #F4364C, DM Sans, near-white background, white cards, pill buttons, hero cover, Powered by Comp footer). MUST be loaded whenever a skill produces HTML, for any relatório, página, análise, dashboard, qualquer variação de \"faça/crie um html\", and for any \"apply the design\" / \"estiliza\" / \"padroniza\" / \"deixa isso bonito\" request on existing HTML. Apply it even when the user does not ask explicitly. Maintained by Comp, free skill for HR & People leaders.
In this repository36 other files it gives its agents.
- ai-native-hrSkill
- board-people-slide-builderSkill
- candidate-screeningSkill
- ceo-people-update-drafterSkill
- chro-chief-of-staffSkill
- comp-budget-defense-packSkill
- comp-level-simulatorSkill
- comp-ratio-analyzerSkill
- custo-demissao-calculatorSkill
- custo-folha-simulatorSkill
- custo-turnover-calculatorSkill
- decision-memo-generatorSkill
- engagement-deep-diveSkill
- exit-survey-theme-analyzerSkill
- flight-risk-forecastSkill
- hr-data-maturity-assessmentSkill
- hr-initiative-roiSkill
- job-profile-builderSkill
- manager-effectiveness-scorecardSkill
- onboarding-kit-generatorSkill
- org-design-assessmentSkill
- paygap-analysis-generatorSkill
- people-scorecardSkill
- people-strategy-okr-builderSkill
- pj-vs-clt-calculatorSkill
- promotion-equity-analyzerSkill
- reajuste-impact-calculatorSkill
- recruiting-funnel-analyticsSkill
- regretted-attrition-analyzerSkill
- representation-dei-funnelSkill
- research-digestSkill
- skills-gap-analysisSkill
- span-of-control-diagnosticSkill
- stock-options-calculatorSkill
- total-comp-calculatorSkill
- workforce-headcount-planSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Read references/style-guide.md in full.
- Very specific: line 25
Start from the base scaffold in the style guide and inline assets/comp-base.css inside a <style> tag (copy it, do not link to a CDN for it).
- Distinctive: line 28
Run the self-review checklist at the end of the style guide before delivering.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Comp HTML Guidelines
A lightweight, self-contained visual style guide for every HTML report, page, dashboard, or analysis produced by a Comp skill. Load it whenever you are about to write or restyle HTML so the result is consistent, polished, and on-brand. It does not change the methodology of the calling skill, it governs only the visual layer.
This is a Knowledge skill. The full rules live in references/style-guide.md and a ready-to-inline stylesheet lives in assets/comp-base.css. Read the style guide before writing HTML.
When to use
- Generate — creating a new HTML report from scratch. Load
references/style-guide.md, inlineassets/comp-base.css, then build. - Apply — the user has existing HTML and wants it styled ("estiliza", "padroniza", "deixa isso bonito", "apply the design"). Load the style guide and re-skin the markup, keeping the content.
- Consult — a question about a specific rule (color, layout, footer, chart). Answer from
references/style-guide.md.
The look in one paragraph
Near-white background (#FAFAF8), content in white cards with a hairline border and soft radius. Comp black (#1F1B17) for text and the hero, Comp red (#F4364C) as the single accent. DM Sans for everything. Generous spacing (24px rhythm). A hero band at the top with the report title and a short subtitle; a "Powered by Comp" footer at the bottom. One accent color only, semantic green/amber/red reserved for good/warning/bad states. No gradients, no decorative icons, no rainbow palettes.
How to build
- Read
references/style-guide.mdin full. - Start from the base scaffold in the style guide and inline
assets/comp-base.cssinside a<style>tag (copy it, do not link to a CDN for it). - Load DM Sans from Google Fonts and a charting library (Chart.js) from a CDN if you need charts.
- Build the hero, then the content as cards / tables / stat cards, then the footer.
- Run the self-review checklist at the end of the style guide before delivering.
Escaping user data — required
Reports often embed data that originates from a user upload (names, areas, managers, free-text comments). When you inject any user-derived string into HTML — whether server-side in a script or client-side via innerHTML — escape it first (& < > " '). Never interpolate raw user text into markup. A name like <img src=x onerror=...> must render as literal text, not execute. When embedding a data blob in a <script> tag, also neutralize </ (write it as <\/) so a value cannot close the script element.
Completeness
Deliver the finished report the user asked for, not a sample or "v1". If the content is large, write it in full. If you cannot produce part of it, say so in your reply rather than shipping a placeholder card.
Brand
- Hero: report title + subtitle. For a report about a specific company, use the logo URL and brand color the user provides; if none, use the company's initial in a tile. Never fabricate a logo.
- Footer: a "Powered by Comp" line linking to
comp.vcwith UTM params (see the style guide for the exact link). If you show the Comp logo mark, use the bundled inline SVG (assets/comp-wordmark-white.svgon dark/red,assets/comp-wordmark-red.svgon light) — never a scaled raster, a color-filtered PNG, or a hand-drawn mark (those come out jagged/off-brand). Style guide §7.
Resources
| File | Purpose |
references/style-guide.md | Palette, typography, spacing, components, charts, scaffold, self-review checklist. Read in full before writing HTML. |
assets/comp-base.css | Ready-to-inline base stylesheet. Copy into a <style> tag in the output. |
assets/comp-wordmark-white.svg | Official Comp wordmark (white) — inline in footers/hero on dark or red backgrounds. Crisp vector, no external host. |
assets/comp-wordmark-red.svg | Official Comp wordmark (red #F4364C) — inline on white/light backgrounds. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

