ops-desk

按需运维(OPS on-demand):当用户请求“清理桌面”、“处理待决事项”等运维类操作时使用该技能。

仓库最近推送
GitHub Stars
564
Forks
64
Issues / PRs
6

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ops-desk":https://skillpi.com/zh/skills/deepskill-749b01c6aa8106528bdd6fc41d4387d69d7b9097670441d14a583c503e1ac2cc。安装前核对上游来源和版本:https://github.com/Lifecycle-Innovations-Limited/claude-ops。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

按需运维(OPS on-demand):当用户请求“清理桌面”、“处理待决事项”等运维类操作时使用该技能。

0 下载

介绍来源: third_party · Lifecycle-Innovations-Limited · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: ops-desk
description: "OPS on-demand: This skill should be used when the user asks to \"desk sweep\", \"open decisions\", or…"
argument-hint: '[scope: all|<board/company>|explicit item list]'
allowed-tools:
  - Bash
  - Read
  - Grep
  - Glob
  - Skill
  - Agent
  - Workflow
  - AskUserQuestion
  - TeamCreate
  - SendMessage
  - TaskCreate
  - TaskUpdate
  - TaskList
  - CronCreate
  - mcp__gog__gmail_search
  - mcp__gog__gmail_read_thread
  - mcp__whatsapp__list_messages
  - mcp__whatsapp__send_message
  - mcp__whatsapp__archive_chat
  - mcp__linear__list_issues
  - mcp__linear__get_issue
  - mcp__linear__update_issue

OPS ► DESK SWEEP

Load ops-rules before acting. Public repo (no personal data). Outbound: one draft → one approval → one send. If AskUserQuestion / Workflow are missing, follow Rule 10 in ops-rules (Hermes: numbered options / two-turn Telegram card; delegate_task).

Goal: everything sitting on the owner's desk — pending decisions, staged drafts awaiting approval, unpaid invoices to chase, documents to sign, blocked issues needing an owner action — becomes a ranked queue of ready-to-approve action packages, then gets worked down one item at a time. The success metric is the same spirit as inbox-zero: an empty desk, with every remaining item either executed, decided, or parked with an explicit reason and a reminder.

When to use ops-desk vs ops-inbox

  • /ops:ops-inbox — fresh inbound comms (who wrote me, what needs a reply).
  • /ops:ops-desk — the standing backlog (what am I blocking, what decision is waiting on me, what draft is staged, what must I sign/pay/approve). Run it after an inbox pass, or whenever the owner says "what's left / get this off my desk".

Step 1 — Build the item list (unless passed explicitly in ``)

  1. Task tracker (SSOT). Whichever the box uses, in order of preference:
    • Paperclip — paperclip issue list -C <company-id> for each company in ${CLAUDE_PLUGIN_DATA_DIR}/preferences.json → paperclip.companies[], falling back to paperclip company list. Keep status=blocked|todo|in_progress issues whose title/description implies an OWNER action — matcher: decision, owner decision, approve, sign, pay, chase, staged, awaiting owner, Rule-6.
    • Linear — mcp__linear__list_issues filtered to the owner as assignee, when Paperclip is absent.
    • GitHub — gh issue list --assignee @me as last resort.
  2. Inbox residue. Genuine NEEDS_REPLY plus todo/action-labeled emails surviving the most recent /ops:ops-inbox pass (run bin/ops-inbox-scan with OIS_NO_REFRESH=1 if one already ran this session).
  3. Dedupe against items already handled this session, and collapse duplicate issues tracking the same underlying ask (mirror boards, Linear↔Paperclip twins).
  4. Shape each item as {key, refs: [issue identifiers], hint} where hint states the concrete question to answer AND what must be verified (never trust the issue title alone).

Step 2 — Run the gather workflow (READ-ONLY, batched)

Invoke the Workflow tool with the script below and args = [items]. Hard rules the script encodes:

  • Agents are READ-ONLY. No sends, archives, payments, signatures, mark-reads, or tracker mutations from inside the workflow — they read, verify, and prepare only. All execution happens later in the main session under the outbound-approval gate.
  • Batched fan-out (3 at a time). A wide parallel burst can rate-limit (429) the model-account pool — pooled CLIProxyAPI setups especially. Batches of 3 finish nearly as fast and never starve the rest of the fleet.
  • Verification over trust. Every load-bearing claim in a package must come from an actual read (issue body, thread, sqlite row) with dates/ids cited in status_summary. An item that turns out already handled comes back as action_type=already_done with evidence.
  • Partial failure → resume. If some agents die (rate limits, transient errors), fix nothing and relaunch with resumeFromRunId — completed agents replay from cache.
