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.
curl -O https://raw.githubusercontent.com/greenpau/go-authcrunch/main/.codex/skills/authentication-portal-cookies/SKILL.mdgit clone --depth 1 https://github.com/greenpau/go-authcrunchWrote 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.
[](https://agentmods.dev/skills/greenpau/go-authcrunch/authentication-portal-cookies)<a href="https://agentmods.dev/skills/greenpau/go-authcrunch/authentication-portal-cookies"><img src="https://agentmods.dev/badge/skills/greenpau/go-authcrunch/authentication-portal-cookies/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.
<a href="https://agentmods.dev/skills/greenpau/go-authcrunch/authentication-portal-cookies"><img src="https://agentmods.dev/badge/skills/greenpau/go-authcrunch/authentication-portal-cookies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.03381 |
| Opus 5.5 | $0.00018 | $0.01352 |
| Sonnet 5.5 | $0.00009 | $0.00676 |
| Haiku 4.5 | $0.00005 | $0.00338 |
Grade A, and why
authentication-portal-cookies 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 12d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 258 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Authentication Portal Cookies
Ownership and Configuration
pkg/authn/cookie.Config and Factory own shared cookie names and attributes.
configuration.go owns validation, cloning, the complete role list, and prefix
changes. cookie_config.go owns the public suffix constants and defaults.
OIDC and opaque refresh transports retain their own security and lifetime rules.
The SAML browser-binding cookie retains its fixed cross-site callback security
and five-minute lifetime independently of common attributes.
pkg/authn/cookie/parser.NewCookieConfigFromDirectives(statements []string)
accepts complete cookie ... statements encoded with cfgutil.EncodeArgs,
decodes them with cfgutil.DecodeArgs, and returns a validated *cookie.Config.
Empty input returns ordinary defaults. Use
(*authn.PortalConfig).ConfigureCookies(config) before runtime construction to
install an independent snapshot. It replaces the complete cookie configuration,
preserves unrelated portal settings, and leaves the portal unchanged on error.
See directive grammar and application.
Names and Prefixes
Generated names use AUTHP_<SUFFIX> unless configuration specifies another
prefix. Default...CookieName constants are suffixes, not complete names.
Use cookie.NewConfig() or the effective factory fields when selecting a
default; never issue or select bare SESSION_ID or ID_TOKEN as defaults.
NewConfig eagerly initializes every role. Assigning CookieNamePrefix directly
is suitable only before default application on a fresh config literal. Use
Config.SetCookieNamePrefix after initialization to update all omitted or
previously defaulted names, including both OIDC names, without losing other
overrides. Empty typed prefixes reset to AUTHP; empty directive values fail.
An explicit name equal to the old default is indistinguishable from a generated
name, so typed callers apply that override after changing the prefix. The parser
applies the prefix before explicit names regardless of statement order.
What ships with it
3 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.
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.
- 12d ago Changed · +58 lines dd06793555ec
- 26d ago Changed · +15 lines 4b8171edbcf8
- 29d ago Changed · +10 lines 651229aaed1c
- 1mo ago Changed · +9 lines e5215ab56c90
- 1mo ago Changed · +7 lines c0c1153d4199
- 1mo ago Changed · +31 lines 5c82bb0ff3b8
- 1mo ago First seen · 128 lines · 45 tokens per session scan A cac79da61f72
authentication-portal-cookies is a skill published in the GitHub repository greenpau/go-authcrunch (60 stars, last pushed 10d ago), licensed Apache-2.0. It adds 45 tokens to every session and 3,381 once invoked, about $0.0002 per session on Opus 5.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-15.
authentication-portal-cookies compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| authentication-portal-cookiesgreenpau/go-authcrunch | Skill | 60 | 10d ago | Apache-2.0 | A | 45 | Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 68k | 2d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.0k | yesterday | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 105 | Claude Code, Codex |
| migrate-segw-to-raparc-mcp/arc-1 | Skill | 252 | yesterday | MIT | A | 106 | Claude Code |