소스 정보
- 저장소
- wrtnlabs/autobe
- 최근 소스 활동
- 2026년 2월 24일 04:09
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1,360
- 포크
- 156
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/wrtnlabs/autobe --skill fix-provider명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | fix-provider |
| description | Fix Provider, Collector, Transformer compilation errors |
| allowed-tools | Read, Edit, Write, Bash, Grep, Glob |
Fix provider, collector, and transformer compilation errors according to code conventions.
NEVER use:
as keyword (type assertion)any typeFix type issues by properly defining Collectors and Transformers.
Fix compilation errors in provider files to ensure npm run build:main passes.
┌─────────────────────────────────────┐
│ Step 1: Run Build │
│ npm run build:main │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 2: Parse Provider Errors │
│ - as any usage │
│ - Type mismatches │
│ - Missing imports │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 3: Fix by Convention │
│ - Create Collectors │
│ - Create Transformers │
│ - Remove type assertions │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Step 4: Re-run Build │
│ Loop until 0 errors │
└─────────────────────────────────────┘
npm run build:main 2>&1 | head -100
Capture provider-related errors.
# Find as any usage
grep -rn "as any" src/providers/ --include="*.ts"
# Find any type
grep -rn ": any" src/providers/ --include="*.ts"
# Find type assertions
grep -rn " as " src/providers/ --include="*.ts" | grep -v "import"
// src/collectors/{Prefix}{Entity}Collector.ts
import { I{Prefix}{Entity} } from "@ORGANIZATION/PROJECT-api/lib/structures/I{Prefix}{Entity}";
import { Prisma } from "@prisma/sdk";
import { v4 } from "uuid";
export namespace {Prefix}{Entity}Collector {
export function collect(props: {
body: I{Prefix}{Entity}.ICreate;
}): Prisma.{table_name}CreateInput {
const id = v4();
const now = new Date();
return {
id,
field_name: props.body.field_name,
optional_field: props.body.optional_field ?? null,
parent: props.body.parent_id
? { connect: { id: props.body.parent_id } }
: undefined,
created_at: now,
updated_at: now,
deleted_at: null,
};
}
}
// src/transformers/{Prefix}{Entity}Transformer.ts
import { I{Prefix}{Entity} } from "@ORGANIZATION/PROJECT-api/lib/structures/I{Prefix}{Entity}";
import { {table_name} } from "@prisma/sdk";
export namespace {Prefix}{Entity}Transformer {
export function transform(record: {table_name}): I{Prefix}{Entity} {
return {
id: record.id,
name: record.name,
status: record.status,
created_at: record.created_at.toISOString(),
updated_at: record.updated_at.toISOString(),
deleted_at: record.deleted_at
? record.deleted_at.toISOString()
: null,
};
}
export function toSummary(record: {table_name}): I{Prefix}{Entity}.ISummary {
return {
id: record.id,
name: record.name,
status: record.status,
created_at: record.created_at.toISOString(),
};
}
export function transformMany(records: {table_name}[]): I{Prefix}{Entity}[] {
return records.map(transform);
}
export function toSummaryList(records: {table_name}[]): I{Prefix}{Entity}.ISummary[] {
return records.map(toSummary);
}
}
// Before
const createData: any = { ... };
return { id: created.id as string & tags.Format<"uuid">, ... };
// After
import { {Prefix}{Entity}Collector } from "../collectors/{Prefix}{Entity}Collector";
import { {Prefix}{Entity}Transformer } from "../transformers/{Prefix}{Entity}Transformer";
export async function post{Prefix}{Entity}(props: {
body: I{Prefix}{Entity}.ICreate;
}): Promise<I{Prefix}{Entity}> {
const data = {Prefix}{Entity}Collector.collect({ body: props.body });
const created = await MyGlobal.prisma.{table}.create({ data });
return {Prefix}{Entity}Transformer.transform(created);
}
// Before
return {
id: record.id as string & tags.Format<"uuid">,
...
};
// After
import { {Prefix}{Entity}Transformer } from "../transformers/{Prefix}{Entity}Transformer";
export async function get{Prefix}{Entity}(props: { id: string }): Promise<I{Prefix}{Entity}> {
const record = await MyGlobal.prisma.{table}.findUnique({ where: { id: props.id } });
if (!record) throw new HttpException("Not found", 404);
return {Prefix}{Entity}Transformer.transform(record);
}
npm run build:main
Repeat Steps 2-4 until no provider errors.
| Error Pattern | Fix |
|---|---|
as any | Create proper Collector/Transformer |
| Type assertion | Use Transformer for conversion |
| Missing import | Add import statement |
| Null reference | Add null check before transform |
npm run build:main completes with no errorsas any in providers