Skip to content
Back to skills

Cli Mastery

ASecurity

**Tags:** #tools #cli #railway #github #env

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolspythonbashgitdatabase

Works with

  • cli

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cli-mastery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli Mastery?

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

Security grade badge for Cli Mastery
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cli-mastery/badge)](https://www.skillsdirectory.com/skills/david-li0406-cli-mastery)

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

Download with Pro
SKILL.md
---
name: cli-mastery
description: **Tags:** #tools #cli #railway #github #env
---

# CLI Mastery & Environment Protocol

**Tags:** #tools #cli #railway #github #env

## 🚨 Environment Variable Protocol (CRITICAL)

**Core Rule:** Do NOT look for `.env` files.
**Automation:** Use the `run` command wrapper.

### The `run` Command
We have installed a smart wrapper called `run`. It automatically detects if you need Railway secrets and injects them.

**Usage:**
Always prefix your execution commands with `run`.

*   ❌ `python main.py`
*   βœ… `run python main.py` (Automatically becomes `railway run python main.py`)
*   βœ… `run pytest`
*   βœ… `run make dev`

**Verification:**
If `run env | grep DATABASE_URL` returns nothing, then the project is not configured correctly.

---

## πŸš… Railway CLI (`railway`)

### 1. Context
*   **Check Environment:** `railway environment`
*   **List Services:** `railway service`

### 2. Diagnosis
Don't guess. Check the logs.
```bash
# Get the last 50 lines of logs
run railway logs -n 50
```

---

## πŸ™ GitHub CLI (`gh`)

### 1. Reading State (JSON is King)
Always use `--json` to get structured data.

```bash
# List open PRs
gh pr list --json number,title,author,state
```

### 2. Actions
```bash
# Create a PR
gh pr create --fill
```

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…