Skip to content
Back to skills

1190 Shell 1903542d

BSecurity

Execute shell commands to interact with the system, files, and tools.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsshellbashgit

Works with

  • terminal

Security analysis

B85/100
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 1190-shell_1903542d --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1190 Shell 1903542d?

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

Security grade badge for 1190 Shell 1903542d
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1190-shell-1903542d/badge)](https://www.skillsdirectory.com/skills/tools-only-1190-shell-1903542d)

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

SKILL.md
---
match:
  keywords: [shell, command, bash, terminal, execute]
  tools: [shell]
---

# Working with Shell Commands

Execute shell commands to interact with the system, files, and tools.

## Best Practices

1. **Check before destructive operations**: Use `ls`, `git status`, etc. before `rm` or `git reset`
2. **Use absolute paths**: Relative paths can break if working directory changes
3. **Proper quoting**: Use single quotes for content with special characters
4. **Chain related commands**: Use `&&` to only continue if previous command succeeds

## Common Patterns

### Exploring the filesystem
```shell
# List files
ls -la

# Find files
find . -name "*.py" -type f

# Check directory structure
tree -L 2
```

### Git operations
```shell
# Check status before committing
git status

# Stage specific files
git add path/to/file.py

# Never use git add . or git add -A
```

### File operations
```shell
# Read files
cat README.md

# Search in files
grep -r "pattern" src/

# Copy with structure
cp -r src/ backup/
```

## Avoiding Common Mistakes

- ❌ Don't use `rm -rf` without careful review
- ❌ Avoid `git commit -a` - stage files explicitly
- ✅ Use `pwd` to verify current directory
- ✅ Test commands on small data first

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.