export const meta = {
  name: 'desk-sweep',
  description: 'Fan out read-only context agents over open decision/action items and return ready-to-approve action packages',
  phases: [
    { title: 'Gather', detail: 'one read-only agent per item, batches of 3' },
    { title: 'Synthesize', detail: 'order into an approval queue: quick wins first' },
  ],
}

const ACTION_SCHEMA = {
  type: 'object', additionalProperties: false,
  required: ['key', 'title', 'status_summary', 'recommendation', 'action_type'],
  properties: {
    key: { type: 'string' },
    title: { type: 'string' },
    status_summary: { type: 'string', description: '2-4 sentences: what this is, current state, evidence (dates/ids)' },
    recommendation: { type: 'string', description: 'single concrete next action with an approvable default' },
    action_type: { type: 'string', enum: ['send_email', 'send_whatsapp', 'decision', 'sign', 'pay', 'chase', 'info_only', 'archive', 'already_done'] },
    draft: { type: ['object', 'null'], additionalProperties: false, properties: {
      channel: { type: 'string', enum: ['email', 'whatsapp'] },
      to: { type: 'string' }, cc: { type: 'string' }, subject: { type: 'string' },
      body: { type: 'string', description: "FULL final text in the owner's voice + thread language" },
      reply_to_message_id: { type: 'string' },
    }},
    decision_options: { type: 'array', items: { type: 'string' } },
    blockers: { type: 'array', items: { type: 'string' } },
    effort_minutes: { type: 'number' },
    confidence: { type: 'string', enum: ['high', 'medium', 'low'] },
  },
}

phase('Gather')
const ITEMS = (typeof args === 'string' ? JSON.parse(args) : args) || []
if (!ITEMS.length) throw new Error('desk-sweep needs args: [{key, refs, hint}]')

const CHUNK = 3
const packages = []
for (let i = 0; i < ITEMS.length; i += CHUNK) {
  const batch = ITEMS.slice(i, i + CHUNK)
  const res = (await parallel(batch.map(it => () =>
    agent(
      `You are a READ-ONLY desk-sweep context agent. You MUST NOT send, archive, pay, sign, ` +
      `mark-read, or mutate ANYTHING — no mail sends, no POSTs to send/archive endpoints, no ` +
      `tracker mutations. Read, search, and prepare only.\n\n` +
      `ITEM key="${it.key}": ${it.hint}\nReferences: ${JSON.stringify(it.refs || [])}\n\n` +
      `Gather context read-only, every shell command with an explicit timeout ` +
      `("timeout --signal=TERM --kill-after=5s 30s <cmd>"): the task tracker record(s) for each ` +
      `ref incl. comments; Gmail via gog (search then thread get -j; messages nest under ` +
      `.thread.messages); the WhatsApp bridge store read-only via sqlite3 (merge a person's @lid ` +
      `and @s.whatsapp.net chats; resolve names via contacts); local files if referenced.\n\n` +
      `RULES: verify every load-bearing claim with an actual read; if already handled, return ` +
      `action_type=already_done with evidence. Drafts must be the FULL final text in the owner's ` +
      `voice and the thread's language, no AI tone. Decisions get 2-4 concrete options, ` +
      `recommended first. Your final output MUST be the structured action package.`,
      { label: `gather:${it.key}`, phase: 'Gather', schema: ACTION_SCHEMA }
    )
  ))).filter(Boolean)
  packages.push(...res)
  log(`gathered ${packages.length}/${ITEMS.length}`)
}

phase('Synthesize')
return await agent(
  `You are READ-ONLY. Order these action packages into an approval queue: quick wins first ` +
  `(low effort, high confidence, drafts ready), then decisions, then heavy/blocked. Drop ` +
  `nothing; flag conflicts between packages.\n\n` + JSON.stringify(packages, null, 2) +
  `\n\nReturn {queue: [same packages verbatim + "rank"], conflicts: [], stats: {total, ` +
  `ready_drafts, decisions, already_done}}.`,
  { label: 'synthesize', phase: 'Synthesize',
    schema: { type: 'object', additionalProperties: true, required: ['queue'] } }
)

