← Back to list

jc
by knoopx
pi.ai config
⭐ 2🍴 0📅 Jan 21, 2026
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 --lsps:ps aux | jc --psdf:df -h | jc --dfifconfig:ifconfig | jc --ifconfignetstat:netstat -rn | jc --netstatdig:dig google.com | jc --digping:ping -c 3 google.com | jc --pinguptime:uptime | jc --uptimecrontab: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.
Related Skills
- nu-shell: Process jc's JSON output using nu-shell's structured data handling and pipelines.
Score
Total Score
50/100
Based on repository quality metrics
✓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
Reviews
💬
Reviews coming soon