Agent skill
cli-mastery
Install this agent skill to your Project
npx add-skill https://github.com/stars-end/agent-skills/tree/master/cli-mastery
SKILL.md
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 becomesrailway 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.
# 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.
# List open PRs
gh pr list --json number,title,author,state
2. Actions
# Create a PR
gh pr create --fill
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
toolchain-health
Validate Python toolchain alignment between mise, Poetry, and pyproject. Use when changing Python versions, editing pyproject.toml, or seeing Poetry/mise version solver errors. Invokes /toolchain-health to check: - .mise.toml python tool version - pyproject.toml python constraint - Poetry env python interpreter Keywords: python version, mise, poetry, toolchain, env use, lock, install
parallelize-cloud-work
Delegate independent work to Claude Code Web cloud sessions for parallel execution. Generates comprehensive session prompts with context exploration guidance, verifies Beads state, provides tracking commands. Use when user says "parallelize work to cloud", "start cloud sessions", or needs to execute multiple independent tasks simultaneously, or when user mentions cloud sessions, cloud prompts, delegate to cloud, Claude Code Web, generate session prompts, parallel execution, or asks "how do I use cloud sessions".
docs-create
Create epic-specific documentation skill with external reference docs. MUST BE USED for caching external docs. Fetches URLs, caches full content, uses documentation-engineer to generate cohesive summaries, and creates auto-activating skill. Use when starting work on epic that requires external documentation context (API docs, tool guides, reference materials), or when user mentions "cache docs", "external docs", "API documentation", URLs for docs, documentation needs, reference materials, knowledge caching, or epic context documentation.
railway-doctor
git-safety-guard
Installs a Git safety guard hook for Claude Code to prevent destructive Git and filesystem commands. Blocks accidental data loss from commands like 'git checkout --', 'git reset --hard', 'git clean -f', 'git push --force', and 'rm -rf'. Use this skill to set up safety rails in a new or existing repository, or globally for the agent.
beads-guard
Safe Beads workflow helper (warning-only). Use before bd sync/close/create to avoid JSONL conflicts. Ensures you are on a feature branch, up to date with origin/master, and stages Beads files cleanly with Feature-Key commits.
Didn't find tool you were looking for?