More screenshots
Works with the AI Agents you already use
Ai Safe
by milcennii
Keep credentials and Git history away from AI agents by creating sanitized workspaces and automated security reviews.
Free
Ai Safe
Example session with this skill installed
Check whether ai-safe is installed (globally via ai-safe version, or locally via .ai-safe/bin/ai-safe version in this project). If it isn't, install it using my Agensi "Ai Safe" skill ai-safe-setup through the Agensi MCP. Ask me before each decision (install location, downloads, optional extras). Don't run ai-safe start, scan, sanitize or open yourself. When you're done, explain which commands I should run in my own terminal and what each one does.
- Read your context and instructions
- Compiled the ai safe
π Checking for ai-safe
$ command -v ai-safe || ls .ai-safe/bin/ai-safe
ls: cannot access '.ai-safe/bin/ai-safe': No such file or directory
ai-safe is not installed yet, so I'll install it from the ai-safe-setup skill.
| Check | Result |
|---|---|
| OS | β Linux x64 |
| Python | β
3.11.15 (python3.11) |
| Git, curl | β found |
| Skill files | β
SHA256SUMS verified |
β Before I install
1. Install globally (your account) or locally (this project only)?
β local2. The installer downloads Python packages from PyPI (typer, rich, pydantic, PyYAML, cryptography) and the official Gitleaks release (SHA-256 verified). With
--yesit also adds.ai-safe/to.gitignore. OK?
β yes3. PHP project? Add PHP tracing (
--php)?
β no
π¦ Installing
$ bash ~/.claude/skills/ai-safe-setup/install.sh --local ~/projects/shop-api --yes
[ai-safe] mode: local
[ai-safe] python: ~/.local/bin/python3.11 (Python 3.11.15)
[ai-safe] install dir: ~/projects/shop-api/.ai-safe
[ai-safe] installed ai-safe into ~/projects/shop-api/.ai-safe/venv
[ai-safe] installed gitleaks 8.21.2 (checksum verified)
[ai-safe] skills installed in ~/projects/shop-api/.claude/skills/
[ai-safe] wrote ~/projects/shop-api/ai-safe.yaml
[ai-safe] added .ai-safe/ to .gitignore
[ai-safe] done: ai-safe 1.0.4 (gitleaks: 8.21.2)
[ai-safe] run: ~/projects/shop-api/.ai-safe/bin/ai-safe start (from ~/projects/shop-api)
[ai-safe] tip: alias ai-safe="~/projects/shop-api/.ai-safe/bin/ai-safe"
[ai-safe] ai-safe never commits, pushes or launches an AI agent on its own. Run 'ai-safe integrate' yourself.
$ .ai-safe/bin/ai-safe version
ai-safe 1.0.4 (gitleaks: 8.21.2)
β ai-safe 1.0.4 is installed
π How to use it
Run these
yourself, in a normal terminal, not through me. Anything that can run commands in this repository can already read its secrets.
alias ai-safe="$PWD/.ai-safe/bin/ai-safe"
ai-safe start # scan β sanitize β verify; prints the workspace path
ai-safe open # open your AI agent inside that sanitized workspace
In the workspace, your AI sees placeholders like ${AI_SAFE_SECRET_DB_PASSWORD} instead of real values, and no Git history.
When the AI is done:
| Command | What it does |
|---|---|
ai-safe review | Checks the AI's changes for hardcoded credentials |
ai-safe integrate | Shows the patch. You type apply to bring it back |
ai-safe resync | Refreshes the workspace after integrating |
ai-safe never commits, pushes, or starts an AI session on its own.
Connects securely to your tools. The creator never sees your data.
About this skill
Giving an AI agent full access to your source code often means exposing environment variables, private keys, passwords, API keys, internal hostnames, sensitive emails and Git history. This skill package installs and manages the ai-safe CLI to create sanitized workspaces where secrets are replaced by deterministic placeholders, allowing agents to work without seeing real credentials.
What it does
- Workspace Sanitization creates a redacted copy of your repository with placeholders like
${AI_SAFE_SECRET_DB_PASSWORD}instead of real values. - Secret Scanning identifies credentials across the working tree, staged changes, and full Git history without displaying secret values.
- Change Review compares AI-generated code against a pristine snapshot to detect hardcoded credentials or placeholder misuse before integration.
- Safe Integration guides the developer through merging reviewed changes back to the original repository using a fail-closed patch process.
- Security Auditing generates evidence-based reports on workspace isolation, credential handling, and potential leak risks.
How it works
- Setup the developer runs the installer to add the
ai-safeCLI and its companion skills to their environment. - Sanitize the developer executes
ai-safe startin their original repository to create a secure workspace. - Operate the AI agent works exclusively within the sanitized workspace, referencing
AI_SAFE_PLACEHOLDERS.md. - Review the agent runs
ai-safe reviewto ensure no sensitive data or broken placeholders were introduced. - Integrate the developer runs
ai-safe integratein their terminal to apply the AI's patches to the original repo.
Frameworks & tools
This skill uses Python 3.11+, Git, and gitleaks. It integrates with AI agents via specialized SKILL.md files for scanning, auditing, and workspace management.
Why this beats prompting it yourself
Standard system prompts cannot prevent an agent from accidentally reading a .env/config file or seeing secrets in Git logs. This skill enforces a physical boundary by moving the agent to a directory where those secrets literally do not exist, while providing the CLI tools to verify that isolation remains intact.
Use cases
- Prevent AI agents from accessing
.aws,.ssh, or.npmrcfiles during coding tasks. - Provide a sanitized project copy to an agent without including sensitive Git history or author metadata.
- Verify that AI-generated PRs do not contain hardcoded API keys or passwords.
- Audit how an agent handles environment variables to ensure it follows secure coding practices.
Known limitations
Requires Python 3.11 or higher and Git. AI agents are prohibited from running the integration and sanitization steps themselves to maintain the security boundary.
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
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 1 day ago
- Free with an Agensi account
Mac only
- Software
Python
Git
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.