Agent skill
linux-filesystem
Filesystem operations within workspace boundaries
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/linux-filesystem
SKILL.md
Linux Filesystem Skill
Safe filesystem operations bounded to workspace directories.
See also: Shared Conventions | Safety Guidelines
Purpose
Navigate, read, and modify files within designated workspace directories.
Commands
ls <path>
cat <file>
head <file>
tail <file>
grep <pattern> <path>
find <path> <options>
mkdir -p <path>
cp <source> <dest>
mv <source> <dest>
rm <file>
rm -r <directory>
Workspace Boundary
All operations restricted to: ~/workspace/ and subdirectories
Before any operation, verify path is within bounds:
realpath /path/to/target | grep -q "^$HOME/workspace/" || echo "UNSAFE PATH"
Workflow Examples
Find Files
# Find by name
find ~/workspace/project -name "*.py" -type f
# Find recently modified
find ~/workspace/project -type f -mtime -1
# Find by content
grep -r "TODO" ~/workspace/project/
Read Files
# Full file
cat ~/workspace/project/config.json
# First/last lines
head -20 ~/workspace/project/logs/app.log
tail -50 ~/workspace/project/logs/app.log
# Follow logs
tail -f ~/workspace/project/logs/app.log
Modify Files
# Create directory
mkdir -p ~/workspace/project/src/utils
# Copy files
cp ~/workspace/project/config.example.json ~/workspace/project/config.json
# Move/rename
mv ~/workspace/project/old-name.py ~/workspace/project/new-name.py
Delete (Use with Caution)
# Single file
rm ~/workspace/project/temp.txt
# Directory (show contents first)
ls ~/workspace/project/build/
rm -r ~/workspace/project/build/
Policies
- Verify path is within workspace before any write/delete operation
- List before delete - always show what will be removed
- No symlink escape - verify symlinks don't point outside workspace
- No
..traversal that escapes workspace - Use
-iflag for interactive confirmation on destructive operations when uncertain
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?