Agent skill

Bash Linux

by xenitV1 in xenitV1/Antigravity-Workflows

Bash/Linux terminal patterns. An agent skill from xenitV1/Antigravity-Workflows.

MITAuto-check: notes

Install Bash Linux

skills CLI
$ npx skills add xenitV1/Antigravity-Workflows --skill bash-linux -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xenitV1/Antigravity-Workflows bash-linux --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xenitV1/Antigravity-Workflows.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/bash-linux .claude/skills/bash-linux && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bash-linux
GitHub stars
130
Used in
8 other repos
Token cost
~1k tokens
SKILL.md length
347 words
Files
1
Skills in repo
42
Repo updated
First seen
Licence
MIT

At a glance

Bash/Linux terminal patterns. An agent skill from xenitV1/Antigravity-Workflows.

  • Works in 10 steps: Operator Syntax → File Operations → Process Management → …
  • Working on macOS
  • SKILL.md covers 1. Operator Syntax, 2. File Operations, 3. Process Management and 4. Text Processing, plus 6 more sections
  • Calls npm and curl

What it does

Bash Linux is an agent skill from xenitV1/Antigravity-Workflows. Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Linux, Bash, macOS and npm. The licence is MIT.

When your agent uses it

  • Working on macOS
  • Tasks that involve Error handling

Example prompts

  • “/bash-linux”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep, Bash

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Operator Syntax
  2. File Operations
  3. Process Management
  4. Text Processing
  5. Environment Variables
  6. Network
  7. Script Template
  8. Common Patterns
  9. Differences from PowerShell
  10. Error Handling

What it can do on your machine

Read from SKILL.md and the folder at commit f0a1fa7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Glob
    • Grep
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm and curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bash Linux loads about 1k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 347 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Glob, Grep, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xenitV1/Antigravity-Workflows at commit f0a1fa7, republished under its MIT licence (© xenitV1). 347 words, ~1,039 tokens.

Download SKILL.mdSave it as .claude/skills/bash-linux/SKILL.md (or your agent's skills folder).
name
bash-linux
description
Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.
allowed-tools
Read, Write, Edit, Glob, Grep, Bash

Bash Linux Patterns

Essential patterns for Bash on Linux/macOS.


1. Operator Syntax

Chaining Commands
OperatorMeaningExample
;Run sequentiallycmd1; cmd2
&&Run if previous succeedednpm install && npm run dev
||Run if previous failednpm test || echo "Tests failed"
|Pipe outputls | grep ".js"

2. File Operations

Essential Commands
TaskCommand
List allls -la
Find filesfind . -name "*.js" -type f
File contentcat file.txt
First N lineshead -n 20 file.txt
Last N linestail -n 20 file.txt
Follow logtail -f log.txt
Search in filesgrep -r "pattern" --include="*.js"
File sizedu -sh *
Disk usagedf -h

3. Process Management

TaskCommand
List processesps aux
Find by nameps aux | grep node
Kill by PIDkill -9 <PID>
Find port userlsof -i :3000
Kill portkill -9 $(lsof -t -i :3000)
Backgroundnpm run dev &
Jobsjobs -l
Bring to frontfg %1

4. Text Processing

Core Tools
ToolPurposeExample
grepSearchgrep -rn "TODO" src/
sedReplacesed -i 's/old/new/g' file.txt
awkExtract columnsawk '{print $1}' file.txt
cutCut fieldscut -d',' -f1 data.csv
sortSort linessort -u file.txt
uniqUnique linessort file.txt | uniq -c
wcCountwc -l file.txt

5. Environment Variables

TaskCommand
View allenv or printenv
View oneecho $PATH
Set temporaryexport VAR="value"
Set in scriptVAR="value" command
Add to PATHexport PATH="$PATH:/new/path"

6. Network

TaskCommand
Downloadcurl -O https://example.com/file
API requestcurl -X GET https://api.example.com
POST JSONcurl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' URL
Check portnc -zv localhost 3000
Network infoifconfig or ip addr

7. Script Template

bash
#!/bin/bash
set -euo pipefail  # Exit on error, undefined var, pipe fail

# Colors (optional)
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m'

# Script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Functions
log_info() { echo -e "${GREEN}[INFO]${NC} $1"; }
log_error() { echo -e "${RED}[ERROR]${NC} $1" >&2; }

# Main
main() {
    log_info "Starting..."
    # Your logic here
    log_info "Done!"
}

main "$@"

8. Common Patterns

Check if command exists
bash
if command -v node &> /dev/null; then
    echo "Node is installed"
fi
Default variable value
bash
NAME=${1:-"default_value"}
Read file line by line
bash
while IFS= read -r line; do
    echo "$line"
done < file.txt
Loop over files
bash
for file in *.js; do
    echo "Processing $file"
done

9. Differences from PowerShell

TaskPowerShellBash
List filesGet-ChildItemls -la
Find filesGet-ChildItem -Recursefind . -type f
Environment$env:VAR$VAR
String concat"$a$b""$a$b" (same)
Null checkif ($x)if [ -n "$x" ]
PipelineObject-basedText-based

10. Error Handling

Set options
bash
set -e          # Exit on error
set -u          # Exit on undefined variable
set -o pipefail # Exit on pipe failure
set -x          # Debug: print commands
Trap for cleanup
bash
cleanup() {
    echo "Cleaning up..."
    rm -f /tmp/tempfile
}
trap cleanup EXIT

Remember: Bash is text-based. Use && for success chains, set -e for safety, and quote your variables!

© xenitV1, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/bash-linux of xenitV1/Antigravity-Workflows.

Open the folder on GitHubat commit f0a1fa7

Used in 8 other repositories

We found 24 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 8 other GitHub owners. This page covers the copy in xenitV1/Antigravity-Workflows, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Bash Linux next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bash Linux compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bash Linux this skillxenitV1/Antigravity-Workflows1308 repos~1kAutomated safety check: NotesMIT
Cm Checkkingxiaozhe/cm-workflow104—~1.3kAutomated safety check: PassMIT
Agentaudit SkillLeoYeAI/openclaw-master-skills2.2k—~4.6kAutomated safety check: NotesMIT
Mole Bug Patternstw93/Mole69k—~2kAutomated safety check: PassGPL-3.0
Code Change Verificationopenai/openai-agents-python30k—~1.4kAutomated safety check: PassMIT
Daily Briefleiting-eric/DailyBrief364—~3kAutomated safety check: NotesMIT

Similar skills

  • Cm Check

    kingxiaozhe/cm-workflow

    用户说“检查工作流是否安装正确”“为什么找不到 cm 命令”时使用。默认查询 npm 稳定版,有新版自动升级已管理的 CM 安装,再检查插件、核心 Skills、兼容包装与模板引用;不测试或修改业务代码。

    104 GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Agentaudit Skill

    LeoYeAI/openclaw-master-skills

    Automatic security gate that checks packages against a vulnerability database before installation.

    2.2k GitHub stars~4.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    69k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Change Verification

    openai/openai-agents-python

    Official

    Run the required final formatting, lint, type, and test checks after eligible SDK changes pass review.

    30k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Daily Brief

    leiting-eric/DailyBrief

    Operational knowledge for the daily-brief digest pipeline (this project).

    364 GitHub stars~3k tokensUpdated today
    Productivity & AutomationAuto-check: notes
  • Tbtools

    xuzhougeng/wispterm

    A skill your agent uses when the user asks about TBtools, TBtools-II, TBtools RPC API, TBtools CLI, or bioinformatics operations available through TBtools such as sequence manipulation, BLAST…

    440 GitHub stars~2.3k tokensUpdated yesterday
    Research & ScienceAuto-check passed

More from xenitV1/Antigravity-Workflows

All 42 skills in this repo
  • Parallel Agents

    xenitV1/Antigravity-Workflows

    Native multi-agent orchestration using Claude Code's Agent Tool.

    130 GitHub starsUsed in 9 repos~1.3k tokens
    Auto-check passed
  • Mobile Design

    xenitV1/Antigravity-Workflows

    Mobile-first design thinking and decision-making for iOS and Android apps.

    130 GitHub starsUsed in 2 repos~3.7k tokens
    Auto-check: notes
  • Behavioral Modes

    xenitV1/Antigravity-Workflows

    AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate).

    130 GitHub starsUsed in 8 repos~1.3k tokens
    Auto-check passed
  • Plan Writing

    xenitV1/Antigravity-Workflows

    Structured task planning with clear breakdowns, dependencies, and verification criteria.

    130 GitHub starsUsed in 8 repos~994 tokens
    Auto-check passed
  • I18n Localization

    xenitV1/Antigravity-Workflows

    Internationalization and localization patterns. An agent skill from xenitV1/Antigravity-Workflows.

    130 GitHub starsUsed in 7 repos~758 tokens
    Auto-check passed
  • Frontend Design

    xenitV1/Antigravity-Workflows

    Design thinking and decision-making for web UI. An agent skill from xenitV1/Antigravity-Workflows.

    130 GitHub stars~2.9k tokensUpdated 8 mo ago
    Auto-check: notes

