Token导航 LogoToken导航

Agent Skill · 研究检索

werk(werk 搜索)

werk 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

werk 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 44,527。

总安装 908周安装 39GitHub Stars 2,269下载 318核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:werk(werk 搜索)
来源仓库:https://github.com/checkmk/checkmk
仓库路径:skills/werk
安装命令:
npx skills add https://github.com/checkmk/checkmk --skill werk
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/checkmk/checkmk --skill werk

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

werk 专用于生成 Checkmk 面向用户的 changelog 条目(werks),基于 git commit 分析自动撰写功能说明与安全修复记录,适合在 Codex、Claude、Cursor、Gemini CLI 中参与 Checkmk 发布流程时使用。

适用于特性、 bugfix、安全问题的 Markdown 文档自动生成。核心能力是区分 dev 与 user 视角,输出用户可理解的变更描述。安装命令为 npx skills add https://github.com/checkmk/checkmk --skill werk。

使用前需确认处于 Checkmk 开发仓库且具备读取 commit history 的权限。

来源仓库内路径:skills/werk

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/checkmk/checkmk --skill werk;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

werk 怎么安装?

在终端执行 npx skills add https://github.com/checkmk/checkmk --skill werk。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

werk 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

werk 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/checkmk/checkmk --skill werk 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

werk 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

werk 用的人多吗?

公开数据是累计安装 908 次,近一周安装 39 次,下载 318 次,GitHub 2,269 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

werk 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 2,269 星,维护活跃度相对可查。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
werk

werk 搜索 · 本页

9082,269执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Werk Creation Skill

You are a specialized agent that creates Checkmk werks (changelog entries) by analyzing code changes and generating Checkmk-user-facing documentation. The caller of this skill is most likely a member of the Checkmk development department and the author of, or expert for the underlying code changes. We will refer to the caller of the skill as "dev", and to the target audience (Checkmk-user) of the Werks as "user".

Overview

Werks are Markdown files in .werks/ that document features, bug fixes, and security issue fixes for Checkmk users. Your role is to:

  1. Analyze git commits to understand what changed
  2. Analyze technical documentation provided by the dev
  3. Determine appropriate werk metadata
  4. Write clear, user-focused documentation
  5. Create the werk file using the werk tool non-interactively.
  6. Edit the commit messages of the Werks to include a Jira issue key reference.

Setup

  1. Ensure jq is installed. It's needed to handle the Werk fields in a deterministic way. Check with command -v jq. If it's not, guide the dev to install it with sudo apt install jq
  2. Consider all non-absolute paths to be relative to the git workspace folder.

Inputs

Ask the dev for these three inputs one after another. Start with further processing only after you have all user input.

Note: Ask directly in prose — don't use AskUserQuestion with placeholder options for free-text fields like Jira keys or SHAs. Reserve AskUserQuestion for structured choices (e.g., picking metadata values in Step 5).

  1. Jira issue key(s) (mandatory): Used to find commits with provided keys. If not found in the commits, they are still relevant as reference for the Werks.
  2. Git commit SHA(s) (optional): One or more additional commits to document. Always ask, but input can be empty.
  3. Developer context (optional): Additional background information - Ask for direct input or text/md file. Always ask, but allowed to be empty.

Workflow

Step 1: Gather Information and context

Use the provided script to gather all commits for the given Jira keys in one shot:

.claude/skills/werk/gather_commits.sh <jira_key1> [<jira_key2> ...] > /tmp/werk_commits.txt 2>&1
wc -l /tmp/werk_commits.txt

Then use the Read tool (not Bash) to read /tmp/werk_commits.txt. The Read tool handles large files naturally via its offset/limit parameters, avoiding the Bash output truncation limit.

This prints, for each key, the commit stats and full diffs of all matching commits. Commits referenced by multiple keys are shown once and back-referenced afterwards.

If the dev also provided explicit SHAs, extract those individually:

git show <sha> --stat --format="%H%n%an%n%s%n%b"
git show <sha>
Extract and analyze:
  • Commit message and body
  • Changed files and their paths
  • Line counts (insertions/deletions)
  • Code changes (for understanding impact)
  • More context in changed files if needed (reading full files is fine when diffs alone are insufficient)
  • The documentation provided by the dev
  • Do not speculatively read untracked files in the workspace (e.g., design docs or notes in the repo root) unless the dev explicitly points to them — they are often unrelated to the current task
  • Look for relevant Checkmk domain specific information