Step 3 — Work the approval queue (main session, outbound gate)

Per package, in rank order:

  • already_done / archive / info_only → report in one line, archive/close immediately (tracker status → done). These are the free wins; do them without asking.
  • send_email / send_whatsapp / chase → PER-DRAFT APPROVAL exactly as in /ops:ops-inbox: ONE AskUserQuestion per draft, single-select [Send] [Edit] [Skip], the preview carrying the FULL text plus a short "Reasoning / facts verified" block (≤10 short lines — split longer drafts). After [Send]: send (email via gog gmail send, WhatsApp via the bridge), then archive the thread and update the tracker. Where an out-of-band send token is enforced (e.g. an outbound-comms hook), remind the owner ONCE up front — not per item.
  • decision → present the options (recommended first) via AskUserQuestion, record the outcome in the tracker, execute any follow-through it implies.
  • sign / pay → prepare only: surface the exact link/document/amount and what to check before signing/paying. NEVER sign or move money autonomously (Rule 5).

Step 4 — Wrap up

Report: sent / decided / closed / still-open-with-reason. Schedule reminders (CronCreate, non-outbound) for anything parked with a follow-up horizon. The task tracker is the SSOT — every touched item gets its status updated there before the summary prints.

Agent Teams support

If CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set, use Agent Teams when fanning out the gather workflow across independent item sources (Paperclip per company, Linear, GitHub, Gmail/WhatsApp residue, etc.) in parallel. This enables:

  • Gather agents share context mid-flight (one surfaces a high-priority payment → the ranker can prioritize before the desk-sweep plan is emitted)
  • You can steer scope in real time ("skip Linear, focus on Paperclip only")
  • Agents report progress as each gather round completes, so the main session can start the approval-queue step earlier on the items already returned

Team setup (only when the flag is enabled, and only for genuinely parallel sources — a single-source desk sweep stays inline):

TeamCreate("ops-desk")
Agent(team_name="ops-desk", name="paperclip-gather", prompt="Gather owner-action items across all configured Paperclip companies")
Agent(team_name="ops-desk", name="linear-gather", prompt="Gather Linear items assigned to the owner")
Agent(team_name="ops-desk", name="inbox-residue", prompt="Gmail/WhatsApp NEEDS_REPLY + todo-labeled items from the last inbox pass")
Agent(team_name="ops-desk", name="github-chases", prompt="Open PRs awaiting owner review, blocked issues")

After the team reports, the main session runs Step 3 (work the approval queue) on the merged, ranked list. Each SendMessage from a gather agent is a structured action package — never an outbound send (Rule 6: per-draft outbound approval gate stays in the main session, not in the team).

If the flag is NOT set, fall back to standard fire-and-forget Agent subagents (one per source) — same shape, slower wall-clock because no shared context.

