Agent skill
staging-ui-first
UI-first implementation and staging workflow for Zeus. Use when building routes, components, or forms before backend integration, or when creating UI scaffolds with mock data and later wiring to real APIs.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/staging-ui-first
SKILL.md
Staging UI First
Skill Purpose: Build UI scaffolds early with mock data, validate layout and interactions, then integrate with real data sources.
Core Skill Pattern
Objective: Deliver working UI flows fast by staging UI using mocks/placeholders, then replace with real data and auth.
Universal Pattern:
- Define route/component scope from INTERFACE_CONTRACT and PRODUCT_SPEC.
- Build UI with mock data and placeholder states.
- Validate layout, accessibility, and responsive behavior.
- Add loading/empty/error states.
- Integrate real API/data once endpoints and schema are ready.
Key Decisions (Project-Specific):
- Mock data strategy (inline fixtures vs shared mock utilities)
- Loading/error state design
- When to switch from mock to live data
- Auth gating requirements for staged UI
Project-Specific Implementation Notes (Zeus)
Default stack: Next.js App Router + shadcn/ui + Tailwind CSS.
Staging rules:
- Use mocks for UI-first build until API and schema are available.
- Clearly label mock data blocks and TODOs for integration.
- Preserve component contracts (props, types) to ease later wiring.
Example Staging Flow (Next.js App Router)
- Create route skeleton and layout.
- Render with mock data arrays and placeholder UI.
- Add empty/error states.
- Replace mock data with real fetch when API is ready.
// app/(dashboard)/users/page.tsx
import { UsersTable } from '@/components/users/users-table';
const mockUsers = [
{ id: '1', name: 'Jane Doe', email: '[email protected]' },
{ id: '2', name: 'John Smith', email: '[email protected]' },
];
export default function UsersPage() {
return (
<section className="space-y-4">
<h1 className="text-2xl font-semibold">Users</h1>
<UsersTable users={mockUsers} isLoading={false} />
</section>
);
}
Checklist (Staging UI First)
- Route/component skeleton created
- Mock data wired for primary views
- Loading/empty/error states included
- Responsive behavior validated
- Accessibility basics checked (labels, focus, contrast)
- Integration TODOs noted for API wiring
Best Practices
- Keep mock data realistic (shape and size).
- Use consistent loading and empty state patterns.
- Avoid hard-coding auth assumptions; gate later via auth layer.
- Keep component props stable to minimize refactors.
- Document mock-to-real integration steps in handoff.
Stop Conditions
STOP and escalate if:
- Required route contracts are missing or ambiguous.
- Mock data conflicts with known schema constraints.
- UI scope changes without updated Product Spec.
Skill Version: 1.0.0
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?