00-safe-orchestrator

执行完整的 PlanetScale 安全最佳实践评估的主技能说明,涵盖清单检查、引擎审查、Insights 分析、流量控制、Webhook 配置、模式建议、代码库检测、代理操作模型,并生成统一的建议报告。仅在获得明确批准时可据此执行更改。用于请求运行完整评估、所有技能或 PlanetScale 最佳实践审查的场景。

仓库最近推送
GitHub Stars
137
Forks
7
Issues / PRs
2

安装方式

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

用 AI 助手安装

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

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

来源与配置

github.com

配置方式待核实

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

安装实测待补充

执行完整的 PlanetScale 安全最佳实践评估的主技能说明,涵盖清单检查、引擎审查、Insights 分析、流量控制、Webhook 配置、模式建议、代码库检测、代理操作模型,并生成统一的建议报告。仅在获得明确批准时可据此执行更改。用于请求运行完整评估、所有技能或 PlanetScale 最佳实践审查的场景。

0 下载

介绍来源: third_party · planetscale · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: planetscale-safe-orchestrator
description: Master skill that runs the full PlanetScale safe best-practices assessment — inventory, engine review, Insights, Traffic Control, webhooks, schema recommendations, codebase instrumentation, and agent operating model — then produces a unified recommendations report. Never applies changes without explicit approval. Use when the user asks to run the full assessment, all skills, or PlanetScale best-practices review.
disable-model-invocation: true

PlanetScale safe orchestrator (master skill)

Purpose

Run the complete PlanetScale safe best-practices skill pack end to end. Load and execute each sub-skill in order, accumulate evidence, and produce one unified recommendations report. The first pass is assessment-only.

Non-negotiable safety contract

Default to read-only.

You may inspect configuration, branches, query telemetry, recommendations, webhooks, roles, backups, traffic budgets, and repository code. You must not mutate PlanetScale, the database, the repository, the network posture, credentials, schema, production traffic controls, or automation endpoints without explicit approval of a named change set.

Class C/D/E mutations require approval per ../11-change-gates-and-approval-contract/SKILL.md. When in doubt, stop and add to the proposed change set instead of executing.

One exception exists: if the operator explicitly acknowledges the risk and names a scope per ../13-autonomous-execution-mode/SKILL.md, execution proceeds autonomously under that skill's status and halt discipline instead of stopping for per-change approval. The assessment phases below are identical either way.

Sub-skills are sibling folders next to this skill (for example ../01-readonly-inventory/SKILL.md). Some installers rename skill folders to their frontmatter name (for example planetscale-readonly-inventory instead of 01-readonly-inventory); if a referenced numbered path does not exist, locate the sibling skill whose frontmatter name matches and use it instead.

Ground all CLI and API usage in the official documentation rather than guessing: the docs index is at https://planetscale.com/docs/llms.txt (append .md to any docs URL for the markdown version) and the API reference is https://planetscale.com/docs/openapi.yaml. When a command or endpoint fails, check the docs for the correct form before recording an evidence gap. Tooling and access failures belong in the internal run log, never in the customer report.

Before you start

  1. Read this file completely.

  2. Copy the progress checklist below into your working notes and update it as you go.

  3. Collect inputs (ask or infer from AGENTS.md, MCP context, environment, repository):

    • Organization slug
    • Database name
    • Branch name
    • Engine: PlanetScale Vitess or PlanetScale Postgres
    • Production branch or branches
    • Connected application repository path, if available
    • Application language, framework, ORM, query builder, connection pooling
    • Operator tolerance: report-only, PR-generation, branch-only migrations, or supervised production apply

If inputs are missing, continue with discovery. Do not block on completeness.

Progress checklist

Copy and track:

Master assessment progress:
- [ ] Phase 0: Safety contract loaded
- [ ] Phase 1: Read-only inventory
- [ ] Phase 2: Engine safety review (Vitess OR Postgres)
- [ ] Phase 3: Query Insights and tags
- [ ] Phase 4: Traffic Control (Postgres only — skip for Vitess)
- [ ] Phase 5: Webhook automation
- [ ] Phase 6: Schema recommendations agent loop
- [ ] Phase 7: Codebase SQLCommenter instrumentation
- [ ] Phase 8: MCP agent operating model
- [ ] Phase 9: Best-practices matrix coverage check
- [ ] Phase 10: Unified customer report
- [ ] Phase 11: Change gates verified — stop, no mutations

