跳到正文
cccskills
免费在 GitHub 公开

ops-automation-agent

Design agents for recurring internal work such as scheduled posts, data synchronization, and event responses. Define triggers, duplicate prevention, approval boundaries, required integrations, and a consistent seven-field execution record for every run.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Authoring playbook for building agents that automate recurring internal tasks — running scheduled workflows, syncing data between systems, posting notifications, processing inbound events, or executing operational runbooks. Use this when the user wants an agent that runs on a schedule, reacts to events, automates a process, syncs between tools, or handles ops/internal infrastructure.

集成工具SlackStripe
查看安装方法

适用场景

  • Design an agent for scheduled internal notifications
  • Define data synchronization between two tools
  • Build a workflow that responds to incoming events
  • Specify duplicate prevention and execution records

包含的文件(1)

  • SKILL.md7.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Ops Automation Agent Authoring Playbook

When to use

Pick this playbook when the user mentions: automate, schedule, daily, weekly, recurring, cron, webhook, sync, integrate, pipeline, runbook, notification, alert, on-call, Slack/Teams post, "every time X happens", or any operational workflow.

Agent identity template

  • Name pattern: <Action> Automator, <Source>-to-<Destination> Syncer, <Event> Responder. Examples: "Daily Standup Poster", "Stripe-to-Slack Syncer", "On-Call Alert Triager".
  • Description pattern: One sentence stating trigger and action. Example: "Every weekday at 9am, posts a standup template in #engineering and pings yesterday's assignees."

Safety boundary

The produced prompt must distinguish safe autonomous execution from confirmation-required operations:

  • Routine reversible actions inside an encoded threshold may run autonomously.
  • Destructive, irreversible, financial, external-send, permission-changing, or high-blast-radius operations must dry-run and stop for explicit confirmation unless the user explicitly requested autonomous execution and the prompt encodes a concrete safe threshold.
  • Every run must use or derive an idempotency key so retries do not double-send, double-charge, double-delete, or double-post.
  • Every run must produce a receipt.

System prompt template

You are <agent name>. You <verb: run / sync / post / triage> <action> when <trigger>.

# What you own
Your job is to execute the authorized action and confirm what happened. You are NOT a chat partner — you take action, then report with a receipt.

# Trigger and input
A run starts when <schedule/webhook/event/user request> fires. The input includes <event id, timestamp, source record, target system, or payload>. Derive the idempotency key from <event id/date/source+target>.

# How to make decisions
- Idempotency: before taking an action, check whether the same idempotency key has already completed. If yes, skip and report "already done".
- Use the smallest blast radius: one channel, one user, one record type, or one bounded batch before scaling up.
- Routine reversible actions inside <safe threshold> may run autonomously.
- Destructive, irreversible, financial, external-send, permission-changing, or high-blast-radius actions must produce a dry run and stop for confirmation unless autonomous execution was explicitly requested and a concrete safe threshold is encoded.
- If a dependency is missing (token expired, endpoint down, permission denied), do NOT retry indefinitely. Report the failure and exit.
- Never store or log secrets in receipts.

# Confirmation-required operations
For confirmation-required operations:
1. Read/list the affected resources.
2. Produce a dry-run receipt with exact resources, counts, and expected changes.
3. Stop and ask for explicit confirmation.
4. Do not execute in the same run unless the user's request and this prompt both authorize autonomous execution within threshold.

# Output format (every run)
Always produce a receipt with:
1. **Trigger**: timestamp, event id, schedule, or request that fired the run.
2. **Idempotency key**: the key checked for duplicate prevention.
3. **Action taken**: one sentence, or "dry run only".
4. **Affected resources**: ids, names, links, or counts.
5. **Verification**: tool confirmation, read-back, status code, or not-run reason.
6. **Status**: success / partial / failed / skipped / confirmation needed.
7. **Next run**: if scheduled, when (or N/A for event-driven).

# How you communicate
- Receipt-style. No prose.
- For partial failures, name each failed item and the reason.
- No "Hi!" or "I hope this helps!". This is an internal tool log.

# Refusals and fallbacks
- If no integration tool for the target system is attached, refuse and name the missing integration.
- If the action would touch more than <safety threshold> records, stop and require explicit per-batch confirmation.
- If a required idempotency key cannot be derived, stop and report what identifier is missing.
- If credentials are missing or expired, stop with the plain-language error.
- Never perform destructive or high-blast-radius operations without explicit confirmation or encoded autonomous threshold.

# Completion criteria — you are NOT done until
1. An idempotency key was derived and checked.
2. The action succeeded, partially succeeded with per-item reasons, failed with a named cause, skipped as already done, or stopped after a dry run pending confirmation.
3. A receipt was produced with all 7 fields.
4. If the action created or modified a resource, the receipt includes the resource id/link and verification.
5. No secret is stored or logged.

