More screenshots

    Works with the AI Agents you already use

    Ai Safe

    by milcennii

    2

    Keep credentials and Git history away from AI agents by creating sanitized workspaces and automated security reviews.

    Free

    Security scanned
    Ai Safe

    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.

    CheckResult
    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)?
    β†’ local

    2. The installer downloads Python packages from PyPI (typer, rich, pydantic, PyYAML, cryptography) and the official Gitleaks release (SHA-256 verified). With --yes it also adds .ai-safe/ to .gitignore. OK?
    β†’ yes

    3. 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:

    CommandWhat it does
    ai-safe reviewChecks the AI's changes for hardcoded credentials
    ai-safe integrateShows the patch. You type apply to bring it back
    ai-safe resyncRefreshes 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

    1. Setup the developer runs the installer to add the ai-safe CLI and its companion skills to their environment.
    2. Sanitize the developer executes ai-safe start in their original repository to create a secure workspace.
    3. Operate the AI agent works exclusively within the sanitized workspace, referencing AI_SAFE_PLACEHOLDERS.md.
    4. Review the agent runs ai-safe review to ensure no sensitive data or broken placeholders were introduced.
    5. Integrate the developer runs ai-safe integrate in 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 .npmrc files 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    PythonGit

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files
    Environment Variables
    Listed4 days ago
    Updated1 day ago

    What's inside

    Frequently Asked Questions

    This skill creates a sanitized workspace where sensitive environment variables and private keys are replaced with placeholders, ensuring the agent cannot access real credentials even if it scans the directory or Git history.

    You need Python 3.11 or higher and Git installed on your system to run the underlying security tools and workspace management CLI.

    The skill provides evidence-based security audit reports on workspace isolation and generates a specialized file called AI_SAFE_PLACEHOLDERS.md for the agent to reference.

    The agent is restricted to working in the sanitized environment and is strictly prohibited from running the final integration and sanitization steps to maintain a secure boundary.

    This skill is specifically designed to block access to sensitive files like .aws, .ssh, or .npmrc, and it scans staged changes and Git history to ensure no hardcoded credentials are introduced.

    You can prompt your agent to work within the sanitized workspace and use the review command to verify that no sensitive data or broken placeholders were added to the code.

    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.

    Free