Defines a safe policy for storing and rotating auth tokens in Angular applications. Covers token inventory, storage checks, cookie security, CSRF protection, refresh rotation, and interceptor origin allowlisting.
Ships in ngautopilot-angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Decide whether the application's authentication credentials remain within an explicit storage, transport, expiry, and revocation boundary. A browser storage change alone does not prove session security.
Use for login, refresh, logout, auth interceptors, cookies, or changes to credential persistence. Inspect the installed Angular/auth-library versions, identity provider, API origins, and backend session contract first.
Run in the existing browser and API integration suites with synthetic accounts in an isolated environment. For every case record the command, expected response/state, actual response/state, and redacted evidence. Adapt route names to the project; do not invent a passing command.
| Case | Reproduction and required assertion | Decision on observation |
|---|---|---|
| Persistent bearer | Login leaves a reusable refresh/session secret in JavaScript-readable storage. | FAIL |
| Cookie without CSRF | An authenticated cross-site request from a disallowed origin mutates state, or a required CSRF token is not validated. | FAIL |
| Revoked refresh replay | An old rotated/revoked refresh token can mint a new session. | FAIL |
| Missing auth server | Only client mocks ran; rotation/revocation or CSRF enforcement is unverified. | BLOCKED |
| Bounded session | Storage, cookie/CSRF or explicit bearer-only transport, expiry, rotation, logout bounds, and foreign-origin tests all meet the recorded contract. | PASS |
FAIL takes precedence over BLOCKED when an unsafe behavior is demonstrated. Report PASS only when all applicable checks have executed successfully; justify non-applicable checks with architecture evidence. A failed test cannot become PASS through a risk acceptance entry.
Provide the scoped decision, affected files and credential flow, smallest fix, and before/after test results. Include commands and redacted evidence, unresolved assumptions, and rollback steps. Never publish tokens or session cookies.
Sources: OWASP browser storage, session lifecycle, and CSRF controls.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-angular:angular--security--angular-token-storage-policyfrom ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular350 skills in this plugin
/angular--ai--angular-v22-agent-skills-integrationAngular v22 Agent Skills IntegrationUse official Angular Agent Skills as reference material without copying them blindly or replacing NgAutoPilot routing. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-ai-tutor-safe-usageAngular v22 AI Tutor Safe UsageUse AI tutor workflows to teach Angular concepts without allowing unsafe code or secret exposure. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-angular-mcp-agent-workflowAngular v22 Angular MCP Agent WorkflowReview the workspace boundary, permissions, and runtime evidence of an Angular MCP integration. For Angular 22 projects and 21-to-22 upgrade planning.
Other plugins' skills for the same job