Back to skills
SKILL.md
Mock Data Eug Subscription
ASecurityCreates typed mock data files in src/data/ following project conventions. Use when needing test data for new features or components.
- 57 stars
- 0 votes
- 0 copies
- 0 views
- Added October 17, 2026
Works with
Security analysis
100/100npx -y skills add diegosouzapw/awesome-omni-skill --skill mock-data-eug-subscription --agent claude-codeAre you the author of Mock Data Eug Subscription?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/diegosouzapw-mock-data-eug-subscription)---
name: mock-data
description: Creates typed mock data files in src/data/ following project conventions. Use when needing test data for new features or components.
---
# Mock Data Generator Skill
Creates typed mock data files following project patterns.
## File Pattern
```text
src/data/mock-{feature}.ts
```
## Template Structure
```typescript
// src/data/mock-{feature}.ts
export interface {Feature}Data {
id: string;
name: string;
// Add fields based on requirements
}
export const mock{Feature}Data: {Feature}Data = {
id: "1",
name: "Example",
};
// For arrays:
export const mock{Feature}List: {Feature}Data[] = [
{ id: "1", name: "Item 1" },
{ id: "2", name: "Item 2" },
];
```
## Conventions
1. **Filename**: kebab-case with `mock-` prefix
2. **Named exports**: Both interface and data
3. **Type-first**: Define interface before data
4. **Realistic data**: Use meaningful values, not "test123"
## Examples
See these files for reference patterns:
- `src/data/mock-order.ts`
- `src/data/mock-project.ts`
- `src/data/mock-unmatched-items.ts`
## Usage with TanStack Query
```typescript
// hooks/use{Feature}.ts
import { useQuery } from "@tanstack/react-query";
import { mock{Feature}Data, {Feature}Data } from "../data/mock-{feature}";
async function fetch{Feature}Data(): Promise<{Feature}Data> {
await new Promise((r) => setTimeout(r, 500)); // Simulate API
return mock{Feature}Data;
}
export function use{Feature}() {
return useQuery({
queryKey: ["{feature}"],
queryFn: fetch{Feature}Data,
});
}
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.