Skip to main content

preflight

PR・コミット前に CI 相当のローカル関門(typecheck / lint / unit / integration / docker build)を順に通し、落ちた所だけ報告する。CI が未整備の間の関門であり、のちの CI 仕様でもある。

Datos de origen

Repositorio
misskey-dev/sensitive-detector
Última actividad en el origen
26 de junio de 2026 a las 13:46
Idioma detectado de SKILL.md
japonés
Estrellas
11
Forks
3

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
preflight
description
PR・コミット前に CI 相当のローカル関門(typecheck / lint / unit / integration / docker build)を順に通し、落ちた所だけ報告する。CI が未整備の間の関門であり、のちの CI 仕様でもある。
disable-model-invocation
true
allowed-tools
Bash, Read
# preflight — ローカル関門(CI 相当) リポジトリルートで以下を順に実行する。**途中で落ちても残りは続行**し、最後に 「どこが緑/赤か」を一覧にする。すべて緑なら「PR 可」と明言する。 1. `pnpm run typecheck` — core を build してから各 package を `tsc --noEmit`。 2. `pnpm run lint` — `biome check .`。 3. `pnpm run test:unit` — 純粋ロジック。 4. `pnpm run test:integration` — 実モデルロード+実 classify。 **モデル不在なら自動 skip** される(その場合は「skip」と明示し、緑とは区別する)。 CPU/arch 非対応(x64 / arm64 以外)は skip ではなく失敗として扱う。 モデルは環境変数 `SENSITIVE_DETECTOR_TEST_MODEL_DIR` で上書き可。 5. `docker build -t sensitive-detector:preflight .` — ネイティブ依存(onnxruntime-node)の install/build が通るか。 **イメージの push はしない**(レジストリ publish は予定なし)。一番遅いステップなので最後に置く。 ## 報告フォーマット | step | 結果 | | --- | --- | | typecheck | ✅ / ❌ | | lint | ✅ / ❌ | | test:unit | ✅ / ❌ | | test:integration | ✅ / ❌ / ⏭ skip | | docker build | ✅ / ❌ | 赤があれば、そのコマンドの末尾出力から原因行を引用し、最小の修正方針を添える。
Ver en GitHub