dgngjx-skill
БесплатноБез исполняемых скриптовНе проверен多功能免费工具箱 - 图片处理、PDF转换、数据换算、文本工具、开发工具、视频工具、教育、生活娱乐、实用小工具、系统工具、AI办公。11大模块49个工具。v4.1 包化架构:SKILL.md 129KB→30KB + 11模块外置 + 四包机制(core/dev/ent/media)+ 首次体检报告。
от fyniujin1 584 установки в других каталогахОб этом скилле
多功能工具箱 dgngjx-skill v4.1.0
🚀 dgngjx CLI 统一入口 ⭐ v3.9.0 新增
✅ 开箱即用(纯 Python 标准库 argparse,零依赖)
v4.1.0 新增:
--install-pack安装可选包、--list-packs列出可用包、--health首次体检报告。
📋 CLI 使用方式
# 直接调用工具(参数化,非交互)
dgngjx calc.mortgage --amount 1000000 --years 30 --rate 4.2
dgngjx text.encode --method base64 --text "Hello World"
dgngjx img.compress --path ./photos/ --quality 80 --format JPEG
dgngjx hash.md5 --file document.pdf
dgngjx exchange --amount 100 --from USD --to CNY
# 机器可解析输出(供 CI/计划任务使用)
dgngjx sys.monitor --json
# 无人值守模式(跳过非危险确认点)
dgngjx file.rename --dir ./photos/ --prefix "vacation_" --yes
# 或设置环境变量
export DGNGJX_ASSUME_YES=1
dgngjx img.convert --path ./photos/ --format PNG
# 包管理(v4.1.0 新增)
dgngjx --list-packs # 列出所有可用包
dgngjx --install-pack ent # 安装娱乐包
dgngjx --install-pack media # 安装媒体包
dgngjx --install-pack ai # 安装 AI 包
# 体检报告(v4.1.0 新增)
dgngjx --health # 首次运行体检
# 无参数启动 → 进入交互向导(兼容旧体验)
dgngjx
📋 CLI 入口代码(dgngjx 命令)
#!/usr/bin/env python3
"""dgngjx CLI - 多功能工具箱统一命令行入口"""
import argparse, json, os, sys
def load_registry():
"""加载工具注册表"""
reg_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "registry.json")
with open(reg_path, encoding="utf-8") as f:
return json.load(f)
def build_tool_index(registry):
"""将 modules[].tools 嵌套结构扁平化为 tool_id → info 索引"""
index = {}
for mod in registry.get("modules", []):
for tool_id, tool_info in mod.get("tools", {}).items():
tool_info["module_id"] = mod["id"]
tool_info["module_name"] = mod["name"]
tool_info["pack"] = mod.get("pack", "core")
index[tool_id] = tool_info
return index
def main():
parser = argparse.ArgumentParser(prog="dgngjx", description="多功能工具箱 dgngjx-skill")
parser.add_argument("tool", nargs="?", help="工具路径,如 calc.mortgage / text.encode / img.compress")
parser.add_argument("--json", action="store_true", help="输出机器可解析 JSON")
parser.add_argument("--yes", "-y", action="store_true", help="跳过非危险确认点")
parser.add_argument("--help-tools", action="store_true", help="列出所有可用工具")
parser.add_argument("--list-packs", action="store_true", help="列出所有可用包(v4.1.0)")
parser.add_argument("--install-pack", metavar="PACK", help="安装指定包(v4.1.0)")
parser.add_argument("--health", action="store_true", help="运行体检报告(v4.1.0)")
args, remaining = parser.parse_known_args()
if os.environ.get("DGNGJX_ASSUME_YES"):
args.yes = True
registry = load_registry()
# 包管理命令
if args.list_packs:
packs = registry.get("packs", {})
print("📦 可用包:")
for pid, pinfo in packs.items():
default = "(默认)" if pinfo.get("default") else ""
print(f" {pid}: {pname}{default} — {pinfo.get('description','')}")
return
if args.install_pack:
pack_id = args.install_pack
packs = registry.get("packs", {})
if pack_id not in packs:
print(f"❌ 未知包: {pack_id}。可用: {', '.join(packs.keys())}")
return
# 标记包已安装(写入配置文件)
config_path = os.path.join(os.path.expanduser("~"), ".workbuddy", "dgngjx_config.json")
config = {}
if os.path.exists(config_path):
with open(config_path, encoding="utf-8") as f:
config = json.load(f)
installed_packs = config.get("installed_packs", ["core"])
if pack_id not in installed_packs:
installed_packs.append(pack_id)
config["installed_packs"] = installed_packs
os.makedirs(os.path.dirname(config_path), exist_ok=True)
with open(config_path, "w", encoding="utf-8") as f:
json.dump(config, f, ensure_ascii=False, indent=2)
print(f"✅ 已安装包: {packs[pack_id]['name']}")
return
if args.health:
# 运行体检
health_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "health_check.py")
if os.path.exists(health_path):
os.system(f"{sys.executable} {health_path} --force")
else:
print("❌ 未找到 health_check.py")
return
tool_index = build_tool_index(registry)
if args.help_tools or not args.tool:
if args.tool:
tool_info = tool_index.get(args.tool)
if tool_info:
print(f"工具: {args.tool}")
print(f"描述: {tool_info.get('description','')}")
print(f"参数: {json.dumps(tool_info.get('params',{}), ensure_ascii=False, indent=2)}")
else:
print(f"❌ 未找到工具: {args.tool}")
else:
print("🔧 dgngjx-skill 交互向导")
print("=" * 40)
for mod in registry.get("modules", []):
print(f"\n{mod['name']}:")
for tool_id, tool_info in mod.get("tools", {}).items():
print(f" {tool_id}: {tool_info.get('description','')}"
Установить dgngjx-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dgngjx-skill?
多功能免费工具箱 - 图片处理、PDF转换、数据换算、文本工具、开发工具、视频工具、教育、生活娱乐、实用小工具、系统工具、AI办公。11大模块49个工具。v4.1 包化架构:SKILL.md 129KB→30KB + 11模块外置 + 四包机制(core/dev/ent/media)+ 首次体检报告。
Как установить скилл dgngjx-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dgngjx-skill запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic