Loci Guard
by Dib68
Persistent project memory, security shielding, and risk forecasting for AI coding agents.
$3
Loci Guard
Example session with this skill installed
Initialize Loci Guard for this project and set a high priority rule that all database queries must use the existing db_client.py wrapper.
- Read your context and instructions
- Compiled the loci guard
Loci Guard has been initialized in this repository. I have recorded the new architectural constraint for the project.
Project Memory Initialized
| Action | Entity | Details | Severity |
|---|---|---|---|
| Setup | .loci/ | Created project memory directory | INFO |
| Constraint | db_wrapper_only | All database queries must use db_client.py | HIGH |
| Intention | audit_queries | Check for direct SQL imports in existing files | MEDIUM |
The .loci/ folder is now tracking this repository. The new rule db_wrapper_only will be surfaced whenever I or other agents work on files in this project.
Next steps
- Run
loci-guard contextto see the current active rule set. - Use
loci-guard checkbefore saving any new database-related code to ensure compliance. - Call
loci-guard recall --search "database"if you need to reference the reasoning behind this decision later.
Connects securely to your tools. The creator never sees your data.
About this skill
AI coding agents often forget local project rules, repeat past mistakes, and accidentally commit secrets or vulnerable code. Loci Guard provides a persistent memory layer and security gate that stays with your repository across sessions and different agents.
What it does
- Persistent memory stores architectural decisions, project rules, and lessons learned in a
.loci/folder. - Security shielding scans code for secrets, PII leaks, SQL injection, and debug leftovers before they reach your files.
- Foresight forecasting uses persona-based simulations to predict potential issues with wide-ranging or risky changes.
- Context injection automatically feeds relevant folder-specific rules to the agent as it navigates the codebase.
- Task intentions tracks location-aware to-dos that trigger when the agent enters specific directories.
How it works
- Run
loci-guard setupto initialize the memory store in your current repository. - Use
loci-guard contextat the start of a session to load relevant rules and pending intentions. - Use
loci-guard constrainorrememberto save new decisions or bug root causes as they occur. - Run
loci-guard checkon code snippets orloci-guard gateon staged changes to block security violations.
Frameworks & tools
Requires Python 3.10 or higher. It operates as a CLI tool or an MCP server. It includes specific hooks for Claude Code and works with any agent capable of using shell tools or MCP.
Why this beats prompting it yourself
Manual prompts are lost when a session ends or context windows are cleared. This tool persists project-specific constraints in the repo itself, ensuring every subagent and future session follows the same security standards and architectural patterns without manual re-entry.
Use cases
- Enforcing specific API patterns or library choices across a large team.
- Preventing the accidental commit of hardcoded credentials or PII.
- Onboarding new agents to a complex codebase with "lessons learned" from past bugs.
- Simulating the impact of major refactors using the foresight swarm.
Known limitations
Requires the loci-guard Python package to be installed in the environment. Foresight forecasts require additional subagent capacity.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 10 days ago
- Software
Python
Git
Permissions
What's inside
Creator
Dib68
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.