skills/filter-sphere/SKILL.md
Integrate Filter Sphere into a project - schema-driven filtering for Zod-typed data. Use when building filtering UIs, data tables with filters, or adding sort/filter logic to any TypeScript application.
npx skillsauth add lawvs/fn-sphere filter-sphereInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build advanced filtering interfaces powered by Zod schemas.
# React filter UI
pnpm add @fn-sphere/filter zod
import {
FilterSphereProvider,
FilterBuilder,
useFilterSphere,
} from "@fn-sphere/filter";
import { z } from "zod";
// 1. Define your data schema with Zod
const schema = z.object({
name: z.string().describe("Name"),
age: z.number().describe("Age"),
});
export function FilterBuilder() {
// 2. use the `useFilterSphere` hook to get the context and predicate
const { filterRule, predicate, context } = useFilterSphere({
schema,
onRuleChange: ({ filterRule }) => {
console.log("Filter rule changed:", filterRule);
},
});
const data = [
/* ... */
];
// 4. use the `predicate` to filter the data
const filteredData = data.filter(predicate);
return (
// 3. display the `FilterBuilder` inside the `FilterSphereProvider`
<FilterSphereProvider context={context}>
<FilterBuilder />
</FilterSphereProvider>
);
}
filter-sphere/
index.tsx # Main component wiring everything together
schema.ts # Zod schema, default rules, custom functions
theme.tsx # Theme via createFilterTheme
locale.ts # (Optional) i18n with getLocaleText
| Topic | Reference | | ---------------------- | --------------------------------------------------------------------------------- | | Introduction | Introduction | | Getting Started | Getting Started | | Best Practices | Best Practices | | Work with AI | Work with AI | | Customizing Filters | Customizing Filters | | Customizing Theme | Customizing Theme | | Customizing Data Input | Data Input | | Persistence | Persistence | | Preset Filters | Preset Filters | | Example | Example |
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.