Claude-skill-registry filesystem-maintenance
Use when Codex needs to inspect or modify files via the local Python filesystem MCP server running at `servers/filesystem`.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/filesystem-maintenance" ~/.claude/skills/majiayu000-claude-skill-registry-filesystem-maintenance && rm -rf "$T"
manifest:
skills/data/filesystem-maintenance/SKILL.mdsource content
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
) withpython servers/filesystem/server.py
pointing at the workspace root.MCP_FS_ROOT - Confirm the server advertises the tools
,list_dir
,read_file
, andwrite_file
.delete_path
Workflow
- Discovery – call
to understand the structure before editing. Limit breadth by passing the nearest parent directory.list_dir - Read – fetch file contents using
to avoid stale local copies.read_file(relative_path) - Edit – stage modifications via normal repo tooling, then persist with
. When writing, pass relative paths (e.g.,write_file
).skills/github-operations/SKILL.md - Cleanup – remove temporary artifacts using
only after verifying that the target path is insidedelete_path
.MCP_FS_ROOT
Notes
- The
guard inside_resolve
prevents escaping aboveserver.py
. If you see a permission error, double-check the path.MCP_FS_ROOT - Use this skill when another skill (e.g.,
) references files you must read—chain the skills rather than reimplementing file access.github-operations - Keep writes idempotent: re-read the file to ensure committed changes match expectations.