[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71HJ4RZVGW35GPDP90KG71N":3,"skill-same:01M71HJ4RZVGW35GPDP90KG71N":104},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M71HJ4RZVGW35GPDP90KG71N","betterauth-fastapi-jwt-bridge",null,"Implement secure authentication bridge between Better Auth (Next.js frontend) and FastAPI (Python backend) using JWKS JWT token verification. Use this skill when users need to (1) Integrate Better Auth with FastAPI backend, (2) Implement JWT authentication with JWKS verification, (3) Set up user isolation and authorization in FastAPI endpoints, (4) Configure frontend to send authenticated API requests, or (5) Troubleshoot Better Auth + FastAPI authentication issues.","JSGforever\u002Fskillguard","JSGforever","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85541948?v=4","01M71FQD3E132VMR5F4TAYX3YS","01M71FQD4DYW0XJ4XQ4YQH75Y9",2,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"fastapi","betterauth fastapi jwt bridge","jwt","bridge","troubleshoot","secure","next","verification","api","configure","when","python backend","frontend","issues","up","fastapi backend","send","authentication","auth","SET","2026-11-10 10:12:30",false,"---\nname: betterauth-fastapi-jwt-bridge\ndescription: Implement secure authentication bridge between Better Auth (Next.js frontend) and FastAPI (Python backend) using JWKS JWT token verification. Use this skill when users need to (1) Integrate Better Auth with FastAPI backend, (2) Implement JWT authentication with JWKS verification, (3) Set up user isolation and authorization in FastAPI endpoints, (4) Configure frontend to send authenticated API requests, or (5) Troubleshoot Better Auth + FastAPI authentication issues.\n---\n\n# Better Auth + FastAPI JWT Bridge\n\nImplement production-ready JWT authentication between Better Auth (Next.js) and FastAPI using JWKS verification for secure, stateless authentication.\n\n## Architecture\n\n```\nUser Login (Frontend)\n    ↓\nBetter Auth → Issues JWT Token\n    ↓\nFrontend API Request → Authorization: Bearer \u003Ctoken>\n    ↓\nFastAPI Backend → Verifies JWT with JWKS → Returns filtered data\n```\n\n## Quick Start Workflow\n\n### Step 1: Enable JWT in Better Auth (Frontend)\n\n```typescript\n\u002F\u002F lib\u002Fauth.ts\nimport { betterAuth } from \"better-auth\"\nimport { jwt } from \"better-auth\u002Fplugins\"\n\nexport const auth = betterAuth({\n    plugins: [jwt()],  \u002F\u002F Enables JWT + JWKS endpoint\n    \u002F\u002F ... other config\n})\n```\n\n**Database Migration Required:**\n\nAfter adding JWT plugin, run migrations to create required tables:\n\n```bash\n# Next.js (Better Auth CLI)\nnpx @better-auth\u002Fcli migrate\n```\n\n**⚠️ IMPORTANT - Two Separate Tables Required:**\n\n1. **`session` table must have `token` column** (core Better Auth requirement)\n   - Error: `column \"token\" of relation \"session\" does not exist`\n   - Fix: See [Database Schema Issues](references\u002Ftroubleshooting.md#database-schema-issues)\n\n2. **`jwks` table must exist** (JWT plugin requirement)\n   - Error: `relation \"jwks\" does not exist`\n   - Fix: See [Database Schema Issues](references\u002Ftroubleshooting.md#database-schema-issues)\n\nThese are **separate migrations**. The JWT plugin creates the `jwks` table but does NOT modify the `session` table.\n\n### Step 2: Verify JWKS Endpoint\n\nTest the JWKS endpoint is working:\n\n```bash\npython scripts\u002Fverify_jwks.py http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fauth\u002Fjwks\n```\n\n### Step 3: Implement Backend Verification\n\nCopy templates from `assets\u002F` to your FastAPI project:\n\n- `assets\u002Fjwt_verification.py` → `backend\u002Fapp\u002Fauth\u002Fjwt_verification.py`\n- `assets\u002Fauth_dependencies.py` → `backend\u002Fapp\u002Fauth\u002Fdependencies.py`\n\nInstall dependencies:\n\n```bash\npip install fastapi python-jose[cryptography] pyjwt cryptography httpx\n```\n\n### Step 4: Protect API Routes\n\n```python\nfrom app.auth.dependencies import verify_user_access\n\n@router.get(\"\u002F{user_id}\u002Ftasks\")\nasync def get_tasks(\n    user_id: str,\n    user: dict = Depends(verify_user_access)\n):\n    # user_id is verified to match authenticated user\n    return get_user_tasks(user_id)\n```\n\n### Step 5: Configure Frontend API Client\n\nCopy `assets\u002Fapi_client.ts` to `frontend\u002Flib\u002Fapi-client.ts` and use:\n\n```typescript\nimport { getTasks, createTask } from \"@\u002Flib\u002Fapi-client\"\n\nconst tasks = await getTasks(userId)\n```\n\n**⚠️ React Component Pattern:**\n\nBetter Auth does NOT provide a `useSession()` hook. Use `authClient.getSession()` with `useEffect`:\n\n```typescript\nimport { useState, useEffect } from \"react\"\nimport { authClient } from \"@\u002Flib\u002Fauth-client\"\n\nfunction MyComponent() {\n  const [user, setUser] = useState(null)\n\n  useEffect(() => {\n    async function loadSession() {\n      const session = await authClient.getSession()\n      if (session?.data?.user) {\n        setUser(session.data.user)\n      }\n    }\n    loadSession()\n  }, [])\n\n  return \u003Cdiv>Welcome {user?.name}\u003C\u002Fdiv>\n}\n```\n\nSee [Frontend Integration Issues](references\u002Ftroubleshooting.md#frontend-integration-issues) for complete examples.\n\n## Better Auth UUID Integration (Hybrid ID Architecture)\n\n**Problem Solved:** Better Auth uses String IDs internally, but applications often need UUID for type consistency across API routes and database foreign keys.\n\n**Solution:** Hybrid ID approach - User table has both `id` (String, Better Auth requirement) and `uuid` (UUID, application use).\n\n### Database Schema\n\n```sql\nCREATE TABLE \"user\" (\n    id VARCHAR PRIMARY KEY,              -- Better Auth String ID\n    uuid UUID UNIQUE NOT NULL,           -- Application UUID ⭐\n    email VARCHAR UNIQUE NOT NULL,\n    \"emailVerified\" BOOLEAN DEFAULT FALSE,\n    name VARCHAR,\n    \"createdAt\" TIMESTAMP NOT NULL,\n    \"updatedAt\" TIMESTAMP NOT NULL\n);\n\n-- UUID auto-generated by database\nALTER TABLE \"user\" ALTER COLUMN uuid SET DEFAULT gen_random_uuid();\n\n-- All foreign keys point to user.uuid\nCREATE TABLE tasks (\n    id UUID PRIMARY KEY,\n    user_id UUID REFERENCES \"user\"(uuid) ON DELETE CASCADE,  -- ⭐ FK to uuid\n    title VARCHAR NOT NULL,\n    ...\n);\n```\n\n### Frontend Configuration (Better Auth)\n\nAdd UUID generation hook and JWT custom claim:\n\n```typescript\n\u002F\u002F lib\u002Fauth.ts\nimport { betterAuth } from \"better-auth\"\nimport { jwt } from \"better-auth\u002Fplugins\"\nimport { Pool } from \"pg\"\n\nconst pool = new Pool({ connectionString: process.env.DATABASE_URL })\n\nexport const auth = betterAuth({\n  database: pool,\n\n  \u002F\u002F Hook to fetch database-generated UUID\n  hooks: {\n    user: {\n      created: async ({ user }) => {\n        const result = await pool.query(\n          'SELECT uuid FROM \"user\" WHERE id = $1',\n          [user.id]\n        )\n        const uuid = result.rows[0]?.uuid\n        return { ...user, uuid }\n      }\n    }\n  },\n\n  \u002F\u002F Include UUID in JWT payload\n  plugins: [\n    jwt({\n      algorithm: \"EdDSA\",\n      async jwt(user, session) {\n        return {\n          uuid: user.uuid,  \u002F\u002F ⭐ Custom claim for backend\n        }\n      },\n    }),\n  ],\n})\n```\n\n### Backend Pattern (FastAPI)\n\nExtract UUID from JWT custom claim (not `sub`):\n\n```python\n# backend\u002Fapp\u002Fauth\u002Fdependencies.py\nfrom uuid import UUID\n\nasync def get_current_user(token: str = Depends(oauth2_scheme)) -> User:\n    payload = verify_jwt_token(token)\n\n    # Extract UUID from custom claim (not 'sub')\n    user_uuid_str = payload.get(\"uuid\")  # ⭐\n    user_uuid = UUID(user_uuid_str)\n\n    # Query by UUID\n    user = await session.execute(\n        select(User).where(User.uuid == user_uuid)\n    )\n    return user.scalar_one_or_none()\n\nasync def verify_user_match(\n    user_id: UUID,  # From URL path\n    current_user: User = Depends(get_current_user)\n) -> User:\n    # Compare UUIDs (not String IDs)\n    if current_user.uuid != user_id:\n        raise HTTPException(403, \"Not authorized\")\n    return current_user\n```\n\n**Key Pattern:** Always query by `User.uuid` and validate against UUID from JWT custom claim.\n\n## Key Components\n\n### 1. JWKS Verification Flow\n\n1. **Fetch JWKS** (cached) from Better Auth endpoint\n2. **Extract kid** (key ID) from JWT token header\n3. **Find matching public key** in JWKS by kid\n4. **Verify signature** using Ed25519 public key\n5. **Validate claims** (issuer, audience, expiration)\n6. **Extract user info** from payload (`sub` claim)\n\n### 2. User Isolation Pattern\n\nAlways verify `user_id` from JWT matches `user_id` in URL:\n\n```python\nif current_user[\"user_id\"] != user_id:\n    raise HTTPException(status_code=403, detail=\"Not authorized\")\n```\n\nThis prevents users from accessing other users' data.\n\n### 3. JWT Payload Structure (Updated with UUID Integration)\n\n```json\n{\n  \"sub\": \"user_abc123\",       \u002F\u002F Better Auth String ID\n  \"uuid\": \"a1b2c3d4-e5f6...\", \u002F\u002F Application UUID (custom claim) ⭐\n  \"email\": \"user@example.com\",\n  \"name\": \"User Name\",\n  \"iat\": 1234567890,          \u002F\u002F Issued at\n  \"exp\": 1234567890,          \u002F\u002F Expiration\n  \"iss\": \"http:\u002F\u002Flocalhost:3000\",\n  \"aud\": \"http:\u002F\u002Flocalhost:3000\"\n}\n```\n\n**Important:** The `uuid` custom claim is used for backend user identification and database queries.\nBetter Auth manages users with String IDs (`sub`), while the application uses UUIDs (`uuid`) for type consistency.\n\n## Environment Configuration\n\n**Frontend (.env.local):**\n```bash\nBETTER_AUTH_SECRET=\"min-32-chars-secret\"\nBETTER_AUTH_URL=\"http:\u002F\u002Flocalhost:3000\"\nNEXT_PUBLIC_API_URL=\"http:\u002F\u002Flocalhost:8000\"\n```\n\n**Backend (.env):**\n```bash\nBETTER_AUTH_URL=\"http:\u002F\u002Flocalhost:3000\"\nDATABASE_URL=\"postgresql:\u002F\u002F...\"\n```\n\n## Testing & Validation\n\n### Test JWKS Endpoint\n\n```bash\npython scripts\u002Fverify_jwks.py http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fauth\u002Fjwks\n```\n\nExpected output shows public keys with `kid`, `kty`, `crv`, and `x` fields.\n\n### Test JWT Verification\n\n```bash\npython scripts\u002Ftest_jwt_verification.py \\\n  --jwks-url http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fauth\u002Fjwks \\\n  --token \"eyJhbGci...\"\n```\n\n## Troubleshooting\n\n### Authentication Issues\n\n| Issue | Solution |\n|-------|----------|\n| \"relation 'jwks' does not exist\" | Create JWKS table migration - see [Database Schema Issues](references\u002Ftroubleshooting.md#database-schema-issues) |\n| \"column 'token' does not exist\" | Add `token` column to session table - see [Database Schema Issues](references\u002Ftroubleshooting.md#database-schema-issues) |\n| \"Token missing UUID (uuid claim)\" | Configure Better Auth hook and JWT plugin - see [UUID Integration Issues](references\u002Ftroubleshooting.md#better-auth-uuid-integration-issues) |\n| \"User not found after registration\" | Dual auth system conflict - see [UUID Integration Issues](references\u002Ftroubleshooting.md#better-auth-uuid-integration-issues) |\n| \"authClient.useSession is not a function\" | Use `authClient.getSession()` in useEffect - see [Frontend Integration Issues](references\u002Ftroubleshooting.md#frontend-integration-issues) |\n| \"No authentication token available\" | Use `session.data.session.token` not `session.session.token` - see [Frontend Integration Issues](references\u002Ftroubleshooting.md#frontend-integration-issues) |\n| \"Unable to find matching signing key\" | Clear JWKS cache in jwt_verification.py |\n| \"Token has expired\" | Frontend needs to refresh session |\n| \"Invalid token claims\" | Check issuer\u002Faudience match BETTER_AUTH_URL |\n| 403 Forbidden (UUID mismatch) | Ensure UUID comparison, not String vs UUID - see [UUID Integration Issues](references\u002Ftroubleshooting.md#better-auth-uuid-integration-issues) |\n\n### Frontend-Backend Integration Issues (NEW - 2026-01-02)\n\n| Issue | Root Cause | Solution |\n|-------|-----------|----------|\n| **Tasks not displaying despite 200 OK** | Backend returns array, frontend expects paginated object | Handle both formats with `Array.isArray()` check - see [Frontend-Backend Integration](references\u002Ftroubleshooting.md#issue-tasks-not-displaying-despite-successful-api-response) |\n| **Tag filtering crashes** | Backend returns tag objects `{id, name, color}`, frontend expected `number[]` | Update TypeScript types to match Pydantic schemas - see [Tag Filtering](references\u002Ftroubleshooting.md#issue-tag-filtering-crashes-at-runtime) |\n| **Pagination shows \"NaN\"** | Optional priority field used in arithmetic without null check | Add null checks with defaults for optional fields - see [Priority Sorting](references\u002Ftroubleshooting.md#issue-priority-sorting-showing-nan-in-pagination) |\n| **Tags not saving to database** | TaskCreate schema doesn't accept tags field | Use multi-step operation: create task, then assign tags - see [Tag Assignment](references\u002Ftroubleshooting.md#issue-tags-not-inserting-into-task_tags-table) |\n| **Edit form fields blank** | Uncontrolled components + field name mismatches + datetime format | Use controlled components, match field names, convert datetime - see [Edit Form](references\u002Ftroubleshooting.md#issue-edit-form-not-pre-filling-reminder-time-recurrence-and-tags) |\n| **500 Error: timezone comparison** | Comparing offset-naive and offset-aware datetimes | Normalize both to UTC before comparison - see [Timezone Fix](references\u002Ftroubleshooting.md#issue-500-error---cant-compare-offset-naive-and-offset-aware-datetimes) |\n| **Tag color validation fails** | Frontend required color, backend allows optional | Make color optional in Zod schema, provide defaults - see [Tag Color](references\u002Ftroubleshooting.md#issue-tag-color-validation-failures) |\n| **Tag filter checkboxes broken** | Backend returns `id: number`, FilterContext uses `string[]` | Convert IDs to strings for comparison - see [Tag Filters](references\u002Ftroubleshooting.md#issue-tag-filter-checkboxes-not-working) |\n\n**📚 Critical Reading:** See [Frontend-Backend Integration Issues](references\u002Ftroubleshooting.md#frontend-backend-integration-issues) section in troubleshooting guide for detailed fixes with code examples. This section documents 8 critical issues discovered during implementation and their resolutions.\n\n**Key Learnings:**\n1. **Always read backend Pydantic schemas before writing frontend types**\n2. **Handle optional fields with null checks and defaults**\n3. **Use controlled components for pre-filled forms**\n4. **Match field names exactly between frontend and backend**\n5. **Test with actual backend responses, not mocked data**\n\nSee `references\u002Ftroubleshooting.md` for detailed solutions and prevention strategies.\n\n## Advanced Topics\n\n### JWKS Caching Strategy\n\nThe implementation uses `@lru_cache` to cache JWKS responses:\n\n- Cache invalidated if token has unknown `kid`\n- Public keys rarely change (safe to cache)\n- Reduces network calls to Better Auth\n\nSee `references\u002Fjwks-approach.md` for implementation details.\n\n### Security Checklist\n\nBefore production:\n\n- ✅ HTTPS only for all API calls\n- ✅ Token expiration validated\n- ✅ Issuer\u002Faudience claims verified\n- ✅ User ID authorization enforced\n- ✅ CORS properly configured\n- ✅ Error messages don't leak sensitive info\n\nSee `references\u002Fsecurity-checklist.md` for complete list.\n\n## Resources\n\n### scripts\u002F\n- `verify_jwks.py` - Test JWKS endpoint availability\n- `test_jwt_verification.py` - Validate JWT token verification\n\n### references\u002F\n- `jwks-approach.md` - Detailed JWKS implementation guide\n- `security-checklist.md` - Production security requirements\n- `troubleshooting.md` - Common issues and fixes\n\n### assets\u002F\n- `jwt_verification.py` - Complete JWKS verification module template\n- `auth_dependencies.py` - FastAPI dependencies template\n- `api_client.ts` - Frontend API client template\n- `better_auth_migrations.py` - Alembic migration templates for Better Auth tables (including token column fix)\n\n## Why JWKS Over Shared Secret?\n\n| Aspect | JWKS | Shared Secret |\n|--------|------|---------------|\n| Security | ✅ Asymmetric (more secure) | ⚠️ Symmetric (less secure) |\n| Scalability | ✅ Multiple backends | ⚠️ Secret must be shared |\n| Production | ✅ Recommended | ⚠️ Development only |\n| Complexity | Medium | Simple |\n\n**Recommendation:** Always use JWKS for production.\n","# Better Auth + FastAPI JWT Bridge\n\nImplement production-ready JWT authentication between Better Auth (Next.js) and FastAPI using JWKS verification for secure, stateless authentication.\n\n## Architecture\n\n```\nUser Login (Frontend)\n    ↓\nBetter Auth → Issues JWT Token\n    ↓\nFrontend API Request → Authorization: Bearer \u003Ctoken>\n    ↓\nFastAPI Backend → Verifies JWT with JWKS → Returns filtered data\n```\n\n## Quick Start Workflow\n\n### Step 1: Enable JWT in Better Auth (Frontend)\n\n```typescript\n\u002F\u002F lib\u002Fauth.ts\nimport { betterAuth } from \"better-auth\"\nimport { jwt } from \"better-auth\u002Fplugins\"\n\nexport const auth = betterAuth({\n    plugins: [jwt()],  \u002F\u002F Enables JWT + JWKS endpoint\n    \u002F\u002F ... other config\n})\n```\n\n**Database Migration Required:**\n\nAfter adding JWT plugin, run migrations to create required tables:\n\n```bash\n# Next.js (Better Auth CLI)\nnpx @better-auth\u002Fcli migrate\n```\n\n**⚠️ IMPORTANT - Two Separate Tables Required:**\n\n1. **`session` table must have `token` column** (core Better Auth requirement)\n   - Error: `column \"token\" of relation \"session\" does not exist`\n   - Fix: See [Database Schema Issues](references\u002Ftroubleshooting.md#database-schema-issues)\n\n2. **`jwks` table must exist** (JWT plugin requirement)\n   - Error: `relation \"jwks\" does not exist`\n   - Fix: See [Database Schema Issues](references\u002Ftroubleshooting.md#database-schema-issues)\n\nThese are **separate migrations**. The JWT plugin creates the `jwks` table but does NOT modify the `session` table.\n\n### Step 2: Verify JWKS Endpoint\n\nTest the JWKS endpoint is working:\n\n```bash\npython scripts\u002Fverify_jwks.py http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fauth\u002Fjwks\n```\n\n### Step 3: Implement Backend Verification\n\nCopy templates from `assets\u002F` to your FastAPI project:\n\n- `assets\u002Fjwt_verification.py` → `backend\u002Fapp\u002Fauth\u002Fjwt_verification.py`\n- `assets\u002Fauth_dependencies.py` → `backend\u002Fapp\u002Fauth\u002Fdependencies.py`\n\nInstall dependencies:\n\n```bash\npip install fastapi python-jose[cryptography] pyjwt cryptography httpx\n```\n\n### Step 4: Protect API Routes\n\n```python\nfrom app.auth.dependencies import verify_user_access\n\n@router.get(\"\u002F{user_id}\u002Ftasks\")\nasync def get_tasks(\n    user_id: str,\n    user: dict = Depends(verify_user_access)\n):\n    # user_id is verified to match authenticated user\n    return get_user_tasks(user_id)\n```\n\n### Step 5: Configure Frontend API Client\n\nCopy `assets\u002Fapi_client.ts` to `frontend\u002Flib\u002Fapi-client.ts` and use:\n\n```typescript\nimport { getTasks, createTask } from \"@\u002Flib\u002Fapi-client\"\n\nconst tasks = await getTasks(userId)\n```\n\n**⚠️ React Component Pattern:**\n\nBetter Auth does NOT provide a `useSession()` hook. Use `authClient.getSession()` with `useEffect`:\n\n```typescript\nimport { useState, useEffect } from \"react\"\nimport { authClient } from \"@\u002Flib\u002Fauth-client\"\n\nfunction MyComponent() {\n  const [user, setUser] = useState(null)\n\n  useEffect(() => {\n    async function loadSession() {\n      const session = await authClient.getSession()\n      if (session?.data?.user) {\n        setUser(session.data.user)\n      }\n    }\n    loadSession()\n  }, [])\n\n  return \u003Cdiv>Welcome {user?.name}\u003C\u002Fdiv>\n}\n```\n\nSee [Frontend Integration Issues](references\u002Ftroubleshooting.md#frontend-integration-issues) for complete examples.\n\n## Better Auth UUID Integration (Hybrid ID Architecture)\n\n**Problem Solved:** Better Auth uses String IDs internally, but applications often need UUID for type consistency across API routes and database foreign keys.\n\n**Solution:** Hybrid ID approach - User table has both `id` (String, Better Auth requirement) and `uuid` (UUID, application use).\n\n### Database Schema\n\n```sql\nCREATE TABLE \"user\" (\n    id VARCHAR PRIMARY KEY,              -- Better Auth String ID\n    uuid UUID UNIQUE NOT NULL,           -- Application UUID ⭐\n    email VARCHAR UNIQUE NOT NULL,\n    \"emailVerified\" BOOLEAN DEFAULT FALSE,\n    name VARCHAR,\n    \"createdAt\" TIMESTAMP NOT NULL,\n    \"updatedAt\" TIMESTAMP NOT NULL\n);\n\n-- UUID auto-generated by database\nALTER TABLE \"user\" ALTER COLUMN uuid SET DEFAULT gen_random_uuid();\n\n-- All foreign keys point to user.uuid\nCREATE TABLE tasks (\n    id UUID PRIMARY KEY,\n    user_id UUID REFERENCES \"user\"(uuid) ON DELETE CASCADE,  -- ⭐ FK to uuid\n    title VARCHAR NOT NULL,\n    ...\n);\n```\n\n### Frontend Configuration (Better Auth)\n\nAdd UUID generation hook and JWT custom claim:\n\n```typescript\n\u002F\u002F lib\u002Fauth.ts\nimport { betterAuth } from \"better-auth\"\nimport { jwt } from \"better-auth\u002Fplugins\"\nimport { Pool } from \"pg\"\n\nconst pool = new Pool({ connectionString: process.env.DATABASE_URL })\n\nexport const auth = betterAuth({\n  database: pool,\n\n  \u002F\u002F Hook to fetch database-generated UUID\n  hooks: {\n    user: {\n      created: async ({ user }) => {\n        const result = await pool.query(\n          'SELECT uuid FROM \"user\" WHERE id = $1',\n          [user.id]\n        )\n        const uuid = result.rows[0]?.uuid\n        return { ...user, uuid }\n      }\n    }\n  },\n\n  \u002F\u002F Include UUID in JWT payload\n  plugins: [\n    jwt({\n      algorithm: \"EdDSA\",\n      async jwt(user, session) {\n        return {\n          uuid: user.uuid,  \u002F\u002F ⭐ Custom claim for backend\n        }\n      },\n    }),\n  ],\n})\n```\n\n### Backend Pattern (FastAPI)\n\nExtract UUID from JWT custom claim (not `sub`):\n\n```python\n# backend\u002Fapp\u002Fauth\u002Fdependencies.py\nfrom uuid import UUID\n\nasync def get_current_user(token: str = Depends(oauth2_scheme)) -> User:\n    payload = verify_jwt_token(token)\n\n    # Extract UUID from custom claim (not 'sub')\n    user_uuid_str = payload.get(\"uuid\")  # ⭐\n    user_uuid = UUID(user_uuid_str)\n\n    # Query by UUID\n    user = await session.execute(\n        select(User).where(User.uuid == user_uuid)\n    )\n    return user.scalar_one_or_none()\n\nasync def verify_user_match(\n    user_id: UUID,  # From URL path\n    current_user: User = Depends(get_current_user)\n) -> User:\n    # Compare UUIDs (not String IDs)\n    if current_user.uuid != user_id:\n        raise HTTPException(403, \"Not authorized\")\n    return current_user\n```\n\n**Key Pattern:** Always query by `User.uuid` and validate against UUID from JWT custom claim.\n\n## Key Components\n\n### 1. JWKS Verification Flow\n\n1. **Fetch JWKS** (cached) from Better Auth endpoint\n2. **Extract kid** (key ID) from JWT token header\n3. **Find matching public key** in JWKS by kid\n4. **Verify signature** using Ed25519 public key\n5. **Validate claims** (issuer, audience, expiration)\n6. **Extract user info** from payload (`sub` claim)\n\n### 2. User Isolation Pattern\n\nAlways verify `user_id` from JWT matches `user_id` in URL:\n\n```python\nif current_user[\"user_id\"] != user_id:\n    raise HTTPException(status_code=403, detail=\"Not authorized\")\n```\n\nThis prevents users from accessing other users' data.\n\n### 3. JWT Payload Structure (Updated with UUID Integration)\n\n```json\n{\n  \"sub\": \"user_abc123\",       \u002F\u002F Better Auth String ID\n  \"uuid\": \"a1b2c3d4-e5f6...\", \u002F\u002F Application UUID (custom claim) ⭐\n  \"email\": \"user@example.com\",\n  \"name\": \"User Name\",\n  \"iat\": 1234567890,          \u002F\u002F Issued at\n  \"exp\": 1234567890,          \u002F\u002F Expiration\n  \"iss\": \"http:\u002F\u002Flocalhost:3000\",\n  \"aud\": \"http:\u002F\u002Flocalhost:3000\"\n}\n```\n\n**Important:** The `uuid` custom claim is used for backend user identification and database queries.\nBetter Auth manages users with String IDs (`sub`), while the application uses UUIDs (`uuid`) for type consistency.\n\n## Environment Configuration\n\n**Frontend (.env.local):**\n```bash\nBETTER_AUTH_SECRET=\"min-32-chars-secret\"\nBETTER_AUTH_URL=\"http:\u002F\u002Flocalhost:3000\"\nNEXT_PUBLIC_API_URL=\"http:\u002F\u002Flocalhost:8000\"\n```\n\n**Backend (.env):**\n```bash\nBETTER_AUTH_URL=\"http:\u002F\u002Flocalhost:3000\"\nDATABASE_URL=\"postgresql:\u002F\u002F...\"\n```\n\n## Testing & Validation\n\n### Test JWKS Endpoint\n\n```bash\npython scripts\u002Fverify_jwks.py http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fauth\u002Fjwks\n```\n\nExpected output shows public keys with `kid`, `kty`, `crv`, and `x` fields.\n\n### Test JWT Verification\n\n```bash\npython scripts\u002Ftest_jwt_verification.py \\\n  --jwks-url http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fauth\u002Fjwks \\\n  --token \"eyJhbGci...\"\n```\n\n## Troubleshooting\n\n### Authentication Issues\n\n| Issue | Solution |\n|-------|----------|\n| \"relation 'jwks' does not exist\" | Create JWKS table migration - see [Database Schema Issues](references\u002Ftroubleshooting.md#database-schema-issues) |\n| \"column 'token' does not exist\" | Add `token` column to session table - see [Database Schema Issues](references\u002Ftroubleshooting.md#database-schema-issues) |\n| \"Token missing UUID (uuid claim)\" | Configure Better Auth hook and JWT plugin - see [UUID Integration Issues](references\u002Ftroubleshooting.md#better-auth-uuid-integration-issues) |\n| \"User not found after registration\" | Dual auth system conflict - see [UUID Integration Issues](references\u002Ftroubleshooting.md#better-auth-uuid-integration-issues) |\n| \"authClient.useSession is not a function\" | Use `authClient.getSession()` in useEffect - see [Frontend Integration Issues](references\u002Ftroubleshooting.md#frontend-integration-issues) |\n| \"No authentication token available\" | Use `session.data.session.token` not `session.session.token` - see [Frontend Integration Issues](references\u002Ftroubleshooting.md#frontend-integration-issues) |\n| \"Unable to find matching signing key\" | Clear JWKS cache in jwt_verification.py |\n| \"Token has expired\" | Frontend needs to refresh session |\n| \"Invalid token claims\" | Check issuer\u002Faudience match BETTER_AUTH_URL |\n| 403 Forbidden (UUID mismatch) | Ensure UUID comparison, not String vs UUID - see [UUID Integration Issues](references\u002Ftroubleshooting.md#better-auth-uuid-integration-issues) |\n\n### Frontend-Backend Integration Issues (NEW - 2026-01-02)\n\n| Issue | Root Cause | Solution |\n|-------|-----------|----------|\n| **Tasks not displaying despite 200 OK** | Backend returns array, frontend expects paginated object | Handle both formats with `Array.isArray()` check - see [Frontend-Backend Integration](references\u002Ftroubleshooting.md#issue-tasks-not-displaying-despite-successful-api-response) |\n| **Tag filtering crashes** | Backend returns tag objects `{id, name, color}`, frontend expected `number[]` | Update TypeScript types to match Pydantic schemas - see [Tag Filtering](references\u002Ftroubleshooting.md#issue-tag-filtering-crashes-at-runtime) |\n| **Pagination shows \"NaN\"** | Optional priority field used in arithmetic without null check | Add null checks with defaults for optional fields - see [Priority Sorting](references\u002Ftroubleshooting.md#issue-priority-sorting-showing-nan-in-pagination) |\n| **Tags not saving to database** | TaskCreate schema doesn't accept tags field | Use multi-step operation: create task, then assign tags - see [Tag Assignment](references\u002Ftroubleshooting.md#issue-tags-not-inserting-into-task_tags-table) |\n| **Edit form fields blank** | Uncontrolled components + field name mismatches + datetime format | Use controlled components, match field names, convert datetime - see [Edit Form](references\u002Ftroubleshooting.md#issue-edit-form-not-pre-filling-reminder-time-recurrence-and-tags) |\n| **500 Error: timezone comparison** | Comparing offset-naive and offset-aware datetimes | Normalize both to UTC before comparison - see [Timezone Fix](references\u002Ftroubleshooting.md#issue-500-error---cant-compare-offset-naive-and-offset-aware-datetimes) |\n| **Tag color validation fails** | Frontend required color, backend allows optional | Make color optional in Zod schema, provide defaults - see [Tag Color](references\u002Ftroubleshooting.md#issue-tag-color-validation-failures) |\n| **Tag filter checkboxes broken** | Backend returns `id: number`, FilterContext uses `string[]` | Convert IDs to strings for comparison - see [Tag Filters](references\u002Ftroubleshooting.md#issue-tag-filter-checkboxes-not-working) |\n\n**📚 Critical Reading:** See [Frontend-Backend Integration Issues](references\u002Ftroubleshooting.md#frontend-backend-integration-issues) section in troubleshooting guide for detailed fixes with code examples. This section documents 8 critical issues discovered during implementation and their resolutions.\n\n**Key Learnings:**\n1. **Always read backend Pydantic schemas before writing frontend types**\n2. **Handle optional fields with null checks and defaults**\n3. **Use controlled components for pre-filled forms**\n4. **Match field names exactly between frontend and backend**\n5. **Test with actual backend responses, not mocked data**\n\nSee `references\u002Ftroubleshooting.md` for detailed solutions and prevention strategies.\n\n## Advanced Topics\n\n### JWKS Caching Strategy\n\nThe implementation uses `@lru_cache` to cache JWKS responses:\n\n- Cache invalidated if token has unknown `kid`\n- Public keys rarely change (safe to cache)\n- Reduces network calls to Better Auth\n\nSee `references\u002Fjwks-approach.md` for implementation details.\n\n### Security Checklist\n\nBefore production:\n\n- ✅ HTTPS only for all API calls\n- ✅ Token expiration validated\n- ✅ Issuer\u002Faudience claims verified\n- ✅ User ID authorization enforced\n- ✅ CORS properly configured\n- ✅ Error messages don't leak sensitive info\n\nSee `references\u002Fsecurity-checklist.md` for complete list.\n\n## Resources\n\n### scripts\u002F\n- `verify_jwks.py` - Test JWKS endpoint availability\n- `test_jwt_verification.py` - Validate JWT token verification\n\n### references\u002F\n- `jwks-approach.md` - Detailed JWKS implementation guide\n- `security-checklist.md` - Production security requirements\n- `troubleshooting.md` - Common issues and fixes\n\n### assets\u002F\n- `jwt_verification.py` - Complete JWKS verification module template\n- `auth_dependencies.py` - FastAPI dependencies template\n- `api_client.ts` - Frontend API client template\n- `better_auth_migrations.py` - Alembic migration templates for Better Auth tables (including token column fix)\n\n## Why JWKS Over Shared Secret?\n\n| Aspect | JWKS | Shared Secret |\n|--------|------|---------------|\n| Security | ✅ Asymmetric (more secure) | ⚠️ Symmetric (less secure) |\n| Scalability | ✅ Multiple backends | ⚠️ Secret must be shared |\n| Production | ✅ Recommended | ⚠️ Development only |\n| Complexity | Medium | Simple |\n\n**Recommendation:** Always use JWKS for production.\n",{"name":5,"description":7},"main","f2ec4b3b9133d34eeaf9b38e4b0a97e8e5705a7f","benchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge",0,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard","https:\u002F\u002Fgithub.com\u002FJSGforever","2026-08-29 18:27:56",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add JSGforever\u002Fskillguard --skill betterauth-fastapi-jwt-bridge",{"tool":56,"command":57},"bunx","bunx skills add JSGforever\u002Fskillguard --skill betterauth-fastapi-jwt-bridge",{"tool":59,"command":60},"pnpm","pnpm dlx skills add JSGforever\u002Fskillguard --skill betterauth-fastapi-jwt-bridge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002FSKILL.md",true,[64,70,74,78,82,88,92,96,100],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"assets\u002Fapi_client.ts","SCRIPT","脚本",6684,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Fassets\u002Fapi_client.ts",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"assets\u002Fauth_dependencies.py",6276,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Fassets\u002Fauth_dependencies.py",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"assets\u002Fbetter_auth_migrations.py",9058,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Fassets\u002Fbetter_auth_migrations.py",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"assets\u002Fjwt_verification.py",7086,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Fassets\u002Fjwt_verification.py",{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fjwks-approach.md","REFERENCE","参考文档",14118,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Freferences\u002Fjwks-approach.md",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fsecurity-checklist.md",11433,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Freferences\u002Fsecurity-checklist.md",{"path":93,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Ftroubleshooting.md",41866,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Freferences\u002Ftroubleshooting.md",{"path":97,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Ftest_jwt_verification.py",4254,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Fscripts\u002Ftest_jwt_verification.py",{"path":101,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fverify_jwks.py",3056,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bilalmk--betterauth-fastapi-jwt-bridge\u002Fscripts\u002Fverify_jwks.py",[105,131,142,169,188,208],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":38},"01M71HY2SNXBA9Q00WZDTZQ31Z","skillguard-codex-scanner","Hybrid deterministic+LLM agent-skill security scanner. Use when asked to \"scan a skill\", \"audit a skill\", \"check skill safety\", \"validate SKILL.md\", \"is this skill safe to install\", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fsrc\u002Fskillguard\u002Fstatic_scanner\u002Fskillguard-codex-scanner\u002FSKILL.md",[],[112,113,114,115,116,117,118,119,120,121,122,123,28,124,125,126,127,128,129,130],"scanner","skillguard codex scanner","skillguard","codex","chain","skill security","security-review","review report","structural","secret","prompt injection","security scanner","review","malicious","permissions","exposure","audit","scripts","safe",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":135,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":38},"01M71HY0SPKTT3S27BC2HPAC5M","data-exfiltrator","Analyzes data files","MIT","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fsmoke-one-skill\u002Fasset1__cisco-ai-defense--data-exfiltrator\u002FSKILL.md",[],[139,140,141],"data","data exfiltrator","files",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":38},"01M71HXVS9EMN44BGDW215FZ72","real-time-collaboration-engine","Build real-time collaborative editing with WebSockets, OT\u002FCRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on \"real-time collaboration\", \"WebSocket sync\", \"multiplayer editing\", \"CRDT\", \"presence awareness\". NOT for simple chat, request-response APIs, or single-user apps.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--real-time-collaboration-engine\u002FSKILL.md",[],[149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168],"time","real time collaboration engine","real time collaboration","collaboration","engine","real time","Video","reliability","video editing","performance","conflict resolution","presence","access","apps","updates","Bash","activate","optimizer","react","streaming",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":38},"01M71HXP6CTY4KFN0QVMMN0V7J","react-performance-optimizer","Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on \"React performance\", \"slow render\", \"useMemo\", \"bundle size\", \"virtualization\". NOT for backend optimization, non-React frameworks, or premature optimization.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--react-performance-optimizer\u002FSKILL.md",[],[158,176,166,167,177,178,179,180,181,182,149,183,184,162,164,185,165,168,186,187],"react performance optimizer","react performance","performance optimizer","app","nextjs","expert","re","render","2025","code","router","strategies",{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":38},"01M71HXH7QXSQB4QTDZ7SP7YXQ","llm-streaming-response-handler","Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI\u002FAnthropic\u002FClaude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on \"LLM streaming\", \"SSE\", \"token stream\", \"chat UI\", \"real-time AI\". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--llm-streaming-response-handler\u002FSKILL.md",[],[195,168,196,197,198,199,158,149,200,201,202,164,165,166,203,167,204,205,206,207],"llm streaming response handler","handler","error","processing","retry","chat ui","error recovery","critical","batch","display","text","server","read",{"skillNo":209,"name":210,"nameZh":6,"description":211,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":212,"categories":213,"keywords":214,"publishedAt":38},"01M71HXCB0E1YRKYW1Y8T0Y106","github-actions-pipeline-builder","Build production CI\u002FCD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on \"GitHub Actions\", \"CI\u002FCD\", \"workflow\", \"deployment pipeline\", \"automated testing\". NOT for Jenkins\u002FCircleCI, manual deployments, or non-GitHub repositories.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--github-actions-pipeline-builder\u002FSKILL.md",[],[215,216,217,218,219,220,221,156,181,222,223,224,165,187,225,207,226,227,228,229],"github actions pipeline builder","actions","github actions","pipeline builder","github","builder","pipeline","testing","ci","workflows","run","release","write","edit","git"]