[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7939RCCA6SBAEW8J5B0NE7W":3,"skill-same:01M7939RCCA6SBAEW8J5B0NE7W":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},"01M7939RCCA6SBAEW8J5B0NE7W","agentos-customization",null,"Design, inspect, build, install, replace, verify or roll back trusted AgentOS customization delivered through Pi packages. Use when extending a deployed Fleet with Pi extensions, startup prompts, injected instructions, Skills, First- or Second-Mate role setups, Mise or Kubernetes resources, Crewmate setups, database migrations or runtime assets; resolving overlapping package ownership; or changing which AgentOS resources Pi loads.","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-customization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agentos-customization\ndescription: Design, inspect, build, install, replace, verify or roll back trusted AgentOS customization delivered through Pi packages. Use when extending a deployed Fleet with Pi extensions, startup prompts, injected instructions, Skills, First- or Second-Mate role setups, Mise or Kubernetes resources, Crewmate setups, database migrations or runtime assets; resolving overlapping package ownership; or changing which AgentOS resources Pi loads.\n---\n\n# Customize AgentOS\n\nUse Pi as the extension host and package registry. Do not add an AgentOS plugin\nmanager, installer, watcher, activation service or shadow package state.\n\nA Pi package is trusted code with the hosting Agent's operating-system access.\nPackage installation is therefore an authority decision. PostgreSQL RLS,\nKubernetes RBAC, provider credentials and Git permissions remain the\nconsequence boundaries.\n\n## Establish the boundary\n\n1. Resolve the target Fleet, Agent, persistent home, working directory, Pi\n   process, AgentOS release and package origin. Distinguish authoring a package\n   from applying one to a live Mate.\n2. Inspect the installed Pi build and its native package surfaces:\n\n   ```console\n   pi --version\n   pi --help\n   pi list\n   ```\n\n   Inspect selection with `pi config`. Do not print whole settings or\n   authentication files merely to discover package state.\n3. Identify the exact package source and immutable version, target Agents,\n   requested changes, review owner, reload or rollout boundary and rollback.\n   Availability is not trust.\n4. Classify the change:\n   - **additive package** loads beside the released AgentOS package;\n   - **behavior replacement** supplies the selected AgentOS extension while\n     reusing public `@akua-dev\u002Fagentos` functions when useful;\n   - **complete role replacement** also supplies selected role Mise, image and\n     Kubernetes resources; or\n   - **custom distribution** changes released identity, authorization schema\n     or another core guarantee and must not be represented as unmodified\n     AgentOS.\n5. Resolve the separate authority for package selection, Pi reload, database\n   mutation, workload rollout and provider effects. One does not imply another.\n\n## Understand the one AgentOS package\n\n`@akua-dev\u002Fagentos` is both the public TypeScript API and the released Pi\npackage. Importing its root module is inert. Pi activates behavior only when\nits native settings select the package extension or Skills.\n\nThe package owns:\n\n```text\n@akua-dev\u002Fagentos\u002F\n├── dist\u002F                         public inert TypeScript API\n├── extensions\u002Fagentos.ts        released Pi entrypoint\n├── skills\u002F                      Pi-discoverable Skills\n├── runtime\u002F                     distribution runtime programs\n└── resources\u002F\n    ├── roles\u002F\n    │   ├── firstmate\u002F           instructions, Skills, Mise, Kubernetes\n    │   └── secondmate\u002F          instructions, Mise, Kubernetes\n    └── crewmates\u002Fdefault\u002F       brief, image, Mise, Kubernetes\n```\n\nPi package selection governs extensions and Skills. It does not select the\nworking directory, `mise.toml`, image, ServiceAccount, RBAC, Secret mounts or\nKubernetes resources that started the process.\n\n## Build an ordinary Pi package\n\nUse the selected Pi version's native manifest. Keep executable behavior in\nextensions, conditional judgment in Skills and deterministic materials next\nto the Skill that applies them.\n\n```json\n{\n  \"name\": \"@example\u002Fagentos-customization\",\n  \"version\": \"1.0.0\",\n  \"keywords\": [\"pi-package\"],\n  \"pi\": {\n    \"extensions\": [\".\u002Fextensions\"],\n    \"skills\": [\".\u002Fskills\"]\n  },\n  \"peerDependencies\": {\n    \"@akua-dev\u002Fagentos\": \"^0.1.0\"\n  }\n}\n```\n\nA package may contain:\n\n- Pi extensions, prompt resources and themes;\n- instruction sources injected through reviewed Pi hooks;\n- Skills with adjacent SQL, TypeScript, YAML or templates;\n- `resources\u002Froles\u002Ffirstmate\u002F` and `resources\u002Froles\u002Fsecondmate\u002F` with native\n  `mise.toml` and Kubernetes resources;\n- named Crewmate setups, image selections and capability expectations; and\n- independent programs used through their native interfaces.\n\nThe Pi manifest exposes Pi resources. Other files remain ordinary package\nassets until an extension or explicitly loaded Skill uses them.\n\nUse only public exports from the selected `@akua-dev\u002Fagentos` release. Never\ndeep-import private implementation paths. Declare the supported range as a\npeer dependency, compile and test against an exact development dependency, and\nlet the deployed installation pin the concrete version.\n\nShared values must remain plain structural data. Do not use classes, symbols,\n`instanceof` checks or process-global state to coordinate separately installed\npackages.\n\nDo not put credentials, tokens, private keys, signed URLs or secret file bodies\nin package metadata, prompts, Skills, migrations, role setups or logs.\n\n## Choose how behavior loads\n\nAn ecosystem package may expose reusable functions from its normal module root\nand a thin Pi entrypoint for direct installation:\n\n```text\npackage\u002F\n├── src\u002Findex.ts\n├── extensions\u002Fstandalone.ts\n├── skills\u002F\n└── resources\u002F\n```\n\nChoose one path for each behavior:\n\n- **Standalone additive:** Pi selects the package directly when its tools,\n  commands, hooks, Skills and lifecycle effects are independent.\n- **Imported registration:** the selected owner imports the package's\n  registration function and calls it from one extension when ordering or\n  shared ownership must be explicit.\n- **Replacement:** Pi selects the replacement extension and does not select the\n  released AgentOS extension. The replacement may import inert public\n  functions from `@akua-dev\u002Fagentos` without activating released behavior.\n\nNamespace every tool, command, Skill, message, startup contribution and\npersisted entry with its owning package. Installing a standalone entrypoint and\nalso importing that package's registration function creates duplicate\nownership; select one path.\n\nSeveral independently loaded extensions may call public AgentOS functions.\nThose functions remain inert until invoked, accept `pi` explicitly and keep no\ncross-package singleton state.\n\nIf packages overlap always-present identity, instruction injection, startup\nturns, supervision, background commands or another released responsibility,\nselect one owner and one explicit call order. Never use extension load order or\nlast-writer-wins registration as an override mechanism.\n\n## Preflight registrations\n\nBefore attaching any Pi behavior:\n\n1. Read required package resources without mutating external state.\n2. Validate the explicit role and supported AgentOS and Pi versions.\n3. Validate package-qualified registration and startup IDs.\n4. Reject known collisions across tools, commands, Skills, messages and\n   persisted entries.\n5. Confirm every startup contribution names a Skill in the selected\n   pre-session catalog.\n6. Only then attach Pi handlers, tools and commands.\n\nUse `preflightAgentOSRegistrationsEffect` for structural registration claims\nand `registerAgentOSRuntimeEffect` only after the whole selected set passes. A\ncollision is a configuration error; do not rely on Pi's duplicate-name\nresolution or add a deduplication registry.\n\nExtension registration cannot roll back a database write, Kubernetes mutation,\nspawned process, timer, filesystem change or other external effect. Never\nperform those effects during module import or registration. Defer them to an\nexplicit command, tool invocation or model-guided Skill.\n\n## Let the model reconcile startup\n\nAn extension may use `session_start` to prompt the model to inspect and\nreconcile the package. Keep the prompt bounded and route judgment to one\ndelivered Skill:\n\n```ts\nimport { Effect } from \"effect\";\nimport {\n  buildAgentOSStartupPromptEffect,\n  defineAgentOSPiExtension,\n  registerAgentOSStartupEffect,\n  type AgentOSStartupContributionV1,\n} from \"@akua-dev\u002Fagentos\";\n\nconst startup: AgentOSStartupContributionV1 = {\n  version: 1,\n  id: \"@example\u002Fagentos:startup\",\n  skill: \"example-agentos-startup\",\n  instruction: \"Inspect and reconcile the reviewed customization.\",\n};\n\nexport default defineAgentOSPiExtension((pi) =>\n  Effect.gen(function*() {\n    const prompt = yield* buildAgentOSStartupPromptEffect([startup]);\n    yield* registerAgentOSStartupEffect(pi, {\n      customType: \"@example\u002Fagentos:startup\",\n      prompt,\n      requiredSkills: [startup.skill],\n    });\n  })\n);\n```\n\nPi 0.81.1 emits `session_start` before extension `resources_discover` hooks.\nDeclare required startup Skills through the package manifest or native Pi\nsettings so they are already present in the effective Skill catalog.\n\nAggregate multiple accepted startup contributions into one bounded follow-up:\n\n- at most 16 contributions;\n- package-qualified `id` at most 128 characters;\n- Pi-compatible `skill` at most 64 lowercase letters, numbers and\n  non-consecutive hyphens;\n- `instruction` at most 2048 UTF-8 bytes each; and\n- at most 16384 UTF-8 bytes across instructions.\n\nPreserve explicit input order. Reject duplicates and overflow rather than\ntruncating, splitting or triggering competing model turns.\n\nThe prompt starts a model turn. It does not prove a migration, package, role or\nAssignment changed. Let the Skill inspect authoritative state through native\n`psql`, `kubectl`, Git, filesystem, provider and Pi interfaces. Do not invent\nFleet events or add a database observer merely to make an SDK appear reactive.\n\n## Customize role and Crewmate setup\n\nPackage-owned role and Crewmate assets are ordinary versioned resources.\nSelection remains explicit:\n\n- the workload's working directory selects the role Mise configuration;\n- the immutable image or reviewed retained checkout supplies exact bytes;\n- native Kustomize and `kubectl` select and apply the workload;\n- the Agent row selects the harness;\n- the Assignment brief defines the accepted outcome and constraints; and\n- Pi settings select extensions and Skills.\n\nRequire `AGENTOS_DISTRIBUTION_ROOT` to identify the exact distribution and\n`AGENTOS_AGENT_CWD` to identify its exact selected role directory. Do not derive\neither from package discovery, database state or the current directory.\n\nAn organization package may replace First- or Second-Mate instructions,\nrole-local Skills, Mise tasks, Kubernetes overlays, Crewmate briefs and images.\nRender and test those assets from the packed artifact. Installing the Pi\npackage alone does not activate pre-process resources.\n\nOrganization database changes belong in versioned SQL owned by the reviewed\npackage or fork. The applying Skill inspects migration state and invokes native\nPostgreSQL tooling. Never auto-apply SQL from extension registration.\n\n## Stage and test\n\n1. Keep unreviewed package bytes outside active Pi discovery.\n2. Pin an immutable version or Git revision. Use a local path only when its\n   mutable ownership and rollback are explicit.\n3. Test observable behavior against the exact Pi build: loaded resources,\n   lifecycle messages, registered tools, cleanup and collision failure.\n4. Pack the publishable artifact and install it into a clean fixture. Verify\n   public imports, dependency closure, extensions, Skills, role resources,\n   Mise tasks and rendered Kubernetes resources without the source worktree.\n5. Preserve the current package selection and resolvable prior source for\n   rollback. Do not create a parallel AgentOS activation record.\n\n## Apply at a safe boundary\n\nInstalling, removing or enabling trusted code changes the Agent runtime. Load\n`$agentos-harnesses` before changing or reloading a live Pi session.\n\nFor additive behavior:\n\n1. Install the exact reviewed source with Pi's native command.\n2. Use `pi config` to select only intended extensions and Skills.\n3. At an idle turn boundary, invoke `\u002Freload`.\n4. Verify the exact live session.\n\nFor replacement behavior:\n\n1. Stage and test the replacement before disabling anything.\n2. Ensure Pi selects exactly one owner for each replaced behavior.\n3. Select the replacement extension and deselect the released AgentOS\n   extension. Select released Skills independently only when intended.\n4. Invoke `\u002Freload` at an idle boundary.\n5. Verify the live catalog, injected instructions and lifecycle message count.\n6. On failure, restore the prior Pi selection and reload.\n\nFor a complete role replacement:\n\n1. Preserve the prior image, overlay, role directory and resumable Pi session.\n2. Render the replacement Kustomize resources through native tooling. Verify\n   image, PVC, working directory, Mise task, ServiceAccount, RBAC and Secret\n   mounts.\n3. Preview and apply the exact workload change with its separate authority.\n4. Wait for the rollout and verify one Pi session from the selected role\n   directory with retained home state.\n5. On failure, restore the prior native workload resources and verify the\n   retained source session. Reverting Pi selection alone does not revert a Pod.\n\n## Verify\n\nAfter install or rollback:\n\n1. Re-run `pi list` and inspect `pi config` without exposing secrets.\n2. Verify exact loaded extension and Skill paths and exactly one owner for each\n   replaced behavior.\n3. Observe the exact Herdr Agent across `\u002Freload`; the existing Pi session must\n   remain singular and usable.\n4. Observe one bounded startup message and explicit Skill load when startup\n   behavior is selected. Duplication or a prompt loop is failure.\n5. For role resources, inspect the actual image, working directory, Mise\n   configuration and rendered\u002Flive Kubernetes resources.\n6. Query PostgreSQL, Kubernetes, Git and providers directly for claimed\n   external effects. Extension session state is not authoritative evidence.\n7. Record origin, version, selected resources, verification and rollback in the\n   owning reviewed workflow without credentials.\n\n## Fail closed\n\n- Unreviewed or mutable origin without explicit acceptance: inspect only.\n- Missing authority: stop before install, reload, migration or rollout.\n- Unsupported Pi surface: use that exact build's documentation or stop.\n- Missing public AgentOS export: use an independent extension or reviewed fork.\n- Duplicate or unowned registration: correct selection before registration.\n- Startup Skill absent from the pre-session catalog: do not trigger the turn.\n- Import-time or registration-time external effects: reject the package.\n- Incomplete packed artifact or unresolved dependency: do not install.\n- Package selected but native role resources not selected: do not claim a role\n  replacement.\n- Verification failure: restore the prior native selection at the same\n  authority boundary and report the first unverified state.\n","# Customize AgentOS\n\nUse Pi as the extension host and package registry. Do not add an AgentOS plugin\nmanager, installer, watcher, activation service or shadow package state.\n\nA Pi package is trusted code with the hosting Agent's operating-system access.\nPackage installation is therefore an authority decision. PostgreSQL RLS,\nKubernetes RBAC, provider credentials and Git permissions remain the\nconsequence boundaries.\n\n## Establish the boundary\n\n1. Resolve the target Fleet, Agent, persistent home, working directory, Pi\n   process, AgentOS release and package origin. Distinguish authoring a package\n   from applying one to a live Mate.\n2. Inspect the installed Pi build and its native package surfaces:\n\n   ```console\n   pi --version\n   pi --help\n   pi list\n   ```\n\n   Inspect selection with `pi config`. Do not print whole settings or\n   authentication files merely to discover package state.\n3. Identify the exact package source and immutable version, target Agents,\n   requested changes, review owner, reload or rollout boundary and rollback.\n   Availability is not trust.\n4. Classify the change:\n   - **additive package** loads beside the released AgentOS package;\n   - **behavior replacement** supplies the selected AgentOS extension while\n     reusing public `@akua-dev\u002Fagentos` functions when useful;\n   - **complete role replacement** also supplies selected role Mise, image and\n     Kubernetes resources; or\n   - **custom distribution** changes released identity, authorization schema\n     or another core guarantee and must not be represented as unmodified\n     AgentOS.\n5. Resolve the separate authority for package selection, Pi reload, database\n   mutation, workload rollout and provider effects. One does not imply another.\n\n## Understand the one AgentOS package\n\n`@akua-dev\u002Fagentos` is both the public TypeScript API and the released Pi\npackage. Importing its root module is inert. Pi activates behavior only when\nits native settings select the package extension or Skills.\n\nThe package owns:\n\n```text\n@akua-dev\u002Fagentos\u002F\n├── dist\u002F                         public inert TypeScript API\n├── extensions\u002Fagentos.ts        released Pi entrypoint\n├── skills\u002F                      Pi-discoverable Skills\n├── runtime\u002F                     distribution runtime programs\n└── resources\u002F\n    ├── roles\u002F\n    │   ├── firstmate\u002F           instructions, Skills, Mise, Kubernetes\n    │   └── secondmate\u002F          instructions, Mise, Kubernetes\n    └── crewmates\u002Fdefault\u002F       brief, image, Mise, Kubernetes\n```\n\nPi package selection governs extensions and Skills. It does not select the\nworking directory, `mise.toml`, image, ServiceAccount, RBAC, Secret mounts or\nKubernetes resources that started the process.\n\n## Build an ordinary Pi package\n\nUse the selected Pi version's native manifest. Keep executable behavior in\nextensions, conditional judgment in Skills and deterministic materials next\nto the Skill that applies them.\n\n```json\n{\n  \"name\": \"@example\u002Fagentos-customization\",\n  \"version\": \"1.0.0\",\n  \"keywords\": [\"pi-package\"],\n  \"pi\": {\n    \"extensions\": [\".\u002Fextensions\"],\n    \"skills\": [\".\u002Fskills\"]\n  },\n  \"peerDependencies\": {\n    \"@akua-dev\u002Fagentos\": \"^0.1.0\"\n  }\n}\n```\n\nA package may contain:\n\n- Pi extensions, prompt resources and themes;\n- instruction sources injected through reviewed Pi hooks;\n- Skills with adjacent SQL, TypeScript, YAML or templates;\n- `resources\u002Froles\u002Ffirstmate\u002F` and `resources\u002Froles\u002Fsecondmate\u002F` with native\n  `mise.toml` and Kubernetes resources;\n- named Crewmate setups, image selections and capability expectations; and\n- independent programs used through their native interfaces.\n\nThe Pi manifest exposes Pi resources. Other files remain ordinary package\nassets until an extension or explicitly loaded Skill uses them.\n\nUse only public exports from the selected `@akua-dev\u002Fagentos` release. Never\ndeep-import private implementation paths. Declare the supported range as a\npeer dependency, compile and test against an exact development dependency, and\nlet the deployed installation pin the concrete version.\n\nShared values must remain plain structural data. Do not use classes, symbols,\n`instanceof` checks or process-global state to coordinate separately installed\npackages.\n\nDo not put credentials, tokens, private keys, signed URLs or secret file bodies\nin package metadata, prompts, Skills, migrations, role setups or logs.\n\n## Choose how behavior loads\n\nAn ecosystem package may expose reusable functions from its normal module root\nand a thin Pi entrypoint for direct installation:\n\n```text\npackage\u002F\n├── src\u002Findex.ts\n├── extensions\u002Fstandalone.ts\n├── skills\u002F\n└── resources\u002F\n```\n\nChoose one path for each behavior:\n\n- **Standalone additive:** Pi selects the package directly when its tools,\n  commands, hooks, Skills and lifecycle effects are independent.\n- **Imported registration:** the selected owner imports the package's\n  registration function and calls it from one extension when ordering or\n  shared ownership must be explicit.\n- **Replacement:** Pi selects the replacement extension and does not select the\n  released AgentOS extension. The replacement may import inert public\n  functions from `@akua-dev\u002Fagentos` without activating released behavior.\n\nNamespace every tool, command, Skill, message, startup contribution and\npersisted entry with its owning package. Installing a standalone entrypoint and\nalso importing that package's registration function creates duplicate\nownership; select one path.\n\nSeveral independently loaded extensions may call public AgentOS functions.\nThose functions remain inert until invoked, accept `pi` explicitly and keep no\ncross-package singleton state.\n\nIf packages overlap always-present identity, instruction injection, startup\nturns, supervision, background commands or another released responsibility,\nselect one owner and one explicit call order. Never use extension load order or\nlast-writer-wins registration as an override mechanism.\n\n## Preflight registrations\n\nBefore attaching any Pi behavior:\n\n1. Read required package resources without mutating external state.\n2. Validate the explicit role and supported AgentOS and Pi versions.\n3. Validate package-qualified registration and startup IDs.\n4. Reject known collisions across tools, commands, Skills, messages and\n   persisted entries.\n5. Confirm every startup contribution names a Skill in the selected\n   pre-session catalog.\n6. Only then attach Pi handlers, tools and commands.\n\nUse `preflightAgentOSRegistrationsEffect` for structural registration claims\nand `registerAgentOSRuntimeEffect` only after the whole selected set passes. A\ncollision is a configuration error; do not rely on Pi's duplicate-name\nresolution or add a deduplication registry.\n\nExtension registration cannot roll back a database write, Kubernetes mutation,\nspawned process, timer, filesystem change or other external effect. Never\nperform those effects during module import or registration. Defer them to an\nexplicit command, tool invocation or model-guided Skill.\n\n## Let the model reconcile startup\n\nAn extension may use `session_start` to prompt the model to inspect and\nreconcile the package. Keep the prompt bounded and route judgment to one\ndelivered Skill:\n\n```ts\nimport { Effect } from \"effect\";\nimport {\n  buildAgentOSStartupPromptEffect,\n  defineAgentOSPiExtension,\n  registerAgentOSStartupEffect,\n  type AgentOSStartupContributionV1,\n} from \"@akua-dev\u002Fagentos\";\n\nconst startup: AgentOSStartupContributionV1 = {\n  version: 1,\n  id: \"@example\u002Fagentos:startup\",\n  skill: \"example-agentos-startup\",\n  instruction: \"Inspect and reconcile the reviewed customization.\",\n};\n\nexport default defineAgentOSPiExtension((pi) =>\n  Effect.gen(function*() {\n    const prompt = yield* buildAgentOSStartupPromptEffect([startup]);\n    yield* registerAgentOSStartupEffect(pi, {\n      customType: \"@example\u002Fagentos:startup\",\n      prompt,\n      requiredSkills: [startup.skill],\n    });\n  })\n);\n```\n\nPi 0.81.1 emits `session_start` before extension `resources_discover` hooks.\nDeclare required startup Skills through the package manifest or native Pi\nsettings so they are already present in the effective Skill catalog.\n\nAggregate multiple accepted startup contributions into one bounded follow-up:\n\n- at most 16 contributions;\n- package-qualified `id` at most 128 characters;\n- Pi-compatible `skill` at most 64 lowercase letters, numbers and\n  non-consecutive hyphens;\n- `instruction` at most 2048 UTF-8 bytes each; and\n- at most 16384 UTF-8 bytes across instructions.\n\nPreserve explicit input order. Reject duplicates and overflow rather than\ntruncating, splitting or triggering competing model turns.\n\nThe prompt starts a model turn. It does not prove a migration, package, role or\nAssignment changed. Let the Skill inspect authoritative state through native\n`psql`, `kubectl`, Git, filesystem, provider and Pi interfaces. Do not invent\nFleet events or add a database observer merely to make an SDK appear reactive.\n\n## Customize role and Crewmate setup\n\nPackage-owned role and Crewmate assets are ordinary versioned resources.\nSelection remains explicit:\n\n- the workload's working directory selects the role Mise configuration;\n- the immutable image or reviewed retained checkout supplies exact bytes;\n- native Kustomize and `kubectl` select and apply the workload;\n- the Agent row selects the harness;\n- the Assignment brief defines the accepted outcome and constraints; and\n- Pi settings select extensions and Skills.\n\nRequire `AGENTOS_DISTRIBUTION_ROOT` to identify the exact distribution and\n`AGENTOS_AGENT_CWD` to identify its exact selected role directory. Do not derive\neither from package discovery, database state or the current directory.\n\nAn organization package may replace First- or Second-Mate instructions,\nrole-local Skills, Mise tasks, Kubernetes overlays, Crewmate briefs and images.\nRender and test those assets from the packed artifact. Installing the Pi\npackage alone does not activate pre-process resources.\n\nOrganization database changes belong in versioned SQL owned by the reviewed\npackage or fork. The applying Skill inspects migration state and invokes native\nPostgreSQL tooling. Never auto-apply SQL from extension registration.\n\n## Stage and test\n\n1. Keep unreviewed package bytes outside active Pi discovery.\n2. Pin an immutable version or Git revision. Use a local path only when its\n   mutable ownership and rollback are explicit.\n3. Test observable behavior against the exact Pi build: loaded resources,\n   lifecycle messages, registered tools, cleanup and collision failure.\n4. Pack the publishable artifact and install it into a clean fixture. Verify\n   public imports, dependency closure, extensions, Skills, role resources,\n   Mise tasks and rendered Kubernetes resources without the source worktree.\n5. Preserve the current package selection and resolvable prior source for\n   rollback. Do not create a parallel AgentOS activation record.\n\n## Apply at a safe boundary\n\nInstalling, removing or enabling trusted code changes the Agent runtime. Load\n`$agentos-harnesses` before changing or reloading a live Pi session.\n\nFor additive behavior:\n\n1. Install the exact reviewed source with Pi's native command.\n2. Use `pi config` to select only intended extensions and Skills.\n3. At an idle turn boundary, invoke `\u002Freload`.\n4. Verify the exact live session.\n\nFor replacement behavior:\n\n1. Stage and test the replacement before disabling anything.\n2. Ensure Pi selects exactly one owner for each replaced behavior.\n3. Select the replacement extension and deselect the released AgentOS\n   extension. Select released Skills independently only when intended.\n4. Invoke `\u002Freload` at an idle boundary.\n5. Verify the live catalog, injected instructions and lifecycle message count.\n6. On failure, restore the prior Pi selection and reload.\n\nFor a complete role replacement:\n\n1. Preserve the prior image, overlay, role directory and resumable Pi session.\n2. Render the replacement Kustomize resources through native tooling. Verify\n   image, PVC, working directory, Mise task, ServiceAccount, RBAC and Secret\n   mounts.\n3. Preview and apply the exact workload change with its separate authority.\n4. Wait for the rollout and verify one Pi session from the selected role\n   directory with retained home state.\n5. On failure, restore the prior native workload resources and verify the\n   retained source session. Reverting Pi selection alone does not revert a Pod.\n\n## Verify\n\nAfter install or rollback:\n\n1. Re-run `pi list` and inspect `pi config` without exposing secrets.\n2. Verify exact loaded extension and Skill paths and exactly one owner for each\n   replaced behavior.\n3. Observe the exact Herdr Agent across `\u002Freload`; the existing Pi session must\n   remain singular and usable.\n4. Observe one bounded startup message and explicit Skill load when startup\n   behavior is selected. Duplication or a prompt loop is failure.\n5. For role resources, inspect the actual image, working directory, Mise\n   configuration and rendered\u002Flive Kubernetes resources.\n6. Query PostgreSQL, Kubernetes, Git and providers directly for claimed\n   external effects. Extension session state is not authoritative evidence.\n7. Record origin, version, selected resources, verification and rollback in the\n   owning reviewed workflow without credentials.\n\n## Fail closed\n\n- Unreviewed or mutable origin without explicit acceptance: inspect only.\n- Missing authority: stop before install, reload, migration or rollout.\n- Unsupported Pi surface: use that exact build's documentation or stop.\n- Missing public AgentOS export: use an independent extension or reviewed fork.\n- Duplicate or unowned registration: correct selection before registration.\n- Startup Skill absent from the pre-session catalog: do not trigger the turn.\n- Import-time or registration-time external effects: reject the package.\n- Incomplete packed artifact or unresolved dependency: do not install.\n- Package selected but native role resources not selected: do not claim a role\n  replacement.\n- Verification failure: restore the prior native selection at the same\n  authority boundary and report the first unverified state.\n",{"name":5,"description":7},"main","a30d855b06853c98477c6121238e4202e3b0b26a","packages\u002Fagentos\u002Fskills\u002Fagentos-customization",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-customization",{"tool":40,"command":41},"bunx","bunx skills add akua-dev\u002Fagentos --skill agentos-customization",{"tool":43,"command":44},"pnpm","pnpm dlx skills add akua-dev\u002Fagentos --skill agentos-customization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-customization\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Fopenai.yaml","REFERENCE","参考文档",274,"https:\u002F\u002Fgithub.com\u002Fakua-dev\u002Fagentos\u002Fblob\u002Fmain\u002Fpackages\u002Fagentos\u002Fskills\u002Fagentos-customization\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",[],[]]