Back to skills
SKILL.md
Cli Mastery
ASecurity**Tags:** #tools #cli #railway #github #env
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added September 27, 2026
Works with
Security analysis
100/100npx -y skills add David-Li0406/meta-skill-evloving --skill cli-mastery --agent claude-codeAre you the author of Cli Mastery?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-cli-mastery)---
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
Comments
Loading commentsβ¦