Interface preference order

  1. PlanetScale MCP insights-only server — autonomous analysis without query execution
  2. Full PlanetScale MCP with read-only scope — schema or limited read queries
  3. pscale CLI and pscale api — structured inventory and exact API state
  4. Repository inspection — codebase analysis and instrumentation recommendations
  5. Direct SQL — read-only introspection only when operator grants database read access

The operator's stated interface constraint overrides this order. If the run is restricted to specific interfaces (for example CLI-only), use those interfaces; this is not a conflict and needs no workaround or note in the customer report beyond the Scope section's interfaces line.

Execution plan

For each phase: read the skill file, follow its instructions, capture its required output, and carry findings forward. Do not skip phases unless the checklist says to skip.

Phase 0 — Safety contract

Read: ../11-change-gates-and-approval-contract/SKILL.md

Internalize operation classes A–E. All later phases operate under Class A unless the operator explicitly approves a named change.

Phase 1 — Read-only inventory

Read and execute: ../01-readonly-inventory/SKILL.md

Deliverables to carry forward:

  • Inventory table with evidence (source, path/command, timestamp, confidence)
  • Missing evidence table
  • Risk flags
  • Confirmed engine (Vitess or Postgres)
  • Branch topology and production branch

If engine is still unknown after inventory, determine it before Phase 2.

Phase 2 — Engine safety review

Run exactly one:

Engine Skill file
Vitess ../02-vitess-safety-review/SKILL.md
Postgres ../03-postgres-safety-review/SKILL.md

Deliverables: engine-specific safety gaps, workflow gaps, and proposed changes requiring approval.

Phase 3 — Query Insights and tags

Read and execute: ../04-query-insights-and-tags/SKILL.md

Deliverables: query risk table, tag coverage table, bad/high-cardinality tags, recommended tag schema, candidate Traffic Control slices, candidate schema and code changes.

Phase 4 — Traffic Control (Postgres only)

Skip this phase for Vitess. Mark checklist item complete with note "N/A — Vitess".

For Postgres, read and execute: ../05-traffic-control-recommendations/SKILL.md

Deliverables: proposed budgets (name, mode, traffic slice, rule type, limits rationale, test/rollback plan).

If query tags are weak, note "tagging first" per that skill and defer enforce-mode recommendations.

Phase 5 — Webhook automation

Read and execute: ../06-webhook-automation-recommendations/SKILL.md

Deliverables: webhook inventory, missing subscriptions, destination quality review, automation opportunities, unsafe automation risks.

Phase 6 — Schema recommendations agent loop

Read and execute: ../07-schema-recommendations-agent-loop/SKILL.md

Deliverables: per-recommendation triage (type, severity, evidence, safe implementation path, validation/rollback plan).

Phase 7 — Codebase SQLCommenter instrumentation

Read and execute: ../08-codebase-sqlcommenter-instrumentation/SKILL.md

Skip only if no repository is available. Note "no repository reviewed" in the final report.

Deliverables: detected stack, current tagging state, recommended package/path, proposed tag schema, files likely to change.

Phase 8 — MCP agent operating model

Read and execute: ../09-mcp-agent-operating-model/SKILL.md

Deliverables: recommended MCP server choice, AGENTS.md additions, allowed/disallowed autonomous work, proposed agent loops.

Phase 9 — Best-practices matrix coverage check

Read and execute: ../12-best-practices-matrix/SKILL.md

Cross-check every matrix item against Phases 1–8 findings. For each item record:

  • Applies: yes / no / unknown
  • Current state
  • Gap
  • Recommendation ID (see ID scheme below)
  • Approval requirement

Fill gaps: if a matrix item was not covered by earlier phases, gather missing evidence now (read-only only).

Phase 10 — Unified customer report

Read and execute: ../10-customer-report-template/SKILL.md

