К основному содержанию
скилл CX Codex

infisical-agent — скилл для Claude Code: конфиг и шаблоны секретов

Помогает настроить демон Infisical Agent: аутентификация, YAML-конфиг, Go-шаблоны и запись секретов в файлы. Пригодится, когда приложение читает конфиг, а не переменные окружения.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add Infisical/ai-skills --skill infisical-agent -a claude-code
Открыть на GitHub

Что делает infisical-agent

Скилл ведёт по настройке Infisical Agent — клиентского демона, который сам обновляет токены и рендерит секреты в файлы через Go-шаблоны. Код приложения трогать не нужно: демон пишет файл рядом, а приложение его читает.

Внутри три справочника. references/agent-config.md — полный формат YAML, шесть методов аутентификации (universal-auth, kubernetes, aws-iam, azure, gcp-id-token, gcp-iam), sinks, опрос и кеш. references/template-functions.md — функции шаблонов: listSecrets, listSecretsByProjectSlug, getSecretByName, dynamicSecret. references/deployment-examples.md — примеры для Docker Compose, ECS и Kubernetes. Скилл советует брать платформенный метод аутентификации: на AWS — aws-iam, в Kubernetes — kubernetes, а universal-auth оставлять на случай, когда родного метода нет.

Для init-контейнеров есть exit-after-auth: true — агент отрендерит секреты один раз и выйдет. Интервал опроса по умолчанию 5 минут. Это скилл про файлы на хосте или в контейнере, поэтому для Kubernetes Secrets и ConfigMaps под управлением контроллера он не подходит — там нужен infisical-kubernetes-operator. И следите за правами на пути, куда пишутся секреты.

Какие задачи решает

  • настроить YAML-конфиг Infisical Agent с нуля
  • выбрать метод аутентификации под платформу
  • отрендерить секреты в файл через Go-шаблон
  • выдать динамические креды к базе прямо в шаблоне
  • заставить агента отрендерить секреты один раз и выйти в init-контейнере

Примеры запросов агенту

  • Помоги собрать конфиг Infisical Agent для Kubernetes с аутентификацией kubernetes
  • Напиши шаблон, который рендерит все секреты окружения в .env через listSecrets
  • Как настроить dynamicSecret для кредов к базе в шаблоне агента?

Как установить infisical-agent

1Через Skills CLI (Vercel)

npx skills add Infisical/ai-skills --skill infisical-agent -a claude-code

2Вручную: положить файлы

~/.claude/skills/infisical-agent/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/infisical-agent/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о infisical-agent

Как установить infisical-agent в Claude?

Выполните npx skills add Infisical/ai-skills --skill infisical-agent -a claude-code. Файл скилла появится по пути ~/.claude/skills/infisical-agent/SKILL.md.

Что делает infisical-agent?

Это скилл-справочник по настройке демона Infisical Agent: методы аутентификации, YAML-конфиг, функции Go-шаблонов и примеры развёртывания. Демон сам обновляет токены и пишет секреты в файлы, не меняя код приложения.

Чем агент отличается от оператора Infisical?

Оператор управляет объектами Kubernetes API в кластере, а агент пишет файлы рядом с приложением. Если приложение читает переменные окружения из Secret — берите оператор, если конфиг-файл — агент.

Исходный текст

SKILL.md · MIT
---
name: infisical-agent
description: "Guide for configuring the Infisical Agent — a client daemon that manages token lifecycle and renders secrets via Go templates without modifying application code. Covers the full YAML config format, all 6 agent auth methods (universal-auth, kubernetes, aws-iam, azure, gcp-id-token, gcp-iam), sinks, template functions (listSecrets, listSecretsByProjectSlug, getSecretByName, dynamicSecret), polling, on-change commands, retry strategy, and persistent caching. Use this skill when someone asks about: Infisical Agent, agent config file, agent templates, rendering secrets to files, sidecar secret injection, init container secrets, token renewal, infisical agent command, or 'how do I use the Infisical Agent to inject secrets'. Not for Kubernetes Secrets or ConfigMaps managed by a controller (infisical-kubernetes-operator), nor `infisical run` (infisical-setup)."
---
# Infisical Agent Guide

You are a setup assistant helping users configure the Infisical Agent — a client daemon that simplifies secret management by automatically authenticating, renewing tokens, and rendering secrets to files via Go templates.

## Not this skill

The Agent writes secrets to **files** on a host or in a container. Route elsewhere for:

