unix-cli-best-practices
Skill by flutter
Provides safe, portable command-line patterns for macOS and BSD Unix tools, plus ripgrep and fd alternatives. It is for developers who run shell commands, searches, and one-liners on macOS.
Install unix-cli-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/flutter/agent-plugins /tmp/agent-plugins && mkdir -p ~/.claude/skills && cp -r /tmp/agent-plugins/.agents/agents/reidbaker-agent/skills/unix-cli-best-practices ~/.claude/skills/unix-cli-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install unix-cli-best-practices in Claude Code
git clone --depth 1 https://github.com/flutter/agent-plugins /tmp/agent-plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-plugins/.agents/agents/reidbaker-agent/skills/unix-cli-best-practices ~/.gemini/antigravity-cli/skills/unix-cli-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install unix-cli-best-practices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The unix-cli-best-practices skill gives an AI assistant guidance on safe, portable command-line patterns for macOS and BSD Unix tools. It covers grep, find, sed, awk, xargs, and macOS utilities such as mdfind, pbcopy, and open. It recommends ripgrep and fd as faster alternatives that respect .gitignore rules by default.
The guide shows how to avoid common pitfalls, such as piping through grep -v instead of using exclusion flags, or using xargs without -0 on filenames with spaces. It includes examples for searching, text processing, codebase navigation, and parallel execution with xargs -P. It is aimed at developers working on macOS who run shell commands or one-liners.
Written from the project's SKILL.md and checked against it.
What it can do
- Fast text search with ripgrepUses rg patterns for case handling, globs, fixed strings, whole words, and context lines.
- File finding with fdFilters files by extension or type, includes hidden or ignored files, and runs commands on matches.
- Safe recursive search with grepExcludes directories and binary files at the filesystem level instead of piping through grep -v.
- Directory pruning with findSkips directories such as node_modules during traversal using the -prune option.
- In-place editing with sedExplains BSD sed in-place editing rules, backup extensions, and extended regular expressions with -E.
- Text processing with awkPrints columns, removes duplicate lines, filters by column values, and shows line numbers.
- Null-safe pipelines with xargsUses -print0 and xargs -0 for filenames with spaces, and -P to run tasks in parallel.
- Spotlight searches with mdfindQueries the macOS Spotlight index by filename or text content without scanning the disk.
- Clipboard and file openingUses pbcopy and pbpaste for the clipboard and open for files, folders, and URLs.
What you need
- macOS, the guide targets macOS and BSD utilities
- ripgrep (rg), recommended by the guide
- fd, recommended by the guide
Try asking
- Find all .ts files in this repo except spec files using fd or rg.
- Show me a safe way to delete log files that contain a given string.
- Use mdfind to locate my project_spec file on this Mac.
Good to know
- Built-in BSD tools are meant for use only when rg and fd are unavailable.
- The guide targets macOS and BSD utilities, which differ from GNU/Linux counterparts.
- grep -R follows symbolic links, while grep -r does not.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/agents/reidbaker-agent/skills/unix-cli-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to unix-cli-best-practices
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
unix-cli-best-practices: common questions
Why use ripgrep and fd instead of grep and find?
The guide says both are faster than the standard tools and respect .gitignore rules by default.
How does the skill avoid unsafe file deletion in pipelines?
It recommends find -print0 or grep -Z with xargs -0 so filenames with spaces or special characters are handled safely.
Does this skill target Linux as well as macOS?
The source says it is for macOS and BSD-derived utilities and notes differences from GNU/Linux tools. It does not state Linux support.
How do I install unix-cli-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is unix-cli-best-practices free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is unix-cli-best-practices safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to unix-cli-best-practices?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
