定制 netresearch/agent-cli-tools 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

netresearch/agent-cli-tools

Composer 安装命令:

composer require netresearch/agent-cli-tools

包简介

Netresearch AI skill for CLI tool management, auto-installation and environment setup

README 文档

README

A Claude Code skill for automatic CLI tool management. Detects missing tools, installs them via optimal package managers, and audits project environments.

🔌 Compatibility

This is an Agent Skill following the open standard originally developed by Anthropic and released for cross-platform use.

Supported Platforms:

  • ✅ Claude Code (Anthropic)
  • ✅ Cursor
  • ✅ GitHub Copilot
  • ✅ Other skills-compatible AI agents

Skills are portable packages of procedural knowledge that work across any AI agent supporting the Agent Skills specification.

Features

  • Reactive Mode: Auto-detect "command not found" errors and install missing tools
  • Proactive Mode: Audit project environments and report missing/outdated tools
  • Maintenance Mode: Batch update all managed tools across package managers

Supported Tools

77+ tools across categories:

Category Tools
Core CLI ripgrep, fd, fzf, jq, yq, bat, delta, just
Languages python, node, rust, go, ruby, php
Package Managers uv, npm, pnpm, cargo, pip, gem, composer
DevOps docker, compose, kubectl, terraform, ansible
Linters eslint, prettier, ruff, black, shellcheck, phpstan
Security trivy, gitleaks, bandit, semgrep
Git Tools gh, glab, git-lfs, delta

Project Type Detection

Automatically detects project types and their requirements:

Project Type Detection Files Required Tools
Python pyproject.toml, requirements.txt python, uv
Node.js package.json node, npm
Rust Cargo.toml rust
Go go.mod go
PHP composer.json, *.php php, composer
Ruby Gemfile ruby
Docker Dockerfile, docker-compose.yml docker, compose
Terraform *.tf terraform

Installation

Marketplace (Recommended)

Add the Netresearch marketplace once, then browse and install skills:

# Claude Code
/plugin marketplace add netresearch/claude-code-marketplace

npx (skills.sh)

Install with any Agent Skills-compatible agent:

npx skills add https://github.com/netresearch/cli-tools-skill --skill cli-tools

Download Release

Download the latest release and extract to your agent's skills directory.

Git Clone

git clone https://github.com/netresearch/cli-tools-skill.git

Composer (PHP Projects)

composer require netresearch/cli-tools-skill

Requires netresearch/composer-agent-skill-plugin.

npm (Node Projects)

npm install --save-dev \
  @netresearch/agent-skill-coordinator \
  github:netresearch/cli-tools-skill

Requires @netresearch/agent-skill-coordinator, which discovers the skill in node_modules and registers it in AGENTS.md via a postinstall hook. For pnpm, also allowlist the coordinator's postinstall:

{
  "pnpm": {
    "onlyBuiltDependencies": ["@netresearch/agent-skill-coordinator"]
  }
}

Triggers

The skill activates automatically on:

Error Patterns

bash: <tool>: command not found
zsh: command not found: <tool>
'<tool>' is not recognized as an internal or external command

User Requests

  • "check environment", "audit tools"
  • "what's missing", "what's outdated"
  • "install development tools"
  • "update all tools"

Installation Methods

The skill selects the optimal installation method based on catalog priority:

  1. GitHub Release Binary - Direct download (fastest, no deps)
  2. Cargo - Rust tools via cargo install
  3. UV/Pip - Python tools
  4. NPM - Node tools
  5. Apt/Brew - System packages (fallback)

Priority: user-level (~/.local/bin, ~/.cargo/bin) over system-level.

Directory Structure

cli-tools/
├── SKILL.md              # Skill definition and workflows
├── catalog/              # Tool definitions (77+ JSON files)
│   ├── ripgrep.json
│   ├── php.json
│   └── ...
├── scripts/
│   ├── install_tool.sh   # Main installer
│   ├── auto_update.sh    # Batch updater
│   ├── check_environment.sh
│   ├── detect_project_type.sh
│   ├── lib/              # Shared libraries
│   └── installers/       # Method-specific installers
└── references/
    ├── binary_to_tool_map.md
    └── project_type_requirements.md

Requirements

  • jq: Required for JSON parsing (auto-installed if missing)
  • Bash 4+: Required for associative arrays
  • Internet: Required for tool downloads

License

This project uses split licensing:

  • Code (scripts, workflows, configs): MIT
  • Content (skill definitions, documentation, references): CC-BY-SA-4.0

See the individual license files for full terms.

Contributing

  1. Add tool definition to catalog/<tool>.json
  2. Update references/binary_to_tool_map.md if binary differs from tool name
  3. Test with scripts/install_tool.sh <tool> install
  4. Submit PR

Credits

Developed and maintained by Netresearch DTT GmbH.

Made with ❤️ for Open Source by Netresearch

netresearch/agent-cli-tools 适用场景与选型建议

netresearch/agent-cli-tools 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 5, 最近一次更新时间为 2025 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 netresearch/agent-cli-tools 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 netresearch/agent-cli-tools 我们能提供哪些服务?
定制开发 / 二次开发

基于 netresearch/agent-cli-tools 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 15
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • 开发语言: Shell

其他信息

  • 授权协议: (MIT AND CC-BY-SA-4.0) 75526b949a158a9fe1eee25fcdaf570ea67e5760
  • 更新时间: 2025-12-16