Design — OpenStack operator skills¶

Status: implemented (see docs/evaluation-report.md for test status).
Input: docs/knowledge-map.md; for 0.2.0 also docs/source-mapping.md.
Sections 1 to 8 describe the 0.1.0 design; section 9 what 0.2.0 changed.
1. Goal and non-goals¶
Goal. Turn the operating method of OpenStack, the Day After Tomorrow into Agent Skills that change how Claude behaves when an engineer brings it a production OpenStack problem: investigate before acting, separate facts from hypotheses, weigh business consequence, require recovery and verification, and leave decisions with the humans who own them.
Non-goals.
- Not a command reference or troubleshooting catalogue. The book is not one and does not claim to be (knowledge map §8).
- Not a summary of the book. Skills contain procedures and decision rules; the book's argument stays in the book.
- Not an executor. No skill runs commands against infrastructure or treats its own output as authorization.
2. Evaluation of the candidate skills¶
| Candidate | Verdict | Reason |
|---|---|---|
A. openstack-operations-principles |
Reworked into openstack-operational-decisions + a shared principles file |
A free-floating "philosophy" skill would trigger ambiguously, overlap every other skill and produce generic advice. The book's philosophy becomes operational through a specific tool — the Control Decision Framework, its gates and the weighted model (App. A, Ch. 18) — applied to lifecycle and structural decisions (upgrade vs backport, keep/remove debt, workarounds, repair vs rebuild, security exceptions). That is where "technically correct vs operationally suitable" is actually decided. The principles themselves live in shared/, copied into every skill. |
B. openstack-incident-analysis |
Kept | Strongest support in the book (Ch. 4, 8, 9, 10, 19, App. E) and the highest-stakes use. Implemented first as the proof of concept. |
C. openstack-change-review |
Kept | Ch. 9, App. A gates, App. C record, Ch. 19 stop conditions form a complete review method. |
D. openstack-maintenance-planner |
Kept, renamed openstack-maintenance-planning |
Distinct from change review: it constructs a plan (workload classes, capacity per failure domain, migration type, patch order) rather than evaluating one. Ch. 20 supplies a full worked case and the mechanics. Renamed for naming consistency. Upgrades stay in change review / operational decisions, not here. |
E. openstack-automation-review |
Kept, re-scoped | The book's automation chapter (Ch. 16) is generic and never names Ansible or Kolla-Ansible. The skill's decision rules come from Ch. 16, Ch. 10 (fence-before-evacuate) and Ch. 15 (workarounds becoming scripts). Ansible/Kolla-Ansible specifics (idempotency, check mode, serial, failure thresholds) are included as clearly labelled additions in a separate reference file. |
F. openstack-runbook-builder |
Kept, renamed openstack-runbook-authoring |
Ch. 11 gives a minimum information model, decision points, "must not do", owner and validation date, and the partition-vs-node-left example. Renamed for naming consistency. |
New: openstack-control-assessment |
Added | Part II (Ch. 5–7) and Appendices B and D are the book's most distinctive method and none of the candidates covered them: consequence chain, control spectrum with criteria, evidence confidence, four outcomes, restoration sequence, review after team change. |
Rejected additional ideas: a separate upgrade-planning skill (upgrade readiness is a change review with extra checks, and the upgrade-vs-backport choice is an operational decision — splitting further would overlap), a security skill (the book's own position is that security is platform work handled with the same disciplines, Ch. 17), and a team/organization skill (Ch. 12 is advisory prose with few repeatable procedures; its tests are folded into assessment and runbook validation).
3. Final collection¶
| Skill | One-line responsibility | Typical trigger |
|---|---|---|
openstack-incident-analysis |
Investigate a live or recent incident from evidence to verified recovery decision. | "VMs stuck in BUILD", "RabbitMQ alarms", "host down", "API 503s" |
openstack-change-review |
Decide whether a planned change is ready: gates, blast radius, recovery, stop conditions, verification, decision record. | "review this change", "is this upgrade plan safe", "CAB request" |
openstack-maintenance-planning |
Build a host maintenance or patching campaign within real capacity and business criticality. | "patch all compute nodes", "drain hosts", "kernel/QEMU update" |
openstack-operational-decisions |
Compare options for lifecycle and structural decisions with gates, trade-offs, decision rights and expiry. | "upgrade or backport?", "keep this workaround?", "repair or rebuild?" |
openstack-control-assessment |
Assess how much control the organization has, by capability, and turn gaps into decisions. | "audit our platform", "we inherited this cloud", "engineer leaving" |
openstack-automation-review |
Review automation for delegated judgement, scope, safeguards, operability and recovery. | "review this playbook", "auto-evacuation script", "should we automate X" |
openstack-runbook-authoring |
Turn operational knowledge into a runbook with decision points, stop/escalation and validation. | "write a runbook", "document this procedure", "turn this incident into a procedure" |
Hand-offs between skills are explicit in each SKILL.md ("Related skills"),
but each skill works on its own.
4. Structure and progressive disclosure¶
skills/<name>/
SKILL.md # < 500 lines; workflow, decision rules, output format, limits
references/
operating-principles.md # copy of shared/ (kept identical by tools/sync_shared.py)
evidence-and-safety.md # copy of shared/
<skill-specific>.md # technical notes, templates, worked examples
- Shared files are duplicated on purpose. Every skill must be uploadable on
its own (claude.ai zip upload, Skills API), and a skill cannot reference files
outside its own directory. The canonical text lives in
shared/;tools/sync_shared.pycopies it andtools/validate_skills.pyfails if any copy drifts. - References are one level deep from
SKILL.md; reference files over 100 lines start with a table of contents (Anthropic best practices). - Frontmatter uses only the portable keys (
name,description,license,metadata) so the same directory works in Claude Code, claude.ai and the API. Noallowed-tools: these skills must not pre-approve any tool.
5. Behavioural contract shared by all skills¶
Encoded in shared/evidence-and-safety.md and restated briefly in each skill:
- Classify every statement as Observed, Reported, Hypothesis or Assumption, with the source of each observation.
- Read-only diagnostics before any corrective action; label every proposed command as read-only or state-changing.
- Business impact before any disruptive recommendation.
- Every state-changing recommendation carries: prerequisites, blast radius, expected result, verification, stop conditions, recovery path, and who must approve it.
- Never claim an action happened or succeeded without evidence from the user.
- Recommendations are not authorization. Destructive or disruptive actions require a named human decision owner.
- Missing information is listed as a gap with what would close it — never filled with invented values.
- Context-dependent choices are presented as options with conditions, not as universal rules.
- Release-specific facts are flagged for verification against current upstream or vendor documentation.
6. Source attribution convention¶
[Book: Ch. 9]— a rule or fact taken from the book.[Book: Ch. 16, author's position]— something the author explicitly flags as personal opinion.[Addition]— a recommendation introduced by this repository, not found in the book. Additions are kept few and are marked wherever they appear.
Skills cite the book so a human can check the reasoning; Claude does not need the book to run them.
7. Evaluation approach¶
- Structural checks (
tools/validate_skills.py, run in CI): frontmatter validity against the spec, name = directory, description length and characters, body length, links resolve, references one level deep, TOC on long references, shared copies identical, citations point to chapters that exist, scenario files well-formed and ≥ 3 per skill. - Behavioural scenarios (
evals/scenarios/*.json): built from the book's documented situations (knowledge map §4) where possible; each defines available evidence, missing information, expected reasoning, expected output, critical errors and grading criteria. - Behavioural runs require running Claude. What was actually run, how, and
the results are recorded in
docs/evaluation-report.md; nothing is reported as passed unless it was run.
8. Licensing note¶
When the skills were written, the book was under CC BY-NC-ND 4.0, which does not allow distributing adaptations; the author holds the copyright and licensed the skills under the Apache License 2.0. The book itself has since moved to the Apache License 2.0 as well. The skills still paraphrase and restructure the method rather than reproduce the text.
9. Version 0.2.0: operational knowledge and validation status¶
0.1.0 encoded a method. 0.2.0 adds concrete operational knowledge from the
OzarLand repositories and makes its evidence visible. Assessment, decisions
and the source-to-skill mapping: docs/source-mapping.md.
- Two new skills.
openstack-vm-troubleshooting(one instance, volume or port: symptom router, record versus reality, fixes ordered by invasiveness) andopenstack-kolla-ansible-operations(what a run regenerates and restarts, failed runs, host and database operations, design trade-offs; Kolla-Ansible only). The non-goal of section 1 ("not a troubleshooting catalogue") still holds for the method skills; the new skills keep diagnosis and decision points, not full runbooks, and route to the method skills for anything disruptive or platform-wide. - Validation as a first-class property. Every actionable technical claim
carries one of five statuses inline (rule 12 of the shared safety rules)
and an inventory entry with its evidence or missing evidence
(
docs/knowledge-validation-policy.md). Provenance ([Book]/[Addition]) and validation are separate axes. - Lab corrections reach existing skills. Where a lab run qualified a book-derived claim (RabbitMQ reset with Khepri, stopping Placement during controlled degradation, interruption during live migration), the claim's own text says so, with the tag (knowledge map section 10).
- Checks.
tools/validate_knowledge.pykeeps tags, inventory and the published coverage consistent and blocks repository-wide validation claims while coverage is incomplete. It is bookkeeping, not technical validation.