版本历史

  1. v3.14.0 GitHub ↗
    原版更新说明

    ### Fixed - Daemon: memory extractions started early by new messages now record their exit code in `daemon-health.json`, like scheduled runs. - Daemon: a cron job that exits non-zero now raises `error_count` and sets `last_error` in `daemon-health.json`, and `/ops:daemon check` fails it. Successful runs set `last_success`. (#1085) - Daemon: self-upgrade on version drift no longer crashes on the undefined `LOG_FILE`. (#1085) - `inbox-digest` no longer aborts on hosts without a WhatsApp bridge. (#1085) - Account rotation: `daemon.mjs` loads again. #698 had deleted `isLoopSession` from `bg-respawn.mjs`. It is restored, along with the deferral of `/loop` sessions after rotation and in the deferred sweep: they respawn once no longer looping, or after 90 minutes. A host with this service installed starts rotating once updated. (#982) ### Added - `ops-rules` Rule 18 — "Steer every project toward profit". A standing rule for every ops skill: name the profit link (revenue up, cost down, revenue protected, or demand evidence gained) before picking or proposing work, read revenue and cost from the `ops-revenue` sources, run the `ops-pmf` gate at milestone start, prefer the shortest path to the first payment, and report outcomes in money terms. Placed in a new precedence tier, "Direction", below gates, truth and form: it selects among permitted work and never loosens the send, spend or no-fabrication rules. - `SubagentStart` hook: every subagent, including the agents in `agents/` (which do not load `ops-rules`), now starts with the same one-paragraph rules pointer the main session gets, including the Rule 18 profit line. `hooks/ops-rules-context.sh` takes the event name as its first argument and defaults to `SessionStart`. - Every agent file in `agents/` ends with the same short Rule 18 section; `tests/test-agents-lint.sh` fails when one is missing or differs. ### Changed - Plugin-root `CLAUDE.md` pointer now reads "Rules 0–18" (it still said 0–10). - Daemon: on Linux hosts without a reachable systemd user manager (containers, SSH without lingering), `ops-daemon.sh` no longer exits at startup. - Account rotation: restored the default-off post-respawn continuation turn (`CLAUDE_ROTATION_INJECT_CONTINUATION=1`) that #698 deleted, and run its test.

  2. v3.13.0 GitHub ↗
    原版更新说明

    ### Added - New skill `ops-pmf` — demand-evidence gate & builder for the revenue/GTM layer. Before a build milestone starts it runs six forcing questions (who pays, when the first euro lands, what counted demand evidence exists), scores evidence in tiers E0–E3 (only commitment E2 and payment E3 count as proof), and issues one verdict per milestone: PASS, EVIDENCE-PENDING (named owner + evidence plan ≤ 14 days), or NO-REVENUE-PATH ("geen verdienpad" — loses build priority, labelled and parked, never silently built). Its `prove` subcommand does the evidence-collection work as drafts (pre-sale/deposit offers, paid-pilot/LOI drafts, landing copy handed to `ops-marketing`); all outbound and money actions stay draft → approval → send. Evidence lives in one ledger per project (`.planning/evidence/LEDGER.md`) with the summary in `.planning/PROJECT.md` § Revenue Model & PMF — the same files Amp coordinators and GSD-style phase work read, so there is one truth. - New agent `pmf-scout` (optional, read-only) — gathers demand signals and proposes ledger updates; tier changes to E2/E3 are confirmed by the gate, not the scout. - `ops-gtm`: the `plan` flow now runs the PMF gate as step 4b before the launch handoff (a NO-REVENUE-PATH verdict replaces the launch handoff with the evidence plan), and `brief` Proof points must cite ledger evidence or be marked `[assumed — no evidence yet]`.

  3. v3.12.1 GitHub ↗
    原版更新说明

    ### Fixed - ops-task-reminder: the portable lock now runs the whole counter transaction under a real fcntl.flock, so one worker can no longer remove another's fresh lock and lose counter updates.

  4. v3.12.0 GitHub ↗
    原版更新说明

    ### Changed Add /ops:ops-mix and evidence-only A&R mix-evidence mode using the configured Mixforge engine.

  5. v3.11.0 GitHub ↗
    原版更新说明

    ### Changed Release safety, maintenance and inbox fixes from #1033: passive daemon monitoring, timezone-safe AWS audit dates, fail-closed release merge gates (same-head CI, Copilot review, resolved threads), progressive inbox with attachment and archive read-back proofs, and gate-only outbound wording in ops-desk and ops-leadgen.

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值88/100

亮点

  • 解决用户桌面待办事项、决策阻塞、草稿审批等实际高频痛点
  • 具备明确闭环流程:构建队列→逐项处理→归档/提醒,实现‘inbox-zero’式清空桌面
触发精准85/100

亮点

  • 触发词精准完整(desk sweep/open decisions等),边界清晰
  • argument-hint 提供 scope 参数说明,覆盖多种使用场景
结构规范82/100

待提升项

  • 缺少独立 When to Use 章节 原报告严重程度:轻微

    When to use 内容已内联在正文中,但未作为独立章节呈现

    改进建议:建议将 'When to use ops-desk vs ops-inbox' 提取为独立章节,提升可读性

亮点

  • Phase 划分清晰(Step 1-4),流程完整
  • frontmatter 完整,含工具列表与参数提示
执行可靠90/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常(rate limit 重试、partial failure resume)
  • 不可逆操作(发送/支付)均有确认机制(AskUserQuestion),符合安全规范
证据可验 (前四项均值)86/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。