Skip to content
Back to skills

Filesystem Maintenance

ASecurity

Use when Codex needs to inspect or modify files via the local Python filesystem MCP server running at `servers/filesystem`.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
developmentpythonshellgitapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill filesystem-maintenance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Filesystem Maintenance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Filesystem Maintenance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-filesystem-maintenance/badge)](https://www.skillsdirectory.com/skills/majiayu000-filesystem-maintenance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: filesystem-maintenance
description: Use when Codex needs to inspect or modify files via the local Python filesystem MCP server running at `servers/filesystem`.
---

# Filesystem Maintenance

## Purpose
Safely read, write, and delete files under `MCP_FS_ROOT` using the stdio-based filesystem MCP server bundled with this repository. Applies to refactors, log retrieval, and config updates when direct shell access is discouraged.

## Setup Checklist
1. Activate the repo virtual environment and install `servers/filesystem/requirements.txt`.
2. Launch the server through `mcp.json` (`python servers/filesystem/server.py`) with `MCP_FS_ROOT` pointing at the workspace root.
3. Confirm the server advertises the tools `list_dir`, `read_file`, `write_file`, and `delete_path`.

## Workflow
1. **Discovery** – call `list_dir` to understand the structure before editing. Limit breadth by passing the nearest parent directory.
2. **Read** – fetch file contents using `read_file(relative_path)` to avoid stale local copies.
3. **Edit** – stage modifications via normal repo tooling, then persist with `write_file`. When writing, pass relative paths (e.g., `skills/github-operations/SKILL.md`).
4. **Cleanup** – remove temporary artifacts using `delete_path` only after verifying that the target path is inside `MCP_FS_ROOT`.

## Notes
- The `_resolve` guard inside `server.py` prevents escaping above `MCP_FS_ROOT`. If you see a permission error, double-check the path.
- Use this skill when another skill (e.g., `github-operations`) references files you must read—chain the skills rather than reimplementing file access.
- Keep writes idempotent: re-read the file to ensure committed changes match expectations.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.