Agent Skills › opskat/opskat › notebook

notebook

GitHub

用于在OpsKat中存储和管理与资产相关的简短操作笔记,如运行手册步骤和故障排查发现。支持按键值读写、前缀过滤及权限控制,便于多环境共享运维知识。

extensions/notebook/SKILL.md opskat/opskat

触发场景

用户需要记录或查询特定资产的运维笔记 用户需要共享或查阅运行手册步骤

安装

npx skills add opskat/opskat --skill notebook -g -y
更多选项

非标准路径

npx skills add https://github.com/opskat/opskat/tree/main/extensions/notebook -g -y

不安装直接使用

npx skills use opskat/opskat@notebook

指定 Agent (Claude Code)

npx skills add opskat/opskat --skill notebook -a claude-code -g -y

安装 repo 全部 skill

npx skills add opskat/opskat --all -g -y

预览 repo 内 skill

npx skills add opskat/opskat --list

SKILL.md

Frontmatter
{
    "name": "notebook",
    "description": "Per-asset notebook stored inside OpsKat. Use it to keep short operational notes (runbook steps, incident findings, connection quirks) next to the asset they belong to."
}

Notebook

A notebook asset is a named collection of short text notes stored inside OpsKat itself. Nothing leaves the machine: the notes live in the app's database, keyed by the notebook name the asset is configured with. Two assets configured with the same notebook name share their notes; that is the intended way to point several environments at one set of runbooks.

When to use it

Reach for a note when a fact is worth keeping but too small to be a document: the exact failover command for a cluster, why a host needs a non-standard port, what an alert meant last time. Read the notebook before improvising on an asset the user has notes for.

Calling the tools

The notebook a call works on is the asset you ran exec against; no tool takes an asset id.

exec <asset> -- note_list
exec <asset> -- note_list --prefix=runbook/
exec <asset> -- note_get --key=runbook/failover
exec <asset> -- note_put --key=runbook/failover --content="1. drain 2. promote" --tags=runbook,db
exec <asset> -- note_delete --key=scratch

Note keys are paths by convention, not by rule: runbook/failover and incident/2026-03-11 sort and filter well with --prefix.

What the permissions mean

  • Reading (note_list, note_get) is granted to a new notebook asset, so listing and reading run without asking.
  • Writing (note_put) asks the user unless they have granted the notebook's write group or allowed writes to that key (a rule can cover only some keys, such as runbook/*); expect a confirmation prompt the first time.
  • Deleting (note_delete) is refused by a group granted to every new notebook asset. If the user wants a note gone, say so and let them revoke that group themselves — retrying will not help.

Overwriting an existing key replaces its content outright; there is no history. When the user's intent is "add to a note", read it first and put back the merged body.

版本历史

  • 2b9abfb 当前 2026-10-19 03:58

同 Skill 集合

internal/ai/skills/database/SKILL.md
internal/ai/skills/etcd/SKILL.md
internal/ai/skills/k8s/SKILL.md
internal/ai/skills/kafka/SKILL.md
internal/ai/skills/local/SKILL.md
internal/ai/skills/mongodb/SKILL.md
internal/ai/skills/oss/SKILL.md
internal/ai/skills/rdp/SKILL.md
internal/ai/skills/redis/SKILL.md
internal/ai/skills/serial/SKILL.md
internal/ai/skills/ssh/SKILL.md
internal/ai/skills/vnc/SKILL.md
plugin/opsctl/skills/opsctl/SKILL.md

元信息

文件数
0
版本
bca05b6
Hash
ff8c2a39
收录时间
2026-10-19 03:58

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 16:19
浙ICP备14020137号-1