You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Styling**: MUI `sx` prop + Emotion `styled()`, no CSS modules
22
-
-**State**: Local state + custom hooks (no Redux/Zustand)
21
+
-**Styling**: MUI `sx` prop + theme tokens from `app/src/theme/index.ts`. No hardcoded hex colors — use `colors.*`, `semanticColors.*`, `fontSize.*`, `typography.fontFamily` imports. See Serena memory `style_guide` for full token reference.
22
+
-**State**: Local state + custom hooks (no Redux/Zustand). Avoid `setState` inside `useEffect` for prop resets — use render-time ref pattern instead.
`colors.gray[400]` (#9ca3af) and lighter **must never be used for text or icons**. Minimum text color: `semanticColors.mutedText` (#6b7280, 4.6:1 contrast).
22
+
23
+
## Font
24
+
Always use `typography.fontFamily` — never inline `'"MonoLisa", monospace'` or raw `'monospace'`.
25
+
**Exception**: ErrorBoundary uses raw `'monospace'` intentionally (crash-safe fallback).
26
+
27
+
## Font Sizes
28
+
`fontSize.micro` (0.5rem) and `fontSize.xxs` (0.625rem) are restricted to data-dense pages (StatsPage, DebugPage).
29
+
Public pages use `fontSize.xs` (0.75rem) as minimum.
-`textStyle` — body text (0.9375rem, labelText, lineHeight 1.8)
36
+
-`codeBlockStyle` — dark code blocks
37
+
-`tableStyle` — consistent table cells/headers
38
+
-`labelStyle` — small labels (0.875rem, labelText)
39
+
40
+
## Highlight Colors
41
+
Use theme tokens for highlight treatments: `colors.highlight.bg`/`colors.highlight.text` for highlighted tag chips and `colors.tooltipLight` for tooltip text on dark backgrounds. Do not reintroduce hardcoded highlight hex values.
42
+
43
+
## Full reference
44
+
See `docs/reference/style-guide.md` for complete documentation including spacing, breakpoints, component specs, animations, and accessibility rules.
Copy file name to clipboardExpand all lines: agentic/commands/prime.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,25 @@ gh pr list --limit 10 2>/dev/null || echo "(gh CLI not available)"
24
24
25
25
## Serena
26
26
27
-
- Run `activate_project` with project "pyplots"
28
-
- Run `list_memories` and read relevant ones
29
27
- Run `check_onboarding_performed`
28
+
- Run `list_memories` and read relevant ones
29
+
30
+
### JetBrains Tools (prefer over brute-force scanning)
31
+
32
+
Use Serena's JetBrains-backed tools for code navigation — they provide semantic understanding
33
+
that grep/glob cannot:
34
+
35
+
-`jet_brains_get_symbols_overview` — get top-level symbols in a file (classes, functions, variables). Use with `depth: 1` to also see methods of classes. Start here to understand a file before diving deeper.
36
+
-`jet_brains_find_symbol` — search for a symbol by name across the codebase. Supports name path patterns like `MyClass/my_method`. Use `include_body: true` to read source code, `include_info: true` for docstrings/signatures.
37
+
-`jet_brains_find_referencing_symbols` — find all usages of a symbol (who calls this function? who imports this class?). Essential for understanding impact of changes.
38
+
-`jet_brains_find_declaration` — jump to where a symbol is defined.
39
+
-`jet_brains_find_implementations` — find implementations of an interface/abstract class.
40
+
-`jet_brains_type_hierarchy` — understand class inheritance chains.
0 commit comments