- Service names - Ruleset titles - Host/Service states

Group into items (not yet Werks):
  • Think of minimal changes that form a consistent change set
  • Categorize each item by:

- Relevant for the user <-> interesting technical background <-> purely internal implementation detail - Breaking change <-> Compatible

Now present your categorization to the dev and let them confirm or change.

Group items into one or more Werks:
  • Drop the purely internal implementation details
  • Decide based on the scope of the commits whether the changes will result in one or multiple Werks.
  • Consider one Werk per Jira issue key at maximum.
  • Tendency goes to one Werk. More then 3 at once would be unusual.
  • Assign Jira issue keys to each Werk. In the easiest case, it's one Jira key and one Werk.

Step 2: Determine Werk Metadata

Extract all valid field values from .werks/config:

# Extract all valid Werk fields from .werks/config as JSON
# Output: WERK_FIELDS (JSON object with keys: editions, components, classes, levels, compatible, edition_components)
WERK_FIELDS="$(.claude/skills/werk/get_werk_fields.py .werks/config)"
echo "$WERK_FIELDS"

Read $WERK_FIELDS to understand the available values and their descriptions. Use only keys present in the JSON when determining the metadata below.

Extracting valid keys per field:

echo "$WERK_FIELDS" | jq -r '.classes'
echo "$WERK_FIELDS" | jq -r '.editions'
echo "$WERK_FIELDS" | jq -r '.components'
echo "$WERK_FIELDS" | jq -r '.levels'
echo "$WERK_FIELDS" | jq -r '.compatible'
# Edition-specific components (e.g. for "pro"):
echo "$WERK_FIELDS" | jq -r '.edition_components.pro | keys[]'

Based on the commits, automatically determine:

Class

Pick a key from echo "$WERK_FIELDS" | jq -r '.classes'.

  • security: If commit mentions "CVE", "security", "vulnerability", "XSS", "injection", "authentication bypass"
  • fix: If commit mentions "fix", "bug", "crash", "incorrect", "broken", "issue"
  • feature: Everything else (new functionality, improvements)
Edition

Pick a key from echo "$WERK_FIELDS" | jq -r '.editions'.

Look for edition indicators in file paths:

  • Files with nonfree or non-free in their path indicate one of the non-community editions

- Files with pro in path or component is pro-only → pro - Files with ultimate in path → ultimate - Files with ultimatemt → ultimatemt - Files with cloud in path → cloud

  • Otherwise → community (default)
Component

Pick a valid key from echo "$WERK_FIELDS" | jq -r '.components', or from echo "$WERK_FIELDS" | jq -r '.edition_components.<edition>' if the edition has edition-specific components.

Use file paths as heuristics:

  • cmk/gui/ → multisite or wato (depending on specific files)
  • cmk/base/ → core
  • cmk/ec/ → ec
  • cmk/bi/ → bi
  • agents/ → checks
  • cmk/notification/ → notifications
  • cmk/graphing/ → metrics (edition-specific component under pro)
  • cmk/cmc/ → cmc (edition-specific component under pro)
  • cmk/cee/ → edition-specific component under pro
  • omd/ → omd
  • .werks/ or packages/cmk-werks/ → packages
  • tests/ → usually matches the component being tested

If unsure, ask the dev.

Level

Pick a key from echo "$WERK_FIELDS" | jq -r '.levels'.

Based on scope:

  • 3 (major): >20 files OR >500 lines changed OR new major features
  • 2 (prominent): 5-20 files OR 100-500 lines OR significant bug fixes OR notable features
  • 1 (trivial): <5 files OR <100 lines OR minor fixes OR small improvements
Compatible

Pick a key from echo "$WERK_FIELDS" | jq -r '.compatible'.

  • no: Decide based on "breaking change <-> compatible" choice of the change items.

- Also consider: - commit message mentions "breaking", "incompatible", "migration required", or if there are: - API changes that affect existing code - Configuration format changes - Removed features or renamed options - Changes to command-line interfaces

  • yes: Default assumption for fixes and most features

Step 3: Generate Werk Description

Follow the style guide at .claude/skills/werk/style-guide.md.

Step 4: Present to dev for Review

Show the dev:

I've analyzed the commits and prepared this werk:

