Skip to content
Back to skills

Ki Env Binding

ASecurity

Govern how agents reach KI tools and access: the portable MCP inventory in XDG `mcp-servers.yaml`, its schema, client targeting and mcporter drift, and credential access through the 1Password cached reader and Cloudflare's `cf-token`. Use runtime binding skills for Claude or Codex surfaces and `ki-env-binding-chezmoi` for chezmoi rendering.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentsgo

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add knowledgeislands/ki-agent-backpack --skill ki-env-binding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ki Env Binding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ki Env Binding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/knowledgeislands-ki-env-binding/badge)](https://www.skillsdirectory.com/skills/knowledgeislands-ki-env-binding)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ki-env-binding
ki-document-type: skill@2026-11-17T00:55:00Z
ki-kind: governance
ki-applicability: declaration-only
ki-guild: environment
ki-depends-on: []
ki-shared-modules: [binding]
ki-shared-dependencies: [ki-skills:rubric]
description: >
  Govern how agents reach KI tools and access: the portable MCP inventory in XDG `mcp-servers.yaml`, its
  schema, client targeting and mcporter drift, and credential access through the 1Password cached reader and
  Cloudflare's `cf-token`. Use runtime binding skills for Claude or Codex surfaces and `ki-env-binding-chezmoi`
  for chezmoi rendering.
argument-hint: 'audit [project] | conform [project] | help | educate [project] | refresh'
---

# Knowledge Islands tool and access binding

`ki-env-binding` owns the portable canonical MCP declaration, not any vendor's configuration files. The one source resolves explicit `$KI_MCP_SOURCE` first, then `$XDG_CONFIG_HOME/ki/mcp-servers.yaml` (default `~/.config/ki/mcp-servers.yaml`). Each `mcpServers` entry has a unique `name`, non-empty `clients:`, and one closed stdio or URL definition. URL entries may declare `auth: oauth` for mcporter and typed literal or 1Password-reference headers, every URL entry declares one supported transport for each targeted client, and either definition may select the bounded `ephemeral` or `keep-alive` lifecycle.

The source has client tokens because it serves several clients, but a client adapter owns that client's native configuration and safe writer. This root itself audits only the vendor-neutral mcporter projection. Host-bound runtimes reach these servers through their own host's mcporter bridge, while claude.ai connectors belong to cloud sessions; the standard's [host surface selection](references/standard-cross-surface-binding.md#44-host-surface-selection) owns that rule. Read [the standard](references/standard-cross-surface-binding.md), [generated rubric](references/rubric.md), and [sources](references/sources.md) for the contract.

It also owns **credential access**: once a task has separately authorised a credential read, a 1Password read goes only through the managed cached reader, `~/bin/chezmoi/op-cache`, and a Cloudflare read only through `~/bin/cf-token`, minting a short-lived least-privilege token. [The credential access standard](references/standard-credential-access.md) holds both rules; whether a run may read at all stays with `ki-delegation`'s authority tiers. No rubric criterion checks it yet.

## Operating modes

### Mode AUDIT

Run `ki repo audit --skill ki-env-binding --repo <project>`. It checks source validity (`BIND-2`) and, only when `MCPORTER_CONFIG` selects a readable target, compares full non-secret mcporter definitions (`BIND-1`). Missing target evidence is unavailable, never a clean or health result. Judge whether each target set is intentional (`BIND-J1`).

### Mode CONFORM

Run AUDIT first. Edit the canonical source, then use the renderer or client adapter that owns the target. This root never hand-edits a rendered target and proposes no writes.

### Mode EDUCATE

Explain the canonical source and target separation with `ki repo educate --skill ki-env-binding --repo <project>`; it scaffolds no duplicate source.

### Mode REFRESH

Refresh this root only in `ki-agent-backpack` when the portable source/schema or mcporter contract changes. From an installed copy, stop and redirect to the canonical backpack. Runtime-specific configuration changes are refreshed by their adapter.

### Mode HELP

Explain this portable boundary and stop without changing anything.

## Runtime bindings and renderer composition

- `ki-env-binding-claude` owns Claude Code, Desktop, and the web convention.
- `ki-env-binding-chatgpt` owns Codex TOML comparison and the merge-safe native renderer.
- `ki-env-binding-chezmoi` composes this root with `ki-repo-dotfiles-chezmoi` for a renderer-specific source-repository path.

Files in this skill

  • SKILL.md3.8 KB
  • references/rubric.md4.1 KB
  • references/sources.md2.4 KB
  • references/standard-credential-access.md4.5 KB
  • references/standard-cross-surface-binding.md5.4 KB
  • scripts/rubric/contexts/binding.ts5 KB
  • scripts/rubric/items/bind.ts6 KB
  • scripts/rubric/items/index.test.ts15.4 KB
  • scripts/rubric/items/index.ts698 B
  • scripts/rubric/items/publication.test.ts805 B
  • scripts/rubric/items/publication.ts422 B
  • scripts/shared/binding.ts6.7 KB
  • scripts/shared/rubric.ts11.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.