원클릭으로
mock-factory
Generate centralized mock factories for port interfaces, reducing duplicate mocks across 30+ test files
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate centralized mock factories for port interfaces, reducing duplicate mocks across 30+ test files
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Show CI/CD pipeline status for current branch with job details and failure diagnostics
Cross-validate documentation and artifacts across the codebase for consistency, conflicts, and contradictions. Use when users ask to "cross-validate", "validate docs", "check documentation consistency", "audit documentation", or find conflicts/contradictions in docs. Supports automatic fixing with "validate and fix" argument. Runs parallel subagents for efficient validation across categories (domain-models, agent-system, tech-stack, architecture, cli-commands). Part of the ShipIT autonomous SDLC platform — https://github.com/jrmatherly/shipit
React Flow (@xyflow/react) for workflow visualization with custom nodes and edges. Use when building graph visualizations, creating custom workflow nodes, implementing edge labels, or controlling viewport. Triggers on ReactFlow, @xyflow/react, Handle, NodeProps, EdgeProps, useReactFlow, fitView.
Diagnose semantic-release and npm publish failures from the latest CI release job
Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like buttons, dialogs, dropdowns, tables, and complex form layouts.
Use when ready to commit, push, and create a PR with CI verification. Triggers include "commit and pr", "push pr", "create pr", "ship it", or when implementation is complete and needs CI validation. Watches CI and auto-fixes failures. Part of the ShipIT autonomous SDLC platform — https://github.com/jrmatherly/shipit
| name | mock-factory |
| description | Generate centralized mock factories for port interfaces, reducing duplicate mocks across 30+ test files |
| user_invocable | true |
Generate a centralized mock factory function for a given port interface, to be placed in tests/helpers/.
packages/core/src/application/ports/output/find_referencing_symbols or grep to find all test files that mock this interfacetests/helpers/ that:
vi.fn()import { vi } from 'vitest';
import type { IExampleRepository } from '@shipit-ai/core/application/ports/output/repositories/example-repository.interface';
export function createMockExampleRepository(
overrides: Partial<Record<keyof IExampleRepository, ReturnType<typeof vi.fn>>> = {}
): IExampleRepository {
return {
create: vi.fn().mockResolvedValue(undefined),
findById: vi.fn().mockResolvedValue(null),
list: vi.fn().mockResolvedValue([]),
update: vi.fn().mockResolvedValue(undefined),
delete: vi.fn().mockResolvedValue(undefined),
...overrides,
};
}
tests/helpers/mock-{interface-name}.helper.tsIFeatureRepository → tests/helpers/mock-feature-repository.helper.tstests/helpers/mock-repository.helper.ts (for MockSettingsRepository)pnpm typecheck to verify all mocks satisfy the interface| Interface | Files duplicating mock | Priority |
|---|---|---|
IFeatureRepository | ~33 | HIGH |
IAgentRunRepository | ~15 | HIGH |
IWorktreeService | ~15 | HIGH |
IGitPrService | ~10 | MEDIUM |
IPhaseTimingRepository | ~8 | MEDIUM |
IRepositoryRepository | ~6 | MEDIUM |
ISettingsRepository | Already has factory | Done |