@noir-ai/skills 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  {
2
- "skill_name": "noir-code-hygiene",
2
+ "skill_name": "noir-codebase-audit",
3
3
  "evals": [
4
4
  {
5
5
  "id": "no-machine-preamble",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noir-ai/skills",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Noir skills — the builtin noir-* skill pack, the integrations pack (ClickUp first), and a copy-and-validate compiler.",
5
5
  "license": "MIT",
6
6
  "author": "agaaaptr",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "yaml": "^2.5.0",
50
50
  "zod": "^4.2.0",
51
- "@noir-ai/core": "1.16.0"
51
+ "@noir-ai/core": "1.17.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^22.17.0"
@@ -1,40 +0,0 @@
1
- ---
2
- name: noir-frontend
3
- description: Use when building or modifying frontend code — distinctive visual design, typography, component patterns, and responsive layouts. Do NOT use for pure backend logic.
4
- metadata:
5
- category: domain
6
- version: 1.0.0
7
- license: MIT
8
- compatibility: claude · agents-md · gemini · cursor · opencode
9
- references:
10
- - ui-patterns.md
11
- ---
12
-
13
- # noir-frontend
14
-
15
- Frontend design and implementation guide — visual design, component architecture, responsive patterns, and interaction behavior. Use when the user is building or reshaping UI.
16
-
17
- ## When to use
18
-
19
- - Building or modifying a UI component, page, or layout.
20
- - The user says "design this", "style this", "make it look good."
21
- - A component needs consistent visual language (colors, spacing, typography, dark/light theme).
22
-
23
- ## Procedure
24
-
25
- 1. **Establish the design system.** Colors, spacing, typography, breakpoints — before any component. If the project has a design system (Tailwind config, theme tokens, CSS variables), use it; if not, suggest one.
26
- 2. **Component-first thinking.** Break the UI into independent, composable components. One component = one file = one responsibility.
27
- 3. **Responsive by default.** Start with mobile layout, add breakpoints for wider viewports. `max-width: 100%` on images; horizontal-scroll containers for wide tables.
28
- 4. **Accessibility.** Semantic HTML, keyboard navigation, color contrast, screen-reader labels. An inaccessible UI is an unfinished UI.
29
- 5. **On Claude Code**, use `AskUserQuestion` for design choices (color palette, layout preference). On other hosts, ask plainly.
30
-
31
- ## Reference
32
-
33
- For design tokens, component structure, responsive, and accessibility patterns, see [ui-patterns.md](references/ui-patterns.md).
34
-
35
- ## When done → next skill
36
-
37
- → `noir-verifying` to confirm the UI meets the spec. Or `noir-test-driven-development` to add tests.
38
-
39
- ## Notes
40
- - This skill is a playbook — the host decides which tools to use. On Claude Code, prefer `AskUserQuestion` for choices; on other hosts, ask in text.
@@ -1,48 +0,0 @@
1
- # UI patterns — design system, components, accessibility
2
-
3
- Deep reference for `noir-frontend`. Practical patterns for building and reshaping UI that reads as one coherent system.
4
-
5
- ## Establish the design tokens first
6
-
7
- A UI is coherent when it draws from ONE set of tokens. Before styling a component, confirm or propose:
8
-
9
- - **Color** — a small palette: background, surface, text-primary, text-muted, accent, error. Light + dark variants. Never 20 ad-hoc hex values.
10
- - **Spacing** — a scale (e.g. 4/8/12/16/24/32). Use the scale, not arbitrary pixels.
11
- - **Typography** — font stack, size scale (e.g. xs/sm/base/lg/xl/2xl), line-height, weight for headings vs body.
12
- - **Radius/shadow** — a consistent corner radius and elevation system.
13
- - **Breakpoints** — the widths where layout changes (e.g. 640/768/1024/1280).
14
-
15
- Where the project already has tokens (Tailwind config, CSS variables, a theme file), USE THEM — do not invent a parallel system.
16
-
17
- ## Component-first structure
18
-
19
- - One component = one file = one responsibility. A `Button`, a `Card`, a `TableRow` — each standalone.
20
- - Components are composable: small pieces assemble into screens.
21
- - Props/inputs are explicit; a component never reaches into global state it wasn't given.
22
-
23
- ## Responsive by default
24
-
25
- - **Mobile-first** — build the narrow layout first, add breakpoints for wider views.
26
- - `max-width: 100%` on images and media — never overflow.
27
- - Wide tables and code blocks scroll inside their OWN container (`overflow-x: auto`) — the page body never scrolls horizontally.
28
- - Touch targets ≥ 44px on interactive elements.
29
-
30
- ## Accessibility (non-negotiable)
31
-
32
- - **Semantic HTML** — use `<button>`, `<a>`, `<nav>`, `<label>`, not `<div onClick>`.
33
- - **Keyboard** — every interactive element reachable + operable by keyboard (focus, Enter/Space).
34
- - **Focus** — a visible focus indicator; never `outline: none` without a replacement.
35
- - **Contrast** — text meets WCAG AA contrast against its background (both themes).
36
- - **Labels** — every input has a `<label>` or `aria-label`; images have alt text.
37
- - **Reduced motion** — respect `prefers-reduced-motion`.
38
-
39
- ## Interaction behavior
40
-
41
- - **State** — every interactive element has hover / focus / active / disabled / loading states.
42
- - **Feedback** — actions give feedback (a spinner, a toast, a state change). Silent failure confuses users.
43
- - **Optimistic updates** with rollback on error feel faster than blocking on every request.
44
-
45
- ## Good / bad
46
-
47
- Good: a component uses the spacing scale, tokens, semantic markup, and has all states.
48
- Bad: a hard-coded `padding: 17px`, an inline `#f3f2ef` that exists nowhere in tokens, a `<div onClick>` for a button, no focus style, an image with no alt.