go-authcrunch: Skill for Codex

.codex/skills/coding-directives/SKILL.md

coding-directives is a skill for Codex from greenpau/go-authcrunch. It costs 96 tokens per session (2,425 once invoked), scanned A, original, Apache-2.0.

A set of coding rules for editing or reviewing the Go authentication project. It describes where configuration, providers, storage, portal behavior, cryptographic keys, themes, tests, and release work belong.

In plain words
What is it for?
Use it before making or reviewing changes to the authentication server, its packages, configuration wiring, tests, themes, token behavior, cryptographic keys, automation, or releases.
Why use it?
It prevents changes from crossing package boundaries or breaking existing configuration and security contracts, while directing each kind of work to the right project guide.

Skill for Codex

Written for Codex: agents/openai.yaml present.

This is greenpau/go-authcrunch's own configuration. It tells Codex how to work on go-authcrunch 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 go-authcrunch configures →

Reuse

Borrowing it

Nothing to install: this file belongs to greenpau/go-authcrunch. 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/greenpau/go-authcrunch/main/.codex/skills/coding-directives/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/greenpau/go-authcrunch

Made for: 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 coding-directives

README.md
[![agentmods](https://agentmods.dev/badge/skills/greenpau/go-authcrunch/coding-directives/github.svg)](https://agentmods.dev/skills/greenpau/go-authcrunch/coding-directives)
Your own site
<a href="https://agentmods.dev/skills/greenpau/go-authcrunch/coding-directives"><img src="https://agentmods.dev/badge/skills/greenpau/go-authcrunch/coding-directives/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 coding-directives

Your own site · 80×15
<a href="https://agentmods.dev/skills/greenpau/go-authcrunch/coding-directives"><img src="https://agentmods.dev/badge/skills/greenpau/go-authcrunch/coding-directives.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,425 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.
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.00096 $0.02425
Opus 5 $0.00048 $0.01213
Sonnet 5 $0.00019 $0.00485
Haiku 4.5 $0.00010 $0.00243

Measured yesterday against content hash 372743463eec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-14, from the pricing page.

Security

Grade A, and why

coding-directives 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 yesterday.

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.

.codex/skills/coding-directives/SKILL.md · 244 lines

How it starts

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

Coding Directives

Overview

Apply these directives when editing or reviewing go-authcrunch code. Prefer small, package-local changes that preserve AuthCrunch's existing runtime shape: top-level authcrunch.Config and Server wire package-owned configs, constructors, validators, providers, stores, portals, gatekeepers, registries, and crypto key stores.

Use the repo-local testing-and-ci skill for every Go code change and when choosing, adding, or running tests. Use scripts-and-automation for Makefile targets, generated assets, dependency commands, and release/version workflows. Use refresh-token-implementation and its identity/transport owners when changing portal refresh behavior; use release-and-versioning for version invariants. Use authentication-portal-themes for custom portal templates, branding assets, and their UI configuration and template contracts. Use oauth-identity-provider for upstream OAuth/OIDC token trust, key ingestion and refresh, and provider configuration. Use authentication-portal-jwks for portal public signing-key discovery, opt-in admin private-key export, issuer selection, and JWK serialization. Use local-password-authentication for local-store password verification and bcrypt work equalization. Use authentication-portal-oidc for the portal acting as a downstream OpenID Provider, including client registration, authorization grants, consent, dedicated keys, and conformance. Use authentication-client for reusable portal login clients and CLI credential handling. Use authdbctl for CLI commands, terminal behavior, and executable E2E tests.

Package Boundaries

Put behavior in the package that owns the AuthCrunch surface:

  • pkg/authn: authentication portals, portal HTTP/API handlers, sessions, cookies, MFA/WebAuthn/TOTP/GPG/SSH/API-key profile operations, UI serving, and portal-specific config.
  • pkg/authz: authorization gatekeepers, access policy config, token validators, bypass rules, auth redirects, header injection, and auth proxy integration.
  • pkg/ids and pkg/idp: shared dispatch config and interfaces for identity stores and identity providers. Put provider-specific behavior in pkg/ids/local, pkg/ids/ldap, pkg/idp/oauth, or pkg/idp/saml.
  • pkg/sso, pkg/kms, pkg/registry, pkg/messaging, pkg/identity, pkg/user, pkg/translate, and focused utility packages own their own parsing, validation, models, and tests.
  • pkg/oidc owns the reusable OpenID Provider, public configuration, identity verifier interface, protocol handlers, and browser-session lifecycle. Portal identity, sandbox, and refresh adapters remain in pkg/authn.
  • pkg/authclient owns the JSON portal login client, challenge orchestration, opaque credential results, and optional token-file persistence. It uses the login endpoint without depending on the admin API or a CLI framework.
  • cmd/authdbctl owns configuration discovery, application paths, flags, terminal prompts, database commands, management request retries, and output.

Read the full file on GitHub · 244 lines

Files

What ships with it

1 file 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. yesterday First seen · 244 lines · 96 tokens per session scan A 372743463eec

Subscribe to this mod's changes

coding-directives is a skill published in the GitHub repository greenpau/go-authcrunch (59 stars, last pushed yesterday), licensed Apache-2.0. It adds 96 tokens to every session and 2,425 once invoked, about $0.0005 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-09-13.