Synthesize all phase deliverables into one report. Do not dump raw phase outputs — merge, deduplicate, and rank by impact.

Recommendation ID scheme

Prefix Domain
OBS-* Insights and query tags
VIT-* Vitess safety and deploy workflow
PG-* Postgres roles, pg_strict, Traffic Control, PITR, network
WEB-* Webhooks and automation
APP-* Repository instrumentation
AGENT-* MCP and agent workflows

Assign stable IDs across the report. Reference the same IDs in the proposed change set.

Ranking guidance

Order recommendations by:

  1. Production safety and availability risk (highest first)
  2. Observability gaps blocking diagnosis or Traffic Control
  3. Automation that reduces mean time to detect/respond
  4. Performance and schema improvements with clear evidence

Phase 11 — Stop gate

Re-read: ../11-change-gates-and-approval-contract/SKILL.md

Verify:

  • No Class C/D/E actions were taken
  • Every proposed mutation has an ID, target, interface, effect, risk, rollback, and test plan
  • Report ends with the required final sentence

Stop. Do not apply changes — unless a valid autonomous-mode acknowledgment (per ../13-autonomous-execution-mode/SKILL.md) accompanied the request, in which case present the report and the execution plan, then continue directly into execution under that skill.

Required final report structure

Use the template in ../10-customer-report-template/SKILL.md. Minimum sections:

  1. Scope — org, database, branches, engine, repository, interfaces, time window; changes applied: none

  2. Executive summary — 3–7 bullets on highest-risk gaps and highest-value improvements

  3. Current state — database topology, safety workflow, observability, automation, repository instrumentation (with evidence)

  4. Recommendations — ranked table with IDs, target, benefit, risk, approval needed, test first, evidence

  5. Proposed change set requiring approval — every Class C/D item with exact change, interface, rollback, production impact

  6. Changes intentionally not applied — explicit list of what was not changed

  7. Evidence appendix — source, command/path, timestamp, value, notes

  8. Final required sentence (verbatim):

    No changes have been applied. Approve specific change IDs before any mutation.

Handling partial runs

If MCP, CLI, API, or repository access is unavailable:

  • Continue with available interfaces
  • Record missing evidence in the report
  • Lower confidence on affected recommendations
  • Do not invent state — mark unknown

After the report

Two paths into execution:

Per-change approval. The operator approves specific change IDs:

  1. Re-read ../11-change-gates-and-approval-contract/SKILL.md
  2. Execute only the named IDs
  3. Produce the post-execution report defined in that skill

Autonomous mode. The operator explicitly acknowledges the risk with a named scope ("I accept the risk — apply all report recommendations to storefront-demo, production included"):

  1. Read ../13-autonomous-execution-mode/SKILL.md and validate the acknowledgment against its activation contract
  2. Present the dependency-ordered execution plan, then execute end to end with continuous status, per-step verification, and the halt rules from that skill
  3. Produce the run summary and run log

Never interpret "apply best practices", "fix everything", or "go ahead" as either approval or risk acknowledgment.

Quick invocation

When the user says "run the full assessment" or "run all PlanetScale best-practices skills":

  1. Load this skill
  2. Run Phases 0–11 in order
  3. Return the unified report
  4. Stop

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

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

场景价值95/100

亮点

  • 覆盖 PlanetScale 安全最佳实践的完整评估链条,从清单检查到统一报告,解决生产安全、性能与可观测性的核心痛点
  • 适用于数据库运维中的高频刚需场景,显著提升日常评估效率
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体(如“运行完整评估”、“所有技能”、“PlanetScale 最佳实践审查”),边界清晰
结构规范95/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整,文档结构非常清晰,易于理解和执行
执行可靠90/100

亮点

  • 工具来源明确(官方文档),参数正确,覆盖主要异常,不可逆操作有确认机制,强调 read-only 原则和变更审批流程
证据可验 (前四项均值)93/100

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

正文静态检测

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

正文未命中当前规则。

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

权限与使用前检查

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

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 17 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • planetscale.com

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

安全评级与访问范围

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

来源文档未说明。

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