home-ops: Skill for Claude Code

.agents/skills/authentik-terraform/SKILL.md

authentik-terraform is a skill for Claude Code, Codex from Aviator-Coding/home-ops. It costs 91 tokens per session (1,333 once invoked), scanned A, original, MIT.

A project guide for managing Authentik single sign-on and its OpenTofu infrastructure. It explains the rules for changing login providers, access flows, protected routes, and stored infrastructure state.

In plain words
What is it for?
Use it when adding or importing an Authentik application, changing SSO behaviour, updating Terraform or OpenTofu state storage, protecting a route with login, or investigating an infrastructure-plan failure.
Why use it?
It prevents risky infrastructure changes from breaking login, access control, or the saved record of deployed resources. It also records project-specific lessons for diagnosing failed plans and deployments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is Aviator-Coding/home-ops's own configuration. It tells Claude Code and Codex how to work on home-ops itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything home-ops configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Aviator-Coding/home-ops. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Aviator-Coding/home-ops/main/.agents/skills/authentik-terraform/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Aviator-Coding/home-ops

Made for: Claude Code, Codex.

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 authentik-terraform

README.md
[![agentmods](https://agentmods.dev/badge/skills/aviator-coding/home-ops/authentik-terraform/github.svg)](https://agentmods.dev/skills/aviator-coding/home-ops/authentik-terraform)
Your own site
<a href="https://agentmods.dev/skills/aviator-coding/home-ops/authentik-terraform"><img src="https://agentmods.dev/badge/skills/aviator-coding/home-ops/authentik-terraform/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 authentik-terraform

Your own site · 80×15
<a href="https://agentmods.dev/skills/aviator-coding/home-ops/authentik-terraform"><img src="https://agentmods.dev/badge/skills/aviator-coding/home-ops/authentik-terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00091 $0.01333
Opus 5.5 $0.00036 $0.00533
Sonnet 5.5 $0.00018 $0.00267
Haiku 4.5 $0.00009 $0.00133

Measured 23d ago against content hash e51960a03e24, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

authentik-terraform scanned grade A with 1 finding 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 23d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- ExtAuth still redirects: `curl -sSI https://echo.${SECRET_DOMAIN} | head -1`.
.agents/skills/authentik-terraform/SKILL.md · 89 lines

How it starts

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

Authentik SSO and the OpenTofu stack

terraform/authentik/ is applied and holds live SSO state. Flux does not reconcile it. Nothing in CI runs tofu apply. The directory name stays authentik-terraform (the 1Password item uses the same name).

Server chart tag is the OCIRepository in kubernetes/apps/base/security/authentik/app/helmrelease.yaml (2026.8.3 when this skill was written). One chart ships server, worker and the embedded outpost. postgresql.enabled: false; the DB is postgres-17.

Tripwires

  1. tofu apply and tofu destroy need an explicit, current go-ahead. A green PR, a clean plan and a passing terraform-diff are not that approval. Apply a saved plan from secrets-apply.vals.yaml. Never a bare tofu apply. AUTHENTIK_APPLY_TOKEN stays absent from 1Password until that go-ahead, so a stray apply fails closed. apply-runbook.md
  2. Four traps tofu validate cannot see.
    • Omitting grant_types is correct on an imported provider and fatal on a created one (grant_types = {}, every authorize returns invalid_request).
    • authentik_flow.id is the slug. invalidation_flow and authentik_flow_stage_binding.target need .uuid.
    • The S3 backend fails open to real AWS when AWS_ENDPOINT_URL_S3 is unset. backend.tofu omits endpoints on purpose. Never set the endpoint to https://s3.sklab.dev (OpenTofu's signer does not survive Envoy).
    • The write role's model-level change_flow reaches every flow, including default-authentication-flow. Snapshot flows and stage bindings from the database before and after an apply.
  3. Imported providers omit client_secret. Declaring it rotates the live secret and breaks every login for that app. property_mappings is the opposite: it must be declared or the plan strips scopes. The created LiteLLM provider inverts the secret rule (generated in OpenTofu, pushed to the cluster). inventory.md
  4. Do not turn blueprint data sources into resources. Authentik's blueprint reconciler already owns flows, stages, policies and mappings. OpenTofu and that reconciler would fight.
  5. State is plaintext OAuth secrets in a hand-made RGW bucket. Not an ObjectBucketClaim (reclaimPolicy: Delete plus Flux prune would destroy it). state-and-credentials.md
  6. ExtAuth is one domain-wide proxy provider (forward_domain, live name sklab-externel-auth-provider, typo included). skip_path_regex is an auth bypass if it is ever non-empty. A new namespace needs a from: entry on kubernetes/apps/base/security/authentik/app/referencegrant.yaml or the SecurityPolicy's backendRef resolves to nothing. An unauthenticated 302 to login is host-agnostic and does not prove that host is covered.
  7. Set the Authentik Base URL system setting before the 2026.11 line. It is optional on 2026.8 and mandatory in 2026.11. 2026.6 and 2026.7 are not release lines. upgrade-checklist.md
  8. Never seed litellm-sso-credentials with client-side kubectl apply. The value lands in last-applied-configuration. kubectl create, or server-side apply. Skill secrets-1password.

Read the full file on GitHub · 89 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 23d ago Changed · -1 lines e51960a03e24
  2. 25d ago Changed · +56 lines 3b93ad83949a
  3. 1mo ago First seen · 34 lines · 91 tokens per session scan A 8da8ae6d28bf

Subscribe to this mod's changes

authentik-terraform is a skill published in the GitHub repository Aviator-Coding/home-ops (3 stars, last pushed today), licensed MIT. It adds 91 tokens to every session and 1,333 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens