Filesystem Maintenance
Documentsfilesystem-maintenanceFilesystem Maintenance is an Agent Skill for documents published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when Codex needs to inspect or modify files via the local Python filesystem MCP server running at `servers/filesystem`.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/filesystem-maintenance/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/filesystem-maintenance, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
- Activate the repo virtual environment and install
servers/filesystem/requirements.txt. - Launch the server through
mcp.json(python servers/filesystem/server.py) withMCP_FS_ROOTpointing at the workspace root. - Confirm the server advertises the tools
list_dir,read_file,write_file, anddelete_path.
Workflow
- Discovery – call
list_dirto understand the structure before editing. Limit breadth by passing the nearest parent directory. - Read – fetch file contents using
read_file(relative_path)to avoid stale local copies. - Edit – stage modifications via normal repo tooling, then persist with
write_file. When writing, pass relative paths (e.g.,skills/github-operations/SKILL.md). - Cleanup – remove temporary artifacts using
delete_pathonly after verifying that the target path is insideMCP_FS_ROOT.
Notes
- The
_resolveguard insideserver.pyprevents escaping aboveMCP_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.