agentleFS
gannonhgannonh/kata-code/.agents/skills/1password/SKILL.md

1password

Skill1 starsChanged 39 days agoMITView on GitHub

Loads Kata Code source-build secrets from a 1Password Environment via CLI and a service account. Use when the user or task mentions 1Password, op, OP_SERVICE_ACCOUNT_TOKEN, environment variables, secrets, dotenv, .env, remote or Sprite development servers, or starting vp run dev / Connect. Do not create, read, or upload dotenv files.

  • Reads credentials
  • Installs packages

43 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use openclaw-performance, plugin-sdk-impact and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • clawdbotSkill

    openclaw-performance

    Performance work in OpenClaw: a slow or heavy flow (latency, CPU, memory, SQL, RPC, renders), writing or reviewing a perf PR, or adding a cache. Count the work, delete waste first, cache last.

    Also in 7 projects that use this

  • clawdbotSkill

    plugin-sdk-impact

    Count Plugin SDK consumers across live ClawHub releases and bundled OpenClaw plugins before deprecation, removal, or behavior changes; supports public release-date filters.

    Also in 7 projects that use this

  • hkyutongSkill

    node-connect

    Diagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale, or plugins.entries.device-pair.config.publicUrl.

    Also in 18 projects that use this

  • molt-botSkill

    discord-e2e

    Test Discord with Convex-leased QA bots: check credentials without a Gateway, exercise owned messages, or prove OpenClaw replies, files, threads, reactions, streaming, and typing. Distinguish API and Gateway evidence from manual user interactions.

    Also in 10 projects that use this

  • molt-botSkill

    openclaw-repair-sweep

    Run scoped OpenClaw issue/PR repair campaigns: coordinate workers, prove root causes, and land or close verified work under the requested authority.

    Also in 10 projects that use this

  • AtomicBot-aiSkill

    taskflow-inbox-triage

    Also in 6 projects that use this

  • +2 more from molt-bot

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 3 are distinctive, and 10 are very specific to this project.

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Do not create, read, symlink, or upload .env, .env.local, or infra/relay/.env.

    line 14
  2. Very specific:

    Do not copy .env.example or infra/relay/.env.example to .env.

    line 15
  3. Very specific:

    Do not wrap vp (or any repo command) in op run or op run --environment.

    line 16
  4. Very specific:

    Do not mount a 1Password local / FIFO .env.

    line 17
  5. Very specific:

    Do not write op://vault/item/field references into files.

    line 18
  6. Very specific:

    Do not print, log, commit, or paste secret values, token strings, or op environment read stdout.

    line 19
  7. Distinctive:

    If asked to "just make a .env" or copy dotenv onto a server, follow this skill instead.

    line 23
  8. Very specific:

    Delete leftover .env / .env.local / infra/relay/.env if they exist.

    line 30
  9. Very specific:

    When OP_SERVICE_ACCOUNT_TOKEN is set, loadRepoEnv runs op environment read <id> and parses stdout.

    line 37
  10. Distinctive:

    Put the key in the 1Password Environment (default id above).

    line 44
  11. Distinctive:

    Do not write the value into the checkout.

    line 46
  12. Very specific:

    After a relay deploy, the command prints a public relay URL.

    line 48
  13. Very specific:

    Never paste that command's unfiltered stdout into chat.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 43 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

1Password Environments

Source builds load secrets from 1Password Environment tlgyne6mxr5iejiwvshbxsnxde. There are no dotenv files. scripts/lib/public-config.ts loadRepoEnv is the only source-build env boundary.

Canonical runbook: docs/operations/environment-variables.md. CLI details: references/cli.md.

Hard rules

  • Do not create, read, symlink, or upload .env, .env.local, or infra/relay/.env.
  • Do not copy .env.example or infra/relay/.env.example to .env. Those files are name templates.
  • Do not wrap vp (or any repo command) in op run or op run --environment.
  • Do not mount a 1Password local / FIFO .env. Desktop approval is the rejected path.
  • Do not write op://vault/item/field references into files. That is a different 1Password feature (vault items). This repo uses Environments.
  • Do not print, log, commit, or paste secret values, token strings, or op environment read stdout.
  • GitHub Actions production secrets stay in GitHub. Do not move them into the Environment unless a spec says so.
  • katacode connect sprite setup --env is for the installed CLI service (~/.katacode/service-env.json). It is not how you develop this repository.

If asked to "just make a .env" or copy dotenv onto a server, follow this skill instead.

Setup (every machine)

  1. Install 1Password CLI beta 2.33.0-beta.02 or later (brew install --cask 1password-cli@beta). Stable op has no op environment.
  2. Export OP_SERVICE_ACCOUNT_TOKEN for a service account that can read Environment tlgyne6mxr5iejiwvshbxsnxde. Same export in systemd, Sprite service env, or the login profile. The token is the only secret that lives on the machine.
  3. Confirm op whoami is a service account. Desktop-app integration is not a substitute.
  4. Delete leftover .env / .env.local / infra/relay/.env if they exist. Do not upload them.
  5. From the repository root: vp i then vp run dev.

OP_ENVIRONMENT_ID overrides the Environment id. Process env overrides 1Password for the same key. Keys that are not in the Environment belong in the process environment (shell export / unit / Sprite service env), never in a dotenv file.

How load works

When OP_SERVICE_ACCOUNT_TOKEN is set, loadRepoEnv runs op environment read <id> and parses stdout. Vite, server, desktop, mobile, desktop artifact build, and local relay deploy all go through that function.

  • Missing token: skip op, Connect stays disabled (CI, tests, unconfigured clones).
  • Token set and op fails: hard error (OnePasswordEnvironmentReadError). Fix CLI, token, or Environment access. Do not fall back to files.

Adding or changing a secret

  1. Put the key in the 1Password Environment (default id above).
  2. Name it in .env.example only if it is a source-build name the repo should document.
  3. Do not write the value into the checkout.

After a relay deploy, the command prints a public relay URL. Put that URL in the Environment as KATACODE_RELAY_URL when that stage should be the source-build default. Do not write it to a root .env.

--env-file on relay deploy is an explicit override only. Do not use it for local or remote development.

Diagnose without leaking values

op --version
op environment --help
op whoami
test -n "${OP_SERVICE_ACCOUNT_TOKEN:-}"

op --version must be beta. op whoami must be a service account. To list names only:

op environment read "${OP_ENVIRONMENT_ID:-tlgyne6mxr5iejiwvshbxsnxde}" |
  node -e 'for (const k of Object.keys(require("node:util").parseEnv(require("node:fs").readFileSync(0, "utf8")))) console.log(k)'

This parses stdout with util.parseEnv, the parser loadRepoEnv uses, so multiline values such as PEM keys stay hidden. Do not list names by splitting lines (awk, cut, sed): each continuation line of a multiline value would print. op environment read ignores --format json.

Never paste that command's unfiltered stdout into chat. If loadRepoEnv throws, report the error class and the first stderr line op already sanitized, not the Environment payload.

Remote servers

Same as local: beta CLI, OP_SERVICE_ACCOUNT_TOKEN, clone, vp i, vp run dev. Do not copy a dotenv file onto the server.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.