Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jiushiwon/wg-skills --skill mongodb-install-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/mongodb-install-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/mongodb-install-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/mongodb-install-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/mongodb-install-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/mongodb-install-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00051 | $0.00697 |
| Opus 5.5 | $0.00020 | $0.00279 |
| Sonnet 5.5 | $0.00010 | $0.00139 |
| Haiku 4.5 | $0.00005 | $0.00070 |
Grade B, and why
mongodb-install-skill scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- [ ] 启动服务: sudo systemctl start mongod What it actually says
MongoDB Install Skill
Overview
本技能负责在目标服务器上安装 MongoDB。支持多种安装方式,强制获取密码,幂等检测。
When to Use
触发词:
- 安装 MongoDB
- 装 Mongo
- install mongodb
交互流程
1. 检测当前系统(OS + 版本 + 包管理器)
2. 询问安装方式(包管理器 / Docker)
3. 询问版本(7.0 / 6.0)
4. [强制] 获取数据库 root 密码 → 不输入则拒绝
5. 执行安装(幂等)
6. 不执行初始化,输出初始化清单
7. 输出修改密码和重置密码脚本
安装方式
包管理器安装
| OS | 安装命令 |
|---|---|
| Ubuntu/Debian | 添加 MongoDB apt 仓库 + apt install mongodb-org |
| CentOS/RHEL | 添加 MongoDB yum 仓库 + dnf install mongodb-org |
| macOS | brew install mongodb-community |
| Windows | winget install MongoDB.Server |
Docker 安装
docker pull mongo:7.0
版本选择
- MongoDB 7.0(推荐)
- MongoDB 6.0
密码安全
- 强制获取密码:不输入密码则直接拒绝安装
- 不显示输入:交互式输入时不显示密码
- 不记录密码:不将密码写入脚本或日志
输出
# MongoDB 安装完成
## 系统信息
- OS: Ubuntu 22.04 LTS
- 包管理器: apt
## 安装结果
- 版本: MongoDB 7.0.5
- 安装方式: apt
- 状态: ✅ 已安装
## 下一步(手动执行)
- [ ] 启动服务: sudo systemctl start mongod
- [ ] 启用认证
## 初始化清单
- [ ] 1. 启动 MongoDB 服务
- [ ] 2. 创建管理员用户
- [ ] 3. 启用认证
- [ ] 4. 创建业务数据库和用户
## 修改密码脚本
mongosh admin --eval "db.changeUserPassword('admin', '新密码');"
## 忘记密码急救脚本
sudo systemctl stop mongod
sudo mongod --dbpath /var/lib/mongodb --port 27017 --bind_ip 127.0.0.1 --auth false &
mongosh admin --eval "db.updateUser('admin', {pwd: '新密码'});"
Resources
- references/install-commands.md — 各 OS 安装命令
- references/password-scripts.md — 密码相关脚本
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 21d ago First seen · 97 lines · 51 tokens per session scan B 4196b84fd39e
mongodb-install-skill is a skill published in the GitHub repository jiushiwon/wg-skills (120 stars, last pushed 7d ago), licensed Apache-2.0. It adds 51 tokens to every session and 697 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.
Other skills, from other repositories
dbx
Use the DBX CLI to inspect DBX-managed database connections, explore schemas, run bounded read-only queries, generate DBML or schema documentation, and open tables in DBX Desktop. Use when the user asks to work with a database configured in DBX from a shell-capable AI agent. Never enable writes unless the user…
prisma-mongodb-upgrade
Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when "upgrade to prisma 7" comes up in a project with provider = "mongodb", or when evaluating a move to Prisma Next. Triggers on "upgrade prisma mongodb"…
byted-volcengine-mongodb
An operations tool for Volcengine MongoDB, a document database that stores data in flexible, JSON-like records. It can query managed MongoDB instances and return details for further explanation or diagnosis.
mongodb-connection
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client (eg, when calling connect()), configuring connection pools, troubleshooting connection errors…
mongodb-schema-design
MongoDB schema design patterns and anti-patterns. Use when designing data models, reviewing schemas, migrating from SQL, or troubleshooting performance issues caused by schema problems. Triggers on "design schema", "embed vs reference", "MongoDB data model", "schema review", "unbounded arrays", "one-to-many", "tree…
commerce-app-storage
Integrate App Builder Database Storage (@adobe/aio-lib-db) into an Adobe Commerce app and scaffold a runtime action that reads and writes documents. Use when the user wants persistent, queryable storage backing a Commerce app — either from a web action (HTTP-invokable) or from an event/webhook handler. Requires a base…