[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7939X548QN581H3CDZ2NYYX":3,"skill-same:01M7939X548QN581H3CDZ2NYYX":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7939X548QN581H3CDZ2NYYX","agentos-database",null,"Inspect, provision, migrate, verify, and recover the AgentOS PostgreSQL database using released SQL assets. Use for database topology, schema versions, Fleet coordination, Tasks, Assignments, Inbox, exact Captain decisions, external-event reconciliation, roles, grants, RLS, Functions, Triggers, migration failures, or PostgreSQL bootstrap and recovery.","akua-dev\u002Fagentos","akua-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F173261869?v=4","01M7938GS2G2Q6E2M9PRW7QWRJ","Akua - Build autonomous companies ","01M7938GT412SS56QZVCE0Z7FV",8,"MIT","https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-database\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agentos-database\ndescription: Inspect, provision, migrate, verify, and recover the AgentOS PostgreSQL database using released SQL assets. Use for database topology, schema versions, Fleet coordination, Tasks, Assignments, Inbox, exact Captain decisions, external-event reconciliation, roles, grants, RLS, Functions, Triggers, migration failures, or PostgreSQL bootstrap and recovery.\n---\n\n# Operate the AgentOS database\n\nTreat versioned SQL and its tests as the database contract. Use direct PostgreSQL clients; do not introduce a wrapper service.\n\n## Inspect before mutation\n\n1. Load `$agentos-runtime` and resolve the caller's current execution boundary\n   separately from the database and client-command target. If the authenticated\n   Mate already runs in the intended Pod\u002Fcontainer with the selected client,\n   identity and connection environment, invoke `psql`, `pg-listen` or the\n   migration command directly. Use `kubectl exec` when an external seed or a\n   different Pod\u002Fcontainer is the intended execution boundary. Do not assume\n   either path from the presence of `kubectl` alone.\n2. Identify the selected immutable AgentOS release. Require its version-neutral database manifest and ordered database migrations. CloudNativePG and PostgreSQL are external dependencies selected from current official releases during installation, not versions encoded in the AgentOS release.\n3. Enumerate that release's ordered\n   `database\u002Fmigrations\u002F` files and Drizzle migration journal.\n4. Inspect the target endpoint, server version, database identity, schema version, installed roles and pending migrations without changing them.\n5. For an in-cluster target, inspect `Cluster` resources, CNPG CRDs, admission webhooks and controller Deployments separately. CRDs without a Ready controller are an incomplete installation, not an available database platform.\n6. Stop if required AgentOS release assets are missing. Never reconstruct production schema or Kubernetes resources from prose.\n7. Explain whether the database is existing external, existing in-cluster, or awaiting approved provisioning.\n\n## Select topology\n\nPresent an existing external or managed PostgreSQL endpoint and self-hosted CloudNativePG as equal viable paths. Neither is the implicit default. Explain the observed infrastructure, ownership, availability, backup and cost trade-offs, then let the developer choose. Validate any selected existing endpoint read-only with its approved credential source; do not copy it into Kubernetes merely to normalize the topology.\n\n### Official CloudNativePG version guidance\n\nResolve versions from primary sources at installation time:\n\n- [latest CloudNativePG release](https:\u002F\u002Fgithub.com\u002Fcloudnative-pg\u002Fcloudnative-pg\u002Freleases\u002Flatest)\n- [supported CloudNativePG, Kubernetes and PostgreSQL versions](https:\u002F\u002Fcloudnative-pg.io\u002Fdocs\u002Fcurrent\u002Fsupported_releases\u002F)\n- [installation and upgrade guidance](https:\u002F\u002Fcloudnative-pg.io\u002Fdocs\u002Fcurrent\u002Finstallation_upgrade\u002F)\n- [official PostgreSQL image catalogs](https:\u002F\u002Fcloudnative-pg.io\u002Fdocs\u002Fcurrent\u002Fimage_catalog\u002F)\n- [PostgreSQL container image requirements](https:\u002F\u002Fcloudnative-pg.io\u002Fdocs\u002Fcurrent\u002Fcontainer_images\u002F)\n- [published CloudNativePG image-catalog artifacts](https:\u002F\u002Fgithub.com\u002Fcloudnative-pg\u002Fartifacts\u002Ftree\u002Fmain\u002Fimage-catalogs)\n- [PostgreSQL versioning policy](https:\u002F\u002Fwww.postgresql.org\u002Fsupport\u002Fversioning\u002F)\n\nThe `current` documentation and the artifacts branch move over time. Use them\nto discover candidates, then reopen the selected CNPG version's documentation\nand resolve mutable catalog entries to the exact observed commit and image\ndigests before proposing an installation.\n\nWhen the developer selects self-hosted PostgreSQL:\n\n1. Use CloudNativePG. Do not deploy a raw PostgreSQL Pod, StatefulSet, chart or embedded server.\n2. Read the selected Kubernetes server version. Discover the newest stable, non-prerelease CloudNativePG release from the official project and verify from that release's official documentation that it supports the server version. Also discover the newest stable PostgreSQL release that this CloudNativePG version explicitly supports and publishes as an official operand. Do not infer compatibility from version numbers or use a mutable `latest` tag.\n3. Inspect an existing controller before proposing change. Reuse it only when it is healthy, compatible with the selected Kubernetes server and supports the selected PostgreSQL operand. Do not take ownership of or upgrade a shared controller implicitly. If a compatible existing controller is not the newest release, present reuse and approved upgrade as choices rather than silently preferring either.\n4. If no compatible controller runs, explain that its CRDs, webhooks, namespace and cluster-wide RBAC are cluster-scoped. Present the exact discovered CNPG and PostgreSQL versions and immutable image identities, then ask before installing it.\n5. Obtain the exact tagged CNPG manifest from the official release, verify its official signature or published checksum, and resolve every installed controller image to a digest. Apply only after approval, then verify rollout, version and observed image IDs before creating a database Cluster.\n6. Create an ephemeral rendered copy of the selected AgentOS database manifest and inject the chosen PostgreSQL operand as `tag@sha256`; never edit the canonical release asset. Apply that rendered manifest. The initial shape creates `Cluster\u002Fagentos-postgres` in `agentos`, one instance, a 20 GiB PVC, data checksums, database and owner `agentos`, and no network-enabled superuser. Explain that this minimal path is not HA and has no reviewed backup policy yet.\n7. Wait for the CNPG `Ready` condition, one Ready instance, Bound PVC, selected operand image ID, `agentos-postgres-rw` Service and `agentos-postgres-app` Secret. Never connect directly to a PostgreSQL Pod.\n8. Connect the live First Mate only with the selected AgentOS revision's\n   `packages\u002Fagentos\u002Fresources\u002Froles\u002Ffirstmate\u002Fkubernetes\u002Fpatches\u002Fcloudnative-pg.yaml`.\n   This is a native\n   strategic-merge patch for CNPG's exact Service and Secret conventions, not\n   a generic PostgreSQL overlay or another release manifest. Record the\n   StatefulSet's current image references and observed Pod image IDs first.\n   Preview the mutation against the live API without persisting it:\n\n   ```console\n   kubectl --namespace agentos patch statefulset agentos-firstmate \\\n     --type strategic \\\n     --patch-file \"$AGENTOS_AGENT_CWD\u002Fkubernetes\u002Fpatches\u002Fcloudnative-pg.yaml\" \\\n     --dry-run=server \\\n     --output yaml\n   ```\n\n   Explain that changing the Pod template intentionally restarts First Mate,\n   confirm that the current Herdr\u002FPi session is durably resumable, and ask for\n   approval before applying the same command without `--dry-run=server` and\n   `--output yaml`. An external operator adds the already selected explicit\n   `--context`; an in-cluster First Mate uses its ServiceAccount and explicit\n   namespace. Wait for `statefulset\u002Fagentos-firstmate` rollout completion,\n   reattach to the same native session, and verify the home PVC, image\n   references, observed image IDs, pgpass handoff, TLS hostname and direct\n   database connection before migrating. The strategic patch must not change\n   the image, pull policy, PVC, RBAC or unrelated Pod settings.\n\nStop if official provenance cannot be verified. For an existing database Cluster,\nobserve and retain its PostgreSQL version; finding a newer release never\nauthorizes an implicit major, minor or operand upgrade.\n\nRecord the selected CNPG and PostgreSQL versions, source URLs, verification evidence and observed image IDs in Fleet operational state. They describe an installation, not the immutable AgentOS release.\n\nDo not add `postInitSQL` to the CNPG resource. Drizzle's ordered journal remains the only migration authority.\n\n## Handle credentials\n\nUse the CNPG-generated `agentos-postgres-app` identity for self-hosted PostgreSQL, never the superuser. Read Secret values only after credential approval and never print them.\n\nFor direct `psql`, copy only the Secret's `pgpass` value into `~\u002F.pgpass` on the owning agent PVC without exposing stdout, then set mode `0600`. From any Agent namespace, connect directly through `agentos-postgres-rw.agentos.svc.cluster.local` with explicit database and user names; do not create a port-forward inside the cluster. Refresh that file after credential rotation.\n\nFor Drizzle migrations, `pg-listen`, or another release-pinned `pg`\nprocess against that in-cluster CNPG Service, mount only the `ca.crt` key from\nSecret `agentos-postgres-ca` read-only; never mount `ca.key`. Set\n`PGSSLROOTCERT` and `NODE_EXTRA_CA_CERTS` to that mounted certificate and use\n`PGSSLMODE=verify-full`. Keep the password in `~\u002F.pgpass` and inject this\nnon-secret URL into only the migration process:\n`postgresql:\u002F\u002Fagentos@agentos-postgres-rw.agentos.svc.cluster.local:5432\u002Fagentos?sslmode=verify-full`.\nThe release-pinned `pg` 8 driver otherwise rejects CNPG's private cluster CA,\nwhile `sslmode=no-verify` or libpq-compatibility mode would weaken identity\nverification. Validate the Service hostname against the certificate and\nrecheck this configuration when upgrading the PostgreSQL driver.\n\nFor an external endpoint, prefer an approved Kubernetes Secret or mode-`0600` file owned by the persistent agent. Keep the connection URI out of prompts, command arguments, shell history and normal logs. Do not apply the CNPG patch: create and preview the smallest installation-local strategic patch only after the endpoint, TLS identity and Secret keys are known and approved.\n\nAfter an operation that reapplies, replaces or recreates the First Mate\nStatefulSet, inspect its live Pod template. If the selected database wiring is\nmissing, preview and reapply the applicable reviewed patch with the same\nrestart approval; do not assume either that a routine image rollout removed it\nor that a replacement preserved it.\n\nApply the migration chain with the login that owns the Fleet's released AgentOS\ntables. The released initialization migration creates or adopts the root\nFirst-Mate row and binds it to that same `session_user`; never add a separate\nmigrator or manually map First Mate. This makes First Mate the Fleet\ndatabase\u002Fschema administrator, but does not require PostgreSQL cluster\n`SUPERUSER`, `CREATEDB`, `CREATEROLE` or `BYPASSRLS`.\n\nCreate every other Agent login through the selected database platform's\napproved role-management path, outside AgentOS migrations. Require it to have\nnone of those privileges and no inherited owner capability. After creating the\nAgent row, bind the exact role name with\n`agentos.register_agent_principal(agent_id, database_role)`. Keep the credential\nin that Agent's approved Secret or mode-`0600` file; never store it in Fleet rows.\nAn active registered Agent receives the complete released Fleet read view; RLS\nmust not hide individual rows by role or hierarchy. Unregistered and retired\nruntime logins receive no Fleet rows. Apply hierarchy only to mutation policies.\n\n## Coordinate runtime work\n\n- Require `agentos.current_agent_id()` and the released security checks to pass\n  before any durable work intake or delegation. A running First Mate without\n  that database is still in bootstrap; never substitute a provider tracker,\n  transcript or local file as a second coordination backend.\n- Keep raw reasoning, harness transcripts and terminal output in their runtime\n  authorities. Use Inbox only for durable requests, questions, decisions,\n  replies, blockers and concise handoffs.\n- A recipient loads one delivery through `agentos.receive_inbox(uuid)`. The\n  idempotent Function returns the row and sets `read_at` atomically; only that\n  recipient may use it in normal operation, while First Mate retains owner-level\n  administrative repair. `read_at` means loaded into model context and\n  `resolved_at` means handled. Recover both unread and read-but-unresolved rows.\n  The sender never marks the recipient's row read merely because it submitted a\n  Crewmate doorbell.\n- A First or Second Mate calls `agentos.current_mate_bearings()` for one\n  read-only typed projection of its durable reconciliation references. The\n  Function does not return Inbox bodies or external payloads, mark a row read,\n  claim an event, inspect a runtime, classify health or choose a route. Load\n  full rows and native evidence separately only when the supervising judgment\n  needs them.\n- A persistent Mate derives its non-secret wake channel through\n  `agentos.mate_notification_channel(agentos.current_agent_id())`. Targeted v2\n  hints contain only table and operation. A current Mate listens only to its\n  targeted channel, readiness-gates registration and catches up from durable\n  rows. The channel grants no authority and never replaces Fleet state.\n- Keep private per-Mate context on the owning PVC through `$agentos-memory`.\n  PostgreSQL owns exact Captain decisions and shared coordination, not\n  preference memory.\n- Create direct child identities only through `agentos.provision_agent`.\n  First Mate may provision a Second Mate or Crewmate; Second Mate may provision\n  only a Crewmate; Crewmates receive no execute grant. Treat an exact returned\n  UUID as an idempotent retry and any handle conflict as a hard stop. A Second\n  Mate requires `metadata.charter.summary` and `metadata.charter.scope`.\n  Principal creation and credential delivery remain separate, approved\n  platform operations followed by `agentos.register_agent_principal`.\n- Journal every approved Agent `provision`, `rollout`, `recover` or `teardown`\n  before its first external mutation. A compiler-originated workload must use\n  `agentos.begin_workload_runtime_operation` and supply spec version `1`, the\n  exact canonical spec digest, generated-overlay digest and rendered-resource\n  digest. A generic non-workload action may use `agentos.begin_runtime_operation`.\n  Supply one stable caller-selected UUID, the exact target Agent and supervising\n  owner implied by `session_user`, an optional matching Assignment, Kubernetes\n  namespace and workload, and only closed retained PVC\u002Fworktree identities with\n  `retain` or `discard` disposition. An exact retry returns the same UUID; any\n  owner, digest or identity conflict is an ambiguity to stop on.\n- After each native boundary, call `agentos.observe_runtime_operation` with\n  `applied`, `workload_ready` or `harness_ready`. On interruption or ambiguous\n  partial success record `recovery_required` plus one stable privacy-safe\n  decision code, leave the transaction, and inspect exact Kubernetes, Herdr,\n  PVC and worktree truth. Repair the same identities forward and record the\n  verified phase; never copy manifest, status, logs, terminal output,\n  credentials or heartbeat into PostgreSQL.\n- Complete only after the action-specific boundary is verified. Use\n  `agentos.fail_runtime_operation` for an ended attempt. When desired render or\n  recovery strategy changes, use `agentos.supersede_workload_runtime_operation`\n  for typed workload custody or `agentos.supersede_runtime_operation` for a\n  generic operation to link one new operation atomically. A typed replacement\n  must bind all three new digests; never begin an unlinked replacement to race\n  the same Agent. A teardown requires ended Assignments and explicit\n  disposition for the recorded PVC. The Functions create no Agent, Task,\n  Assignment, Kubernetes resource or worktree and replace no native tool.\n- Before a harness\u002Fprovider execution attempt, call\n  `agentos.begin_assignment_execution_epoch` with a stable epoch UUID, the\n  active Assignment, its matching runtime-operation UUID when one exists, and\n  the bounded native-session reference. Reuse those exact arguments after an\n  ambiguous database result. Record success with\n  `complete_assignment_execution_epoch`. When the closed class-specific retry\n  ceiling is reached, call `exhaust_assignment_execution_epoch` with exactly\n  that derived count; do not store terminal text or provider output as the\n  failure class.\n- After exhaustion, the supervising Mate must choose exactly one released\n  transition. Use `resume_assignment_execution_epoch` with the same Agent,\n  Assignment and session plus `boundary:\u003Copaque>` for transient recovery,\n  `authority:\u003Copaque>` after authentication\u002Fpolicy repair, or a distinct\n  matching rollout\u002Frecover runtime operation at `harness_ready`\u002F`completed`\n  after capacity repair. Use `reassign_assignment_execution_epoch` to invoke\n  the atomic Assignment handoff, or `stop_assignment_execution_epoch` to end\n  the same Assignment with its report. Retry only the exact same arguments;\n  any changed successor, authority, destination, brief, report, or status is a\n  conflict. Never directly update an execution epoch or create a duplicate\n  Task, Assignment, Agent, session, PVC, or worktree to bypass exhaustion.\n- First Mate administers all Fleet work. A Second Mate may accept work only for\n  its managed Agent subtree. A Task without Assignment history is deliberate\n  backlog, not accepted execution. For a new accepted outcome call\n  `agentos.create_task_with_assignment`; for a recorded backlog Task call\n  `agentos.accept_backlog_task`. Supply stable caller-selected Task and\n  Assignment UUIDs and treat the returned pair as the exact idempotent result.\n  A Second Mate may directly record an unassigned backlog Task but has no raw\n  Assignment INSERT authority; use the released acceptance or handoff Function.\n  First Mate retains visible owner-level repair. Each accepted Task has one\n  active accountable Assignment. A Crewmate may update the state of an active\n  own Assignment and its Task, but may not rewrite Task scope. Treat a completed\n  Assignment as immutable history.\n- First Mate's Fleet-owner authority includes deliberate repair of incorrect,\n  incomplete or stale Fleet rows within the released schema. Before repair,\n  read the authoritative row and its coupled state, decide whether the change\n  corrects prior data or records a new fact, and retain enough explanation in\n  the row's existing status, report or metadata surfaces for later\n  reconciliation when useful. Apply coupled changes in one short transaction\n  and read them back. Do not add generic key allowlists, wrapper workflows or\n  new database restrictions merely to prevent First Mate from exercising that\n  judgment; the released grants, RLS, constraints, Functions and completed-row\n  immutability remain the deterministic boundaries.\n- Every new Assignment has a PostgreSQL-authoritative `brief`. Render it into\n  the PVC for the harness and regenerate it rather than reconciling two peers.\n  Store a final or handoff `report` before ending the Assignment.\n- Transfer work only with `agentos.handoff_task_assignment`. It ends the old\n  Assignment and creates one replacement for the same Task atomically and\n  idempotently; never rewrite Assignment ownership or clone the Task.\n- Load `$agentos-decisions` for the released Captain-decision Functions. Scout\n  and review completion requires an exact unresolved-key attestation, including\n  an explicit empty set. Resolution records the exact answer and releases Task\n  dependency edges in one transaction without another table.\n- Before retiring an Agent, explicitly complete or reassign every active Task\n  Assignment and hand off every active child Agent. Call\n  `agentos.retire_agent(agent_id, status_text)`; never emulate retirement with a\n  direct status edit or an automatic cascade.\n- Only First and Second Mates reconcile external events. Pass only the caller's\n  own Agent ID to the released claim, refresh, assertion, completion and release\n  Functions; PostgreSQL verifies it against `session_user`. Do not update claim\n  columns directly.\n- Treat provider issues, comments and board mutations as human-facing external\n  intent. Link accepted work through `tasks.external_links`, reconcile it into\n  Fleet state, and keep provider writes synchronous through native tools; never\n  mirror the provider into PostgreSQL or call it an independent Fleet authority.\n- Keep model reasoning and provider CLI calls outside database transactions.\n  Immediately before committing local effects, assert that the claim is current.\n  Apply coupled Task and Inbox updates and complete the claim in one short\n  transaction. On a provider or reasoning failure, release the claim with useful\n  error text; never hide the failure behind an outbox.\n  On crash-after-send ambiguity, perform one recovery-only remote-state check\n  before deciding whether a retry would duplicate the provider effect.\n\n## Apply released assets\n\n1. Ask before provisioning PostgreSQL, creating a database or role, changing\n   grants, or applying migrations. When `$agentos-upgrade` supplies exact\n   Captain authority for one published stable release and the current Fleet,\n   that same authority covers only preparation and application of the\n   release's ordered pending AgentOS migrations; do not ask again. It does not\n   cover topology, credentials, login roles, grants outside released\n   migrations, arbitrary Fleet-row repair or down-migration.\n2. Apply the topology selected by the developer. Do not rank external PostgreSQL ahead of self-hosted CloudNativePG, or vice versa.\n3. Before the first migration on an agent, explain that the pinned Drizzle and\n   PostgreSQL driver dependencies will occupy about 90 MB on its PVC and ask\n   for tooling-installation approval unless the exact `$agentos-upgrade`\n   authority in step 1 already covers the selected release. From the selected\n   release's `database\u002F` directory, run `mise run database:prepare`. It installs\n   only `@agentos\u002Fdatabase` production dependencies from the release root\n   `bun.lock` into a content-addressed persistent workspace and reuses a\n   completed workspace on later runs. Trust its printed package path; do not\n   run a second ad hoc `bun install` in that workspace.\n4. Apply pending migrations as the selected Fleet-owner login from the path printed by `database:prepare` with `bun run --cwd \u003Cprepared-path> migrate`, injecting `DATABASE_URL` and, when used, `PGPASSFILE` into only that process from the approved secret source. For the released in-cluster CNPG shape, use the non-secret URL and `~\u002F.pgpass` handoff defined above. The released config resolves that entry in memory before constructing `pg`; never put the password in a command argument or restore the driver's deprecated implicit pgpass fallback. Drizzle Kit owns ordering and the applied-migration journal. Stop on a separate migration identity instead of weakening the automatic root binding.\n5. Use released Functions and Triggers for shared invariants instead of rewriting equivalent ad hoc SQL in every agent session.\n6. Use released RLS policies and role grants; never bypass them to make a failing workflow pass.\n\nAgentOS is SQL-first. Never use `drizzle-kit push`, `pull`, or non-custom `generate`, and never introduce a TypeScript schema as database authority. New migrations begin with the package's `migration:new -- --name \u003Cname>` command and contain only reviewed SQL.\n\n## Verify\n\n- Confirm schema version and migration checksums, then verify that `current_agent_id()` resolves the single active root First Mate for the Fleet-owner session.\n- Exercise allowed and forbidden access with actual Agent roles when the selected release defines them. Until then, do not admit mutually untrusted agents to the database.\n- Verify the invariants defined by the installed SQL tests and confirm direct `psql` access through the approved non-superuser identity.\n- Verify the owning agent can reconnect after pod replacement without exposing credentials.\n\nOn partial failure, preserve committed migrations, report the first unverified boundary, and use the release's recovery procedure. Do not improvise down-migrations or destructive repair.\n","# Operate the AgentOS database\n\nTreat versioned SQL and its tests as the database contract. Use direct PostgreSQL clients; do not introduce a wrapper service.\n\n## Inspect before mutation\n\n1. Load `$agentos-runtime` and resolve the caller's current execution boundary\n   separately from the database and client-command target. If the authenticated\n   Mate already runs in the intended Pod\u002Fcontainer with the selected client,\n   identity and connection environment, invoke `psql`, `pg-listen` or the\n   migration command directly. Use `kubectl exec` when an external seed or a\n   different Pod\u002Fcontainer is the intended execution boundary. Do not assume\n   either path from the presence of `kubectl` alone.\n2. Identify the selected immutable AgentOS release. Require its version-neutral database manifest and ordered database migrations. CloudNativePG and PostgreSQL are external dependencies selected from current official releases during installation, not versions encoded in the AgentOS release.\n3. Enumerate that release's ordered\n   `database\u002Fmigrations\u002F` files and Drizzle migration journal.\n4. Inspect the target endpoint, server version, database identity, schema version, installed roles and pending migrations without changing them.\n5. For an in-cluster target, inspect `Cluster` resources, CNPG CRDs, admission webhooks and controller Deployments separately. CRDs without a Ready controller are an incomplete installation, not an available database platform.\n6. Stop if required AgentOS release assets are missing. Never reconstruct production schema or Kubernetes resources from prose.\n7. Explain whether the database is existing external, existing in-cluster, or awaiting approved provisioning.\n\n## Select topology\n\nPresent an existing external or managed PostgreSQL endpoint and self-hosted CloudNativePG as equal viable paths. Neither is the implicit default. Explain the observed infrastructure, ownership, availability, backup and cost trade-offs, then let the developer choose. Validate any selected existing endpoint read-only with its approved credential source; do not copy it into Kubernetes merely to normalize the topology.\n\n### Official CloudNativePG version guidance\n\nResolve versions from primary sources at installation time:\n\n- [latest CloudNativePG release](https:\u002F\u002Fgithub.com\u002Fcloudnative-pg\u002Fcloudnative-pg\u002Freleases\u002Flatest)\n- [supported CloudNativePG, Kubernetes and PostgreSQL versions](https:\u002F\u002Fcloudnative-pg.io\u002Fdocs\u002Fcurrent\u002Fsupported_releases\u002F)\n- [installation and upgrade guidance](https:\u002F\u002Fcloudnative-pg.io\u002Fdocs\u002Fcurrent\u002Finstallation_upgrade\u002F)\n- [official PostgreSQL image catalogs](https:\u002F\u002Fcloudnative-pg.io\u002Fdocs\u002Fcurrent\u002Fimage_catalog\u002F)\n- [PostgreSQL container image requirements](https:\u002F\u002Fcloudnative-pg.io\u002Fdocs\u002Fcurrent\u002Fcontainer_images\u002F)\n- [published CloudNativePG image-catalog artifacts](https:\u002F\u002Fgithub.com\u002Fcloudnative-pg\u002Fartifacts\u002Ftree\u002Fmain\u002Fimage-catalogs)\n- [PostgreSQL versioning policy](https:\u002F\u002Fwww.postgresql.org\u002Fsupport\u002Fversioning\u002F)\n\nThe `current` documentation and the artifacts branch move over time. Use them\nto discover candidates, then reopen the selected CNPG version's documentation\nand resolve mutable catalog entries to the exact observed commit and image\ndigests before proposing an installation.\n\nWhen the developer selects self-hosted PostgreSQL:\n\n1. Use CloudNativePG. Do not deploy a raw PostgreSQL Pod, StatefulSet, chart or embedded server.\n2. Read the selected Kubernetes server version. Discover the newest stable, non-prerelease CloudNativePG release from the official project and verify from that release's official documentation that it supports the server version. Also discover the newest stable PostgreSQL release that this CloudNativePG version explicitly supports and publishes as an official operand. Do not infer compatibility from version numbers or use a mutable `latest` tag.\n3. Inspect an existing controller before proposing change. Reuse it only when it is healthy, compatible with the selected Kubernetes server and supports the selected PostgreSQL operand. Do not take ownership of or upgrade a shared controller implicitly. If a compatible existing controller is not the newest release, present reuse and approved upgrade as choices rather than silently preferring either.\n4. If no compatible controller runs, explain that its CRDs, webhooks, namespace and cluster-wide RBAC are cluster-scoped. Present the exact discovered CNPG and PostgreSQL versions and immutable image identities, then ask before installing it.\n5. Obtain the exact tagged CNPG manifest from the official release, verify its official signature or published checksum, and resolve every installed controller image to a digest. Apply only after approval, then verify rollout, version and observed image IDs before creating a database Cluster.\n6. Create an ephemeral rendered copy of the selected AgentOS database manifest and inject the chosen PostgreSQL operand as `tag@sha256`; never edit the canonical release asset. Apply that rendered manifest. The initial shape creates `Cluster\u002Fagentos-postgres` in `agentos`, one instance, a 20 GiB PVC, data checksums, database and owner `agentos`, and no network-enabled superuser. Explain that this minimal path is not HA and has no reviewed backup policy yet.\n7. Wait for the CNPG `Ready` condition, one Ready instance, Bound PVC, selected operand image ID, `agentos-postgres-rw` Service and `agentos-postgres-app` Secret. Never connect directly to a PostgreSQL Pod.\n8. Connect the live First Mate only with the selected AgentOS revision's\n   `packages\u002Fagentos\u002Fresources\u002Froles\u002Ffirstmate\u002Fkubernetes\u002Fpatches\u002Fcloudnative-pg.yaml`.\n   This is a native\n   strategic-merge patch for CNPG's exact Service and Secret conventions, not\n   a generic PostgreSQL overlay or another release manifest. Record the\n   StatefulSet's current image references and observed Pod image IDs first.\n   Preview the mutation against the live API without persisting it:\n\n   ```console\n   kubectl --namespace agentos patch statefulset agentos-firstmate \\\n     --type strategic \\\n     --patch-file \"$AGENTOS_AGENT_CWD\u002Fkubernetes\u002Fpatches\u002Fcloudnative-pg.yaml\" \\\n     --dry-run=server \\\n     --output yaml\n   ```\n\n   Explain that changing the Pod template intentionally restarts First Mate,\n   confirm that the current Herdr\u002FPi session is durably resumable, and ask for\n   approval before applying the same command without `--dry-run=server` and\n   `--output yaml`. An external operator adds the already selected explicit\n   `--context`; an in-cluster First Mate uses its ServiceAccount and explicit\n   namespace. Wait for `statefulset\u002Fagentos-firstmate` rollout completion,\n   reattach to the same native session, and verify the home PVC, image\n   references, observed image IDs, pgpass handoff, TLS hostname and direct\n   database connection before migrating. The strategic patch must not change\n   the image, pull policy, PVC, RBAC or unrelated Pod settings.\n\nStop if official provenance cannot be verified. For an existing database Cluster,\nobserve and retain its PostgreSQL version; finding a newer release never\nauthorizes an implicit major, minor or operand upgrade.\n\nRecord the selected CNPG and PostgreSQL versions, source URLs, verification evidence and observed image IDs in Fleet operational state. They describe an installation, not the immutable AgentOS release.\n\nDo not add `postInitSQL` to the CNPG resource. Drizzle's ordered journal remains the only migration authority.\n\n## Handle credentials\n\nUse the CNPG-generated `agentos-postgres-app` identity for self-hosted PostgreSQL, never the superuser. Read Secret values only after credential approval and never print them.\n\nFor direct `psql`, copy only the Secret's `pgpass` value into `~\u002F.pgpass` on the owning agent PVC without exposing stdout, then set mode `0600`. From any Agent namespace, connect directly through `agentos-postgres-rw.agentos.svc.cluster.local` with explicit database and user names; do not create a port-forward inside the cluster. Refresh that file after credential rotation.\n\nFor Drizzle migrations, `pg-listen`, or another release-pinned `pg`\nprocess against that in-cluster CNPG Service, mount only the `ca.crt` key from\nSecret `agentos-postgres-ca` read-only; never mount `ca.key`. Set\n`PGSSLROOTCERT` and `NODE_EXTRA_CA_CERTS` to that mounted certificate and use\n`PGSSLMODE=verify-full`. Keep the password in `~\u002F.pgpass` and inject this\nnon-secret URL into only the migration process:\n`postgresql:\u002F\u002Fagentos@agentos-postgres-rw.agentos.svc.cluster.local:5432\u002Fagentos?sslmode=verify-full`.\nThe release-pinned `pg` 8 driver otherwise rejects CNPG's private cluster CA,\nwhile `sslmode=no-verify` or libpq-compatibility mode would weaken identity\nverification. Validate the Service hostname against the certificate and\nrecheck this configuration when upgrading the PostgreSQL driver.\n\nFor an external endpoint, prefer an approved Kubernetes Secret or mode-`0600` file owned by the persistent agent. Keep the connection URI out of prompts, command arguments, shell history and normal logs. Do not apply the CNPG patch: create and preview the smallest installation-local strategic patch only after the endpoint, TLS identity and Secret keys are known and approved.\n\nAfter an operation that reapplies, replaces or recreates the First Mate\nStatefulSet, inspect its live Pod template. If the selected database wiring is\nmissing, preview and reapply the applicable reviewed patch with the same\nrestart approval; do not assume either that a routine image rollout removed it\nor that a replacement preserved it.\n\nApply the migration chain with the login that owns the Fleet's released AgentOS\ntables. The released initialization migration creates or adopts the root\nFirst-Mate row and binds it to that same `session_user`; never add a separate\nmigrator or manually map First Mate. This makes First Mate the Fleet\ndatabase\u002Fschema administrator, but does not require PostgreSQL cluster\n`SUPERUSER`, `CREATEDB`, `CREATEROLE` or `BYPASSRLS`.\n\nCreate every other Agent login through the selected database platform's\napproved role-management path, outside AgentOS migrations. Require it to have\nnone of those privileges and no inherited owner capability. After creating the\nAgent row, bind the exact role name with\n`agentos.register_agent_principal(agent_id, database_role)`. Keep the credential\nin that Agent's approved Secret or mode-`0600` file; never store it in Fleet rows.\nAn active registered Agent receives the complete released Fleet read view; RLS\nmust not hide individual rows by role or hierarchy. Unregistered and retired\nruntime logins receive no Fleet rows. Apply hierarchy only to mutation policies.\n\n## Coordinate runtime work\n\n- Require `agentos.current_agent_id()` and the released security checks to pass\n  before any durable work intake or delegation. A running First Mate without\n  that database is still in bootstrap; never substitute a provider tracker,\n  transcript or local file as a second coordination backend.\n- Keep raw reasoning, harness transcripts and terminal output in their runtime\n  authorities. Use Inbox only for durable requests, questions, decisions,\n  replies, blockers and concise handoffs.\n- A recipient loads one delivery through `agentos.receive_inbox(uuid)`. The\n  idempotent Function returns the row and sets `read_at` atomically; only that\n  recipient may use it in normal operation, while First Mate retains owner-level\n  administrative repair. `read_at` means loaded into model context and\n  `resolved_at` means handled. Recover both unread and read-but-unresolved rows.\n  The sender never marks the recipient's row read merely because it submitted a\n  Crewmate doorbell.\n- A First or Second Mate calls `agentos.current_mate_bearings()` for one\n  read-only typed projection of its durable reconciliation references. The\n  Function does not return Inbox bodies or external payloads, mark a row read,\n  claim an event, inspect a runtime, classify health or choose a route. Load\n  full rows and native evidence separately only when the supervising judgment\n  needs them.\n- A persistent Mate derives its non-secret wake channel through\n  `agentos.mate_notification_channel(agentos.current_agent_id())`. Targeted v2\n  hints contain only table and operation. A current Mate listens only to its\n  targeted channel, readiness-gates registration and catches up from durable\n  rows. The channel grants no authority and never replaces Fleet state.\n- Keep private per-Mate context on the owning PVC through `$agentos-memory`.\n  PostgreSQL owns exact Captain decisions and shared coordination, not\n  preference memory.\n- Create direct child identities only through `agentos.provision_agent`.\n  First Mate may provision a Second Mate or Crewmate; Second Mate may provision\n  only a Crewmate; Crewmates receive no execute grant. Treat an exact returned\n  UUID as an idempotent retry and any handle conflict as a hard stop. A Second\n  Mate requires `metadata.charter.summary` and `metadata.charter.scope`.\n  Principal creation and credential delivery remain separate, approved\n  platform operations followed by `agentos.register_agent_principal`.\n- Journal every approved Agent `provision`, `rollout`, `recover` or `teardown`\n  before its first external mutation. A compiler-originated workload must use\n  `agentos.begin_workload_runtime_operation` and supply spec version `1`, the\n  exact canonical spec digest, generated-overlay digest and rendered-resource\n  digest. A generic non-workload action may use `agentos.begin_runtime_operation`.\n  Supply one stable caller-selected UUID, the exact target Agent and supervising\n  owner implied by `session_user`, an optional matching Assignment, Kubernetes\n  namespace and workload, and only closed retained PVC\u002Fworktree identities with\n  `retain` or `discard` disposition. An exact retry returns the same UUID; any\n  owner, digest or identity conflict is an ambiguity to stop on.\n- After each native boundary, call `agentos.observe_runtime_operation` with\n  `applied`, `workload_ready` or `harness_ready`. On interruption or ambiguous\n  partial success record `recovery_required` plus one stable privacy-safe\n  decision code, leave the transaction, and inspect exact Kubernetes, Herdr,\n  PVC and worktree truth. Repair the same identities forward and record the\n  verified phase; never copy manifest, status, logs, terminal output,\n  credentials or heartbeat into PostgreSQL.\n- Complete only after the action-specific boundary is verified. Use\n  `agentos.fail_runtime_operation` for an ended attempt. When desired render or\n  recovery strategy changes, use `agentos.supersede_workload_runtime_operation`\n  for typed workload custody or `agentos.supersede_runtime_operation` for a\n  generic operation to link one new operation atomically. A typed replacement\n  must bind all three new digests; never begin an unlinked replacement to race\n  the same Agent. A teardown requires ended Assignments and explicit\n  disposition for the recorded PVC. The Functions create no Agent, Task,\n  Assignment, Kubernetes resource or worktree and replace no native tool.\n- Before a harness\u002Fprovider execution attempt, call\n  `agentos.begin_assignment_execution_epoch` with a stable epoch UUID, the\n  active Assignment, its matching runtime-operation UUID when one exists, and\n  the bounded native-session reference. Reuse those exact arguments after an\n  ambiguous database result. Record success with\n  `complete_assignment_execution_epoch`. When the closed class-specific retry\n  ceiling is reached, call `exhaust_assignment_execution_epoch` with exactly\n  that derived count; do not store terminal text or provider output as the\n  failure class.\n- After exhaustion, the supervising Mate must choose exactly one released\n  transition. Use `resume_assignment_execution_epoch` with the same Agent,\n  Assignment and session plus `boundary:\u003Copaque>` for transient recovery,\n  `authority:\u003Copaque>` after authentication\u002Fpolicy repair, or a distinct\n  matching rollout\u002Frecover runtime operation at `harness_ready`\u002F`completed`\n  after capacity repair. Use `reassign_assignment_execution_epoch` to invoke\n  the atomic Assignment handoff, or `stop_assignment_execution_epoch` to end\n  the same Assignment with its report. Retry only the exact same arguments;\n  any changed successor, authority, destination, brief, report, or status is a\n  conflict. Never directly update an execution epoch or create a duplicate\n  Task, Assignment, Agent, session, PVC, or worktree to bypass exhaustion.\n- First Mate administers all Fleet work. A Second Mate may accept work only for\n  its managed Agent subtree. A Task without Assignment history is deliberate\n  backlog, not accepted execution. For a new accepted outcome call\n  `agentos.create_task_with_assignment`; for a recorded backlog Task call\n  `agentos.accept_backlog_task`. Supply stable caller-selected Task and\n  Assignment UUIDs and treat the returned pair as the exact idempotent result.\n  A Second Mate may directly record an unassigned backlog Task but has no raw\n  Assignment INSERT authority; use the released acceptance or handoff Function.\n  First Mate retains visible owner-level repair. Each accepted Task has one\n  active accountable Assignment. A Crewmate may update the state of an active\n  own Assignment and its Task, but may not rewrite Task scope. Treat a completed\n  Assignment as immutable history.\n- First Mate's Fleet-owner authority includes deliberate repair of incorrect,\n  incomplete or stale Fleet rows within the released schema. Before repair,\n  read the authoritative row and its coupled state, decide whether the change\n  corrects prior data or records a new fact, and retain enough explanation in\n  the row's existing status, report or metadata surfaces for later\n  reconciliation when useful. Apply coupled changes in one short transaction\n  and read them back. Do not add generic key allowlists, wrapper workflows or\n  new database restrictions merely to prevent First Mate from exercising that\n  judgment; the released grants, RLS, constraints, Functions and completed-row\n  immutability remain the deterministic boundaries.\n- Every new Assignment has a PostgreSQL-authoritative `brief`. Render it into\n  the PVC for the harness and regenerate it rather than reconciling two peers.\n  Store a final or handoff `report` before ending the Assignment.\n- Transfer work only with `agentos.handoff_task_assignment`. It ends the old\n  Assignment and creates one replacement for the same Task atomically and\n  idempotently; never rewrite Assignment ownership or clone the Task.\n- Load `$agentos-decisions` for the released Captain-decision Functions. Scout\n  and review completion requires an exact unresolved-key attestation, including\n  an explicit empty set. Resolution records the exact answer and releases Task\n  dependency edges in one transaction without another table.\n- Before retiring an Agent, explicitly complete or reassign every active Task\n  Assignment and hand off every active child Agent. Call\n  `agentos.retire_agent(agent_id, status_text)`; never emulate retirement with a\n  direct status edit or an automatic cascade.\n- Only First and Second Mates reconcile external events. Pass only the caller's\n  own Agent ID to the released claim, refresh, assertion, completion and release\n  Functions; PostgreSQL verifies it against `session_user`. Do not update claim\n  columns directly.\n- Treat provider issues, comments and board mutations as human-facing external\n  intent. Link accepted work through `tasks.external_links`, reconcile it into\n  Fleet state, and keep provider writes synchronous through native tools; never\n  mirror the provider into PostgreSQL or call it an independent Fleet authority.\n- Keep model reasoning and provider CLI calls outside database transactions.\n  Immediately before committing local effects, assert that the claim is current.\n  Apply coupled Task and Inbox updates and complete the claim in one short\n  transaction. On a provider or reasoning failure, release the claim with useful\n  error text; never hide the failure behind an outbox.\n  On crash-after-send ambiguity, perform one recovery-only remote-state check\n  before deciding whether a retry would duplicate the provider effect.\n\n## Apply released assets\n\n1. Ask before provisioning PostgreSQL, creating a database or role, changing\n   grants, or applying migrations. When `$agentos-upgrade` supplies exact\n   Captain authority for one published stable release and the current Fleet,\n   that same authority covers only preparation and application of the\n   release's ordered pending AgentOS migrations; do not ask again. It does not\n   cover topology, credentials, login roles, grants outside released\n   migrations, arbitrary Fleet-row repair or down-migration.\n2. Apply the topology selected by the developer. Do not rank external PostgreSQL ahead of self-hosted CloudNativePG, or vice versa.\n3. Before the first migration on an agent, explain that the pinned Drizzle and\n   PostgreSQL driver dependencies will occupy about 90 MB on its PVC and ask\n   for tooling-installation approval unless the exact `$agentos-upgrade`\n   authority in step 1 already covers the selected release. From the selected\n   release's `database\u002F` directory, run `mise run database:prepare`. It installs\n   only `@agentos\u002Fdatabase` production dependencies from the release root\n   `bun.lock` into a content-addressed persistent workspace and reuses a\n   completed workspace on later runs. Trust its printed package path; do not\n   run a second ad hoc `bun install` in that workspace.\n4. Apply pending migrations as the selected Fleet-owner login from the path printed by `database:prepare` with `bun run --cwd \u003Cprepared-path> migrate`, injecting `DATABASE_URL` and, when used, `PGPASSFILE` into only that process from the approved secret source. For the released in-cluster CNPG shape, use the non-secret URL and `~\u002F.pgpass` handoff defined above. The released config resolves that entry in memory before constructing `pg`; never put the password in a command argument or restore the driver's deprecated implicit pgpass fallback. Drizzle Kit owns ordering and the applied-migration journal. Stop on a separate migration identity instead of weakening the automatic root binding.\n5. Use released Functions and Triggers for shared invariants instead of rewriting equivalent ad hoc SQL in every agent session.\n6. Use released RLS policies and role grants; never bypass them to make a failing workflow pass.\n\nAgentOS is SQL-first. Never use `drizzle-kit push`, `pull`, or non-custom `generate`, and never introduce a TypeScript schema as database authority. New migrations begin with the package's `migration:new -- --name \u003Cname>` command and contain only reviewed SQL.\n\n## Verify\n\n- Confirm schema version and migration checksums, then verify that `current_agent_id()` resolves the single active root First Mate for the Fleet-owner session.\n- Exercise allowed and forbidden access with actual Agent roles when the selected release defines them. Until then, do not admit mutually untrusted agents to the database.\n- Verify the invariants defined by the installed SQL tests and confirm direct `psql` access through the approved non-superuser identity.\n- Verify the owning agent can reconnect after pod replacement without exposing credentials.\n\nOn partial failure, preserve committed migrations, report the first unverified boundary, and use the release's recovery procedure. Do not improvise down-migrations or destructive repair.\n",{"name":5,"description":7},"main","a30d855b06853c98477c6121238e4202e3b0b26a","packages\u002Fagentos\u002Fskills\u002Fagentos-database",0,"https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos","https:\u002F\u002Fagentos.akua.dev","https:\u002F\u002Fgithub.com\u002Fakua-dev","https:\u002F\u002Fakua.dev","The product factory for Agentic organizations. On infrastructure you own. Production safe.","2026-11-09 00:04:56",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add akua-dev\u002Fagentos --skill agentos-database",{"tool":40,"command":41},"bunx","bunx skills add akua-dev\u002Fagentos --skill agentos-database",{"tool":43,"command":44},"pnpm","pnpm dlx skills add akua-dev\u002Fagentos --skill agentos-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-database\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Fopenai.yaml","REFERENCE","参考文档",230,"https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-database\u002Fagents\u002Fopenai.yaml",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M793C3FRBZDFZK0XB78SFEJN","example-replacement","Reconcile the example replacement AgentOS distribution.","https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Ftests\u002Ffixtures\u002Freplacement-package\u002Fskills\u002Fexample-replacement\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M793C1KCJE8E61R5PR5RWR6G","example-additive","Inspect the example additive AgentOS behavior.","https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Ftests\u002Ffixtures\u002Fadditive-package\u002Fskills\u002Fexample-additive\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M793BW3E0NPHQKV45PRTTMKN","agentos-upgrade","Upgrade one persistent AgentOS Mate or, from First Mate with exact Captain authority, every active persistent Mate in one Fleet to an exact published stable release, including its run-once released database migrations. Use for stable First- or Second-Mate updates, resumed post-replacement verification, and authorized rollback boundaries. Do not use for dogfood, Crewmates, provisioning, retired Mates, services, or another Fleet.","https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-upgrade\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M793BPJ6SKYM1NWACHYG0TRM","agentos-supervision","Reconcile and supervise an AgentOS Mate's direct reports across PostgreSQL, Kubernetes, Herdr, PVCs, and Git. Use at every First- or Second-Mate session start, after restart or compaction, while delegated work is active, when Inbox or runtime state changes, and for blocked, stale, stuck, failed, interrupted, or recovering agents.","https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-supervision\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M793BGQANFJYYX8NBHCRKPKM","agentos-secrets","Safely create, retry, rotate, take over, roll back, project, and revoke AgentOS-managed Kubernetes Secrets without retaining or printing credential bytes. Use whenever an AgentOS workflow moves credential files into Kubernetes, changes an existing managed Secret, verifies a projected credential, encounters conflicting Secret ownership or legacy annotations, or retires a Kubernetes-delivered credential.","https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-secrets\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M793BCNKCQAKK00BK32651HC","agentos-runtime","Inspect, create, and operate AgentOS runtime pods, Kustomize overlays, Herdr sessions, Mise toolchains, agent worktrees, terminals, PVCs, Kubernetes health, attach paths and runtime recovery. Use for normal First- or Second-Mate Kubernetes operations, child-Agent workload creation, tool resolution, stuck-agent debugging, remote terminal access, pod or session recovery, and readiness diagnosis.","https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-runtime\u002FSKILL.md",[],[]]