Skip to content

aiskillstore/marketplace / skills/7spade/delon-auth-authentication-authorization

delon-auth-authentication-authorization

Verified

Implement authentication and authorization using @delon/auth. Use this skill when adding login/logout flows, JWT token management, role-based access control (RBAC), route guards, HTTP interceptors, and session management. Integrates with Firebase Auth and custom permission systems. Ensures secure token storage, automatic token refresh, and consistent authorization checks across components and services.

FileKindSize
SKILL.mdskill md15.4 KB
skill-report.jsonconfig42.6 KB

skill-report.json

View on GitHub
{
  "schema_version": "2.0",
  "meta": {
    "generated_at": "2026-07-04T18:05:22.367Z",
    "slug": "7spade-delon-auth-authentication-authorization",
    "source_url": "https://github.com/7Spade/ng-dragon/tree/main/.github/skills/delon-auth",
    "source_ref": "main",
    "model": "codex",
    "analysis_version": "3.0.0",
    "source_type": "community",
    "content_hash": "1cf44f9c98ec805c18130e09090d4743619ca9304dc9f8e85cbdc9c5cf313337",
    "tree_hash": "0755aba477b120ca8a3ed6a5dd467b2bfc4b00a140f67b72c1434300315e1b57",
    "provenance": {
      "model_requested": "gpt-5.5:high",
      "model_effective": "codex:gpt-5.5:high",
      "fallback_chain": [
        {
          "agent": "codex",
          "model": "gpt-5.5",
          "effort": "high",
          "outcome": "success"
        }
      ],
      "analysis_version": "3.0.0"
    }
  },
  "skill": {
    "name": "delon-auth-authentication-authorization",
    "description": "Implement Angular authentication and authorization patterns with @delon/auth, Firebase Auth, route guards, JWT token handling, and role or permission checks.",
    "summary": "Build @delon/auth login, JWT, route guard, and permission examples for Angular apps.",
    "icon": "📦",
    "version": "1.0.0",
    "author": "7Spade",
    "license": "MIT",
    "tags": [
      "angular",
      "delon-auth",
      "authentication",
      "authorization",
      "firebase"
    ],
    "supported_tools": [
      "claude",
      "codex",
      "claude-code"
    ],
    "risk_factors": [
      "scripts",
      "external_commands",
      "network"
    ],
    "category": "security"
  },
  "security_audit": {
    "risk_level": "medium",
    "is_blocked": false,
    "safe_to_publish": true,
    "analysis_status": "ok",
    "summary": "Most static findings are false positives from Markdown fences, Angular lazy imports, documentation links, and same-origin sample HTTP calls. Remaining risks are guidance issues. The examples need backend authorization, safer permission loading, and clearer JWT claim verification.",
    "remediation": [
      {
        "issue": "Client-side authorization guidance",
        "suggestion": "State that Angular guards and ACL checks are user interface controls. Enforce roles and permissions in backend APIs or security rules.",
        "severity": "medium"
      },
      {
        "issue": "Fixed placeholder permissions",
        "suggestion": "Replace the fixed permission return with a verified permission source, or return no permissions until the application schema is implemented.",
        "severity": "medium"
      },
      {
        "issue": "JWT trust boundary ambiguity",
        "suggestion": "Explain that decoded JWT fields are not authoritative unless issued by a trusted provider and verified by backend services.",
        "severity": "medium"
      }
    ],
    "risk_factor_evidence": [
      {
        "factor": "scripts",
        "evidence": [
          {
            "file": "SKILL.md",
            "line_start": 531,
            "line_end": 531
          },
          {
            "file": "SKILL.md",
            "line_start": 537,
            "line_end": 537
          },
          {
            "file": "SKILL.md",
            "line_start": 546,
            "line_end": 546
          },
          {
            "file": "SKILL.md",
            "line_start": 555,
            "line_end": 555
          }
        ]
      },
      {
        "factor": "external_commands",
        "evidence": [
          {
            "file": "SKILL.md",
            "line_start": 29,
            "line_end": 50
          },
          {
            "file": "SKILL.md",
            "line_start": 50,
            "line_end": 54
          },
          {
            "file": "SKILL.md",
            "line_start": 54,
            "line_end": 67
          },
          {
            "file": "SKILL.md",
            "line_start": 67,
            "line_end": 71
          },
          {
            "file": "SKILL.md",
            "line_start": 71,
            "line_end": 230
          },
          {
            "file": "SKILL.md",
            "line_start": 230,
            "line_end": 234
          },
          {
            "file": "SKILL.md",
            "line_start": 234,
            "line_end": 253
          },
          {
            "file": "SKILL.md",
            "line_start": 253,
            "line_end": 257
          },
          {
            "file": "SKILL.md",
            "line_start": 257,
            "line_end": 294
          },
          {
            "file": "SKILL.md",
            "line_start": 294,
            "line_end": 298
          },
          {
            "file": "SKILL.md",
            "line_start": 298,
            "line_end": 342
          },
          {
            "file": "SKILL.md",
            "line_start": 342,
            "line_end": 346
          },
          {
            "file": "SKILL.md",
            "line_start": 346,
            "line_end": 357
          },
          {
            "file": "SKILL.md",
            "line_start": 408,
            "line_end": 438
          },
          {
            "file": "SKILL.md",
            "line_start": 438,
            "line_end": 444
          },
          {
            "file": "SKILL.md",
            "line_start": 444,
            "line_end": 452
          },
          {
            "file": "SKILL.md",
            "line_start": 452,
            "line_end": 456
          },
          {
            "file": "SKILL.md",
            "line_start": 456,
            "line_end": 462
          },
          {
            "file": "SKILL.md",
            "line_start": 476,
            "line_end": 485
          },
          {
            "file": "SKILL.md",
            "line_start": 485,
            "line_end": 489
          },
          {
            "file": "SKILL.md",
            "line_start": 489,
            "line_end": 498
          },
          {
            "file": "SKILL.md",
            "line_start": 498,
            "line_end": 500
          },
          {
            "file": "SKILL.md",
            "line_start": 500,
            "line_end": 513
          },
          {
            "file": "SKILL.md",
            "line_start": 513,
            "line_end": 517
          },
          {
            "file": "SKILL.md",
            "line_start": 517,
            "line_end": 560
          }
        ]
      },
      {
        "factor": "network",
        "evidence": [
          {
            "file": "SKILL.md",
            "line_start": 449,
            "line_end": 449
          },
          {
            "file": "SKILL.md",
            "line_start": 581,
            "line_end": 581
          },
          {
            "file": "SKILL.md",
            "line_start": 582,
            "line_end": 582
          },
          {
            "file": "SKILL.md",
            "line_start": 583,
            "line_end": 583
          },
          {
            "file": "SKILL.md",
            "line_start": 584,
            "line_end": 584
          }
        ]
      }
    ],
    "static_findings": [
      {
        "id": "scripts:SKILL.md:531:dynamic-import-expression",
        "category": "scripts",
        "severity": "medium",
        "pattern": "Dynamic import() expression",
        "file": "SKILL.md",
        "line_start": 531,
        "line_end": 531,
        "snippet": "loadComponent: () => import('./dashboard/dashboard.component')"
      },
      {
        "id": "scripts:SKILL.md:537:dynamic-import-expression",
        "category": "scripts",
        "severity": "medium",
        "pattern": "Dynamic import() expression",
        "file": "SKILL.md",
        "line_start": 537,
        "line_end": 537,
        "snippet": "loadComponent: () => import('./admin/admin.component')"
      },
      {
        "id": "scripts:SKILL.md:546:dynamic-import-expression",
        "category": "scripts",
        "severity": "medium",
        "pattern": "Dynamic import() expression",
        "file": "SKILL.md",
        "line_start": 546,
        "line_end": 546,
        "snippet": "loadComponent: () => import('./tasks/task-list.component')"
      },
      {
        "id": "scripts:SKILL.md:555:dynamic-import-expression",
        "category": "scripts",
        "severity": "medium",
        "pattern": "Dynamic import() expression",
        "file": "SKILL.md",
        "line_start": 555,
        "line_end": 555,
        "snippet": "loadComponent: () => import('./passport/login/login.component')"
      },
      {
        "id": "external_commands:SKILL.md:29:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 29,
        "line_end": 50,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:50:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 50,
        "line_end": 54,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:54:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 54,
        "line_end": 67,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:67:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 67,
        "line_end": 71,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:71:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 71,
        "line_end": 230,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:230:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 230,
        "line_end": 234,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:234:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 234,
        "line_end": 253,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:253:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 253,
        "line_end": 257,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:257:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 257,
        "line_end": 294,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:294:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 294,
        "line_end": 298,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:298:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 298,
        "line_end": 342,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:342:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 342,
        "line_end": 346,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:346:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 346,
        "line_end": 357,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:408:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 408,
        "line_end": 438,
        "snippet": "`"
      },
      {
        "id": "external_commands:SKILL.md:438:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 438,
        "line_end": 444,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:444:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 444,
        "line_end": 452,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:452:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 452,
        "line_end": 456,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:456:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 456,
        "line_end": 462,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:476:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 476,
        "line_end": 485,
        "snippet": "`"
      },
      {
        "id": "external_commands:SKILL.md:485:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 485,
        "line_end": 489,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:489:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 489,
        "line_end": 498,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:498:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 498,
        "line_end": 500,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:500:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 500,
        "line_end": 513,
        "snippet": "```typescript"
      },
      {
        "id": "external_commands:SKILL.md:513:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 513,
        "line_end": 517,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:517:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 517,
        "line_end": 560,
        "snippet": "```typescript"
      },
      {
        "id": "network:SKILL.md:449:http-https-get",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP/HTTPS get",
        "file": "SKILL.md",
        "line_start": 449,
        "line_end": 449,
        "snippet": "this.http.get('/api/tasks').subscribe(tasks => {"
      },
      {
        "id": "network:SKILL.md:581:hardcoded-url",
        "category": "network",
        "severity": "low",
        "pattern": "Hardcoded URL",
        "file": "SKILL.md",
        "line_start": 581,
        "line_end": 581,
        "snippet": "- [@delon/auth Documentation](https://ng-alain.com/auth)"
      },
      {
        "id": "network:SKILL.md:582:hardcoded-url",
        "category": "network",
        "severity": "low",
        "pattern": "Hardcoded URL",
        "file": "SKILL.md",
        "line_start": 582,
        "line_end": 582,
        "snippet": "- [@delon/acl Documentation](https://ng-alain.com/acl)"
      },
      {
        "id": "network:SKILL.md:583:hardcoded-url",
        "category": "network",
        "severity": "low",
        "pattern": "Hardcoded URL",
        "file": "SKILL.md",
        "line_start": 583,
        "line_end": 583,
        "snippet": "- [Firebase Auth](https://firebase.google.com/docs/auth)"
      },
      {
        "id": "network:SKILL.md:584:hardcoded-url",
        "category": "network",
        "severity": "low",
        "pattern": "Hardcoded URL",
        "file": "SKILL.md",
        "line_start": 584,
        "line_end": 584,
        "snippet": "- [JWT Best Practices](https://tools.ietf.org/html/rfc8725)"
      },
      {
        "id": "obfuscation:SKILL.md:196:base64-decode",
        "category": "obfuscation",
        "severity": "medium",
        "pattern": "Base64 decode",
        "file": "SKILL.md",
        "line_start": 196,
        "line_end": 196,
        "snippet": "const payload = JSON.parse(atob(token.split('.')[1]));"
      },
      {
        "id": "blocker:SKILL.md:224:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "SKILL.md",
        "line_start": 224,
        "line_end": 224,
        "snippet": "private clearSession(): void {"
      },
      {
        "id": "blocker:SKILL.md:508:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "SKILL.md",
        "line_start": 508,
        "line_end": 508,
        "snippet": "private syncPermissionsToACL(permissions: string[], role: string): void {"
      },
      {
        "id": "blocker:SKILL.md:577:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "SKILL.md",
        "line_start": 577,
        "line_end": 577,
        "snippet": "- [ ] Handle error states (invalid credentials, network errors)"
      }
    ],
    "finding_verdicts": [
      {
        "id": "scripts:SKILL.md:531:dynamic-import-expression",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The import is Angular lazy-route loading with a static relative component path. It does not load user-controlled code or a remote module."
      },
      {
        "id": "scripts:SKILL.md:537:dynamic-import-expression",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The import is Angular lazy-route loading with a static relative component path. It does not load user-controlled code or a remote module."
      },
      {
        "id": "scripts:SKILL.md:546:dynamic-import-expression",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The import is Angular lazy-route loading with a static relative component path. It does not load user-controlled code or a remote module."
      },
      {
        "id": "scripts:SKILL.md:555:dynamic-import-expression",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The import is Angular lazy-route loading with a static relative component path. It does not load user-controlled code or a remote module."
      },
      {
        "id": "external_commands:SKILL.md:29:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:50:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:54:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:67:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:71:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:230:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:234:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:253:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:257:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:294:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:298:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:342:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:346:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:408:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The matched backtick is part of an Angular template literal inside a TypeScript example. It is not shell or Ruby command substitution."
      },
      {
        "id": "external_commands:SKILL.md:438:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:444:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:452:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:456:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:476:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The matched backtick is part of an Angular template literal inside a TypeScript example. It is not shell or Ruby command substitution."
      },
      {
        "id": "external_commands:SKILL.md:485:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:489:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:498:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:500:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:513:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "external_commands:SKILL.md:517:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.98,
        "reason": "The matched text is a Markdown TypeScript code fence, not Ruby backtick execution. The skill documents Angular snippets and does not invoke external commands."
      },
      {
        "id": "network:SKILL.md:449:http-https-get",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "The HTTP call is a relative same-application API example for tasks. It does not contact an external host or send secrets."
      },
      {
        "id": "network:SKILL.md:581:hardcoded-url",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The URL appears only as a reference link to documentation or standards material. It is not programmatic network access or data exfiltration."
      },
      {
        "id": "network:SKILL.md:582:hardcoded-url",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The URL appears only as a reference link to documentation or standards material. It is not programmatic network access or data exfiltration."
      },
      {
        "id": "network:SKILL.md:583:hardcoded-url",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The URL appears only as a reference link to documentation or standards material. It is not programmatic network access or data exfiltration."
      },
      {
        "id": "network:SKILL.md:584:hardcoded-url",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The URL appears only as a reference link to documentation or standards material. It is not programmatic network access or data exfiltration."
      },
      {
        "id": "obfuscation:SKILL.md:196:base64-decode",
        "verdict": "false_positive",
        "confidence": 0.8,
        "reason": "The base64 decode parses a JWT payload in an authentication example. It is not hidden code unpacking, although the sample needs clearer trust-boundary guidance."
      },
      {
        "id": "blocker:SKILL.md:224:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The matched text is normal authentication guidance, such as session cleanup, ACL synchronization, or a checklist item. It performs no system reconnaissance."
      },
      {
        "id": "blocker:SKILL.md:508:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The matched text is normal authentication guidance, such as session cleanup, ACL synchronization, or a checklist item. It performs no system reconnaissance."
      },
      {
        "id": "blocker:SKILL.md:577:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The matched text is normal authentication guidance, such as session cleanup, ACL synchronization, or a checklist item. It performs no system reconnaissance."
      }
    ],
    "semantic_findings": [
      {
        "title": "Client-Side Authorization Without Server Enforcement Guidance",
        "description": "The skill presents Angular route guards and UI permission checks but does not state that backend APIs or security rules must enforce the same authorization. If copied as the only control, users can bypass client checks and call protected APIs directly.",
        "severity": "medium",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 266,
            "line_end": 327
          },
          {
            "file": "SKILL.md",
            "line_start": 481,
            "line_end": 483
          }
        ],
        "confidence": 0.82,
        "confidence_reasoning": "The cited examples implement authorization decisions in client-side Angular guards and component checks. The surrounding text lacks an explicit backend enforcement requirement."
      },
      {
        "title": "Placeholder Permission Loader Grants Fixed Access",
        "description": "The loadUserPermissions example returns read and write task permissions for every uid. If copied unchanged, every authenticated user receives write task access.",
        "severity": "medium",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 215,
            "line_end": 218
          }
        ],
        "confidence": 0.86,
        "confidence_reasoning": "The function explicitly returns a fixed permission list and labels the implementation as a placeholder. The risk depends on developers copying the sample unchanged."
      },
      {
        "title": "JWT Claim Trust Boundary Needs Verification Guidance",
        "description": "The example decodes a JWT payload and uses role from the decoded payload without explaining token verification or trusted custom claims. Developers may trust forged client-side token data outside a verified Firebase Auth context.",
        "severity": "medium",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 194,
            "line_end": 207
          }
        ],
        "confidence": 0.72,
        "confidence_reasoning": "The sample token originates from Firebase Auth, which can be legitimate, but the documentation does not define when decoded claims are trustworthy. This is a guidance risk rather than direct malicious behavior."
      }
    ],
    "critical_findings": [],
    "high_findings": [],
    "medium_findings": [
      {
        "title": "Client-Side Authorization Without Server Enforcement Guidance",
        "description": "The skill presents Angular route guards and UI permission checks but does not state that backend APIs or security rules must enforce the same authorization. If copied as the only control, users can bypass client checks and call protected APIs directly.",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 266,
            "line_end": 327
          },
          {
            "file": "SKILL.md",
            "line_start": 481,
            "line_end": 483
          }
        ],
        "review_kind": "security",
        "source_category": "semantic",
        "source_severity": "medium",
        "confidence": 0.82,
        "confidence_reasoning": "The cited examples implement authorization decisions in client-side Angular guards and component checks. The surrounding text lacks an explicit backend enforcement requirement."
      },
      {
        "title": "Placeholder Permission Loader Grants Fixed Access",
        "description": "The loadUserPermissions example returns read and write task permissions for every uid. If copied unchanged, every authenticated user receives write task access.",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 215,
            "line_end": 218
          }
        ],
        "review_kind": "security",
        "source_category": "semantic",
        "source_severity": "medium",
        "confidence": 0.86,
        "confidence_reasoning": "The function explicitly returns a fixed permission list and labels the implementation as a placeholder. The risk depends on developers copying the sample unchanged."
      },
      {
        "title": "JWT Claim Trust Boundary Needs Verification Guidance",
        "description": "The example decodes a JWT payload and uses role from the decoded payload without explaining token verification or trusted custom claims. Developers may trust forged client-side token data outside a verified Firebase Auth context.",
        "locations": [
          {
            "file": "SKILL.md",
            "line_start": 194,
            "line_end": 207
          }
        ],
        "review_kind": "security",
        "source_category": "semantic",
        "source_severity": "medium",
        "confidence": 0.72,
        "confidence_reasoning": "The sample token originates from Firebase Auth, which can be legitimate, but the documentation does not define when decoded claims are trustworthy. This is a guidance risk rather than direct malicious behavior."
      }
    ],
    "low_findings": [],
    "dangerous_patterns": [],
    "files_scanned": 1,
    "total_lines": 585,
    "audit_model": "codex",
    "audited_at": "2026-07-04T18:05:22.367Z",
    "agent_auto_install_policy": "allowed",
    "manual_install_policy": "allowed"
  },
  "content": {
    "user_title": "Implement @delon Auth Access Control",
    "value_statement": "Angular teams need consistent login, token, and permission patterns. This skill provides @delon/auth examples for Firebase login, route guards, ACL sync, and session cleanup.",
    "seo_keywords": [
      "Claude",
      "Codex",
      "Claude Code",
      "delon auth",
      "Angular authentication",
      "Angular authorization",
      "JWT token management",
      "Firebase Auth",
      "route guards",
      "role based access control"
    ],
    "actual_capabilities": [
      "Shows @delon/auth provider configuration for token headers, login routes, refresh timing, and anonymous route ignores.",
      "Provides an Angular AuthService pattern for Firebase login, logout, token refresh, and session cleanup.",
      "Defines route guard examples for authenticated routes, required roles, and required permissions.",
      "Demonstrates component-level permission checks for create, edit, and delete actions.",
      "Shows how to synchronize roles and permissions into @delon/acl.",
      "Includes a route configuration example and an implementation checklist."
    ],
    "limitations": [
      "The skill contains documentation snippets, not a runnable package or code generator.",
      "Backend authorization and API security rules must be implemented separately.",
      "The permission loader is a placeholder and must match the application data model.",
      "Token storage and refresh settings need review against each application threat model."
    ],
    "use_cases": [
      {
        "title": "Add Angular Login",
        "description": "Create a Firebase-backed login and logout flow that stores tokens through @delon/auth.",
        "target_user": "Angular developer"
      },
      {
        "title": "Protect Application Routes",
        "description": "Add route guards that check authentication, roles, and permissions before navigation.",
        "target_user": "Frontend engineer"
      },
      {
        "title": "Review Access Control Patterns",
        "description": "Compare an Angular auth implementation against expected token refresh, guard, and ACL integration steps.",
        "target_user": "Security reviewer"
      }
    ],
    "prompt_templates": [
      {
        "title": "Set Up Basic Login",
        "scenario": "Beginner setup for a new Angular app.",
        "prompt": "Use the delon-auth skill to add a Firebase email login and logout flow to my Angular app. Include token storage with @delon/auth."
      },
      {
        "title": "Add Route Guards",
        "scenario": "Intermediate route protection.",
        "prompt": "Use the delon-auth skill to protect my dashboard, admin, and task routes. Add authentication, role, and permission guard patterns."
      },
      {
        "title": "Connect ACL Permissions",
        "scenario": "Advanced UI authorization.",
        "prompt": "Use the delon-auth skill to connect my permissions to @delon/acl and show or hide task actions based on user abilities."
      },
      {
        "title": "Audit Auth Design",
        "scenario": "Advanced security review.",
        "prompt": "Use the delon-auth skill to review my Angular authentication design. Identify token, guard, permission, and backend enforcement gaps."
      }
    ],
    "output_examples": [
      {
        "input": "I need Firebase login in an Angular app that uses @delon/auth.",
        "output": "A structured implementation plan covering provider configuration, AuthService responsibilities, login form behavior, token refresh, and session cleanup."
      },
      {
        "input": "I need admin routes and task routes protected by permissions.",
        "output": "A route protection design with authentication guards, role checks for admin routes, permission checks for task routes, and unauthorized redirects."
      },
      {
        "input": "Review my Angular auth flow before release.",
        "output": "A focused checklist that covers token expiration, logout cleanup, permission loading, ACL synchronization, backend authorization, and error handling."
      }
    ],
    "best_practices": [
      "Treat Angular guards and ACL checks as user interface controls, and enforce permissions on backend APIs.",
      "Replace placeholder permission logic with trusted claims or verified application data before production use.",
      "Test login, logout, token refresh, expiration, unauthorized access, and network error paths."
    ],
    "anti_patterns": [
      "Do not rely on decoded client-side JWT claims as the only source of authorization truth.",
      "Do not ship fixed placeholder permissions that grant access to every authenticated user.",
      "Do not protect sensitive data only by hiding buttons or redirecting Angular routes."
    ],
    "faq": [
      {
        "question": "What does this skill help build?",
        "answer": "It helps build Angular authentication and authorization examples using @delon/auth, route guards, Firebase Auth, and @delon/acl."
      },
      {
        "question": "Does this skill create backend authorization?",
        "answer": "No. It focuses on Angular patterns. Backend APIs or security rules must enforce final authorization decisions."
      },
      {
        "question": "Can it support role based access control?",
        "answer": "Yes. It shows role checks in guards and ACL synchronization, but roles must come from a trusted source."
      },
      {
        "question": "Does it support permission based UI controls?",
        "answer": "Yes. It shows component checks for create, edit, and delete actions based on permissions."
      },
      {
        "question": "Can I use it with Claude, Codex, and Claude Code?",
        "answer": "Yes. The report marks support for Claude, Codex, and Claude Code."
      },
      {
        "question": "Are the snippets production ready?",
        "answer": "They need application-specific changes. Replace placeholders, verify token trust, and add backend enforcement before production use."
      }
    ]
  },
  "file_structure": [
    {
      "name": "SKILL.md",
      "type": "file",
      "path": "SKILL.md",
      "lines": 585
    }
  ]
}
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall