loki-seal
About
Loki Seal is a quality gate for developers to use before completing any coding task in a repository with tests. It runs the project's real test suite locally and blocks completion if new test failures are introduced, the total test count drops, or test configurations are weakened. This ensures code changes do not degrade existing test coverage or stability.
Quick Install
Claude Code
Recommendednpx skills add asklokesh/claudeskill-loki-mode -a claude-code/plugin add https://github.com/asklokesh/claudeskill-loki-modegit clone https://github.com/asklokesh/claudeskill-loki-mode.git ~/.claude/skills/loki-sealCopy and paste this command in Claude Code to install this skill
Documentation
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:
- Detects the runner (npm test with node --test/jest/vitest, pytest, go test, cargo test) and runs the real suite on the working tree.
- Blocks the stop when tests newly fail since session start (already-red tests are reported, not blamed), 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.
- Reports a 5-line receipt (outcome, runner and counts, tests-integrity, 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 Repository
Frequently asked questions
What is the loki-seal skill?
loki-seal is a Claude Skill by asklokesh. Skills package instructions and resources that Claude loads on demand, so Claude can perform loki-seal-related tasks without extra prompting.
How do I install loki-seal?
Use the install commands on this page: add loki-seal to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does loki-seal belong to?
loki-seal is in the Testing category.
Is loki-seal free to use?
Yes. loki-seal is listed on AIMCP and free to install.
Related Skills
This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
This skill provides comprehensive knowledge for implementing Cloudflare Cron Triggers to schedule Workers using cron expressions. It covers setting up periodic tasks, maintenance jobs, and automated workflows while handling common issues like invalid cron expressions and timezone problems. Developers can use it for configuring scheduled handlers, testing cron triggers, and integrating with Workflows and Green Compute.
This Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.
This skill helps developers complete finished work by verifying tests pass and then presenting structured integration options. It guides the workflow for merging, creating PRs, or cleaning up branches after implementation is done. Use it when your code is ready and tested to systematically finalize the development process.
