willyd61/nautobot-v2-custom-metrics-old/solid

Claude Code and agent skill by willyd61/nautobot-v2-custom-metrics-old

Trust tier 3
  • community
  • ext:[{"type":"context","description":"Custom context provider definitions"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

SolidJS reactive UI library. Covers signals, effects, and fine-grained reactivity. USE WHEN: user mentions "SolidJS", "Solid", "createSignal", "createEffect", "createMemo", "fine-grained reactivity", asks about "Solid patterns", "reactive primitives" DO NOT USE FOR: React - use `frontend-react` (different API despite similar JSX), Vue - use `vue-composition`, Svelte - use `svelte`, Angular - use `angular`

Install

npx vskill@latest install willyd61/nautobot-v2-custom-metrics-old/solid

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as claude-dev-suite/claude-dev-suite/solid.

SolidJS Core Knowledge

Full Reference: See advanced.md for WebSocket primitive, context provider, chat component, room management, Socket.IO integration, and store patterns.
Deep Knowledge: Use mcp__documentation__fetch_docs with technology: solid for comprehensive documentation.

When NOT to Use This Skill

Skip this skill when:

  • Working with React (use frontend-react - APIs are different)
  • Building Vue applications (use vue-composition)
  • Using Svelte (use svelte)
  • Working with Angular (use angular)
  • Need server-side only logic (no framework needed)

Component Structure

tsx
import { createSignal, createEffect, createMemo } from 'solid-js';
interface Props {
name: string;
count?: number;
}
function Counter(props: Props) {
const [localState, setLocalState] = createSignal('');
const doubled = createMemo(() => (props.count ?? 0) * 2);
createEffect(() => {
console.log('Count changed:', props.count);
});
return (
<div>
<h1>Hello {props.name}</h1>
<p>Doubled: {doubled()}</p>
<button onClick={() => setLocalState('clicked')}>
Click
</button>
</div>
);
}

Reactivity Primitives

APIPurpose
createSignalReactive state
createMemoCached computation
createEffectSide effects
createResourceAsync data fetching
createStoreNested reactive objects

Key Differences from React

  • No Virtual DOM - fine-grained updates
  • Props are getters - access via props.name
  • No dependency arrays - auto-tracking
  • Components run once - not on every render
  • JSX compiles differently - expressions are reactive

Control Flow

tsx
import { Show, For, Switch, Match } from 'solid-js';
<Show when={isLoggedIn()} fallback={<Login />}>
<Dashboard />
</Show>
<For each={items()}>{(item) => <Item data={item} />}</For>

Anti-Patterns

Anti-PatternWhy It's BadCorrect Approach
Destructuring propsLoses reactivityAccess via props.name
Using React patternsDifferent paradigmUse Solid primitives
Not using <Show> componentManual conditional logicUse <Show when={}>
Recreating signals in componentsComponents run onceCreate outside or use stores
Using innerHTML without sanitizationXSS vulnerabilityUse DOMPurify
Not cleaning up in onCleanupMemory leaksAdd cleanup logic

Quick Troubleshooting

IssueLikely CauseSolution
Props not reactiveDestructured propsAccess via props.name
Signal not updatingForgot to call setterUse setCount(newValue)
Effect not runningNot tracking signalCall signal inside effect: count()
Component re-runningTreating like ReactComponents run once, use signals
List not updatingUsing array methodsUse produce() from solid-js/store
Memory leaksNo cleanupUse onCleanup()

Production Readiness

Error Handling
tsx
import { ErrorBoundary } from 'solid-js';
function App() {
return (
<ErrorBoundary
fallback={(err, reset) => (
<div>
<p>Error: {err.message}</p>
<button onClick={reset}>Retry</button>
</div>
)}
>
<MainContent />
</ErrorBoundary>
);
}
Performance
tsx
// Lazy loading components
const HeavyComponent = lazy(() => import('./HeavyComponent'));
function App() {
return (
<Suspense fallback={<Loading />}>
<HeavyComponent />
</Suspense>
);
}
// Batch updates (rarely needed)
import { batch } from 'solid-js';
batch(() => {
setCount(count() + 1);
setName('New Name');
});
Store Patterns
tsx
import { createStore, produce } from 'solid-js/store';
const [state, setState] = createStore({
users: [] as User[],
filters: { active: true },
});
// Immutable-style updates with produce
function addUser(user: User) {
setState(produce((s) => {
s.users.push(user);
}));
}
// Path-based updates
setState('users', (users) => [...users, newUser]);
setState('filters', 'active', false);
Testing
tsx
import { render, screen } from '@solidjs/testing-library';
import userEvent from '@testing-library/user-event';
import Counter from './Counter';
describe('Counter', () => {
it('increments on click', async () => {
const user = userEvent.setup();
render(() => <Counter initial={0} />);
const button = screen.getByRole('button');
await user.click(button);
expect(screen.getByText('Count: 1')).toBeInTheDocument();
});
});
Security
tsx
// innerHTML - only with trusted content
<div innerHTML={sanitizedHtml} />
// Prefer text content
<div>{userInput}</div> // Safe - auto-escaped
// XSS prevention
import DOMPurify from 'dompurify';
function SafeHtml(props: { html: string }) {
const clean = () => DOMPurify.sanitize(props.html);
return <div innerHTML={clean()} />;
}
Monitoring Metrics
MetricTarget
Bundle size< 30KB
First Contentful Paint< 1s
Time to Interactive< 1.5s
Memory usageStable
Checklist
  • [ ] ErrorBoundary for error handling
  • [ ] Suspense for async operations
  • [ ] Lazy loading for code splitting
  • [ ] createStore for complex state
  • [ ] Virtual lists for large data
  • [ ] No innerHTML with user input
  • [ ] Testing with @solidjs/testing-library
  • [ ] SSR with SolidStart
  • [ ] Fine-grained updates (no unnecessary re-renders)
  • [ ] Bundle analysis

Reference Documentation

Deep Knowledge: Use mcp__documentation__fetch_docs with technology: solid for comprehensive documentation.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • contextCustom context provider definitions

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/willyd61/nautobot-v2-custom-metrics-old/solid/badge)](https://verified-skill.com/skills/willyd61/nautobot-v2-custom-metrics-old/solid)

Something wrong with this skill or its page? Tell us.