Skills Reference: React, Design Systems, Styling, and Technical Writing
Skill packs for React performance, visual design, token-driven UI systems, accessible styling, article writing, and documentation optimization in matrix-core.
Overview
This section documents the skill packs that shape React performance guidance, visual design workflows, token-driven UI systems, accessible styling, long-form writing, and documentation optimization in matrix-core. The packs are specialized by domain: React best practices focuses on performance rules, design combines brand and corporate identity generation with banner and presentation workflows, design-system formalizes token layers and component specs, ui-styling concentrates on shadcn/ui and Tailwind usage, article-writing enforces a distinctive long-form voice, and llm-docs-optimizer improves documentation quality for AI-assisted workflows.
Shared Manifest Model
All SKILL.mtx manifests follow the same structure: SKILL, INPUTS, CORTEX, PROCEDURE, OUTPUTS, and FAILURE_MODES, with slot.target resolved through cortex.find and clarification prompts triggered when the target stays ambiguous.
| Manifest element | Shared behavior |
|---|---|
| SKILL | Declares the skill id, version, display name, author, and description |
| INPUTS | Requires slot.target: ArtifactRef and accepts optional slot.constraints: Constraint[] |
| CORTEX | Reads Fact, Goal, Pattern, Event, Constraint, and Preference |
| PROCEDURE | Builds a typed frame from the user goal, resolved cortex context, current slots, and unknowns |
| OUTPUTS | Returns slot.result and optional slot.unknowns |
| FAILURE_MODES | Uses target_not_found, ambiguous_after_clarify, policy_violation, and budget_exceeded |
React Best Practices
skills/react-best-practices/SKILL.md is a performance-first React and Next.js guide. The reference set expands into rule-driven guidance on waterfalls, bundle size, server-side performance, client-side data fetching, rendering, JavaScript performance, and advanced patterns.
| Path | Responsibility |
|---|---|
skills/react-best-practices/SKILL.md | Human-facing guide with priority-ordered patterns |
skills/react-best-practices/SKILL.mtx | Manifest with acquire, analyze, and modify verbs |
skills/react-best-practices/references/react-performance-guidelines.md | Full performance guide with rule taxonomy and worked examples |
skills/react-best-practices/references/rules/advanced-event-handler-refs.md | Storing event handlers in refs to keep subscriptions stable |
skills/react-best-practices/references/rules/advanced-use-latest.md | useLatest-style callback refs that avoid stale closures |
The manifest does not invoke tools or sub-skills. It resolves the target artifact before proceeding.
Design Skill Pack
skills/design/SKILL.md is the broadest design pack. It combines brand identity, tokenized design systems, UI styling, logo generation (55 styles via Gemini AI), corporate identity program outputs (50 deliverables with CIP mockups), Chart.js presentations, banners, social photo assets, and icon generation into one routing layer.
| Path | Responsibility |
|---|---|
skills/design/SKILL.md | Top-level design guide covering brand, tokens, UI, logo, CIP, slides, banners, social, icons |
skills/design/SKILL.mtx | Manifest for deliver and build execution |
skills/design/references/banner-sizes-and-styles.md | Banner size reference and art direction guide |
skills/design/scripts/cip/core.py | BM25-backed search core for CIP guidance |
skills/design/scripts/cip/search.py | CLI for searching CIP guidance and building briefs |
skills/design/scripts/cip/generate.py | CLI for prompt generation and Gemini-backed CIP mockup generation |
skills/design/scripts/cip/render-html.py | CLI for turning generated mockup images into an HTML presentation |
CIP Search Core
skills/design/scripts/cip/core.py turns CSV-backed corporate identity data into ranked search results using BM25 scoring. It maintains a domain map for deliverable, style, industry, and mockup.
| Domain | Search focus |
|---|---|
deliverable | Deliverable, Category, Keywords, Description, Mockup Context |
style | Style Name, Category, Keywords, Description, Mood |
industry | Industry, Keywords, CIP Style, Mood |
mockup | Context Name, Category, Keywords, Scene Description |
Banner design rules
skills/design/references/banner-sizes-and-styles.md defines practical design rules: three-zone hierarchy, safe zones, one CTA per banner, typography limits, text-to-image ratio guidance, and print specs. Style options include minimalist, bold typography, photo-based, geometric, glassmorphism, neon, editorial, collage, data-driven, dark mode, flat color, nature, and motion-ready.
Design System Skill Pack
skills/design-system/SKILL.md formalizes token architecture and component specification using a three-layer model: primitive, semantic, and component tokens.
| Path | Responsibility |
|---|---|
skills/design-system/SKILL.md | Token architecture, component specs, and slide generation |
skills/design-system/SKILL.mtx | Manifest for the build intent |
skills/design-system/references/component-specs.md | Component specs for buttons, form controls, badges, alerts |
skills/design-system/references/states-and-variants.md | State priority, loading behavior, disabled treatment, accessibility |
Token layers
- Primitive tokens define raw values for colors, spacing, typography, line heights, weights, tracking, radii, and durations.
- Semantic tokens remap those values into meaning-based names: background, foreground, card, popover, muted, secondary, accent, border, and input.
- Component tokens build button, input, and alert-specific values on top of the semantic layer.
Component and state guidance
skills/design-system/references/component-specs.md captures variants, sizes, states, and anatomy for buttons, form controls, badges, and alerts. skills/design-system/references/states-and-variants.md defines interaction rules: default, hover, focus, active, disabled, and loading states; state priority from disabled down to default; disabled conventions for opacity, pointer events, cursor, background, and color; loading placement for button, input, card, and page.
UI Styling Skill Pack
skills/ui-styling/SKILL.md is the implementation-facing styling guide centered on shadcn/ui (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, responsive utilities, theme customization, and canvas-based visual design. The pack includes Apache 2.0 licensing and SIL Open Font License notices for canvas font families.
| Path | Responsibility |
|---|---|
skills/ui-styling/SKILL.md | Styling guide for shadcn/ui, Tailwind, accessibility, responsive design, theming, canvas |
skills/ui-styling/SKILL.mtx | Manifest for the build intent |
skills/ui-styling/LICENSE.txt | Apache 2.0 license |
The guide presents a quick start that installs shadcn/ui, adds components, and uses utility classes. It also documents the Tailwind-only path including Vite configuration and the @import "tailwindcss"; entry point.
Article Writing Skill Pack
skills/article-writing/SKILL.md is the long-form writing counterpart to the visual and technical skills. It is designed for guides, tutorials, essays, newsletter issues, and content that should sound like an actual person with a point of view.
The guide is opinionated:
- Lead with concrete artifacts and examples.
- Explain after the example.
- Keep sentences tight unless the source voice is intentionally expansive.
- Use proof instead of adjectives.
- Avoid generic AI phrasing and engagement padding.
If voice references exist, the guide says to run brand-voice first and reuse its VOICE PROFILE; otherwise it defaults to a sharp operator voice.
LLM Docs Optimizer Skill Pack
skills/llm-docs-optimizer/SKILL.md improves documentation for AI assistants and LLMs through c7score-oriented restructuring, llms.txt generation, question-driven content mapping, and a scoring model.
| Path | Responsibility |
|---|---|
skills/llm-docs-optimizer/SKILL.md | Main guide for c7score optimization and llms.txt generation |
skills/llm-docs-optimizer/SKILL.mtx | Manifest for the modify intent |
skills/llm-docs-optimizer/references/c7score_metrics.md | Five c7score metrics and scoring rubrics |
skills/llm-docs-optimizer/references/llmstxt_format.md | llms.txt format specification |
skills/llm-docs-optimizer/references/optimization_patterns.md | Transformation patterns for question-answering documentation |
skills/llm-docs-optimizer/scripts/analyze_docs.py | Python analyzer for snippet quality and documentation issues |
Optimizer workflow
- Analyze current documentation.
- Generate common developer questions.
- Map questions to snippets.
- Optimize the documentation.
- Validate formatting and snippet quality.
- Evaluate the score impact.
c7score metrics
- Question-Snippet Comparison
- LLM Evaluation
- Formatting
- Project Metadata
- Initialization
Documentation analyzer
skills/llm-docs-optimizer/scripts/analyze_docs.py extracts markdown code fences, detects short or setup-only snippets, flags metadata-heavy content, finds duplicates, suggests common questions, and prints a report with recommendations.
Skill Pack Summary
| Pack | Main purpose |
|---|---|
| React Best Practices | React and Next.js performance guidance with rule-based references |
| Design | Brand, CIP, banner, presentation, social, icon, and token-driven design workflows |
| Design System | Primitive, semantic, and component token architecture with state and variant definitions |
| UI Styling | shadcn/ui, Tailwind, accessibility, responsive layout, and canvas visual design |
| Article Writing | Long-form writing with a distinct voice and strict structural discipline |
| LLM Docs Optimizer | Documentation restructuring, c7score optimization, llms.txt generation, and analysis |
