skills/ddgr-search/SKILL.md
使用 ddgr 在终端搜索 DuckDuckGo,返回结构化结果。支持站点限定、时间过滤、区域搜索。使用场景:用户要求搜索信息、查找文档、搜索特定网站内容
npx skillsauth add krissss/skills ddgr-searchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
使用 ddgr 在终端搜索 DuckDuckGo,以 JSON 格式获取结构化结果。
需要安装 ddgr:
# macOS
brew install ddgr
# Debian/Ubuntu
sudo apt install ddgr
# 从源码
pip3 install ddgr
如果对话中已确认 ddgr 可用,跳过本步骤。
which ddgr
未安装则提示用户安装。
从用户输入中提取搜索参数:
| 参数 | 对应用户意图 | 选项 |
|------|-------------|------|
| 关键词 | 搜索内容 | 必需,直接使用用户的搜索词 |
| 站点限定 | "在 GitHub 上搜索"、"搜 stackoverflow" | -w <域名> |
| 时间过滤 | "最近的"、"最近一周的" | -t d(天) / -t w(周) / -t m(月) / -t y(年) |
| 结果数量 | "多搜几条"、"只要前 3 条" | -n <数量>(默认 10,最大 25) |
| 区域 | "用德语搜"、"日本地区" | -r <地区代码> 如 de-de、jp-jp |
使用 JSON 输出模式执行搜索,获取结构化结果:
ddgr --json --np -n <数量> [-w <域名>] [-t <时间>] [-r <地区>] <关键词>
--json:JSON 格式输出--np:搜索后不进入交互模式将 JSON 结果格式化展示给用户:
🔍 搜索结果(共 N 条):<关键词>
1. 标题
🔗 URL
📄 摘要内容...
2. 标题
🔗 URL
📄 摘要内容...
展示规则:
搜索 DuckDuckGo:Python async 教程在 GitHub 上搜索 ddgr搜一下最近一个月的 Claude Code 相关新闻搜索 stackoverflow:Python list comprehension用德语搜索 Bundesliga!w 等)在终端中需转义为 \!w-t) 偶尔会返回 HTTP 202 错误,属 DuckDuckGo 限制,可去掉该参数重试tools
创建符合规范的 git 提交消息,并在提交前 review 将提交的变更。优先遵循项目现有提交规范,支持 Conventional Commits 格式。使用场景:用户要求创建提交、编写提交消息、提交前检查变更
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.