-
-
Notifications
You must be signed in to change notification settings - Fork 0
Skill Checkpoint
LoFi edited this page Jan 27, 2026
·
1 revision
The Checkpoint is the active enforcement mechanism of LoFi Gate. It guarantees your code meets the quality standards before you commit.
When you run lofi-gate init, it installs a mandatory skill into your agent's brain (workspace):
.agent/skills/lofi-gate-checkpoint/
βββ SKILL.md # The Rules (Instructions for AI)
βββ scripts/logger.py # The Ledger Writer
You don't run a script manually. You run the CLI:
lofi-gate verify-
Success: Returns
Exit Code 0. The Agent is allowed to proceed. -
Failure: Returns
Exit Code 1. The Agent is blocked.
This file tells the Agent how to behave. It establishes the "Rules" of the workspace:
- Red-Green-Refactor: Tests must be written first.
- Trust the Build: If the build fails, the code is wrong.
- Mandatory Checkpoint: The Agent must verify "Anti-Cheat" questions before committing.
The Checkpoint includes a Strict TDD check.
If you add a new source file (e.g., user_service.py) but do not add a corresponding test file (e.g., test_user_service.py or existing test update), the Checkpoint will reject the commit.