スキル一覧に戻る
knoopx

jc

by knoopx

pi.ai config

2🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: jc description: Convert the output of common CLI tools into JSON for easier processing and analysis. Use when parsing command-line tool output, processing data with JSON tools like jq, or analyzing system information programmatically.

JC Skill

This skill provides commands for using jc to convert traditional command-line output into JSON.

Basic Usage

# Pipe output of a command to jc
ls -l | jc --ls | jq '.[0].filename'

# Use the -p flag for pretty-print
uptime | jc --uptime -p

Supported Commands

jc supports over 100 commands. Here are some common ones:

  • ls: ls -l | jc --ls
  • ps: ps aux | jc --ps
  • df: df -h | jc --df
  • ifconfig: ifconfig | jc --ifconfig
  • netstat: netstat -rn | jc --netstat
  • dig: dig google.com | jc --dig
  • ping: ping -c 3 google.com | jc --ping
  • uptime: uptime | jc --uptime
  • crontab: crontab -l | jc --crontab

Magic Mode

The --magic (or -m) flag attempts to automatically detect the command:

jc -m ls -l
jc -m ping -c 3 google.com

Useful Patterns

Combining with JQ

# Get the IP address of the first interface
ifconfig | jc --ifconfig | jq '.[0].ipv4_addr'

# List files larger than 1MB
ls -lh | jc --ls | jq '.[] | select(.size > 1000000) | .filename'

Formatting Output

# YAML output
ls -l | jc --ls --yaml

Cheat Sheet

Common Parsers

  • --ls
  • --ps
  • --df
  • --dig
  • --ping
  • --ifconfig
  • --env
  • --ini
  • --xml
  • --csv

Global Options

  • -p, --pretty: Pretty-print JSON.
  • -m, --magic: Auto-detect command.
  • -q, --quiet: Suppress warning messages.
  • -r, --raw: Do not process values (no type conversion).
  • --yaml: Output YAML instead of JSON.
  • nu-shell: Process jc's JSON output using nu-shell's structured data handling and pipelines.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です