LLM Filesystem Tools — Security skill for Claude Code
Python filesystem tools for AI models and LLMs.
How to install LLM Filesystem Tools
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dansasser/llm-filesystem-tools and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What LLM Filesystem Tools does
Python filesystem tools for AI models and LLMs. Secure directory access, file reading, grep search for Ollama, OpenAI, Anthropic Claude. Built-in path validation and security policies. Framework-agnostic function calling tools. Ideal for AI coding assistants and automated code analysis.
Alternatives in Security
- Security Threat Model — Generate repo-specific threat models identifying trust boundaries 14.6k ★
- Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
- Pocketpaw — Your AI agent in 30 seconds 775 ★
README
LLM Filesystem Tools
**Secure filesystem access for Large Language Models with governance-first design.**
[](https://badge.fury.io/py/llm-fs-tools) [](https://opensource.org/licenses/MIT) [](https://www.python.org/downloads/)
Stop reinventing filesystem tools for every LLM project. `llm-fs-tools` provides production-ready, secure file operations that work with any LLM supporting function calling - Ollama, OpenAI, Anthropic, and more.
The Problem
You want your AI assistant to analyze code, search files, or explore directories. You have three bad options:
- Inject everything into the prompt - Wastes tokens, hits context limits, can't scale
- Use heavy frameworks - LangChain/LlamaIndex lock you into their ecosystem
- Roll your own - Reinvent security, path validation, and tool schemas every time
The Solution
pip install llm-fs-tools
from llm_fs_tools import FileSystemTools, SecurityPolicy
# Define security boundaries
policy = SecurityPolicy(
allowed_roots=["./my-project"],
max_file_size_mb=5,
blocked_patterns=["*.env", ".git/*"]
)
# Initialize tools
fs_tools = FileSystemTools(policy)
# Use with any LLM (Ollama example)
import ollama
response = ollama.chat(
model='qwen2.5-coder',
messages=[{'role': 'user', 'content': 'Analyze the codebase structure'}],
tools=fs_tools.get_tool_definitions() # Auto-generates schemas
)
# Execute tool calls
for tool_call in response.message.tool_calls:
result = fs_tools.execute(
tool_call.function.name,
tool_call.function.arguments
)
**That's it.** Your model can now safely explore filesystems.
Features
🔒 Security First
- Path traversal protection - Validates all paths stay within allowed roots
- Configurable boundaries
Related Skills
Self Healing AI Cybersecurity Platform For Smart Power Grids
Self-Healing Multi-Agent AI Cybersecurity Platform for Smart Power Grids. Features Spatial PyTorch GNNs, LangG
Polyagent
Multi-provider AI agent bridge — an MCP server that lets Claude Desktop delegate tasks (security scans, code r
Sec Triage Agent
Autonomous LLM security triage agent built with Python, Claude Code, Ollama, and Pydantic. Automatically parse
Claude Skills Directory
A curated, community-maintained directory of Claude Code skills — from official Anthropic document tools to co
Su Presence
Are we present in search and AI answers? One audit surface for SEO, AEO, GEO, LLMO and Korean engines (Naver,
Sigil PR Audit
Audit the current Sigil PR branch with the shared sigil-pr-audit skill before reading the implementation diff.
Related Agents
AI ML
AI/ML 통합 전문가 + LLM API 최신 모델/SDK 코딩 가이드. RAG 시스템, 문서 분석, OpenAI/Anthropic/Gemini/Ollama 최신 API 보장. "AI integra
LLM Integrator
LLM integration specialist who connects to OpenAI/Anthropic/Ollama APIs, designs prompt templates, implements
AI LLM Engineer
Use this agent when the user types /ai or asks for ai/llm engineer work — e.g., build a RAG pipeline over our