list-actions
Complete guide to list actions on an InteractiveList built with @finstreet/ui — how to wire any combination of pagination, search, sort, group, archived, and reset onto a list, and how to author or modify the slot components themselves. Use when implementing or modifying list actions, when adding search/sort/group/archived/reset to a list, or when building a new kind of filter/toggle slot for the shared RenderActions system.
What this skill does
# List Actions — Complete Guide
This skill covers two distinct workflows:
- **Path 1 — Add actions to a list.** Set up the list scaffold and wire any combination of the existing actions (`Search`, `Sort`, `Group`, `Archived`, `Reset`) onto it. Most tasks land here.
- **Path 2 — Build or modify an action.** Author a brand-new slot for the shared `useListActions` system, or change the behavior of an existing slot.
## Which Path?
| Signal | Path |
|--------|------|
| Task names an existing action: search, sort, group, archived, reset, pagination | Path 1 |
| Task introduces a new dimension (date range, status filter, multi-select tag, etc.) with no existing slot | Path 2 (section A) |
| Task changes the props or behavior of `SearchAction` / `GroupByAction` / `SortByAction` / `ArchivedAction` / `ResetAction` itself | Path 2 (section B) |
When in doubt, start at Path 1. If it turns out the slot you need doesn't exist, switch to Path 2.
## Path Resolution
Before creating any files for **Path 1**, invoke the `finstreet-fe:path-resolver` skill with your input parameters (featureName, subFeatureName, featureType=interactiveList, product, role) to resolve the correct paths. Use the returned **Feature Path** as `{featurePath}`. For `{requestPath}`, take the base feature path (without the `interactiveLists` segment) and append `/backend`.
Path 2 work happens in `src/shared/components/RenderActions/` and `src/shared/types/searchParams.ts` — no path resolver needed.
---
## Path 1 — Add Actions to a List
Two pieces: a **scaffold** that every list has, plus the **actions** the list needs. Build the scaffold once, then add each action by following its section in [actions.md](actions.md).
### Scaffold (always)
Every list has these files. Build them first, even if the list has no actions beyond pagination.
| File | Purpose | Reference |
|------|---------|-----------|
| `{featurePath}/{listName}SearchParams.ts` | URL state — pagination + each action's parser | [search-params.md](search-params.md) |
| `{requestPath}/get{ListName}List.ts` | Server fetch | [creating-the-request.md](creating-the-request.md) |
| `{featurePath}/index.tsx` | Server container | [implementing-the-container.md](implementing-the-container.md) |
| `{featurePath}/{ListName}PresentationList.tsx` | Client presentation, `usePagination`, `<InteractiveList />` | [adding-pagination-presentation.md](adding-pagination-presentation.md) |
### Actions (pick what the list needs)
Each action has a self-contained recipe (parser, items hook if any, group config if any, request handling if any, slot JSX). Read each action's section as needed:
| Action | What it does | Extra files | See |
|--------|--------------|-------------|-----|
| Search | Free-text input filtering the list | — | [actions.md § Search](actions.md#search) |
| Sort | Single-select dropdown of `column asc/desc` | `use{ListName}SortByItems.ts` | [actions.md § Sort](actions.md#sort) |
| Group | Single-select dropdown that pivots the list into grouped sub-lists | `use{ListName}GroupByItems.ts`, `{listName}GroupConfigs.ts` | [actions.md § Group](actions.md#group) |
| Archived | Active/Archived toggle, maps to `q[show_archived]` | — | [actions.md § Archived](actions.md#archived) |
| Reset | "Clear all" text button | — | [actions.md § Reset](actions.md#reset) |
When the list has any actions beyond pagination, also create `{featurePath}/use{ListName}RenderActions.tsx` — the composition hook that pulls the slots together. The full template lives in [actions.md § The composition hook](actions.md#the-composition-hook).
### Multi-list shared search
When two or more lists on one page share a single search input, the file layout itself differs: per-list directories with just a Presentation (no per-list server container, no `<Suspense>`), a standalone `{ListName}SearchAction.tsx` component, and the page does the parallel fetches via `Promise.all` and renders Presentations directly. The `useListActions` hook isn't used in this pattern. See [multi-list-shared-search.md](multi-list-shared-search.md) for the full walkthrough.
---
## Path 2 — Build or Modify an Action
When no existing slot fits, or when an existing slot needs a new prop or behavior change.
- **Authoring a new action** — declare the parser, decide on the API mapping, implement the slot following the six-step contract, handle cross-action effects via callback props.
- **Modifying an existing action** — adding a prop, changing throttle/debounce behavior, lifting feature-specific coupling out into a callback prop.
See [building-a-new-action.md](building-a-new-action.md).
---
## Rules (apply to both paths)
1. One SearchParams file per feature, even when multiple lists share it.
2. Don't change the structure of the request file's `if-else` block (with grouping) — keep the pre-initialized `listItems` and the two branches.
3. Don't build query param schemas in the endpoint config — everything flows through `buildApiUrl`.
4. Always use `nuqs` for URL-based state. No client-side state for pagination, search, sort, group, or archived.
5. Inside an action slot, always go through `useListActionsContext` for the parser, pagination, and reset registration. Don't reinvent these.
6. Always reset pagination on filter change (`setPagination(null)` inside the slot's change handler).
7. Don't import a feature-specific enum into a shared action component — pass cross-action effects in as callback props (see [building-a-new-action.md § A.4](building-a-new-action.md)).
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.