소스 정보
- 저장소
- hiroppy/mf-dashboard
- 최근 소스 활동
- 2026년 7월 27일 12:46
- 감지된 SKILL.md 언어
- 영어
- 스타
- 385
- 포크
- 46
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/hiroppy/mf-dashboard --skill crawler-scraper명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Use when adding/modifying database tables or columns in Drizzle ORM schema
Use when needing to visualize database schema, generate ERD diagrams from Drizzle ORM schemas, or understand table relationships
Use when creating new UI components under apps/web/src/components/
SOC 직업 분류 기준
SKILL.md 표시 중
| name | crawler-scraper |
| description | Use when adding new scraping targets to the crawler |
packages/meta/src/urls.tsapps/crawler/src/scrapers/packages/db/src/types.tsapps/crawler/src/index.ts| Purpose | Location |
|---|---|
| URLs | packages/meta/src/urls.ts |
| Scrapers | apps/crawler/src/scrapers/*.ts |
| Types | packages/db/src/types.ts |
| Repositories | packages/db/src/repositories/ |
| Parsers | apps/crawler/src/parsers.ts |
| Entry point | apps/crawler/src/index.ts |
// apps/crawler/src/scrapers/my-feature.ts
import type { MyData } from "@mf-dashboard/db/types";
import type { Page } from "playwright";
import { mfUrls } from "@mf-dashboard/meta";
import { debug } from "../logger.js";
import { parseJapaneseNumber } from "../parsers.js";
export async function getMyData(page: Page): Promise<MyData> {
debug("Getting my data from /path...");
await page.goto(mfUrls.myFeature, {
waitUntil: "domcontentloaded",
});
await page.waitForTimeout(2000);
// Scraping logic here...
const rows = page.locator("table tbody tr");
const count = await rows.count();
const results: MyItem[] = [];
for (let i = 0; i < count; i++) {
const row = rows.nth(i);
const text = await row
.locator("td")
.first()
.textContent({ timeout: 1000 })
.catch(() => "");
results.push({
// parsed data
});
}
return { items: results };
}
// packages/meta/src/urls.ts
export const mfUrls = {
// existing urls...
myFeature: "https://moneyforward.com/path/to/feature",
};
| Priority | Type | When to Use | Location |
|---|---|---|---|
| 1 | Unit | Post-extraction parsing, normalization, comparison, mapping, and fail-closed decisions using anonymous strings or objects | *.test.ts next to source |
| 2 | E2E | Selectors, navigation, and required HTML/DOM structure on the authenticated real service | tests/e2e/*.test.ts in the e2e Vitest project |
| 3 | HTML fixture exception | A failure branch that cannot be produced safely and deterministically against the real service | The narrowest applicable unit test |
pnpm --filter @mf-dashboard/crawler testpnpm --filter @mf-dashboard/crawler test:e2eSKIP_REFRESH=true pnpm --filter @mf-dashboard/crawler startdebug/ directorydebug/ directoryparseJapaneseNumber() for Japanese currency format (e.g., "1,234円" → 1234)debug() from logger for debug output.catch(() => defaultValue){ timeout: 1000 } for individual element queries to avoid hanging