MCP HubMCP Hub
SKILL·B4B698

loki-seal

asklokesh
更新日 23 days ago
20 閲覧
1,093
206
1,093
GitHubで表示
テストaitestingdesign

について

Loki Sealは、テストを含むリポジトリでコーディングタスクを完了する開発者向けの品質ゲートです。ローカルのテストスイートを自動的に実行し、新たにテストが失敗した場合、テストカバレッジが低下した場合、またはCI設定が弱体化した場合に完了をブロックします。このツールはモデル呼び出しを必要とせず、完全にローカルで動作します。

クイックインストール

Claude Code

推奨
メイン
npx skills add asklokesh/claudeskill-loki-mode -a claude-code
プラグインコマンド代替
/plugin add https://github.com/asklokesh/claudeskill-loki-mode
Git クローン代替
git clone https://github.com/asklokesh/claudeskill-loki-mode.git ~/.claude/skills/loki-seal

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Loki Seal

The enforcing piece is the plugin's Stop hook (bin/loki-seal.js). This skill is advisory: it tells you what the hook checks so you do not trip it. It registers no hooks itself.

When you try to finish, the hook:

  1. Detects the runner (npm test with node --test/jest/vitest, pytest, go test, cargo test) and runs the real suite on the working tree.
  2. Blocks the stop when tests newly fail since session start (already-red tests are reported, not blamed, except that a request item whose tests fail now always blocks), when the run crashed or ran nothing, when the total test count dropped, or when, compared with the session baseline, a test file was removed, test declarations or assertions dropped, a skip/xfail/only marker was added, or a CI workflow test step was removed or softened.
  3. Reads the delivery contract from your first request (see README) and blocks while a request item (a must or bullet line of 2+ keywords) has no matching test that contains an assertion token and that the runner reported as passed (comments, docstrings, string, template and regex literals, skipped tests and tests in files the runner never ran never count), and always blocks while any test matched to a request item fails now: failing tests never count as covered. Only sentences opening with I, we, let me or let's (and tool-version or status notes) are dropped as chat and listed in the contract line; You, Our, My and Please sentences with a modal are requirement items. A spec file counts only when you mark it ("spec: docs/x.md"); when no contract can be derived the receipt says "NOT VERIFIED: no contract".
  4. Reports a 6-line receipt (outcome, runner and counts, tests-integrity, contract, tree hash, Verified by Loki link).

What to do when it blocks

Fix the production code. Do not delete, skip, xfail or weaken tests to get green; that is exactly what the hook detects. If a test is genuinely wrong, tell the user and let them decide.

Install

Install the plugin: claude plugin marketplace add <owner/repo or path>, then install loki-seal from the /plugin UI. Installing only this skill gives you the guidance but no enforcement.

GitHub リポジトリ

asklokesh/claudeskill-loki-mode
パス: packages/loki-seal/skills/loki-seal
0
ai-agentsai-coding-agentsai-coding-toolsanthropicautonomous-agentsclaude
FAQ

よくある質問

loki-seal Skillとは何ですか?

loki-seal はasklokesh が作成した Claude Skillです。Skillは、Claudeが必要に応じて読み込む指示とリソースをまとめ、追加の指示なしで loki-seal に関連するタスクを実行できるようにします。

loki-seal をインストールするには?

このページのインストールコマンドを使用してください。loki-seal をプラグインとして Claude Code に追加するか、リポジトリを skills ディレクトリにクローンし、Claudeを再起動してSkillを読み込みます。

loki-seal はどのカテゴリに属しますか?

loki-seal は テスト カテゴリに属します。

loki-seal は無料で利用できますか?

はい。loki-seal は AIMCP に掲載されており、無料でインストールできます。

関連スキル

evaluating-llms-harness
テスト

このClaudeスキルは、lm-evaluation-harnessを実行し、MMLUやGSM8Kなど60以上の標準化学術タスクでLLMをベンチマークします。開発者がモデルの品質を比較し、トレーニングの進捗を追跡し、学術的な結果を報告するために設計されています。このツールはHuggingFaceやvLLMモデルを含む様々なバックエンドをサポートしています。

スキルを見る
cloudflare-cron-triggers
テスト

このスキルは、cron式を使用してWorkersをスケジュールするためのCloudflare Cron Triggersの実装に関する包括的な知識を提供します。定期的なタスクの設定、メンテナンスジョブ、自動化されたワークフローの構築を網羅し、無効なcron式やタイムゾーン問題といった一般的な課題への対処法も含みます。開発者はこれを使用して、スケジュールされたハンドラーの設定、cronトリガーのテスト、WorkflowsやGreen Computeとの連携を構成できます。

スキルを見る
webapp-testing
テスト

このClaude Skillは、Playwrightベースのツールキットを提供し、Pythonスクリプトを通じてローカルWebアプリケーションのテストを可能にします。フロントエンドの検証、UIデバッグ、スクリーンショット撮影、ログ表示を実現し、サーバーライフサイクルを管理します。ブラウザ自動化タスクにご利用いただけますが、コンテキストの汚染を避けるため、スクリプトのソースコードを読むのではなく直接実行してください。

スキルを見る
finishing-a-development-branch
テスト

このスキルは、開発者がテストの合格を確認し、構造化された統合オプションを提示することで、完成した作業を仕上げることを支援します。実装が完了した後のマージ、PR作成、ブランチの整理といったワークフローを案内します。コードが準備できてテスト済みの際に使用し、開発プロセスを体系的に完了させましょう。

スキルを見る