| If the user wants... | Use |
|----------------------|-----|
| Kubernetes Secrets or ConfigMaps managed by a controller | `infisical-kubernetes-operator` |
| `infisical run` wrapping a process | `infisical-setup` |
| An SDK call from application code | `infisical-setup` |
| To configure the machine identity the agent authenticates with | `infisical-setup` |
| To push secrets to a third-party service | `infisical-secret-syncs` |
| To configure the dynamic secret the agent leases | `infisical-dynamic-secrets` |

Operator vs Agent, stated plainly: the **operator** manages Kubernetes API objects cluster-wide; the
**agent** writes files next to your app. If the app reads env vars from a Secret, use the operator.
If it reads a config file, use the agent.

## How to use this skill

Start by understanding the user's deployment context, then guide them through:

1. **Auth method** — Which authentication method fits their platform
2. **Config file** — The YAML config structure with auth, sinks, and templates
3. **Templates** — Go template syntax with the correct template functions
4. **Deployment** — Running the agent in their environment (Docker, K8s, ECS, etc.)

Read the relevant reference file(s), then walk them through building their config file step by step.

## Reference files

| File | When to read |
|------|-------------|
| `references/agent-config.md` | User needs the full config file format, field reference, auth methods, sinks, or caching |
| `references/template-functions.md` | User needs to write templates — all available functions with signatures, parameters, and examples |
| `references/deployment-examples.md` | User needs example configs for specific platforms (Docker Compose, ECS, Kubernetes, basic) |

## Guiding principles

- **Platform-native auth first.** On AWS, recommend `aws-iam`. On Kubernetes, recommend `kubernetes`. On Azure, recommend `azure`. Only fall back to `universal-auth` (client ID/secret) when platform-native auth isn't available.
- **Templates over sinks for secrets.** Sinks deposit access tokens. Templates render actual secrets. Most users want templates, not raw access tokens.
- **Use `listSecrets` or `listSecretsByProjectSlug` for .env files.** These are the most common template functions — they render all secrets in an environment to a key=value file.
- **Use `dynamicSecret` for database credentials.** This function creates and auto-renews dynamic secret leases directly in templates.
- **SSH dynamic secrets need the 6th `principals` argument.** `dynamicSecret` takes an optional trailing comma-separated principals string, and it is **required** for SSH dynamic secrets (e.g. `"root,deploy"`). SSH leases return `PRIVATE_KEY` and `SIGNED_KEY`.
- **Polling interval matters.** Default is 5 minutes. For latency-sensitive apps, reduce it. For stable configs, increase it to reduce API calls.
- **`exit-after-auth: true` for init containers.** In Kubernetes init containers or one-shot setups, set this so the agent renders secrets once and exits.
- **On-change commands for reloads.** Use `execute.command` to trigger application restarts or config reloads when secrets change.
- **Never log secret values.** The agent writes to files — ensure the destination paths have correct permissions and aren't exposed.

© Infisical · MIT · Infisical/ai-skills

Похожие скиллы

Всё по теме «DevOps и инфраструктура» →
sops-encryption devops-skills Скилл учит агента шифровать конфиги и секреты Kubernetes через Mozilla SOPS с ключами AWS KMS, GCP KMS или PGP. Пригодится, когда секреты лежат в Git. CX Codex +1 403установок hashicorp-vault devops-skills Скилл для работы с HashiCorp Vault: секретные движки, методы аутентификации, политики и выпуск сертификатов прямо из чата с агентом. CX Codex +1 413установок secrets-vault-manager Alireza Rezvani Скилл помогает настроить управление секретами на уровне инфраструктуры: Vault, облачные хранилища, ротацию и аудит доступа. 697установок config-scan jwynia Скилл проверяет конфигурационные файлы, Docker, Kubernetes и Terraform на небезопасные настройки. Пригодится перед выкаткой в прод. CX Codex +1 337установок aspire-deployment Microsoft Скилл ведёт деплой Aspire-приложения от модели AppHost до Docker Compose, Kubernetes, Azure, AWS или Radius. Пригодится, когда нужно опубликовать артефакты или снести развёрнутые ресурсы. CX Codex +1 616установок devops-deployment OrchestKit Скилл для настройки CI/CD, контейнеризации и инфраструктуры как кода: подсказывает паттерны GitHub Actions, Docker, Helm и Terraform. CX Codex +1 1 600установок

Из того же набора3

Спонсоры проекта

Компании, которые помогают держать аналитику открытой