Questions about Bash Linux

What does Bash Linux do?

Bash/Linux terminal patterns. An agent skill from xenitV1/Antigravity-Workflows. Bash Linux is an agent skill from xenitV1/Antigravity-Workflows. Bash/Linux terminal patterns.

When should I use Bash Linux?

Bash Linux fits situations like: working on macOS; tasks that involve Error handling.

How do I install Bash Linux in Claude Code?

Run `npx skills add xenitV1/Antigravity-Workflows --skill bash-linux -a claude-code`. Or copy the skill folder (skills/bash-linux in xenitV1/Antigravity-Workflows) into .claude/skills/bash-linux in your project. Claude Code loads it when a task matches its description.

How do I install Bash Linux in Codex?

Run `npx skills add xenitV1/Antigravity-Workflows --skill bash-linux -a codex`. Or copy the skill folder (skills/bash-linux in xenitV1/Antigravity-Workflows) into .agents/skills/bash-linux in your project. Codex loads it when a task matches its description.

Can I use Bash Linux in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xenitV1/Antigravity-Workflows --skill bash-linux -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bash-linux, .gemini/skills/bash-linux, .github/skills/bash-linux and .opencode/skills/bash-linux in your project.

What does Bash Linux need to run?

Going by SKILL.md and its folder, Bash Linux needs the command-line tools its instructions call (npm and curl). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, Bash.

Does Bash Linux access the network?

SKILL.md contains no URLs. Its commands use npm and curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Bash Linux safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Bash Linux use?

Bash Linux is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bash Linux use?

About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bash Linux?

Skills that share tags, products or a category with Bash Linux: Cm Check (kingxiaozhe/cm-workflow, 104 stars), Agentaudit Skill (LeoYeAI/openclaw-master-skills, 2.2k stars), Mole Bug Patterns (tw93/Mole, 69k stars) and Code Change Verification (openai/openai-agents-python, 30k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bash Linux?

xenitV1 (a GitHub user) maintains it in xenitV1/Antigravity-Workflows, which has 130 GitHub stars. The repository holds 42 skills in this directory. The repository was last updated on January 14, 2026.

Source: xenitV1/Antigravity-Workflows on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.