server-function-order

Enforces positional stability rules for SolidStart 'use server' functions across deployments.

2|1|Updated Jun 28, 2026
One-click install
npx skills add https://github.com/lxsmnsyc/overwander --skill server-function-order-lxsmnsyc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: server-function-order
Source: https://github.com/lxsmnsyc/overwander/tree/main/.agents/skills/server-function-order
Command: npx skills add https://github.com/lxsmnsyc/overwander --skill server-function-order-lxsmnsyc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? In a SolidStart production build, every 'use server' function is addressed by its file hash and its position in the file, not by its name. Removing, reordering, or changing the parameters of an existing server function causes stale browser tabs to call the wrong function with the wrong arguments, which has already caused real production bugs like players being teleported to wrong coordinates. ## Core Features & Use Cases - Positional Stability Rules: New server functions go at the end of the file; existing ones are never removed, reordered, or given different parameters. - Deprecation Pattern: Unused functions keep their slot, stay exported, and answer their old arguments sensibly instead of being deleted. - Verification Workflow: Compare the ordered list of 'use server' functions before and after a change (e.g., with git show HEAD:<file>) to confirm every function kept its position. - Use Case: When adding a new server action to a SolidStart file, place it after the last existing function and verify no existing function moved, so tabs loaded before the deploy keep calling the correct endpoints. ## Quick Start Review my changes to this file containing 'use server' functions and confirm that no existing server function was removed, reordered, or given different parameters.

Frequently Asked Questions about server-function-order

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely add a new server function in SolidStart?▼

Add the new 'use server' function at the end of the file, after the last existing one. Production builds address server functions by file hash and position, so appending preserves every existing function's slot for tabs loaded before the deploy.

Why can't I remove an unused 'use server' function?▼

Removing a function shifts every function below it up one slot, so stale browser tabs call the wrong function with mismatched arguments. Instead, keep the function exported and have it answer its old arguments sensibly.

Can I rename a SolidStart server function safely?▼

Yes, renaming is safe because the function's name is not part of its address. The build identifies each 'use server' function by its file hash and positional index only, so the name can change freely.

What happens if I change a server function's parameters?▼

Changing parameters breaks stale tabs, which still send the old argument list to that position. Treat a different argument list as a new function appended at the end, and keep the old signature unchanged.

How do I verify server function order before deploying?▼

List the 'use server' functions in order before and after your change, for example with git show HEAD:<file> beside the working copy. Every existing function must still sit at the same position it had before.