Skip to main content

使用jq在Dash脚本中修改JSON文件

Modifies JSON key-value pairs in Dash scripts using jq, ensuring safe variable handling and file integrity through temporary files.

Install this skill

or
85/100

Security score

The 使用jq在Dash脚本中修改JSON文件 skill was audited on Mar 3, 2026 and we found 1 security issue across 1 threat category, including 1 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

high line 32

Template literal with variable interpolation in command context

SourceSKILL.md
323. 使用 `jq` 命令修改JSON文件,必须使用 `--arg` 选项传递变量,格式为 `jq --arg key "${key}" --arg arg "${arg}" '.[$key] = $arg'`,以确保反斜杠等特殊字符不被错误转义。
Scanned on Mar 3, 2026
View Security Dashboard
Installation guide →
GitHub Stars 40
Rate this skill
Categoryother
UpdatedMay 12, 2026
ECNU-ICALK/AutoSkill