okteto-preview

okteto-preview is a skill for Claude Code from okteto/okteto-agent-skills. It costs 118 tokens per session (3,899 once invoked), scanned A, original, Apache-2.0.

A guide to Okteto Preview Environments, which are live, production-like copies of an application deployed from a Git branch. Each preview can provide a shareable URL for a pull request or review.

In plain words
What is it for?
Use it to deploy a branch preview, return its URL, connect previews to pull requests, configure GitHub Actions or GitLab automation, and manage preview lifecycles.
Why use it?
It lets reviewers and stakeholders test a branch without setting up the application locally. It also clarifies whether the preview is managed manually or by continuous-integration automation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the okteto plugin — 4 skills, 2 commands, 2 hooks shipped together

Good fit Use it to deploy a branch preview, return its URL, connect previews to pull requests, configure GitHub Actions or GitLab automation, and manage preview lifecycles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okteto/okteto-agent-skills/preview
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add okteto/okteto-agent-skills --skill preview
Clone the repo
git clone --depth 1 https://github.com/okteto/okteto-agent-skills

Made for: Claude Code.

Or install okteto, the plugin that ships this one along with the rest of its 4 skills, 2 commands, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for okteto-preview

README.md
[![agentmods](https://agentmods.dev/badge/skills/okteto/okteto-agent-skills/preview/github.svg)](https://agentmods.dev/skills/okteto/okteto-agent-skills/preview)
Your own site
<a href="https://agentmods.dev/skills/okteto/okteto-agent-skills/preview"><img src="https://agentmods.dev/badge/skills/okteto/okteto-agent-skills/preview/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for okteto-preview

Your own site · 80×15
<a href="https://agentmods.dev/skills/okteto/okteto-agent-skills/preview"><img src="https://agentmods.dev/badge/skills/okteto/okteto-agent-skills/preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,899 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 174
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.03899
Opus 5 $0.00059 $0.01950
Sonnet 5 $0.00024 $0.00780
Haiku 4.5 $0.00012 $0.00390

Measured 9d ago against content hash 2d10e0ed8c6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

okteto-preview scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/okteto/skills/preview/SKILL.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Okteto Preview Environments Skill

A Preview Environment is a live, production-like instance of the application deployed from a git branch, usually tied to the lifecycle of a pull request. Okteto deploys it into a dedicated namespace named after the preview and gives you shareable URLs, so reviewers, PMs, and stakeholders can click through real functionality without any local setup.

This skill covers two jobs that meet in one ownership model: driving previews directly with the CLI (deploy a branch, hand back the URL) and authoring the CI automation that owns previews per-PR. Before touching a preview, know which of the two owns it — that decides who redeploys it, who posts its URL, and who tears it down.

Operating rules

  1. Previews deploy from the pushed branch, not your working tree. okteto preview deploy clones the repository at --branch and deploys that. Local uncommitted changes never reach a preview. Committing and pushing the developer's work is their call — in collaborative mode, show what's uncommitted and confirm before committing or pushing anything on their behalf. In autonomous mode, push the task branch you own before deploying.
  2. Always name the preview explicitly (e.g. pr-1234), and make it a valid name (see Naming previews). Redeploying with the same name updates the same preview; omitting the name generates a random one that CI and cleanup jobs can never find again.
  3. Use a preview to share, a namespace to work. Iterating on code belongs in a dev environment (okteto skill). A preview is the artifact you hand to reviewers — it has no file sync and no dev containers of yours attached.
  4. Never destroy a preview you did not create. Same doctrine as the okteto skill's cleanup rules: a preview you created for your own task is yours to destroy; shared/global previews and CI-owned previews are not (see Cleanup and teardown).
  5. In CI, the pipeline owns the lifecycle. Deploy on PR open/update, destroy on PR close — via okteto/deploy-preview and okteto/destroy-preview (GitHub) or okteto preview deploy/destroy jobs (GitLab).

Read the full file on GitHub · 243 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 243 lines · 118 tokens per session scan A 2d10e0ed8c6d

Subscribe to this mod's changes

okteto-preview is a skill published in the GitHub repository okteto/okteto-agent-skills (6 stars, last pushed 8d ago), licensed Apache-2.0. It adds 118 tokens to every session and 3,899 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories