AIOps Vault Companion Skill
This skill is a procedure layer. It does not contain the user's current assets. Current facts live in the local AIOps vault, normally $AIOPS_ROOT or ~/ai-ops.
Source-of-truth contract
Use this split:
README.md: stable local rules, file roles, safety boundaries, and project-specific conventions.resources.md: current state that should be trusted now.maintenance-log.jsonl: append-only history of decisions, maintenance, checks, incidents, and corrections.secrets-location.md: secret names, storage locations, access/rotation notes only; never secret values.services/<service>/service-card.md: per-service runbooks and details when the central resource file would get too large.scripts/aiops.py: low-token command interface over the vault.
Do not infer current infrastructure from this skill. Read the vault and inspect live state where safe.
Default read order
- Resolve the vault path:
$AIOPS_ROOTif set, otherwise~/ai-ops. - Read the local vault
README.mdfirst if the task may change files, services, exposure, credentials, or backups. - Run the command layer before full reads:
python3 "$AIOPS_ROOT/scripts/aiops.py" indexpython3 "$AIOPS_ROOT/scripts/aiops.py" resources --section "<section>"python3 "$AIOPS_ROOT/scripts/aiops.py" service "<name>"python3 "$AIOPS_ROOT/scripts/aiops.py" host "<name>"python3 "$AIOPS_ROOT/scripts/aiops.py" log --tail 20 --summary
- Read full
resources.md, service cards, or log lines only when the sliced output is insufficient. - Use session history only when live state and vault docs cannot answer the question.
Safety boundaries
- Do not read, print, copy, or store secret values.
secrets-location.mdis metadata, not a secret dump. - Do not write secrets into
resources.md, logs, service cards, prompts, issue comments, commits, or chat summaries. - Confirm before irreversible or high-exposure operations: delete, overwrite, rotate, restore, open public ports, change DNS, migrate data, disable backups, or touch third-party/friend-owned resources.
- Keep resource pools explicit. Do not operate on third-party or friend-owned infrastructure unless the user specifically authorizes that target.
- Prefer least exposure: localhost behind reverse proxy or private network for admin paths; public HTTPS only when intended and authenticated.
Maintenance workflow
- Classify the target: host, service, domain/DNS, reverse proxy, data/backup, secret location, automation, or the vault itself.
- Identify the resource pool and authority boundary.
- Load minimal current context through
aiops.pyand service cards. - Inspect live state with safe commands where needed.
- Plan the smallest reversible action and call out high-risk steps.
- Execute with least privilege.
- Verify with real output from the consumer side: health check, log, HTTP request,
systemctl,docker ps, backup listing, or equivalent. - Update the right layer:
- current facts ->
resources.mdor service card; - important history -> one appended
maintenance-log.jsonlobject; - secret locations ->
secrets-location.mdwithout values; - service-local details -> service README/card.
- current facts ->
- If the change improves reusable AIOps workflow/tooling rather than only private local facts, sync the generic part to the template repo at
~/projects/aiops-vault-template, run its tests/checks, then commit and push so downstream AIOS Kit consumers receive the improvement. Never copy private resources, logs, or secrets into the public template. - Run
python3 "$AIOPS_ROOT/scripts/aiops.py" checkafter vault changes. - Report changed files, commands, verification, skipped/blocked items, and follow-ups.
Write-back rules
- Current state belongs in
resources.mdor a service card, not only in the history log. - History belongs in
maintenance-log.jsonl, one valid JSON object per line. - Corrections should be new
correctionorsupersedeentries; do not rewrite history unless the user asks for a migration. - Avoid duplicating the same fact across README, resources, service cards, and logs. Pick the owning layer.
- Large raw evidence should live under
evidence/or outside the vault with a path reference.
Validation checklist
Before finalizing:
python3 "$AIOPS_ROOT/scripts/aiops.py" checkpasses or failures are explained.- JSONL files parse.
- No obvious secret values were added.
- Current-state changes are not only in the maintenance log.
- Claims in the response are backed by vault files or live command output.
- Any high-risk action was confirmed or explicitly left as a proposed step.
If the vault is missing
If no AIOps vault exists and the user wants one, install the template repository or create the minimal layout:
ai-ops/
README.md
resources.md
maintenance-log.jsonl
maintenance-log.schema.md
secrets-location.md # private, ignored by Git
secrets-location.example.md
scripts/aiops.py
Then run python3 scripts/aiops.py check.