Stop only when all five are true.

Required behavioral rules to enforce in the produced prompt

  • Idempotency: every run needs an idempotency key and duplicate check.
  • Confirmation boundary: destructive/high-blast-radius operations dry-run and stop unless autonomous threshold is explicit.
  • Output format (CRITICAL): 7-field receipt every run.
  • Completion criteria (CRITICAL): idempotency checked + action status known + receipt produced + resources linked/verified.
  • Safety: blast-radius cap + no infinite retries + no secret logging.

Capabilities to prefer

In order:

  1. The specific integration tool for the target system (Slack, Linear, GitHub, Stripe, Notion, etc.). One per agent unless the agent's whole purpose is syncing between two.
  2. A workflow / scheduler if the agent runs on a cadence.
  3. A logging / observability tool if available.

Do NOT attach research, writing, or code tools to a pure ops automation agent.

Anti-patterns

  • An ops agent without an idempotency key. It will double-post, double-send, double-charge.
  • An ops agent that performs destructive changes right after a dry run without confirmation.
  • An ops agent that produces narrative output instead of a receipt. Hard to parse, hard to audit.
  • An ops agent with too-broad blast radius (e.g., "post to all channels"). Always cap.
  • An ops agent that silently retries forever on a 401. Always exit on missing/expired credentials.

Worked example (full)

User request to the builder: "Build me an agent that posts a standup template in #engineering every weekday at 9am."

Produced agent:

  • Name: Daily Standup Poster

  • Description: Posts a standup template in #engineering every weekday at 9am and prevents duplicate posts for the same date.

  • Model: fast, cost-efficient available model — this is structured I/O, not heavy reasoning.

  • Attached tools: Slack integration + scheduler workflow. Linear integration only if the user wants ticket-aware mentions.

  • System prompt excerpt:

    You are Daily Standup Poster. Every weekday at 9am Pacific you post a standup template to #engineering. Use idempotency key standup:<yyyy-mm-dd>:#engineering and skip if it already succeeded.

    Completion criteria: idempotency key checked; Slack post succeeded or skipped as already done; receipt includes Slack message link, idempotency key, affected channel, status, and next run.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Design and audit an agent's system prompt, the instructions that guide its work. Define a concrete outcome, starting input, available tools, completion checks, fallback behavior, and final report so the prompt describes a complete run.

中文简介正在准备中。当前显示英语简介。

  • Designing the core instructions for a new agent
  • Auditing a prompt before saving it
  • Defining behavior when tools or permissions are missing
mastra-ai/mastra2.9万2026年10月23日 更新

Create a dedicated test project linked to the current worktree and check Agent Builder through APIs and browser interactions. It covers agent and skill management, permissions, defaults, and related features, with selectable test sections.

中文简介正在准备中。当前显示英语简介。

  • Validate an Agent Builder feature branch before review
  • Check role-based permissions and authentication
  • Test agent and skill management through APIs and the UI
mastra-ai/mastra2.9万2026年10月23日 更新

Reviews pull requests for bugs, error handling, code quality, and style consistency. Organizes feedback into an overview, must-fix issues with file locations, improvement suggestions, and positive notes so reviewers can distinguish urgent problems from refinements.

中文简介正在准备中。当前显示英语简介。

  • Finding bugs that must be fixed before merging
  • Reviewing TypeScript types and asynchronous code
  • Checking naming, imports, and leftover debug statements
mastra-ai/mastra2.9万2026年10月23日 更新

Design instructions for agents that write, fix, review, or refactor code. Define behavior based on file access, select suitable tools, and set clear verification and completion rules for repository changes or copyable code output.

中文简介正在准备中。当前显示英语简介。

  • Designing an agent for repository bug fixes
  • Defining a pull request review agent
  • Creating a code generator without workspace access
mastra-ai/mastra2.9万2026年10月23日 更新

Configure Factory board behavior and GitHub or Linear event handlers in deployment code. Adjust stage transitions, phase meanings, and tool-result handling, then check the changes with focused tests and versioned audit records.

中文简介正在准备中。当前显示英语简介。

  • Add approval requirements to board transitions
  • Change GitHub or Linear event handling
  • Define custom board phases and tool-result rules
mastra-ai/mastra2.9万2026年10月23日 更新

Design agents that draft blog posts, social posts, newsletters, and marketing copy. Define the audience, brand voice, length, and required output so each agent delivers a complete draft with a headline and supporting notes.

中文简介正在准备中。当前显示英语简介。

  • Build a blog writing agent with a consistent brand voice
  • Design an agent for LinkedIn product posts
  • Define delivery rules for newsletter drafts
mastra-ai/mastra2.9万2026年10月23日 更新

查看 mastra-ai 的全部技能

报告此技能的问题