[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7470B0PGPN5JMTGNHMADK7E":3,"skill-same:01M7470B0PGPN5JMTGNHMADK7E":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},"01M7470B0PGPN5JMTGNHMADK7E","zenifra",null,"Use when the user wants to manage Zenifra projects, profiles, organizations, deployments, builds, authentication, or supported Git providers from Codex.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fzenifra\u002Fzenifra-codex-plugin\u002Fskills\u002Fzenifra\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: zenifra\ndescription: Use when the user wants to manage Zenifra projects, profiles, organizations, deployments, builds, authentication, or supported Git providers from Codex.\n---\n\n# Zenifra\n\nUse the Zenifra CLI for product operations.\n\n## Public repository boundary\n\nThis skill lives in a public repository and is limited to the public Zenifra CLI (npm package `@zenifra\u002Fcli`, command `zenifra`) and documented product concepts. Never commit or paste passwords, TOTP codes, API keys, access tokens, connection strings, customer data, private project identifiers, or unredacted command output. Never mention or expose private architecture, internal infrastructure, internal service names, operational runbooks, or development-tool details. Do not call private or undocumented API endpoints to compensate for a missing CLI command.\n\n## Safe operation rules\n\n- Treat read-only commands and mutating commands differently. Listing, plan catalogs, project info, URLs, logs, metrics, capabilities, builds, deployments, billing usage, database status and masked connections, Armazem status\u002Fbuckets\u002Ffile listings\u002Fusage, identity, profile inspection, Git-provider\u002Fconnection\u002Frepository reads, and GitHub or Forgejo source settings reads are read-oriented; create, deploy, GitHub or Forgejo deployment settings, stop, resume, delete, image, exposure, environment, instance, autoscaling, credential rotation, logout with `--revoke`, and profile changes have side effects.\n- Before a mutation, verify the exact profile, API base, organization, project, branch or commit, and intended values. Production mutations require explicit user scope; never infer them from a name such as `prod`.\n- Use `--idempotency-key` for project creation and Key Value, Cache, or Queue credential rotation when a retry may happen. Retry only with the same key and only after inspecting the previous response; do not mask authentication, authorization, validation, setup, or cleanup failures with generic retries.\n- After every external mutation, read back the final state. A successful request or an accepted asynchronous operation is not proof that the desired state was reached.\n- When a requested capability is not exposed by the CLI, say so instead of inventing a command or using an undocumented endpoint. Project deletion is available as `zenifra project delete --project \u003Cproject-id> --yes`; without `--yes`, the CLI does not send a removal request. Require explicit authorization and read the exact project first.\n\n## Mutation workflow\n\nBefore any production mutation, make the target explicit:\n\n1. Run `zenifra whoami --json` to inspect the effective profile, API base, authentication mode, and selected organization without displaying credentials. Use `zenifra profile show --json` when you also need saved profile metadata.\n2. For a user-login profile, run `zenifra orgs --json` and select the organization with `zenifra org set --org \u003Cid>` or pass `--org \u003Cid>` for one command. An OAuth grant belongs to the account; it does not change organization membership.\n3. Read the current plan catalog with `zenifra plans` and confirm the project type, plan, payment mode, storage, exposure, deploy source, port, instances, and initial environments. Check the current `capabilities.*` fields instead of inferring availability from price or descriptive features. In particular, use `capabilities.logs`, `capabilities.metrics`, and `capabilities.healthcheck` for those product capabilities. `--json` preserves the public catalog response for automation.\n4. Use an idempotency key for project creation and Key Value, Cache, or Queue credential rotation. If a request times out, inspect the resulting project or operation before retrying with the same key.\n5. After the mutation, read the project status. For HTTP projects, also read the URL and follow the build or deployment identifier until it reaches a terminal state. For Scheduled Jobs, follow the run history instead.\n\nIf the target uses another saved profile, select it with `zenifra profile list` and `zenifra profile use \u003Cname>`, then run `zenifra whoami --json` again. Do not pass `--profile` to operational commands unless that command's help explicitly supports it. Environment overrides can change the effective API or authentication; use `whoami` to check the effective target without printing credentials, and do not inspect local profile files.\n\nTreat an HTTP project as ready only after the public URL, DNS\u002FTLS, and the product health or OAuth behavior expected for that project have been checked. A Scheduled Job has no public URL: treat it as ready only after project information confirms the expected Job configuration and a scheduled run reaches a terminal state; read that run's logs when permission allows. A created project or successful API response alone is not readiness.\n\n## Project lifecycle\n\n- Stop a project with `zenifra project stop --project \u003Cproject-id>` and resume it with `zenifra project resume --project \u003Cproject-id>`. Both commands confirm the resulting state; read the project again when the final state matters to a later action.\n- Delete a project only after an exact project read and an informed, target-specific confirmation. Immediately before deletion, tell the user exactly what will be deleted by showing the project name, project ID, project type, selected organization, and effective API base; include the public URL when one exists, and state that project deletion is destructive. Ask for an explicit and unambiguous affirmative response for that exact target. Earlier generic authorization does not count, even when the user previously allowed other mutations or deployments. Only after receiving this confirmation may you add `--yes` and run `zenifra project delete --project \u003Cproject-id> --yes`. Without `--yes`, the CLI does not send a removal request. Verify the final absence or deleted state through the supported read behavior before reporting completion.\n- If a lifecycle request times out or is interrupted, inspect the project before retrying. Do not assume either success or failure from the local timeout alone.\n\n## GitHub deployment settings\n\nVersion-triggered GitHub deployment settings require a published `@zenifra\u002Fcli` version 0.4.0 or later. Installing the plugin does not install or update the CLI. Before using these commands, check `zenifra help project github` and use them only when the installed CLI exposes them.\n\nRead a project's repository, branch, deployment mode, and version settings with `zenifra project github --project \u003Cproject-id> [--json]`. Project creation still starts its initial build from the selected branch; the selected mode controls later repository events. Changing deployment settings changes which future events start builds, so first verify the effective API, selected organization, exact project, and repository. Use a mode and tag pattern the user already specified without asking for redundant confirmation; clarify only missing or ambiguous inputs. For production, require explicit user scope. Then read the settings again to verify the effective state.\n\nThe project wizard and `deploy-settings set` use the same four exclusive modes:\n\n- `manual` disables automatic branch and version-triggered builds. The user can still request a manual deploy with `zenifra deploy --project \u003Cproject-id> --branch \u003Cbranch>`.\n- `branch` enables builds for pushes to the project's configured branch and disables tag\u002Frelease triggers.\n- `tag` enables builds when a tag is created and its name matches the required `--tag-pattern`; branch and release triggers are disabled.\n- `release` enables builds when a release is published and its tag matches the required `--tag-pattern`; branch and tag triggers are disabled. Prereleases are excluded by default. Use `--include-prereleases true` only when the user explicitly asks to deploy prereleases.\n\nRead or set the mode with the public CLI:\n\n```bash\nzenifra project github --project \u003Cproject-id> [--json]\nzenifra project github deploy-settings set --project \u003Cproject-id> --mode \u003Cmanual|branch|tag|release> [--tag-pattern \u003Cpattern>] [--include-prereleases \u003Ctrue|false>] [--json]\n```\n\n`--tag-pattern` is required for `tag` and `release`, and is not accepted for `manual` or `branch`. It matches the tag name and supports an exact name or the `*` and `?` wildcards; it is not a regular expression and does not match a release title. `--include-prereleases` is accepted only for `release` and defaults to `false`. Treat including prereleases as a separate permission; a general request for release deployments does not authorize it. A configured trigger is not evidence that a later build or deployment succeeded. When a matching event occurs, follow the returned build through its terminal state and read the project back.\n\n## Forgejo source deployments\n\nFor Forgejo connections, repositories, project sources, or deployment triggers, read [the Forgejo workflow](references\u002Fforgejo.md) before acting. The published end-user CLI requirement is `@zenifra\u002Fcli` 0.5.0 or later; installing this plugin does not install or update the CLI. Check the installed command help. An explicitly authorized development workspace may use its local CLI build when that help exposes the operation. Keep GitHub projects on the GitHub workflow above.\n\n## Domains and MCP OAuth\n\nThe primary project URL and a custom domain are separate values. Do not add the primary URL again as a custom domain. After adding a custom domain, wait for DNS\u002FTLS and read the project URL back before reporting success. For an MCP connection, verify the exact `\u002Fmcp` URL, protected-resource discovery, and the unauthenticated `401` bearer challenge; that `401` is expected before OAuth authorization.\n\nThe MCP server publishes raw tool names without a product prefix: `get_context`, `list_projects`, `get_project`, `get_project_metrics`, `list_builds`, `get_project_logs`, `get_build_logs`, `list_deployments`, `get_project_health`, `list_healthcheck_failures`, `get_project_network`, `get_project_autoscaling`, `list_autoscaling_events`, `list_project_instances`, `get_valkey_status`, `list_ai_keys`, `get_ai_usage`, `get_project_billing`, `list_transactions`, `get_object_storage`, `list_object_storage_buckets`, and `list_object_storage_objects`. A client may prepend its configured server name, so server `zenifra` plus raw tool `get_context` can appear as `zenifra_get_context`. Never add the server namespace to a tool name that already contains it.\n\nFor MCP reads, start with `get_context`, then use `list_projects` or `get_project` to confirm the project type and exact authorized ID. Choose tools that match that type: application logs, health checks, network analytics and their failures apply to HTTP projects; `get_valkey_status` applies to Key Value, Cache, and Queue projects. For Armazém, call `get_object_storage` first to get the service ID (it is `null` when the connection was not given access to it), then `list_object_storage_buckets`, then `list_object_storage_objects` one folder at a time, following `next_continuation_token`. These tools only read; uploads, downloads, deletions and access keys go through the CLI or the console. Use `list_project_instances` before passing an instance to metrics or logs, and use `list_builds` before requesting `get_build_logs` with a build ID. Continue build logs from `next_cursor`; stop when `finished` is true or no new chunks are returned. Use explicit time ranges and bounded pages. Empty lists, unavailable observations and null values must remain distinct from zero or success.\n\nUse product-level recovery guidance:\n\n- `401`: sign in again or reconnect the OAuth connection.\n- `403`: confirm the selected organization and permissions.\n- `404`: confirm the project ID, URL, path, and whether the operation is supported by the selected project type.\n- `409`: inspect the existing resource and reuse the same idempotency key when retrying a known operation.\n- `429`: wait for the indicated retry interval.\n- `502`, DNS\u002FTLS failure, or readiness timeout: inspect project status, build\u002Fdeployment state, public URL, and logs before retrying.\n\nDo not describe these situations using implementation details or expose raw provider responses.\n\n## Authentication safety\n\n- Prefer the interactive prompt for passwords, TOTP codes, and API keys. Never place passwords, TOTP codes, API keys, tokens, or connection strings in committed examples, shell history, logs, or assistant responses.\n- `auth login` may require email, password, and a verification challenge. `--code` is available for automation only when the caller has already handled secret redaction and secure input.\n- `auth api-key` validates the `znf_` prefix locally but does not prove that the key is active; verify the first authorized read operation without printing the key.\n- Keep user-login tokens and organization API keys conceptually separate. API keys are organization-bound and do not need `org set`; user-login profiles may need `org set`.\n- For tests, previews, or temporary validation, set `ZENIFRA_CONFIG_DIR` to a temporary directory so the user's normal profile store is not changed. Remove the temporary directory after verification.\n\n## OAuth login and organization selection\n\nExample hosts under `example.test` are placeholders. Resolve the actual API from the requested target or saved profile before running a command.\n\n- `zenifra auth login --oauth` opens the browser for account sign-in, verification and consent. Without `--oauth`, the existing email\u002Fpassword flow remains available. Do not combine `--oauth` with password, verification-code or API-key flags.\n- OAuth grants belong to the user account, not to one organization. They allow access only within the user's current permissions in each organization; consent does not add a role or bypass organization access checks.\n- Read permission is required. Requested write permission is an explicit choice in consent; `--read-only` requests only read access. A read-only grant cannot create projects, deploy or change settings, even for an organization owner.\n- `zenifra orgs` lists available organizations. `zenifra org set --org \u003Cid>` saves the selection in the active profile, so subsequent organization-scoped commands do not need repeated `--org` flags.\n- With no selection, the CLI selects and saves the only available organization, or prompts for a choice when several exist. For unattended use, select the organization first or pass `--org \u003Cid>` on the command. An explicit `--org` overrides the saved selection only for that command.\n- An OAuth login updates or creates the requested `--profile`, makes it active and clears that profile's previous organization selection. API-key profiles remain organization-bound and do not use this selection flow.\n\n```bash\nzenifra auth login --oauth --profile staging --api-base https:\u002F\u002Fapi.example.test\u002Fv1\nzenifra orgs\nzenifra org set --org \u003Corganization-id>\nzenifra projects\nzenifra create project\nzenifra projects --org \u003Canother-organization-id>\n```\n\n- Without an explicit API base, the CLI uses its profile\u002Foverride configuration and otherwise defaults to production. Use an explicit environment for tests; do not assume a profile name selects an API.\n- `--no-browser` prints the authorization URL to open manually. The browser must run on the same machine as the CLI, or otherwise be able to reach that machine's temporary loopback callback. On a remote or headless server where the browser cannot reach that loopback address, use an organization API key or complete the login on a machine where the callback is reachable. The browser page acknowledges receipt; the terminal confirms that the login was completed and saved. `Ctrl+C` cancels the pending login.\n- Tokens are stored in the private local profile and renewed automatically before expiry. Concurrent commands coordinate refresh; do not manually edit or expose tokens. If renewal is rejected, sign in again. Mutations are not automatically replayed.\n- OAuth profiles are bound to their API. Changing `--api-base` or `ZENIFRA_API_URL` does not authorize forwarding that profile's token to another API; use another profile and login for that environment.\n- `ZENIFRA_API_KEY` still takes precedence for a command and produces a warning when replacing an OAuth profile credential. Check this precedence when diagnosing unexpected authorization behavior without printing the key.\n- `zenifra auth logout` is local-only by default and clears the profile authentication. For an OAuth profile, `zenifra auth logout --revoke` revokes only that profile's OAuth connection; it does not invalidate the user's other logins. Revocation is also available in the Console's connected integrations. A failed remote revocation preserves the local profile; do not remove it and claim cleanup succeeded.\n- For a password-login profile, `auth logout --revoke` invalidates the user's server login sessions. API keys must be revoked through the organization. Distinguish these effects before choosing a logout mode.\n\n## Database guidance\n\n- Use `zenifra database` for every managed database: PostgreSQL, MariaDB, ClickHouse, Key Value, Cache, and Queue. Each command takes `--project \u003Cproject-id>` and `--json`, reads the project type first, and picks the right flow; HTTP projects and Scheduled Jobs are refused because they are not databases.\n- Read-oriented: `zenifra database status --project \u003Cproject-id>` and `zenifra database connection --project \u003Cproject-id>`. The connection is always masked.\n- `zenifra database credentials rotate --project \u003Cproject-id>` has side effects and breaks applications that still use the old credential. Require explicit authorization, and check which applications use the database before rotating.\n  - PostgreSQL, MariaDB, and ClickHouse renew immediately and print the new password exactly once, together with each connected application's project ID and the variable names that must receive the new password. There is no operation to follow, and `database credentials status` explains that.\n  - Key Value, Cache, and Queue return an asynchronous operation. Use `--wait`, or the returned operation identifier with `zenifra database credentials status --project \u003Cproject-id> --operation \u003Coperation-id>`. Use `--idempotency-key` when a retry may happen.\n- Prefer `--connection-file \u003Cpath>` with a private destination the user chose. The CLI writes the connection with the new credential in a file with mode 600 and keeps it out of the output. It never stores the password in the profile or a log. Never paste the password or connection into chat, a report, a commit, or a public example.\n- Key Value, Cache, and Queue connections: the file preserves the exact connection string returned by the backend. If a consuming client requires `rediss:\u002F\u002F` instead of the backend-returned scheme, adapt the value only in that client's private configuration, keeping the host, port, credentials, and parameters unchanged. Never alter the CLI output or the saved backend value.\n- For Key Value, Cache, and Queue metrics, query `zenifra project metrics capabilities --project \u003Cproject-id>` before requesting a snapshot when access is unknown. `availability: unavailable` with a null snapshot is a valid result while the first snapshot is not ready. Do not convert `null` or `unavailable` into zero and do not claim that a metric was collected.\n- The snapshot's `memory.used_bytes` is the memory currently used by the database; `memory.limit_bytes` is its configured limit and may differ from the instance capacity.\n- The legacy top-level `memory` value in the metrics response is current instance\u002Fcontainer usage in bytes, not provisioned capacity. Do not label it as capacity unless the API exposes a dedicated capacity field.\n- Profiles are `key_value`, `cache`, and `queue`. Cache adds hits, misses, and hit ratio; Key Value adds key inventory; Queue must not receive an invented queue-depth value. In the API, these three use `type_project: valkey`; `zenifra projects --type key-value|cache|queue` filters each profile; in the plans catalog Key Value is part of `zenifra plans --type database`, and Cache and Queue have `zenifra plans --type cache` and `--type queue`.\n\n## Scheduled Jobs guidance\n\n- Read only the Jobs catalog with `zenifra plans --type jobs [--json]`. Job plan IDs use the `job-` prefix, `payment_mode` is `per_minute`, and JSON monetary values such as `price_per_minute`, run `amount`, and cycle `total_amount` are expressed in BRL cents and may be fractional. Preserve those JSON values; human-readable cost and minute displays may use up to six decimal places for the per-minute price and up to four for amounts and totals. The catalog is the source of the current rate, so do not hard-code prices. An explicit `--type jobs` request must report that Scheduled Jobs is unavailable; the API response uses code `SCHEDULED_JOBS_UNAVAILABLE`. Do not substitute another catalog.\n- The CLI V1 creates Scheduled Jobs from a ready OCI image. Confirm the `job-*` plan, `per_minute` billing, image reference and access, five-field UTC cron, storage, and initial environment variables. Jobs do not use a public URL, port, exposure, or instances. The CLI V1 accepts only `config.image` and does not support `config.github`, `job.command`, or `job.args`; use the documented advanced API for GitHub sources or explicit commands\u002Farguments.\n- Use `zenifra create project --name \u003Cname> --plan \u003Cjob-plan> --payment-mode per_minute --config @\u003Cjob-config.json> --idempotency-key \u003Ckey>` or the interactive wizard. A Job config uses `type_project: job`, an OCI `image`, `job.cron`, `storage`, and a required `envs` array. Use `envs: []` when there are no variables or an array of `{name, value}` objects; do not omit `envs`.\n- `billed_minutes` rounds duration up with a minimum of 1 and a maximum of 60. A terminal amount is `billed_minutes × price_per_minute`, stored exactly and never rounded up (a R$0.0005 run is stored as `amount: 0.05`), and persisted with the rate in effect. Duration runs from the container's real start to its finish, so scheduling and image download time are not charged; the cycle summary adds those persisted amounts and does not recalculate them from the current catalog.\n- List the current billing-cycle runs with `zenifra project runs --project \u003Cproject-id> [--page \u003Cn>] [--limit \u003Cn>] [--json]`. The public runs, logs, metrics, total cost, run count, and billed minutes reset on the scheduled cycle date independently of financial settlement. Read run logs with `project.logs.read` and run metrics with `project.metrics.read`. If the catalog or response says a capability is unavailable, treat it as unavailable and do not invent a route; when an existing route returns `403`, the capability exists but the principal lacks the matching permission. A run that crosses the boundary stays in the cycle where it started; older run and metric records remain retained internally, while persisted financial records remain available for audit and are not deleted by the public cycle reset. Follow pagination and preserve unknown duration, billed minutes, or amount as unknown rather than zero. After terminal usage is materialized, terminal cost is visible before financial settlement.\n- The API-only `GET \u002Fv1\u002Fproject\u002F:id\u002Fjob-runs\u002Fcost-summary` with `project.billing.read` returns `total_amount`, `executed_runs`, `billed_minutes`, `cycle_started_at`, and `next_reset_at`; the CLI has no equivalent cost-summary command.\n- Read one run's logs with `zenifra project runs logs --project \u003Cproject-id> --run \u003Crun-id> [--json]`. Cancel an active run only with explicit authorization and the `project.job-run.cancel` permission by using `zenifra project runs cancel --project \u003Cproject-id> --run \u003Crun-id> [--json]`; cancellation allows up to 30 seconds for graceful shutdown before forced cleanup.\n- Exit code `0` means success; any non-zero code, including `1`, means failure. There is no automatic retry and no parallel run when an occurrence overlaps an active run. The CLI does not expose a cost-summary or schedule-update command; say so and use only the documented API\u002FConsole instead of inventing one or calling an undocumented endpoint.\n\n## Armazem (object storage) guidance\n\n- Use `zenifra storage` (alias `zenifra armazem`) when the user wants buckets, files, access keys, or object storage usage for the organization. The Armazem uses an industry-standard object storage API: endpoint `https:\u002F\u002Farmazem.zenifra.com`, region `br-sp1`. Each organization has one Armazem.\n- The Armazem is a beta for invited organizations. Start with `zenifra storage status [--json]`. If it is not available yet, say so and point the user to the console's Armazem page to ask to join the beta; do not try to work around it. If it is available but not created, `zenifra storage create [--name \u003Cname>]` creates it.\n- Read-oriented: `storage status`, `storage buckets`, `storage files --bucket \u003Cname> [--prefix \u003Cfolder\u002F>] [--continuation-token \u003Ctoken>]`, `storage files info --bucket \u003Cname> --key \u003Ckey>`, `storage keys`, and `storage usage [--month YYYY-MM]`. `storage files` lists one folder level per call; follow the returned `next_continuation_token` and do not claim one page is the whole bucket.\n- With side effects: `storage buckets create --bucket \u003Cname>`, `storage buckets delete --bucket \u003Cname> --yes`, `storage files upload --bucket \u003Cname> --file \u003Cpath> [--key \u003Ckey>]`, `storage files download --bucket \u003Cname> --key \u003Ckey> [--output \u003Cpath>]` (writes a local file and refuses to overwrite without `--yes`), `storage files delete --bucket \u003Cname> --key \u003Ckey> --yes`, `storage files share --bucket \u003Cname> --key \u003Ckey>`, `storage keys create --name \u003Cname> [--buckets \u003Ca,b|*>] [--access \u003Cread|read_write|full>] [--allowed-ips \u003Cip,cidr>]`, and `storage keys revoke --access-key \u003Cid> --yes`. Confirm the bucket, key, and intended effect before each one.\n- Uploads and downloads go straight to the Armazem through signed links and stream from disk; files can have up to 20 GiB. A share link lets anyone with it download the file for 7 days, so create one only when the user asks.\n- `storage buckets delete` removes only an empty bucket. A bucket with files can be removed only in the console, with a verification code; the CLI explains this and sends nothing else. Do not delete files one by one to empty a bucket unless the user explicitly asks for that.\n- `storage keys create` shows the secret access key exactly once. Tell the user to store it in a secret manager right away; never paste it into chat, a report, a commit, or a file the user did not choose. Prefer the narrowest `--buckets`, `--access`, and `--allowed-ips` that fit the request; without `--buckets`, the key reaches every bucket with `full` access.\n- `storage usage` shows the current month or one of the previous 12 in BRL; `--json` values are in cents and include the free allowance already used.\n\n## Output and asynchronous operations\n\n- Human output is for direct inspection. `--json` preserves the public response for ordinary commands; do not parse table columns as an API contract.\n- `deploy watch --json` emits one JSON object per line while streaming build events, not one final JSON document. `builds logs --follow` similarly streams incremental output.\n- Build log entries expose their source. `event` identifies a detailed build event; `summary` is the terminal summary fallback for older builds and may contain only one line. Preserve that distinction and do not report a summary as missing logs or invent unavailable build steps.\n- Project creation, deployment, and credential rotation may be asynchronous. Capture the returned identifier, poll with the supported command, and report the terminal state or the actual blocker.\n- Environment values and credentials are masked by default. Never use `--show-values` unless the user explicitly requires it, and never include the revealed value in a report.\n\n## Error handling and pagination\n\n- Distinguish authentication failures, authorization failures, validation failures, plan restrictions, rate limits, network timeouts, and asynchronous operation failures. Report the actual category and next supported action.\n- A `401` means the credential or session needs attention; a `403` means the authenticated principal lacks permission; a metrics plan restriction must not be treated as a transient network error; a `429` may include a retry interval.\n- Projects, builds, deployments, autoscaling events, and billing usage are paginated. Use the returned pagination fields and do not claim that one page is the complete result.\n- For deploys where the exact revision matters, pass `--commit-sha` and preserve the supplied identifier literally. Verify the resulting build's commit before claiming that the intended revision was published.\n\n## Command\n\nPrefer the public CLI command when it is installed:\n\n```bash\nzenifra \u003Ccommand>\n```\n\nInside this workspace, use the local CLI project as fallback:\n\n```bash\nnode zenifra-cli\u002Fbin\u002Fzenifra.mjs \u003Ccommand>\n```\n\n## Common Workflows\n\n- Command-specific help: `zenifra help \u003Ccommand>` or `zenifra \u003Ccommand> --help`\n- Command group help: `zenifra auth`, `zenifra profile`, `zenifra project`, `zenifra org`\n- Inspect effective identity and target without credentials: `zenifra whoami --json`\n- Browser login on the active profile: `zenifra auth login --oauth`\n- Password login on the active profile: `zenifra auth login`\n- Browser login on an explicit environment\u002Fprofile: `zenifra auth login --oauth --profile staging --api-base https:\u002F\u002Fapi.example.test\u002Fv1`\n- Save an org API key on the active profile: `zenifra auth api-key` and enter it at the hidden prompt.\n- Save an org API key on another profile: `zenifra auth api-key --profile prod` and enter it at the hidden prompt.\n- Clear only local auth from a profile: `zenifra auth logout [--profile \u003Cname>]`\n- Revoke the OAuth connection (OAuth profile) or server login sessions (password profile), then clear local auth: `zenifra auth logout [--profile \u003Cname>] --revoke`\n- List profiles: `zenifra profile list`\n- Show a profile: `zenifra profile show [name]`\n- Add an API-key profile: `zenifra profile add --name staging --description Homologacao --api-base https:\u002F\u002Fapi.example.test\u002Fv1 --mode api-key` and enter the key at the hidden prompt.\n- Switch the active profile: `zenifra profile use staging`\n- Edit a profile: `zenifra profile edit staging --description \"Homologacao interna\"`\n- Remove a non-active profile: `zenifra profile remove staging`\n- Select organization for a user-login profile: `zenifra org set`\n- Compare public plan prices: `zenifra plans`, then filter with the same groups as the console: `--type http`, `--type database` (PostgreSQL, MariaDB and Key Value), `--type analytics`, `--type jobs`, `--type queue`, `--type cache` or `--type storage`, each with `--json` when needed\n- List projects: `zenifra projects --type http --page 1 --limit 15`\n- Create a project from flags: `zenifra create project --name \u003Cname> --plan free --payment-mode hourly --config @project.json`\n- Run the interactive project wizard: `zenifra create project`\n- Read hourly consumption and compute\u002Fstorage costs: `zenifra project billing usage --project \u003Cproject-id> [--from \u003CISO>] [--to \u003CISO>] [--page \u003Cn>] [--limit \u003Cn>] [--json]`\n- Read database status and masked connection data: `zenifra database status --project \u003Cproject-id>` and `zenifra database connection --project \u003Cproject-id>`\n- Rotate a database credential: `zenifra database credentials rotate --project \u003Cproject-id> [--connection-file \u003Cpath>]`; for Key Value, Cache, and Queue, follow with `--wait` or `zenifra database credentials status --project \u003Cproject-id> --operation \u003Coperation-id>`\n- List Scheduled Job runs: `zenifra project runs --project \u003Cproject-id> [--page \u003Cn>] [--limit \u003Cn>] [--json]`\n- Read Scheduled Job run logs: `zenifra project runs logs --project \u003Cproject-id> --run \u003Crun-id> [--json]`\n- Cancel an authorized active Scheduled Job run: `zenifra project runs cancel --project \u003Cproject-id> --run \u003Crun-id> [--json]`\n- Get project info or URL: `zenifra project info --project \u003Cproject-id>` or `zenifra project url --project \u003Cproject-id>`\n- Stop or resume a project: `zenifra project stop --project \u003Cproject-id>` and `zenifra project resume --project \u003Cproject-id>`\n- Delete an explicitly authorized project: `zenifra project delete --project \u003Cproject-id> --yes`\n- Read runtime logs: `zenifra project logs --project \u003Cproject-id> [--instance \u003Cinstance-id>]`\n- Read GitHub build logs: `zenifra builds logs --project \u003Cproject-id> --build \u003Cbuild-id> [--follow]`\n- Read CPU, memory, and network metrics: `zenifra project metrics --project \u003Cproject-id> [--instance \u003Cinstance-id>]`\n- Read network analytics: `zenifra project network --project \u003Cproject-id> --view summary`\n- Manage HTTP autoscaling: `zenifra project autoscaling --project \u003Cproject-id>`, `zenifra project autoscaling set --project \u003Cproject-id> --min \u003Cn> --max \u003Cn>`, and `zenifra project autoscaling disable --project \u003Cproject-id>`\n- Read HTTP autoscaling history: `zenifra project autoscaling events --project \u003Cproject-id> [--direction \u003Cscale_up|scale_down>] [--page \u003Cn>] [--limit \u003Cn>]`\n- Update a project image: `zenifra project image set --project \u003Cproject-id> --image \u003Cimage>`\n- Manage envs: `zenifra project envs --project \u003Cproject-id>`, `zenifra project env add\u002Fupdate\u002Fremove --project \u003Cproject-id> --name \u003Cname>`\n- Manage instances: `zenifra project instances --project \u003Cproject-id>` and `zenifra project instances set --project \u003Cproject-id> --count \u003Cn>`\n- Read GitHub repository and deployment settings: `zenifra project github --project \u003Cproject-id> [--json]`\n- Configure GitHub deployment triggers: `zenifra project github deploy-settings set --project \u003Cproject-id> --mode \u003Cmanual|branch|tag|release> [--tag-pattern \u003Cpattern>] [--include-prereleases \u003Ctrue|false>] [--json]`\n- Trigger GitHub deploy and receive a `build_id`: `zenifra deploy --project \u003Cproject-id> --branch main`\n- Watch that build with live logs: `zenifra deploy watch --project \u003Cproject-id> --build \u003Cbuild-id>`\n- For Forgejo source setup, project creation, and triggers, use [the Forgejo workflow](references\u002Fforgejo.md); do not apply GitHub commands to a Forgejo project.\n- List builds: `zenifra builds --project \u003Cproject-id>`\n- List deployments\u002Fbuilds: `zenifra deployments --project \u003Cproject-id>`. OCI-created projects include their initial deployment history.\n\n## Create Examples\n\n- HTTP via OCI: `zenifra create project --name app-http-oci --plan free --payment-mode hourly --config @examples\u002Fhttp-project.json`\n- HTTP via GitHub: `zenifra create project --name app-http-github --plan basic --payment-mode hourly --config @examples\u002Fhttp-github-project.json`\n- PostgreSQL: `zenifra create project --name app-postgres --plan db-basic --payment-mode monthly --config @examples\u002Fpostgresql-project.json`\n- MariaDB: `zenifra create project --name app-mariadb --plan db-basic --payment-mode monthly --config @examples\u002Fmariadb-project.json`\n- HTTP with autoscaling: `zenifra create project --name app-http-autoscaling --plan premium --payment-mode hourly --config @examples\u002Fhttp-autoscaling-project.json`\n- Scheduled Job from a ready OCI image: `zenifra create project --name nightly-report --plan job-basic --payment-mode per_minute --config @job-config.json --idempotency-key \u003Ckey>`\n- When the user prefers prompts instead of JSON, run `zenifra create project` and use the wizard.\n- Treat these examples as starting points, not as permission to assume production values.\n\n## Before Creating Projects\n\n- Project creation can generate cost for the customer. Do not guess values that affect billing or infrastructure shape.\n- Before suggesting a plan or comparing cost, prefer running `zenifra plans` so the user sees the current HTTP, database, and storage catalogs. Use the current `capabilities.*` fields to decide whether a plan includes logs, metrics, health checks, autoscaling, or another advertised capability. The `db-free` plan supports PostgreSQL and Key Value, not MariaDB.\n- Before running `zenifra create project`, confirm the minimum required inputs with the user.\n- Always confirm:\n  - `type_project`\n  - `plan`\n  - `payment_mode`\n  - storage strategy and capacity\n  - initial envs\n- For HTTP projects, also confirm the deploy strategy:\n  - OCI or image URL flow\n  - GitHub flow\n  - Forgejo flow described in [references\u002Fforgejo.md](references\u002Fforgejo.md)\n  - exposure: `public` creates route\u002Fdomain, `private` keeps the app without internet exposure\n- For HTTP via OCI, confirm at least:\n  - image URL\n  - whether the image is public or needs authentication\n  - exposure\n  - port\n  - instances\n  - storage\n  - envs\n- If HTTP autoscaling is requested during creation, also confirm:\n  - `config.instances` as the initial minimum instance count\n  - `config.autoscaling.max_instances` as a value greater than or equal to `config.instances`\n  - `config.autoscaling.target_cpu_utilization_percent` and `config.autoscaling.target_memory_utilization_percent` when provided, each between 1 and 100\n  - that the selected paid HTTP plan permits autoscaling\n- For HTTP via GitHub, confirm at least:\n  - repository owner\n  - repository name\n  - branch\n  - one deployment mode: `manual`, `branch`, `tag`, or `release`\n  - a tag pattern for `tag` or `release`\n  - whether to include prereleases when using `release` (default: no; enabling them needs an explicit user request)\n  - runtime\n  - runtime version\n  - start\u002Fbuild commands when applicable\n  - exposure\n  - port\n  - instances\n  - storage\n  - envs\n- For PostgreSQL, confirm at least:\n  - plan\n  - version\n  - instances\u002Freplicas\n  - storage\n- For MariaDB, confirm at least:\n  - plan\n  - version\n  - storage\n- For Scheduled Jobs, confirm at least:\n  - a `job-*` plan and `per_minute` billing\n  - a ready OCI image and whether it requires authentication\n  - a five-field cron expression interpreted in UTC\n  - storage and initial envs\n  - that no public URL, port, exposure, or instances are expected\n- If the agent is not confident about plan choice, deploy strategy, storage, envs, or any other create-time field that can affect cost or production behavior, ask the user before creating the project.\n- If the user has not explicitly confirmed those inputs, prefer asking over inferring.\n\n## Behavior\n\n- The CLI stores profile data under `~\u002F.config\u002Fzenifra-cli\u002Fprofiles.json`.\n- If an old `session.json` exists and `profiles.json` does not, the CLI migrates it automatically into the `default` profile and removes the legacy file.\n- The active profile is the local source of truth for `apiBaseUrl`, description, and saved credential.\n- `zenifra whoami --json` resolves command overrides and profile state to show the effective profile, API base, authentication mode, and selected organization without exposing credentials.\n- Profile credentials can be an organization API key, password-login token or OAuth session with automatic renewal. `selectedOrganizationId` applies to password-login and OAuth profiles.\n- `ZENIFRA_API_KEY` overrides the active profile credential for the current command only.\n- `ZENIFRA_API_URL` overrides the active profile API base for the current command only.\n- `ZENIFRA_HTTP_TIMEOUT_MS` configures the per-request HTTP timeout in milliseconds; the default is 300000 (five minutes). A timeout does not prove that project creation failed: check the resulting state before repeating with the same idempotency key.\n- The CLI sends `Authorization: Bearer \u003Ctoken>` and `x-organization-id` only when needed.\n- Logout and remote revocation depend on the profile authentication mode; follow the OAuth login section above.\n- `zenifra plans` is a public read-only command and works without authentication.\n- Human plan output includes advertised capabilities; `zenifra plans --json` preserves the public catalog contract, including `capabilities.*` fields.\n- `zenifra projects` is paginated; default to `--page 1 --limit 15` and request additional pages only when needed.\n- Prefer `--json` when another tool or script will consume the result.\n- `zenifra deploy` returns a `build_id`; use it with `zenifra deploy watch --project \u003Cproject-id> --build \u003Cbuild-id>` to follow the build until completion.\n- `zenifra project logs` is for runtime logs. `zenifra builds logs` is for GitHub build logs.\n- Build log `source: \"event\"` entries are detailed events; `source: \"summary\"` is a legacy terminal fallback and may be a single line.\n- Scheduled Job logs belong to a public run ID and use `zenifra project runs logs`; do not use `project logs` or build-log commands for them.\n- `zenifra deploy watch` now streams incremental build logs until the build reaches a terminal status.\n- OCI project creation records an initial deployment, so use `zenifra deployments --project \u003Cproject-id>` to inspect its initial deployment history as well as later deployments.\n- When a required argument is missing in commands like `zenifra deploy`, `zenifra deploy watch`, `zenifra builds`, or common `project` subcommands, the CLI now prints the command-specific help instead of only a terse validation error.\n- `zenifra projects create` was removed; if you see it in old notes, use `zenifra create project` instead.\n- Running `zenifra create project` without flags opens the interactive wizard.\n- `create project` does not assume silent defaults for `plan` or `payment_mode`.\n- Non-interactive HTTP project configs must include `exposure`; use `private` when the user wants automation, workers, internal routines, or anything that should not receive a public domain.\n- `examples\u002Fhttp-project.json` is the HTTP OCI example, `examples\u002Fhttp-github-project.json` is the HTTP GitHub example, and the database examples match the current CLI contract.\n- Human success output for `create project` is a `Campo | Valor` table, and the displayed domain is normalized to a full `https:\u002F\u002F...` URL.\n- Env values are masked by default, including with `--json`; use `--show-values` only when the full value is required.\n- For unanswered product questions, consult `https:\u002F\u002Fdocs.zenifra.com\u002Fllms.txt`.\n- `config.autoscaling` is accepted only for paid HTTP projects. It must use `enabled: true`; free plans and non-HTTP projects must be rejected before the API call.\n- The interactive wizard offers autoscaling only when the selected plan reports `permissions.allow_autoscaling === \"true\"`.\n- `zenifra project billing usage` is read-only and returns hourly compute and storage consumption; use `--from`, `--to`, `--page`, and `--limit` for bounded queries and `--json` for automation.\n","# Zenifra\n\nUse the Zenifra CLI for product operations.\n\n## Public repository boundary\n\nThis skill lives in a public repository and is limited to the public Zenifra CLI (npm package `@zenifra\u002Fcli`, command `zenifra`) and documented product concepts. Never commit or paste passwords, TOTP codes, API keys, access tokens, connection strings, customer data, private project identifiers, or unredacted command output. Never mention or expose private architecture, internal infrastructure, internal service names, operational runbooks, or development-tool details. Do not call private or undocumented API endpoints to compensate for a missing CLI command.\n\n## Safe operation rules\n\n- Treat read-only commands and mutating commands differently. Listing, plan catalogs, project info, URLs, logs, metrics, capabilities, builds, deployments, billing usage, database status and masked connections, Armazem status\u002Fbuckets\u002Ffile listings\u002Fusage, identity, profile inspection, Git-provider\u002Fconnection\u002Frepository reads, and GitHub or Forgejo source settings reads are read-oriented; create, deploy, GitHub or Forgejo deployment settings, stop, resume, delete, image, exposure, environment, instance, autoscaling, credential rotation, logout with `--revoke`, and profile changes have side effects.\n- Before a mutation, verify the exact profile, API base, organization, project, branch or commit, and intended values. Production mutations require explicit user scope; never infer them from a name such as `prod`.\n- Use `--idempotency-key` for project creation and Key Value, Cache, or Queue credential rotation when a retry may happen. Retry only with the same key and only after inspecting the previous response; do not mask authentication, authorization, validation, setup, or cleanup failures with generic retries.\n- After every external mutation, read back the final state. A successful request or an accepted asynchronous operation is not proof that the desired state was reached.\n- When a requested capability is not exposed by the CLI, say so instead of inventing a command or using an undocumented endpoint. Project deletion is available as `zenifra project delete --project \u003Cproject-id> --yes`; without `--yes`, the CLI does not send a removal request. Require explicit authorization and read the exact project first.\n\n## Mutation workflow\n\nBefore any production mutation, make the target explicit:\n\n1. Run `zenifra whoami --json` to inspect the effective profile, API base, authentication mode, and selected organization without displaying credentials. Use `zenifra profile show --json` when you also need saved profile metadata.\n2. For a user-login profile, run `zenifra orgs --json` and select the organization with `zenifra org set --org \u003Cid>` or pass `--org \u003Cid>` for one command. An OAuth grant belongs to the account; it does not change organization membership.\n3. Read the current plan catalog with `zenifra plans` and confirm the project type, plan, payment mode, storage, exposure, deploy source, port, instances, and initial environments. Check the current `capabilities.*` fields instead of inferring availability from price or descriptive features. In particular, use `capabilities.logs`, `capabilities.metrics`, and `capabilities.healthcheck` for those product capabilities. `--json` preserves the public catalog response for automation.\n4. Use an idempotency key for project creation and Key Value, Cache, or Queue credential rotation. If a request times out, inspect the resulting project or operation before retrying with the same key.\n5. After the mutation, read the project status. For HTTP projects, also read the URL and follow the build or deployment identifier until it reaches a terminal state. For Scheduled Jobs, follow the run history instead.\n\nIf the target uses another saved profile, select it with `zenifra profile list` and `zenifra profile use \u003Cname>`, then run `zenifra whoami --json` again. Do not pass `--profile` to operational commands unless that command's help explicitly supports it. Environment overrides can change the effective API or authentication; use `whoami` to check the effective target without printing credentials, and do not inspect local profile files.\n\nTreat an HTTP project as ready only after the public URL, DNS\u002FTLS, and the product health or OAuth behavior expected for that project have been checked. A Scheduled Job has no public URL: treat it as ready only after project information confirms the expected Job configuration and a scheduled run reaches a terminal state; read that run's logs when permission allows. A created project or successful API response alone is not readiness.\n\n## Project lifecycle\n\n- Stop a project with `zenifra project stop --project \u003Cproject-id>` and resume it with `zenifra project resume --project \u003Cproject-id>`. Both commands confirm the resulting state; read the project again when the final state matters to a later action.\n- Delete a project only after an exact project read and an informed, target-specific confirmation. Immediately before deletion, tell the user exactly what will be deleted by showing the project name, project ID, project type, selected organization, and effective API base; include the public URL when one exists, and state that project deletion is destructive. Ask for an explicit and unambiguous affirmative response for that exact target. Earlier generic authorization does not count, even when the user previously allowed other mutations or deployments. Only after receiving this confirmation may you add `--yes` and run `zenifra project delete --project \u003Cproject-id> --yes`. Without `--yes`, the CLI does not send a removal request. Verify the final absence or deleted state through the supported read behavior before reporting completion.\n- If a lifecycle request times out or is interrupted, inspect the project before retrying. Do not assume either success or failure from the local timeout alone.\n\n## GitHub deployment settings\n\nVersion-triggered GitHub deployment settings require a published `@zenifra\u002Fcli` version 0.4.0 or later. Installing the plugin does not install or update the CLI. Before using these commands, check `zenifra help project github` and use them only when the installed CLI exposes them.\n\nRead a project's repository, branch, deployment mode, and version settings with `zenifra project github --project \u003Cproject-id> [--json]`. Project creation still starts its initial build from the selected branch; the selected mode controls later repository events. Changing deployment settings changes which future events start builds, so first verify the effective API, selected organization, exact project, and repository. Use a mode and tag pattern the user already specified without asking for redundant confirmation; clarify only missing or ambiguous inputs. For production, require explicit user scope. Then read the settings again to verify the effective state.\n\nThe project wizard and `deploy-settings set` use the same four exclusive modes:\n\n- `manual` disables automatic branch and version-triggered builds. The user can still request a manual deploy with `zenifra deploy --project \u003Cproject-id> --branch \u003Cbranch>`.\n- `branch` enables builds for pushes to the project's configured branch and disables tag\u002Frelease triggers.\n- `tag` enables builds when a tag is created and its name matches the required `--tag-pattern`; branch and release triggers are disabled.\n- `release` enables builds when a release is published and its tag matches the required `--tag-pattern`; branch and tag triggers are disabled. Prereleases are excluded by default. Use `--include-prereleases true` only when the user explicitly asks to deploy prereleases.\n\nRead or set the mode with the public CLI:\n\n```bash\nzenifra project github --project \u003Cproject-id> [--json]\nzenifra project github deploy-settings set --project \u003Cproject-id> --mode \u003Cmanual|branch|tag|release> [--tag-pattern \u003Cpattern>] [--include-prereleases \u003Ctrue|false>] [--json]\n```\n\n`--tag-pattern` is required for `tag` and `release`, and is not accepted for `manual` or `branch`. It matches the tag name and supports an exact name or the `*` and `?` wildcards; it is not a regular expression and does not match a release title. `--include-prereleases` is accepted only for `release` and defaults to `false`. Treat including prereleases as a separate permission; a general request for release deployments does not authorize it. A configured trigger is not evidence that a later build or deployment succeeded. When a matching event occurs, follow the returned build through its terminal state and read the project back.\n\n## Forgejo source deployments\n\nFor Forgejo connections, repositories, project sources, or deployment triggers, read [the Forgejo workflow](references\u002Fforgejo.md) before acting. The published end-user CLI requirement is `@zenifra\u002Fcli` 0.5.0 or later; installing this plugin does not install or update the CLI. Check the installed command help. An explicitly authorized development workspace may use its local CLI build when that help exposes the operation. Keep GitHub projects on the GitHub workflow above.\n\n## Domains and MCP OAuth\n\nThe primary project URL and a custom domain are separate values. Do not add the primary URL again as a custom domain. After adding a custom domain, wait for DNS\u002FTLS and read the project URL back before reporting success. For an MCP connection, verify the exact `\u002Fmcp` URL, protected-resource discovery, and the unauthenticated `401` bearer challenge; that `401` is expected before OAuth authorization.\n\nThe MCP server publishes raw tool names without a product prefix: `get_context`, `list_projects`, `get_project`, `get_project_metrics`, `list_builds`, `get_project_logs`, `get_build_logs`, `list_deployments`, `get_project_health`, `list_healthcheck_failures`, `get_project_network`, `get_project_autoscaling`, `list_autoscaling_events`, `list_project_instances`, `get_valkey_status`, `list_ai_keys`, `get_ai_usage`, `get_project_billing`, `list_transactions`, `get_object_storage`, `list_object_storage_buckets`, and `list_object_storage_objects`. A client may prepend its configured server name, so server `zenifra` plus raw tool `get_context` can appear as `zenifra_get_context`. Never add the server namespace to a tool name that already contains it.\n\nFor MCP reads, start with `get_context`, then use `list_projects` or `get_project` to confirm the project type and exact authorized ID. Choose tools that match that type: application logs, health checks, network analytics and their failures apply to HTTP projects; `get_valkey_status` applies to Key Value, Cache, and Queue projects. For Armazém, call `get_object_storage` first to get the service ID (it is `null` when the connection was not given access to it), then `list_object_storage_buckets`, then `list_object_storage_objects` one folder at a time, following `next_continuation_token`. These tools only read; uploads, downloads, deletions and access keys go through the CLI or the console. Use `list_project_instances` before passing an instance to metrics or logs, and use `list_builds` before requesting `get_build_logs` with a build ID. Continue build logs from `next_cursor`; stop when `finished` is true or no new chunks are returned. Use explicit time ranges and bounded pages. Empty lists, unavailable observations and null values must remain distinct from zero or success.\n\nUse product-level recovery guidance:\n\n- `401`: sign in again or reconnect the OAuth connection.\n- `403`: confirm the selected organization and permissions.\n- `404`: confirm the project ID, URL, path, and whether the operation is supported by the selected project type.\n- `409`: inspect the existing resource and reuse the same idempotency key when retrying a known operation.\n- `429`: wait for the indicated retry interval.\n- `502`, DNS\u002FTLS failure, or readiness timeout: inspect project status, build\u002Fdeployment state, public URL, and logs before retrying.\n\nDo not describe these situations using implementation details or expose raw provider responses.\n\n## Authentication safety\n\n- Prefer the interactive prompt for passwords, TOTP codes, and API keys. Never place passwords, TOTP codes, API keys, tokens, or connection strings in committed examples, shell history, logs, or assistant responses.\n- `auth login` may require email, password, and a verification challenge. `--code` is available for automation only when the caller has already handled secret redaction and secure input.\n- `auth api-key` validates the `znf_` prefix locally but does not prove that the key is active; verify the first authorized read operation without printing the key.\n- Keep user-login tokens and organization API keys conceptually separate. API keys are organization-bound and do not need `org set`; user-login profiles may need `org set`.\n- For tests, previews, or temporary validation, set `ZENIFRA_CONFIG_DIR` to a temporary directory so the user's normal profile store is not changed. Remove the temporary directory after verification.\n\n## OAuth login and organization selection\n\nExample hosts under `example.test` are placeholders. Resolve the actual API from the requested target or saved profile before running a command.\n\n- `zenifra auth login --oauth` opens the browser for account sign-in, verification and consent. Without `--oauth`, the existing email\u002Fpassword flow remains available. Do not combine `--oauth` with password, verification-code or API-key flags.\n- OAuth grants belong to the user account, not to one organization. They allow access only within the user's current permissions in each organization; consent does not add a role or bypass organization access checks.\n- Read permission is required. Requested write permission is an explicit choice in consent; `--read-only` requests only read access. A read-only grant cannot create projects, deploy or change settings, even for an organization owner.\n- `zenifra orgs` lists available organizations. `zenifra org set --org \u003Cid>` saves the selection in the active profile, so subsequent organization-scoped commands do not need repeated `--org` flags.\n- With no selection, the CLI selects and saves the only available organization, or prompts for a choice when several exist. For unattended use, select the organization first or pass `--org \u003Cid>` on the command. An explicit `--org` overrides the saved selection only for that command.\n- An OAuth login updates or creates the requested `--profile`, makes it active and clears that profile's previous organization selection. API-key profiles remain organization-bound and do not use this selection flow.\n\n```bash\nzenifra auth login --oauth --profile staging --api-base https:\u002F\u002Fapi.example.test\u002Fv1\nzenifra orgs\nzenifra org set --org \u003Corganization-id>\nzenifra projects\nzenifra create project\nzenifra projects --org \u003Canother-organization-id>\n```\n\n- Without an explicit API base, the CLI uses its profile\u002Foverride configuration and otherwise defaults to production. Use an explicit environment for tests; do not assume a profile name selects an API.\n- `--no-browser` prints the authorization URL to open manually. The browser must run on the same machine as the CLI, or otherwise be able to reach that machine's temporary loopback callback. On a remote or headless server where the browser cannot reach that loopback address, use an organization API key or complete the login on a machine where the callback is reachable. The browser page acknowledges receipt; the terminal confirms that the login was completed and saved. `Ctrl+C` cancels the pending login.\n- Tokens are stored in the private local profile and renewed automatically before expiry. Concurrent commands coordinate refresh; do not manually edit or expose tokens. If renewal is rejected, sign in again. Mutations are not automatically replayed.\n- OAuth profiles are bound to their API. Changing `--api-base` or `ZENIFRA_API_URL` does not authorize forwarding that profile's token to another API; use another profile and login for that environment.\n- `ZENIFRA_API_KEY` still takes precedence for a command and produces a warning when replacing an OAuth profile credential. Check this precedence when diagnosing unexpected authorization behavior without printing the key.\n- `zenifra auth logout` is local-only by default and clears the profile authentication. For an OAuth profile, `zenifra auth logout --revoke` revokes only that profile's OAuth connection; it does not invalidate the user's other logins. Revocation is also available in the Console's connected integrations. A failed remote revocation preserves the local profile; do not remove it and claim cleanup succeeded.\n- For a password-login profile, `auth logout --revoke` invalidates the user's server login sessions. API keys must be revoked through the organization. Distinguish these effects before choosing a logout mode.\n\n## Database guidance\n\n- Use `zenifra database` for every managed database: PostgreSQL, MariaDB, ClickHouse, Key Value, Cache, and Queue. Each command takes `--project \u003Cproject-id>` and `--json`, reads the project type first, and picks the right flow; HTTP projects and Scheduled Jobs are refused because they are not databases.\n- Read-oriented: `zenifra database status --project \u003Cproject-id>` and `zenifra database connection --project \u003Cproject-id>`. The connection is always masked.\n- `zenifra database credentials rotate --project \u003Cproject-id>` has side effects and breaks applications that still use the old credential. Require explicit authorization, and check which applications use the database before rotating.\n  - PostgreSQL, MariaDB, and ClickHouse renew immediately and print the new password exactly once, together with each connected application's project ID and the variable names that must receive the new password. There is no operation to follow, and `database credentials status` explains that.\n  - Key Value, Cache, and Queue return an asynchronous operation. Use `--wait`, or the returned operation identifier with `zenifra database credentials status --project \u003Cproject-id> --operation \u003Coperation-id>`. Use `--idempotency-key` when a retry may happen.\n- Prefer `--connection-file \u003Cpath>` with a private destination the user chose. The CLI writes the connection with the new credential in a file with mode 600 and keeps it out of the output. It never stores the password in the profile or a log. Never paste the password or connection into chat, a report, a commit, or a public example.\n- Key Value, Cache, and Queue connections: the file preserves the exact connection string returned by the backend. If a consuming client requires `rediss:\u002F\u002F` instead of the backend-returned scheme, adapt the value only in that client's private configuration, keeping the host, port, credentials, and parameters unchanged. Never alter the CLI output or the saved backend value.\n- For Key Value, Cache, and Queue metrics, query `zenifra project metrics capabilities --project \u003Cproject-id>` before requesting a snapshot when access is unknown. `availability: unavailable` with a null snapshot is a valid result while the first snapshot is not ready. Do not convert `null` or `unavailable` into zero and do not claim that a metric was collected.\n- The snapshot's `memory.used_bytes` is the memory currently used by the database; `memory.limit_bytes` is its configured limit and may differ from the instance capacity.\n- The legacy top-level `memory` value in the metrics response is current instance\u002Fcontainer usage in bytes, not provisioned capacity. Do not label it as capacity unless the API exposes a dedicated capacity field.\n- Profiles are `key_value`, `cache`, and `queue`. Cache adds hits, misses, and hit ratio; Key Value adds key inventory; Queue must not receive an invented queue-depth value. In the API, these three use `type_project: valkey`; `zenifra projects --type key-value|cache|queue` filters each profile; in the plans catalog Key Value is part of `zenifra plans --type database`, and Cache and Queue have `zenifra plans --type cache` and `--type queue`.\n\n## Scheduled Jobs guidance\n\n- Read only the Jobs catalog with `zenifra plans --type jobs [--json]`. Job plan IDs use the `job-` prefix, `payment_mode` is `per_minute`, and JSON monetary values such as `price_per_minute`, run `amount`, and cycle `total_amount` are expressed in BRL cents and may be fractional. Preserve those JSON values; human-readable cost and minute displays may use up to six decimal places for the per-minute price and up to four for amounts and totals. The catalog is the source of the current rate, so do not hard-code prices. An explicit `--type jobs` request must report that Scheduled Jobs is unavailable; the API response uses code `SCHEDULED_JOBS_UNAVAILABLE`. Do not substitute another catalog.\n- The CLI V1 creates Scheduled Jobs from a ready OCI image. Confirm the `job-*` plan, `per_minute` billing, image reference and access, five-field UTC cron, storage, and initial environment variables. Jobs do not use a public URL, port, exposure, or instances. The CLI V1 accepts only `config.image` and does not support `config.github`, `job.command`, or `job.args`; use the documented advanced API for GitHub sources or explicit commands\u002Farguments.\n- Use `zenifra create project --name \u003Cname> --plan \u003Cjob-plan> --payment-mode per_minute --config @\u003Cjob-config.json> --idempotency-key \u003Ckey>` or the interactive wizard. A Job config uses `type_project: job`, an OCI `image`, `job.cron`, `storage`, and a required `envs` array. Use `envs: []` when there are no variables or an array of `{name, value}` objects; do not omit `envs`.\n- `billed_minutes` rounds duration up with a minimum of 1 and a maximum of 60. A terminal amount is `billed_minutes × price_per_minute`, stored exactly and never rounded up (a R$0.0005 run is stored as `amount: 0.05`), and persisted with the rate in effect. Duration runs from the container's real start to its finish, so scheduling and image download time are not charged; the cycle summary adds those persisted amounts and does not recalculate them from the current catalog.\n- List the current billing-cycle runs with `zenifra project runs --project \u003Cproject-id> [--page \u003Cn>] [--limit \u003Cn>] [--json]`. The public runs, logs, metrics, total cost, run count, and billed minutes reset on the scheduled cycle date independently of financial settlement. Read run logs with `project.logs.read` and run metrics with `project.metrics.read`. If the catalog or response says a capability is unavailable, treat it as unavailable and do not invent a route; when an existing route returns `403`, the capability exists but the principal lacks the matching permission. A run that crosses the boundary stays in the cycle where it started; older run and metric records remain retained internally, while persisted financial records remain available for audit and are not deleted by the public cycle reset. Follow pagination and preserve unknown duration, billed minutes, or amount as unknown rather than zero. After terminal usage is materialized, terminal cost is visible before financial settlement.\n- The API-only `GET \u002Fv1\u002Fproject\u002F:id\u002Fjob-runs\u002Fcost-summary` with `project.billing.read` returns `total_amount`, `executed_runs`, `billed_minutes`, `cycle_started_at`, and `next_reset_at`; the CLI has no equivalent cost-summary command.\n- Read one run's logs with `zenifra project runs logs --project \u003Cproject-id> --run \u003Crun-id> [--json]`. Cancel an active run only with explicit authorization and the `project.job-run.cancel` permission by using `zenifra project runs cancel --project \u003Cproject-id> --run \u003Crun-id> [--json]`; cancellation allows up to 30 seconds for graceful shutdown before forced cleanup.\n- Exit code `0` means success; any non-zero code, including `1`, means failure. There is no automatic retry and no parallel run when an occurrence overlaps an active run. The CLI does not expose a cost-summary or schedule-update command; say so and use only the documented API\u002FConsole instead of inventing one or calling an undocumented endpoint.\n\n## Armazem (object storage) guidance\n\n- Use `zenifra storage` (alias `zenifra armazem`) when the user wants buckets, files, access keys, or object storage usage for the organization. The Armazem uses an industry-standard object storage API: endpoint `https:\u002F\u002Farmazem.zenifra.com`, region `br-sp1`. Each organization has one Armazem.\n- The Armazem is a beta for invited organizations. Start with `zenifra storage status [--json]`. If it is not available yet, say so and point the user to the console's Armazem page to ask to join the beta; do not try to work around it. If it is available but not created, `zenifra storage create [--name \u003Cname>]` creates it.\n- Read-oriented: `storage status`, `storage buckets`, `storage files --bucket \u003Cname> [--prefix \u003Cfolder\u002F>] [--continuation-token \u003Ctoken>]`, `storage files info --bucket \u003Cname> --key \u003Ckey>`, `storage keys`, and `storage usage [--month YYYY-MM]`. `storage files` lists one folder level per call; follow the returned `next_continuation_token` and do not claim one page is the whole bucket.\n- With side effects: `storage buckets create --bucket \u003Cname>`, `storage buckets delete --bucket \u003Cname> --yes`, `storage files upload --bucket \u003Cname> --file \u003Cpath> [--key \u003Ckey>]`, `storage files download --bucket \u003Cname> --key \u003Ckey> [--output \u003Cpath>]` (writes a local file and refuses to overwrite without `--yes`), `storage files delete --bucket \u003Cname> --key \u003Ckey> --yes`, `storage files share --bucket \u003Cname> --key \u003Ckey>`, `storage keys create --name \u003Cname> [--buckets \u003Ca,b|*>] [--access \u003Cread|read_write|full>] [--allowed-ips \u003Cip,cidr>]`, and `storage keys revoke --access-key \u003Cid> --yes`. Confirm the bucket, key, and intended effect before each one.\n- Uploads and downloads go straight to the Armazem through signed links and stream from disk; files can have up to 20 GiB. A share link lets anyone with it download the file for 7 days, so create one only when the user asks.\n- `storage buckets delete` removes only an empty bucket. A bucket with files can be removed only in the console, with a verification code; the CLI explains this and sends nothing else. Do not delete files one by one to empty a bucket unless the user explicitly asks for that.\n- `storage keys create` shows the secret access key exactly once. Tell the user to store it in a secret manager right away; never paste it into chat, a report, a commit, or a file the user did not choose. Prefer the narrowest `--buckets`, `--access`, and `--allowed-ips` that fit the request; without `--buckets`, the key reaches every bucket with `full` access.\n- `storage usage` shows the current month or one of the previous 12 in BRL; `--json` values are in cents and include the free allowance already used.\n\n## Output and asynchronous operations\n\n- Human output is for direct inspection. `--json` preserves the public response for ordinary commands; do not parse table columns as an API contract.\n- `deploy watch --json` emits one JSON object per line while streaming build events, not one final JSON document. `builds logs --follow` similarly streams incremental output.\n- Build log entries expose their source. `event` identifies a detailed build event; `summary` is the terminal summary fallback for older builds and may contain only one line. Preserve that distinction and do not report a summary as missing logs or invent unavailable build steps.\n- Project creation, deployment, and credential rotation may be asynchronous. Capture the returned identifier, poll with the supported command, and report the terminal state or the actual blocker.\n- Environment values and credentials are masked by default. Never use `--show-values` unless the user explicitly requires it, and never include the revealed value in a report.\n\n## Error handling and pagination\n\n- Distinguish authentication failures, authorization failures, validation failures, plan restrictions, rate limits, network timeouts, and asynchronous operation failures. Report the actual category and next supported action.\n- A `401` means the credential or session needs attention; a `403` means the authenticated principal lacks permission; a metrics plan restriction must not be treated as a transient network error; a `429` may include a retry interval.\n- Projects, builds, deployments, autoscaling events, and billing usage are paginated. Use the returned pagination fields and do not claim that one page is the complete result.\n- For deploys where the exact revision matters, pass `--commit-sha` and preserve the supplied identifier literally. Verify the resulting build's commit before claiming that the intended revision was published.\n\n## Command\n\nPrefer the public CLI command when it is installed:\n\n```bash\nzenifra \u003Ccommand>\n```\n\nInside this workspace, use the local CLI project as fallback:\n\n```bash\nnode zenifra-cli\u002Fbin\u002Fzenifra.mjs \u003Ccommand>\n```\n\n## Common Workflows\n\n- Command-specific help: `zenifra help \u003Ccommand>` or `zenifra \u003Ccommand> --help`\n- Command group help: `zenifra auth`, `zenifra profile`, `zenifra project`, `zenifra org`\n- Inspect effective identity and target without credentials: `zenifra whoami --json`\n- Browser login on the active profile: `zenifra auth login --oauth`\n- Password login on the active profile: `zenifra auth login`\n- Browser login on an explicit environment\u002Fprofile: `zenifra auth login --oauth --profile staging --api-base https:\u002F\u002Fapi.example.test\u002Fv1`\n- Save an org API key on the active profile: `zenifra auth api-key` and enter it at the hidden prompt.\n- Save an org API key on another profile: `zenifra auth api-key --profile prod` and enter it at the hidden prompt.\n- Clear only local auth from a profile: `zenifra auth logout [--profile \u003Cname>]`\n- Revoke the OAuth connection (OAuth profile) or server login sessions (password profile), then clear local auth: `zenifra auth logout [--profile \u003Cname>] --revoke`\n- List profiles: `zenifra profile list`\n- Show a profile: `zenifra profile show [name]`\n- Add an API-key profile: `zenifra profile add --name staging --description Homologacao --api-base https:\u002F\u002Fapi.example.test\u002Fv1 --mode api-key` and enter the key at the hidden prompt.\n- Switch the active profile: `zenifra profile use staging`\n- Edit a profile: `zenifra profile edit staging --description \"Homologacao interna\"`\n- Remove a non-active profile: `zenifra profile remove staging`\n- Select organization for a user-login profile: `zenifra org set`\n- Compare public plan prices: `zenifra plans`, then filter with the same groups as the console: `--type http`, `--type database` (PostgreSQL, MariaDB and Key Value), `--type analytics`, `--type jobs`, `--type queue`, `--type cache` or `--type storage`, each with `--json` when needed\n- List projects: `zenifra projects --type http --page 1 --limit 15`\n- Create a project from flags: `zenifra create project --name \u003Cname> --plan free --payment-mode hourly --config @project.json`\n- Run the interactive project wizard: `zenifra create project`\n- Read hourly consumption and compute\u002Fstorage costs: `zenifra project billing usage --project \u003Cproject-id> [--from \u003CISO>] [--to \u003CISO>] [--page \u003Cn>] [--limit \u003Cn>] [--json]`\n- Read database status and masked connection data: `zenifra database status --project \u003Cproject-id>` and `zenifra database connection --project \u003Cproject-id>`\n- Rotate a database credential: `zenifra database credentials rotate --project \u003Cproject-id> [--connection-file \u003Cpath>]`; for Key Value, Cache, and Queue, follow with `--wait` or `zenifra database credentials status --project \u003Cproject-id> --operation \u003Coperation-id>`\n- List Scheduled Job runs: `zenifra project runs --project \u003Cproject-id> [--page \u003Cn>] [--limit \u003Cn>] [--json]`\n- Read Scheduled Job run logs: `zenifra project runs logs --project \u003Cproject-id> --run \u003Crun-id> [--json]`\n- Cancel an authorized active Scheduled Job run: `zenifra project runs cancel --project \u003Cproject-id> --run \u003Crun-id> [--json]`\n- Get project info or URL: `zenifra project info --project \u003Cproject-id>` or `zenifra project url --project \u003Cproject-id>`\n- Stop or resume a project: `zenifra project stop --project \u003Cproject-id>` and `zenifra project resume --project \u003Cproject-id>`\n- Delete an explicitly authorized project: `zenifra project delete --project \u003Cproject-id> --yes`\n- Read runtime logs: `zenifra project logs --project \u003Cproject-id> [--instance \u003Cinstance-id>]`\n- Read GitHub build logs: `zenifra builds logs --project \u003Cproject-id> --build \u003Cbuild-id> [--follow]`\n- Read CPU, memory, and network metrics: `zenifra project metrics --project \u003Cproject-id> [--instance \u003Cinstance-id>]`\n- Read network analytics: `zenifra project network --project \u003Cproject-id> --view summary`\n- Manage HTTP autoscaling: `zenifra project autoscaling --project \u003Cproject-id>`, `zenifra project autoscaling set --project \u003Cproject-id> --min \u003Cn> --max \u003Cn>`, and `zenifra project autoscaling disable --project \u003Cproject-id>`\n- Read HTTP autoscaling history: `zenifra project autoscaling events --project \u003Cproject-id> [--direction \u003Cscale_up|scale_down>] [--page \u003Cn>] [--limit \u003Cn>]`\n- Update a project image: `zenifra project image set --project \u003Cproject-id> --image \u003Cimage>`\n- Manage envs: `zenifra project envs --project \u003Cproject-id>`, `zenifra project env add\u002Fupdate\u002Fremove --project \u003Cproject-id> --name \u003Cname>`\n- Manage instances: `zenifra project instances --project \u003Cproject-id>` and `zenifra project instances set --project \u003Cproject-id> --count \u003Cn>`\n- Read GitHub repository and deployment settings: `zenifra project github --project \u003Cproject-id> [--json]`\n- Configure GitHub deployment triggers: `zenifra project github deploy-settings set --project \u003Cproject-id> --mode \u003Cmanual|branch|tag|release> [--tag-pattern \u003Cpattern>] [--include-prereleases \u003Ctrue|false>] [--json]`\n- Trigger GitHub deploy and receive a `build_id`: `zenifra deploy --project \u003Cproject-id> --branch main`\n- Watch that build with live logs: `zenifra deploy watch --project \u003Cproject-id> --build \u003Cbuild-id>`\n- For Forgejo source setup, project creation, and triggers, use [the Forgejo workflow](references\u002Fforgejo.md); do not apply GitHub commands to a Forgejo project.\n- List builds: `zenifra builds --project \u003Cproject-id>`\n- List deployments\u002Fbuilds: `zenifra deployments --project \u003Cproject-id>`. OCI-created projects include their initial deployment history.\n\n## Create Examples\n\n- HTTP via OCI: `zenifra create project --name app-http-oci --plan free --payment-mode hourly --config @examples\u002Fhttp-project.json`\n- HTTP via GitHub: `zenifra create project --name app-http-github --plan basic --payment-mode hourly --config @examples\u002Fhttp-github-project.json`\n- PostgreSQL: `zenifra create project --name app-postgres --plan db-basic --payment-mode monthly --config @examples\u002Fpostgresql-project.json`\n- MariaDB: `zenifra create project --name app-mariadb --plan db-basic --payment-mode monthly --config @examples\u002Fmariadb-project.json`\n- HTTP with autoscaling: `zenifra create project --name app-http-autoscaling --plan premium --payment-mode hourly --config @examples\u002Fhttp-autoscaling-project.json`\n- Scheduled Job from a ready OCI image: `zenifra create project --name nightly-report --plan job-basic --payment-mode per_minute --config @job-config.json --idempotency-key \u003Ckey>`\n- When the user prefers prompts instead of JSON, run `zenifra create project` and use the wizard.\n- Treat these examples as starting points, not as permission to assume production values.\n\n## Before Creating Projects\n\n- Project creation can generate cost for the customer. Do not guess values that affect billing or infrastructure shape.\n- Before suggesting a plan or comparing cost, prefer running `zenifra plans` so the user sees the current HTTP, database, and storage catalogs. Use the current `capabilities.*` fields to decide whether a plan includes logs, metrics, health checks, autoscaling, or another advertised capability. The `db-free` plan supports PostgreSQL and Key Value, not MariaDB.\n- Before running `zenifra create project`, confirm the minimum required inputs with the user.\n- Always confirm:\n  - `type_project`\n  - `plan`\n  - `payment_mode`\n  - storage strategy and capacity\n  - initial envs\n- For HTTP projects, also confirm the deploy strategy:\n  - OCI or image URL flow\n  - GitHub flow\n  - Forgejo flow described in [references\u002Fforgejo.md](references\u002Fforgejo.md)\n  - exposure: `public` creates route\u002Fdomain, `private` keeps the app without internet exposure\n- For HTTP via OCI, confirm at least:\n  - image URL\n  - whether the image is public or needs authentication\n  - exposure\n  - port\n  - instances\n  - storage\n  - envs\n- If HTTP autoscaling is requested during creation, also confirm:\n  - `config.instances` as the initial minimum instance count\n  - `config.autoscaling.max_instances` as a value greater than or equal to `config.instances`\n  - `config.autoscaling.target_cpu_utilization_percent` and `config.autoscaling.target_memory_utilization_percent` when provided, each between 1 and 100\n  - that the selected paid HTTP plan permits autoscaling\n- For HTTP via GitHub, confirm at least:\n  - repository owner\n  - repository name\n  - branch\n  - one deployment mode: `manual`, `branch`, `tag`, or `release`\n  - a tag pattern for `tag` or `release`\n  - whether to include prereleases when using `release` (default: no; enabling them needs an explicit user request)\n  - runtime\n  - runtime version\n  - start\u002Fbuild commands when applicable\n  - exposure\n  - port\n  - instances\n  - storage\n  - envs\n- For PostgreSQL, confirm at least:\n  - plan\n  - version\n  - instances\u002Freplicas\n  - storage\n- For MariaDB, confirm at least:\n  - plan\n  - version\n  - storage\n- For Scheduled Jobs, confirm at least:\n  - a `job-*` plan and `per_minute` billing\n  - a ready OCI image and whether it requires authentication\n  - a five-field cron expression interpreted in UTC\n  - storage and initial envs\n  - that no public URL, port, exposure, or instances are expected\n- If the agent is not confident about plan choice, deploy strategy, storage, envs, or any other create-time field that can affect cost or production behavior, ask the user before creating the project.\n- If the user has not explicitly confirmed those inputs, prefer asking over inferring.\n\n## Behavior\n\n- The CLI stores profile data under `~\u002F.config\u002Fzenifra-cli\u002Fprofiles.json`.\n- If an old `session.json` exists and `profiles.json` does not, the CLI migrates it automatically into the `default` profile and removes the legacy file.\n- The active profile is the local source of truth for `apiBaseUrl`, description, and saved credential.\n- `zenifra whoami --json` resolves command overrides and profile state to show the effective profile, API base, authentication mode, and selected organization without exposing credentials.\n- Profile credentials can be an organization API key, password-login token or OAuth session with automatic renewal. `selectedOrganizationId` applies to password-login and OAuth profiles.\n- `ZENIFRA_API_KEY` overrides the active profile credential for the current command only.\n- `ZENIFRA_API_URL` overrides the active profile API base for the current command only.\n- `ZENIFRA_HTTP_TIMEOUT_MS` configures the per-request HTTP timeout in milliseconds; the default is 300000 (five minutes). A timeout does not prove that project creation failed: check the resulting state before repeating with the same idempotency key.\n- The CLI sends `Authorization: Bearer \u003Ctoken>` and `x-organization-id` only when needed.\n- Logout and remote revocation depend on the profile authentication mode; follow the OAuth login section above.\n- `zenifra plans` is a public read-only command and works without authentication.\n- Human plan output includes advertised capabilities; `zenifra plans --json` preserves the public catalog contract, including `capabilities.*` fields.\n- `zenifra projects` is paginated; default to `--page 1 --limit 15` and request additional pages only when needed.\n- Prefer `--json` when another tool or script will consume the result.\n- `zenifra deploy` returns a `build_id`; use it with `zenifra deploy watch --project \u003Cproject-id> --build \u003Cbuild-id>` to follow the build until completion.\n- `zenifra project logs` is for runtime logs. `zenifra builds logs` is for GitHub build logs.\n- Build log `source: \"event\"` entries are detailed events; `source: \"summary\"` is a legacy terminal fallback and may be a single line.\n- Scheduled Job logs belong to a public run ID and use `zenifra project runs logs`; do not use `project logs` or build-log commands for them.\n- `zenifra deploy watch` now streams incremental build logs until the build reaches a terminal status.\n- OCI project creation records an initial deployment, so use `zenifra deployments --project \u003Cproject-id>` to inspect its initial deployment history as well as later deployments.\n- When a required argument is missing in commands like `zenifra deploy`, `zenifra deploy watch`, `zenifra builds`, or common `project` subcommands, the CLI now prints the command-specific help instead of only a terse validation error.\n- `zenifra projects create` was removed; if you see it in old notes, use `zenifra create project` instead.\n- Running `zenifra create project` without flags opens the interactive wizard.\n- `create project` does not assume silent defaults for `plan` or `payment_mode`.\n- Non-interactive HTTP project configs must include `exposure`; use `private` when the user wants automation, workers, internal routines, or anything that should not receive a public domain.\n- `examples\u002Fhttp-project.json` is the HTTP OCI example, `examples\u002Fhttp-github-project.json` is the HTTP GitHub example, and the database examples match the current CLI contract.\n- Human success output for `create project` is a `Campo | Valor` table, and the displayed domain is normalized to a full `https:\u002F\u002F...` URL.\n- Env values are masked by default, including with `--json`; use `--show-values` only when the full value is required.\n- For unanswered product questions, consult `https:\u002F\u002Fdocs.zenifra.com\u002Fllms.txt`.\n- `config.autoscaling` is accepted only for paid HTTP projects. It must use `enabled: true`; free plans and non-HTTP projects must be rejected before the API call.\n- The interactive wizard offers autoscaling only when the selected plan reports `permissions.allow_autoscaling === \"true\"`.\n- `zenifra project billing usage` is read-only and returns hourly compute and storage consumption; use `--from`, `--to`, `--page`, and `--limit` for bounded queries and `--json` for automation.\n",{"name":5,"description":7},"main","347aedf8480cd92b21f761e97b7343a45898f5fa","plugins\u002Fzenifra\u002Fzenifra-codex-plugin\u002Fskills\u002Fzenifra",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill zenifra",{"tool":40,"command":41},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill zenifra",{"tool":43,"command":44},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill zenifra","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fzenifra\u002Fzenifra-codex-plugin\u002Fskills\u002Fzenifra\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fforgejo.md","REFERENCE","参考文档",12823,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fzenifra\u002Fzenifra-codex-plugin\u002Fskills\u002Fzenifra\u002Freferences\u002Fforgejo.md",[55,65,73,81,89,97],{"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":59,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":64},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":64},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":77,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":64},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":64},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":64},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":64},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]