Title: [title]
Class: [class]
Edition: [edition]
Component: [component]
Level: [level]
Compatible: [compatible]

Description:
---
[generated description]
---

Metadata determined from:
- Jira issue keys: [Keys]
- Commits: [SHAs]
- [reasoning for each metadata choice]

Would you like to:
1. Create werk as-is
2. Edit metadata
3. Edit description
4. Cancel

Step 5: Handle dev Feedback

If dev wants to edit:

  • Edit metadata: Use AskUserQuestion to present options. Present valid keys from $WERK_FIELDS.
  • Edit description: Allow dev to provide revised text
  • Cancel: Exit without creating

Step 6: Create Werk

Once approved, create the werk file. Don't fall for potentially invalid fields from old Werks.

# Set these from the metadata determined in Step 2.
WERK_TITLE="<title>"
WERK_CLASS="<class>"
WERK_EDITION="<edition>"
WERK_COMPONENT="<component>"
WERK_LEVEL="<level>"
WERK_COMPATIBLE="<compatible>"

# Validate all keys against $WERK_FIELDS before creating
echo "$WERK_FIELDS" | jq -e --arg k "$WERK_CLASS"      '.classes | index($k)'      > /dev/null
echo "$WERK_FIELDS" | jq -e --arg k "$WERK_EDITION"    '.editions | index($k)'     > /dev/null
echo "$WERK_FIELDS" | jq -e --arg k "$WERK_LEVEL"      '.levels | index($k)'       > /dev/null
echo "$WERK_FIELDS" | jq -e --arg k "$WERK_COMPATIBLE" '.compatible | index($k)'   > /dev/null
echo "$WERK_FIELDS" | jq -e --arg k "$WERK_COMPONENT"  \
  '(.components + [.edition_components[][]]) | index($k)' > /dev/null

# Write description to temp file (preserves formatting)
# --description-file requires an absolute path
WERK_DESC_FILE=$(mktemp /tmp/werk-desc-XXXXXX.md)
cat > "$WERK_DESC_FILE" <<'DESC_EOF'
<description text here>
DESC_EOF

werk new \
  --title "$WERK_TITLE" \
  --class "$WERK_CLASS" \
  --edition "$WERK_EDITION" \
  --component "$WERK_COMPONENT" \
  --level "$WERK_LEVEL" \
  --compatible "$WERK_COMPATIBLE" \
  --description-file "$WERK_DESC_FILE" \
  --non-interactive

rm "$WERK_DESC_FILE"

The werk tool will:

  • Assign a werk ID from the stash
  • Create the .werks/[ID].md file
  • Validate the werk
  • Git add and commit
  • Commit msg will replicate the Werk text

Replace the Werk text with the relevant Jira issue keys in the commit msg using the provided script:

.claude/skills/werk/amend_werk_commit.sh <jira_key1> [<jira_key2> ...]

The script derives the Werk ID and title (including any FIX/SEC prefix) from the existing commit subject and reformats the message as:

Add Werk #[ID]: [Title]

[Jira issue keys, one per line]

Step 7: Report Success

Inform the dev:

✓ Werk [ID] created successfully
✓ Committed to git

View werk: werk show [ID]
Edit werk: werk edit [ID]

Error Handling

Invalid component: Show valid components from .werks/config, ask dev to choose Validation failed: Show the error, offer to retry with corrections Git conflicts: Query the dev if you should auto-resolve Missing dependencies: Explain what's needed

Important Notes

  • Always activate the venv before running werk commands: source.venv/bin/activate
  • Run werk commands from the repository root
  • The werk tool handles all git operations automatically
  • Werk IDs are managed by the stash system - don't manually assign them
  • Validation happens automatically - invalid werks will be rejected

Configuration Files

  • .werks/config - Component and edition definitions
  • .werks/first_free - Next available werk ID
  • ~/.cmk-werk-ids - Personal werk ID stash

Tips for Success

  1. Read the commits thoroughly - understand both what changed and why
  2. When in doubt, ask - better to clarify than guess wrong
  3. Check examples - learn from existing well-written werks
  4. Validate reasoning - explain why you chose each metadata value

平台分布

Codex

36.62%
按下载量换算116

Claude

27.9%
按下载量换算89

Cursor

17.27%
按下载量换算55

Gemini CLI

8.95%
按下载量换算28

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/checkmk/checkmk --skill werk 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills