← スキル一覧に戻る

forge-lang-typescript
by martimramos
⭐ 0🍴 0📅 2025年12月21日
SKILL.md
name: forge-lang-typescript description: TypeScript development standards including type checking, jest/vitest, eslint, and prettier. Use when working with TypeScript files, tsconfig.json, or .ts/.tsx files.
TypeScript Development
Type Checking
# Check types without emitting
npx tsc --noEmit
# Watch mode
npx tsc --noEmit --watch
Testing
# Run all tests
npm test
# Run with coverage
npm test -- --coverage
# Run in watch mode
npm test -- --watch
# Run specific test
npm test -- --testPathPattern=module.test
Linting
# Run eslint
npm run lint
# Fix auto-fixable issues
npm run lint -- --fix
# Type-aware linting (if configured)
npx eslint --ext .ts,.tsx src/
Formatting
# Format with prettier
npm run format
# Check without changing
npx prettier --check .
Project Structure
project/
├── src/
│ ├── index.ts
│ ├── types.ts
│ └── module.ts
├── tests/
│ └── module.test.ts
├── package.json
├── tsconfig.json
└── README.md
tsconfig.json Template
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
package.json Scripts
{
"scripts": {
"build": "tsc",
"test": "jest",
"lint": "eslint src/",
"format": "prettier --write .",
"typecheck": "tsc --noEmit",
"check": "npm run typecheck && npm run lint && npm run test"
}
}
TDD Cycle Commands
# RED: Write test, run to see it fail
npm test -- --testPathPattern=new_feature
# GREEN: Implement, run to see it pass
npm test -- --testPathPattern=new_feature
# REFACTOR: Clean up, ensure tests still pass
npm run check
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です