[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K02RAHFX5RZ5R138E8MYTM":3,"skill-same:01M6K02RAHFX5RZ5R138E8MYTM":59},{"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":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":13,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6K02RAHFX5RZ5R138E8MYTM","Backend",null,"Build reliable backend services with proper error handling, security, and observability.","sigitpoerwo\u002Frepoworkspace_zahra","sigitpoerwo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F260207224?v=4","01M6K000PB6NA0N6SQ7VFMEAFZ","01M6K000V4N0CEHNPPQA9TNQNX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F01-SIAP-PAKAI\u002Fcoding\u002Fbackend\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29],"backend","linux","security","error handling","win32","observability","services","build","backend services","error","with","darwin","2026-11-10 10:12:30",false,"---\nname: Backend\ndescription: Build reliable backend services with proper error handling, security, and observability.\nmetadata: {\"clawdbot\":{\"emoji\":\"⚙️\",\"os\":[\"linux\",\"darwin\",\"win32\"]}}\n---\n\n## Error Handling\n\n- Never expose stack traces to clients—log internally, return generic message\n- Structured error responses: code, message, request ID—enables debugging without leaking\n- Fail fast on bad input—validate at entry point, not deep in business logic\n- Unexpected errors: 500 + alert—expected errors: appropriate 4xx\n\n### Examples\n\n**Node.js\u002FExpress:**\n```javascript\n\u002F\u002F Error handler middleware\napp.use((err, req, res, next) => {\n  const requestId = req.id || uuid();\n  \n  \u002F\u002F Log full error internally\n  logger.error({\n    requestId,\n    error: err.message,\n    stack: err.stack,\n    path: req.path\n  });\n  \n  \u002F\u002F Return safe error to client\n  res.status(err.statusCode || 500).json({\n    error: {\n      code: err.code || 'INTERNAL_ERROR',\n      message: err.statusCode \u003C 500 ? err.message : 'Internal server error',\n      requestId\n    }\n  });\n});\n```\n\n**Python\u002FFastAPI:**\n```python\nfrom fastapi import FastAPI, Request\nfrom fastapi.responses import JSONResponse\nimport logging\n\napp = FastAPI()\n\n@app.exception_handler(Exception)\nasync def global_exception_handler(request: Request, exc: Exception):\n    request_id = request.headers.get(\"X-Request-ID\", str(uuid.uuid4()))\n    \n    # Log full error\n    logging.error(f\"Request {request_id} failed: {exc}\", exc_info=True)\n    \n    # Return safe error\n    return JSONResponse(\n        status_code=500,\n        content={\n            \"error\": {\n                \"code\": \"INTERNAL_ERROR\",\n                \"message\": \"Internal server error\",\n                \"requestId\": request_id\n            }\n        }\n    )\n```\n\n---\n\n## Input Validation\n\n- Validate everything from outside—query params, headers, body, path params\n- Whitelist valid input, don't blacklist bad—reject unknown fields\n- Validate early, before any processing—save resources, clearer errors\n- Size limits on all inputs—prevent memory exhaustion attacks\n\n### Examples\n\n**Zod (TypeScript):**\n```typescript\nimport { z } from 'zod';\n\nconst createUserSchema = z.object({\n  email: z.string().email().max(255),\n  password: z.string().min(8).max(100),\n  age: z.number().int().min(18).max(120),\n  role: z.enum(['user', 'admin']).default('user')\n}).strict(); \u002F\u002F Reject unknown fields\n\napp.post('\u002Fusers', async (req, res) => {\n  try {\n    const data = createUserSchema.parse(req.body);\n    const user = await createUser(data);\n    res.status(201).json(user);\n  } catch (err) {\n    if (err instanceof z.ZodError) {\n      return res.status(400).json({\n        error: {\n          code: 'VALIDATION_ERROR',\n          message: 'Invalid input',\n          details: err.errors\n        }\n      });\n    }\n    throw err;\n  }\n});\n```\n\n**Pydantic (Python):**\n```python\nfrom pydantic import BaseModel, EmailStr, Field, validator\n\nclass CreateUserRequest(BaseModel):\n    email: EmailStr\n    password: str = Field(min_length=8, max_length=100)\n    age: int = Field(ge=18, le=120)\n    role: str = Field(default=\"user\", pattern=\"^(user|admin)$\")\n    \n    class Config:\n        extra = \"forbid\"  # Reject unknown fields\n\n@app.post(\"\u002Fusers\")\nasync def create_user(data: CreateUserRequest):\n    user = await create_user_service(data)\n    return user\n```\n\n---\n\n## Timeouts Everywhere\n\n- Database queries: set timeout, typically 5-30s\n- External HTTP calls: connect timeout + read timeout—don't wait forever\n- Overall request timeout—gateway or middleware level\n- Background jobs: max execution time—prevent zombie processes\n\n### Examples\n\n**Database Timeout (Prisma):**\n```typescript\nconst prisma = new PrismaClient({\n  datasources: {\n    db: {\n      url: process.env.DATABASE_URL\n    }\n  }\n});\n\n\u002F\u002F Query with timeout\nconst users = await prisma.$queryRaw`\n  SELECT * FROM users WHERE active = true\n`.timeout(5000); \u002F\u002F 5 second timeout\n```\n\n**HTTP Timeout (Axios):**\n```typescript\nimport axios from 'axios';\n\nconst api = axios.create({\n  timeout: 10000, \u002F\u002F 10 seconds total\n  timeoutErrorMessage: 'Request timeout'\n});\n\n\u002F\u002F With retry\nimport axiosRetry from 'axios-retry';\naxiosRetry(api, {\n  retries: 3,\n  retryDelay: axiosRetry.exponentialDelay\n});\n```\n\n**Request Timeout (Express):**\n```typescript\nimport timeout from 'connect-timeout';\n\napp.use(timeout('30s'));\napp.use((req, res, next) => {\n  if (!req.timedout) next();\n});\n```\n\n---\n\n## Retry Patterns\n\n- Exponential backoff: 1s, 2s, 4s, 8s...—prevents thundering herd\n- Add jitter: randomize delay—prevents synchronized retries\n- Idempotency keys for non-idempotent operations—safe to retry\n- Circuit breaker for failing dependencies—stop hammering, fail fast\n\n### Examples\n\n**Exponential Backoff with Jitter:**\n```typescript\nasync function retryWithBackoff\u003CT>(\n  fn: () => Promise\u003CT>,\n  maxRetries = 3,\n  baseDelay = 1000\n): Promise\u003CT> {\n  for (let i = 0; i \u003C maxRetries; i++) {\n    try {\n      return await fn();\n    } catch (err) {\n      if (i === maxRetries - 1) throw err;\n      \n      \u002F\u002F Exponential backoff with jitter\n      const delay = baseDelay * Math.pow(2, i);\n      const jitter = Math.random() * delay * 0.1;\n      await sleep(delay + jitter);\n    }\n  }\n  throw new Error('Max retries exceeded');\n}\n\n\u002F\u002F Usage\nconst data = await retryWithBackoff(() => \n  fetch('https:\u002F\u002Fapi.example.com\u002Fdata')\n);\n```\n\n**Circuit Breaker (opossum):**\n```typescript\nimport CircuitBreaker from 'opossum';\n\nconst options = {\n  timeout: 3000,\n  errorThresholdPercentage: 50,\n  resetTimeout: 30000\n};\n\nconst breaker = new CircuitBreaker(fetchExternalAPI, options);\n\nbreaker.fallback(() => ({ cached: true, data: [] }));\n\nbreaker.on('open', () => {\n  logger.warn('Circuit breaker opened');\n});\n\n\u002F\u002F Usage\nconst result = await breaker.fire(params);\n```\n\n---\n\n## Database Practices\n\n- Connection pooling: reuse connections—creating is expensive\n- Transactions scoped minimal—hold locks briefly\n- Read replicas for read-heavy workloads—separate read\u002Fwrite traffic\n- Prepared statements always—SQL injection prevention, query plan cache\n\n### Examples\n\n**Connection Pool (PostgreSQL):**\n```typescript\nimport { Pool } from 'pg';\n\nconst pool = new Pool({\n  host: process.env.DB_HOST,\n  database: process.env.DB_NAME,\n  user: process.env.DB_USER,\n  password: process.env.DB_PASSWORD,\n  max: 20, \u002F\u002F Max connections\n  idleTimeoutMillis: 30000,\n  connectionTimeoutMillis: 2000\n});\n\n\u002F\u002F Use connection\nconst client = await pool.connect();\ntry {\n  const result = await client.query('SELECT * FROM users WHERE id = $1', [userId]);\n  return result.rows[0];\n} finally {\n  client.release();\n}\n```\n\n**Transaction (Prisma):**\n```typescript\n\u002F\u002F Good: Minimal transaction scope\nawait prisma.$transaction(async (tx) => {\n  const user = await tx.user.create({ data: userData });\n  await tx.profile.create({ data: { userId: user.id, ...profileData } });\n  return user;\n});\n\n\u002F\u002F Bad: Long-running transaction\nawait prisma.$transaction(async (tx) => {\n  const user = await tx.user.create({ data: userData });\n  await sendWelcomeEmail(user.email); \u002F\u002F ❌ External call in transaction\n  return user;\n});\n```\n\n**Read Replica:**\n```typescript\nconst readPool = new Pool({ host: 'read-replica.example.com' });\nconst writePool = new Pool({ host: 'primary.example.com' });\n\n\u002F\u002F Read from replica\nasync function getUsers() {\n  return readPool.query('SELECT * FROM users');\n}\n\n\u002F\u002F Write to primary\nasync function createUser(data) {\n  return writePool.query('INSERT INTO users ...', [data]);\n}\n```\n\n---\n\n## Caching Strategy\n\n- Cache invalidation strategy decided upfront—TTL, event-based, or both\n- Cache at right layer: query result, computed value, HTTP response\n- Cache stampede prevention—lock or probabilistic early expiration\n- Monitor hit rate—low hit rate = wasted resources\n\n### Examples\n\n**Redis Cache (Node.js):**\n```typescript\nimport Redis from 'ioredis';\n\nconst redis = new Redis({\n  host: process.env.REDIS_HOST,\n  port: 6379,\n  maxRetriesPerRequest: 3\n});\n\nasync function getCachedUser(userId: string) {\n  const cacheKey = `user:${userId}`;\n  \n  \u002F\u002F Try cache first\n  const cached = await redis.get(cacheKey);\n  if (cached) {\n    return JSON.parse(cached);\n  }\n  \n  \u002F\u002F Cache miss: fetch from DB\n  const user = await db.user.findUnique({ where: { id: userId } });\n  \n  \u002F\u002F Store in cache (1 hour TTL)\n  await redis.setex(cacheKey, 3600, JSON.stringify(user));\n  \n  return user;\n}\n\n\u002F\u002F Cache invalidation\nasync function updateUser(userId: string, data: any) {\n  const user = await db.user.update({ where: { id: userId }, data });\n  \n  \u002F\u002F Invalidate cache\n  await redis.del(`user:${userId}`);\n  \n  return user;\n}\n```\n\n**Cache Stampede Prevention:**\n```typescript\nimport { Mutex } from 'async-mutex';\n\nconst locks = new Map\u003Cstring, Mutex>();\n\nasync function getCachedWithLock(key: string, fetchFn: () => Promise\u003Cany>) {\n  const cached = await redis.get(key);\n  if (cached) return JSON.parse(cached);\n  \n  \u002F\u002F Get or create lock for this key\n  if (!locks.has(key)) {\n    locks.set(key, new Mutex());\n  }\n  const lock = locks.get(key)!;\n  \n  \u002F\u002F Only one request fetches, others wait\n  return lock.runExclusive(async () => {\n    \u002F\u002F Check cache again (might be populated by another request)\n    const cached = await redis.get(key);\n    if (cached) return JSON.parse(cached);\n    \n    \u002F\u002F Fetch and cache\n    const data = await fetchFn();\n    await redis.setex(key, 3600, JSON.stringify(data));\n    return data;\n  });\n}\n```\n\n---\n\n## Rate Limiting\n\n- Per-user\u002FIP limits on expensive operations—login, signup, search\n- Different limits for different operations—read vs write\n- Return Retry-After header—tell clients when to retry\n- Rate limit early in request pipeline—save resources\n\n### Examples\n\n**Express Rate Limit:**\n```typescript\nimport rateLimit from 'express-rate-limit';\n\n\u002F\u002F General API rate limit\nconst apiLimiter = rateLimit({\n  windowMs: 15 * 60 * 1000, \u002F\u002F 15 minutes\n  max: 100, \u002F\u002F 100 requests per window\n  message: 'Too many requests, please try again later',\n  standardHeaders: true,\n  legacyHeaders: false\n});\n\n\u002F\u002F Strict limit for auth endpoints\nconst authLimiter = rateLimit({\n  windowMs: 15 * 60 * 1000,\n  max: 5, \u002F\u002F Only 5 login attempts\n  skipSuccessfulRequests: true\n});\n\napp.use('\u002Fapi\u002F', apiLimiter);\napp.use('\u002Fauth\u002Flogin', authLimiter);\n```\n\n**Redis-based Rate Limit:**\n```typescript\nasync function checkRateLimit(userId: string, limit: number, window: number) {\n  const key = `ratelimit:${userId}`;\n  const current = await redis.incr(key);\n  \n  if (current === 1) {\n    await redis.expire(key, window);\n  }\n  \n  if (current > limit) {\n    const ttl = await redis.ttl(key);\n    throw new RateLimitError(`Rate limit exceeded. Retry after ${ttl}s`);\n  }\n  \n  return { remaining: limit - current, resetIn: await redis.ttl(key) };\n}\n```\n\n---\n\n## Health Checks\n\n- Liveness: is process running—restart if fails\n- Readiness: can handle traffic—remove from load balancer if fails\n- Startup probe for slow-starting services—don't kill during init\n- Health checks fast and cheap—don't hit database on every probe\n\n### Examples\n\n**Express Health Endpoints:**\n```typescript\n\u002F\u002F Liveness: simple ping\napp.get('\u002Fhealth\u002Flive', (req, res) => {\n  res.status(200).json({ status: 'ok' });\n});\n\n\u002F\u002F Readiness: check dependencies\napp.get('\u002Fhealth\u002Fready', async (req, res) => {\n  try {\n    \u002F\u002F Quick DB check\n    await prisma.$queryRaw`SELECT 1`;\n    \n    \u002F\u002F Quick Redis check\n    await redis.ping();\n    \n    res.status(200).json({\n      status: 'ready',\n      checks: {\n        database: 'ok',\n        cache: 'ok'\n      }\n    });\n  } catch (err) {\n    res.status(503).json({\n      status: 'not ready',\n      error: err.message\n    });\n  }\n});\n```\n\n**Kubernetes Probes:**\n```yaml\napiVersion: v1\nkind: Pod\nspec:\n  containers:\n  - name: app\n    livenessProbe:\n      httpGet:\n        path: \u002Fhealth\u002Flive\n        port: 3000\n      initialDelaySeconds: 10\n      periodSeconds: 10\n    readinessProbe:\n      httpGet:\n        path: \u002Fhealth\u002Fready\n        port: 3000\n      initialDelaySeconds: 5\n      periodSeconds: 5\n    startupProbe:\n      httpGet:\n        path: \u002Fhealth\u002Flive\n        port: 3000\n      failureThreshold: 30\n      periodSeconds: 10\n```\n\n---\n\n## Graceful Shutdown\n\n- Stop accepting new requests first—drain load balancer\n- Wait for in-flight requests to complete—with timeout\n- Close database connections cleanly—prevent connection leaks\n- SIGTERM handling: graceful; SIGKILL after timeout\n\n### Examples\n\n**Node.js Graceful Shutdown:**\n```typescript\nconst server = app.listen(3000);\n\nlet isShuttingDown = false;\n\n\u002F\u002F Stop accepting new connections\napp.use((req, res, next) => {\n  if (isShuttingDown) {\n    res.set('Connection', 'close');\n    return res.status(503).json({ error: 'Server is shutting down' });\n  }\n  next();\n});\n\nasync function gracefulShutdown(signal: string) {\n  console.log(`${signal} received, starting graceful shutdown`);\n  isShuttingDown = true;\n  \n  \u002F\u002F Stop accepting new connections\n  server.close(async () => {\n    console.log('HTTP server closed');\n    \n    try {\n      \u002F\u002F Close database connections\n      await prisma.$disconnect();\n      console.log('Database connections closed');\n      \n      \u002F\u002F Close Redis connections\n      await redis.quit();\n      console.log('Redis connections closed');\n      \n      process.exit(0);\n    } catch (err) {\n      console.error('Error during shutdown:', err);\n      process.exit(1);\n    }\n  });\n  \n  \u002F\u002F Force shutdown after 30 seconds\n  setTimeout(() => {\n    console.error('Forced shutdown after timeout');\n    process.exit(1);\n  }, 30000);\n}\n\nprocess.on('SIGTERM', () => gracefulShutdown('SIGTERM'));\nprocess.on('SIGINT', () => gracefulShutdown('SIGINT'));\n```\n\n---\n\n## Logging\n\n- Structured logs (JSON)—parseable by log aggregators\n- Request ID in every log—trace request across services\n- Log level appropriate: debug for dev, info\u002Ferror for prod\n- Sensitive data never logged—passwords, tokens, PII\n\n### Examples\n\n**Winston Logger:**\n```typescript\nimport winston from 'winston';\n\nconst logger = winston.createLogger({\n  level: process.env.LOG_LEVEL || 'info',\n  format: winston.format.combine(\n    winston.format.timestamp(),\n    winston.format.errors({ stack: true }),\n    winston.format.json()\n  ),\n  defaultMeta: { service: 'api' },\n  transports: [\n    new winston.transports.Console(),\n    new winston.transports.File({ filename: 'error.log', level: 'error' }),\n    new winston.transports.File({ filename: 'combined.log' })\n  ]\n});\n\n\u002F\u002F Request logging middleware\napp.use((req, res, next) => {\n  req.id = req.headers['x-request-id'] || uuid();\n  \n  logger.info({\n    requestId: req.id,\n    method: req.method,\n    path: req.path,\n    ip: req.ip\n  });\n  \n  next();\n});\n\n\u002F\u002F Usage\nlogger.info({ requestId: req.id, userId, action: 'user_created' });\nlogger.error({ requestId: req.id, error: err.message, stack: err.stack });\n```\n\n---\n\n## API Design\n\n- Versioning strategy from day one—path (\u002Fv1\u002F) or header\n- Pagination for list endpoints—cursor or offset; include total count\n- Consistent response format—same envelope everywhere\n- Meaningful status codes—201 for create, 204 for delete, 404 for not found\n\n### Examples\n\n**RESTful API Design:**\n```typescript\n\u002F\u002F Versioned routes\napp.use('\u002Fapi\u002Fv1', v1Router);\n\n\u002F\u002F Pagination\napp.get('\u002Fapi\u002Fv1\u002Fusers', async (req, res) => {\n  const page = parseInt(req.query.page) || 1;\n  const limit = parseInt(req.query.limit) || 20;\n  const offset = (page - 1) * limit;\n  \n  const [users, total] = await Promise.all([\n    db.user.findMany({ skip: offset, take: limit }),\n    db.user.count()\n  ]);\n  \n  res.json({\n    data: users,\n    pagination: {\n      page,\n      limit,\n      total,\n      totalPages: Math.ceil(total \u002F limit)\n    }\n  });\n});\n\n\u002F\u002F Consistent response format\ninterface ApiResponse\u003CT> {\n  data?: T;\n  error?: {\n    code: string;\n    message: string;\n    details?: any;\n  };\n  meta?: {\n    requestId: string;\n    timestamp: string;\n  };\n}\n\n\u002F\u002F Status codes\napp.post('\u002Fapi\u002Fv1\u002Fusers', async (req, res) => {\n  const user = await createUser(req.body);\n  res.status(201).json({ data: user }); \u002F\u002F 201 Created\n});\n\napp.delete('\u002Fapi\u002Fv1\u002Fusers\u002F:id', async (req, res) => {\n  await deleteUser(req.params.id);\n  res.status(204).send(); \u002F\u002F 204 No Content\n});\n```\n\n---\n\n## Security Hygiene\n\n- Secrets from environment or vault—never in code or config files\n- Dependencies updated regularly—automated with Dependabot\u002FRenovate\n- Principle of least privilege—service accounts with minimal permissions\n- Authentication and authorization separated—who you are vs what you can do\n\n### Examples\n\n**Environment Variables:**\n```typescript\nimport { z } from 'zod';\n\nconst envSchema = z.object({\n  DATABASE_URL: z.string().url(),\n  JWT_SECRET: z.string().min(32),\n  REDIS_URL: z.string().url(),\n  NODE_ENV: z.enum(['development', 'production', 'test'])\n});\n\nconst env = envSchema.parse(process.env);\n\nexport default env;\n```\n\n**JWT Authentication:**\n```typescript\nimport jwt from 'jsonwebtoken';\n\n\u002F\u002F Middleware\nasync function authenticate(req, res, next) {\n  const token = req.headers.authorization?.replace('Bearer ', '');\n  \n  if (!token) {\n    return res.status(401).json({ error: 'No token provided' });\n  }\n  \n  try {\n    const payload = jwt.verify(token, env.JWT_SECRET);\n    req.user = payload;\n    next();\n  } catch (err) {\n    return res.status(401).json({ error: 'Invalid token' });\n  }\n}\n\n\u002F\u002F Authorization\nfunction authorize(...roles: string[]) {\n  return (req, res, next) => {\n    if (!roles.includes(req.user.role)) {\n      return res.status(403).json({ error: 'Forbidden' });\n    }\n    next();\n  };\n}\n\n\u002F\u002F Usage\napp.get('\u002Fadmin\u002Fusers', authenticate, authorize('admin'), getUsers);\n```\n\n---\n\n## Observability\n\n- Metrics: request count, latency percentiles, error rate—the RED method\n- Distributed tracing for microservices—follow request across services\n- Alerting on symptoms, not causes—high error rate, not CPU usage\n- Dashboards for operational visibility—know normal to spot abnormal\n\n### Examples\n\n**Prometheus Metrics:**\n```typescript\nimport promClient from 'prom-client';\n\nconst register = new promClient.Registry();\n\n\u002F\u002F Request counter\nconst httpRequestsTotal = new promClient.Counter({\n  name: 'http_requests_total',\n  help: 'Total HTTP requests',\n  labelNames: ['method', 'path', 'status'],\n  registers: [register]\n});\n\n\u002F\u002F Request duration\nconst httpRequestDuration = new promClient.Histogram({\n  name: 'http_request_duration_seconds',\n  help: 'HTTP request duration',\n  labelNames: ['method', 'path', 'status'],\n  buckets: [0.1, 0.5, 1, 2, 5],\n  registers: [register]\n});\n\n\u002F\u002F Middleware\napp.use((req, res, next) => {\n  const start = Date.now();\n  \n  res.on('finish', () => {\n    const duration = (Date.now() - start) \u002F 1000;\n    \n    httpRequestsTotal.inc({\n      method: req.method,\n      path: req.route?.path || req.path,\n      status: res.statusCode\n    });\n    \n    httpRequestDuration.observe({\n      method: req.method,\n      path: req.route?.path || req.path,\n      status: res.statusCode\n    }, duration);\n  });\n  \n  next();\n});\n\n\u002F\u002F Metrics endpoint\napp.get('\u002Fmetrics', async (req, res) => {\n  res.set('Content-Type', register.contentType);\n  res.end(await register.metrics());\n});\n```\n\n---\n\n## ? Additional Resources\n\n- [Node.js Best Practices](https:\u002F\u002Fgithub.com\u002Fgoldbergyoni\u002Fnodebestpractices)\n- [The Twelve-Factor App](https:\u002F\u002F12factor.net\u002F)\n- [API Security Checklist](https:\u002F\u002Fgithub.com\u002Fshieldfy\u002FAPI-Security-Checklist)\n- [Microservices Patterns](https:\u002F\u002Fmicroservices.io\u002Fpatterns\u002F)\n","## Error Handling\n\n- Never expose stack traces to clients—log internally, return generic message\n- Structured error responses: code, message, request ID—enables debugging without leaking\n- Fail fast on bad input—validate at entry point, not deep in business logic\n- Unexpected errors: 500 + alert—expected errors: appropriate 4xx\n\n### Examples\n\n**Node.js\u002FExpress:**\n```javascript\n\u002F\u002F Error handler middleware\napp.use((err, req, res, next) => {\n  const requestId = req.id || uuid();\n  \n  \u002F\u002F Log full error internally\n  logger.error({\n    requestId,\n    error: err.message,\n    stack: err.stack,\n    path: req.path\n  });\n  \n  \u002F\u002F Return safe error to client\n  res.status(err.statusCode || 500).json({\n    error: {\n      code: err.code || 'INTERNAL_ERROR',\n      message: err.statusCode \u003C 500 ? err.message : 'Internal server error',\n      requestId\n    }\n  });\n});\n```\n\n**Python\u002FFastAPI:**\n```python\nfrom fastapi import FastAPI, Request\nfrom fastapi.responses import JSONResponse\nimport logging\n\napp = FastAPI()\n\n@app.exception_handler(Exception)\nasync def global_exception_handler(request: Request, exc: Exception):\n    request_id = request.headers.get(\"X-Request-ID\", str(uuid.uuid4()))\n    \n    # Log full error\n    logging.error(f\"Request {request_id} failed: {exc}\", exc_info=True)\n    \n    # Return safe error\n    return JSONResponse(\n        status_code=500,\n        content={\n            \"error\": {\n                \"code\": \"INTERNAL_ERROR\",\n                \"message\": \"Internal server error\",\n                \"requestId\": request_id\n            }\n        }\n    )\n```\n\n---\n\n## Input Validation\n\n- Validate everything from outside—query params, headers, body, path params\n- Whitelist valid input, don't blacklist bad—reject unknown fields\n- Validate early, before any processing—save resources, clearer errors\n- Size limits on all inputs—prevent memory exhaustion attacks\n\n### Examples\n\n**Zod (TypeScript):**\n```typescript\nimport { z } from 'zod';\n\nconst createUserSchema = z.object({\n  email: z.string().email().max(255),\n  password: z.string().min(8).max(100),\n  age: z.number().int().min(18).max(120),\n  role: z.enum(['user', 'admin']).default('user')\n}).strict(); \u002F\u002F Reject unknown fields\n\napp.post('\u002Fusers', async (req, res) => {\n  try {\n    const data = createUserSchema.parse(req.body);\n    const user = await createUser(data);\n    res.status(201).json(user);\n  } catch (err) {\n    if (err instanceof z.ZodError) {\n      return res.status(400).json({\n        error: {\n          code: 'VALIDATION_ERROR',\n          message: 'Invalid input',\n          details: err.errors\n        }\n      });\n    }\n    throw err;\n  }\n});\n```\n\n**Pydantic (Python):**\n```python\nfrom pydantic import BaseModel, EmailStr, Field, validator\n\nclass CreateUserRequest(BaseModel):\n    email: EmailStr\n    password: str = Field(min_length=8, max_length=100)\n    age: int = Field(ge=18, le=120)\n    role: str = Field(default=\"user\", pattern=\"^(user|admin)$\")\n    \n    class Config:\n        extra = \"forbid\"  # Reject unknown fields\n\n@app.post(\"\u002Fusers\")\nasync def create_user(data: CreateUserRequest):\n    user = await create_user_service(data)\n    return user\n```\n\n---\n\n## Timeouts Everywhere\n\n- Database queries: set timeout, typically 5-30s\n- External HTTP calls: connect timeout + read timeout—don't wait forever\n- Overall request timeout—gateway or middleware level\n- Background jobs: max execution time—prevent zombie processes\n\n### Examples\n\n**Database Timeout (Prisma):**\n```typescript\nconst prisma = new PrismaClient({\n  datasources: {\n    db: {\n      url: process.env.DATABASE_URL\n    }\n  }\n});\n\n\u002F\u002F Query with timeout\nconst users = await prisma.$queryRaw`\n  SELECT * FROM users WHERE active = true\n`.timeout(5000); \u002F\u002F 5 second timeout\n```\n\n**HTTP Timeout (Axios):**\n```typescript\nimport axios from 'axios';\n\nconst api = axios.create({\n  timeout: 10000, \u002F\u002F 10 seconds total\n  timeoutErrorMessage: 'Request timeout'\n});\n\n\u002F\u002F With retry\nimport axiosRetry from 'axios-retry';\naxiosRetry(api, {\n  retries: 3,\n  retryDelay: axiosRetry.exponentialDelay\n});\n```\n\n**Request Timeout (Express):**\n```typescript\nimport timeout from 'connect-timeout';\n\napp.use(timeout('30s'));\napp.use((req, res, next) => {\n  if (!req.timedout) next();\n});\n```\n\n---\n\n## Retry Patterns\n\n- Exponential backoff: 1s, 2s, 4s, 8s...—prevents thundering herd\n- Add jitter: randomize delay—prevents synchronized retries\n- Idempotency keys for non-idempotent operations—safe to retry\n- Circuit breaker for failing dependencies—stop hammering, fail fast\n\n### Examples\n\n**Exponential Backoff with Jitter:**\n```typescript\nasync function retryWithBackoff\u003CT>(\n  fn: () => Promise\u003CT>,\n  maxRetries = 3,\n  baseDelay = 1000\n): Promise\u003CT> {\n  for (let i = 0; i \u003C maxRetries; i++) {\n    try {\n      return await fn();\n    } catch (err) {\n      if (i === maxRetries - 1) throw err;\n      \n      \u002F\u002F Exponential backoff with jitter\n      const delay = baseDelay * Math.pow(2, i);\n      const jitter = Math.random() * delay * 0.1;\n      await sleep(delay + jitter);\n    }\n  }\n  throw new Error('Max retries exceeded');\n}\n\n\u002F\u002F Usage\nconst data = await retryWithBackoff(() => \n  fetch('https:\u002F\u002Fapi.example.com\u002Fdata')\n);\n```\n\n**Circuit Breaker (opossum):**\n```typescript\nimport CircuitBreaker from 'opossum';\n\nconst options = {\n  timeout: 3000,\n  errorThresholdPercentage: 50,\n  resetTimeout: 30000\n};\n\nconst breaker = new CircuitBreaker(fetchExternalAPI, options);\n\nbreaker.fallback(() => ({ cached: true, data: [] }));\n\nbreaker.on('open', () => {\n  logger.warn('Circuit breaker opened');\n});\n\n\u002F\u002F Usage\nconst result = await breaker.fire(params);\n```\n\n---\n\n## Database Practices\n\n- Connection pooling: reuse connections—creating is expensive\n- Transactions scoped minimal—hold locks briefly\n- Read replicas for read-heavy workloads—separate read\u002Fwrite traffic\n- Prepared statements always—SQL injection prevention, query plan cache\n\n### Examples\n\n**Connection Pool (PostgreSQL):**\n```typescript\nimport { Pool } from 'pg';\n\nconst pool = new Pool({\n  host: process.env.DB_HOST,\n  database: process.env.DB_NAME,\n  user: process.env.DB_USER,\n  password: process.env.DB_PASSWORD,\n  max: 20, \u002F\u002F Max connections\n  idleTimeoutMillis: 30000,\n  connectionTimeoutMillis: 2000\n});\n\n\u002F\u002F Use connection\nconst client = await pool.connect();\ntry {\n  const result = await client.query('SELECT * FROM users WHERE id = $1', [userId]);\n  return result.rows[0];\n} finally {\n  client.release();\n}\n```\n\n**Transaction (Prisma):**\n```typescript\n\u002F\u002F Good: Minimal transaction scope\nawait prisma.$transaction(async (tx) => {\n  const user = await tx.user.create({ data: userData });\n  await tx.profile.create({ data: { userId: user.id, ...profileData } });\n  return user;\n});\n\n\u002F\u002F Bad: Long-running transaction\nawait prisma.$transaction(async (tx) => {\n  const user = await tx.user.create({ data: userData });\n  await sendWelcomeEmail(user.email); \u002F\u002F ❌ External call in transaction\n  return user;\n});\n```\n\n**Read Replica:**\n```typescript\nconst readPool = new Pool({ host: 'read-replica.example.com' });\nconst writePool = new Pool({ host: 'primary.example.com' });\n\n\u002F\u002F Read from replica\nasync function getUsers() {\n  return readPool.query('SELECT * FROM users');\n}\n\n\u002F\u002F Write to primary\nasync function createUser(data) {\n  return writePool.query('INSERT INTO users ...', [data]);\n}\n```\n\n---\n\n## Caching Strategy\n\n- Cache invalidation strategy decided upfront—TTL, event-based, or both\n- Cache at right layer: query result, computed value, HTTP response\n- Cache stampede prevention—lock or probabilistic early expiration\n- Monitor hit rate—low hit rate = wasted resources\n\n### Examples\n\n**Redis Cache (Node.js):**\n```typescript\nimport Redis from 'ioredis';\n\nconst redis = new Redis({\n  host: process.env.REDIS_HOST,\n  port: 6379,\n  maxRetriesPerRequest: 3\n});\n\nasync function getCachedUser(userId: string) {\n  const cacheKey = `user:${userId}`;\n  \n  \u002F\u002F Try cache first\n  const cached = await redis.get(cacheKey);\n  if (cached) {\n    return JSON.parse(cached);\n  }\n  \n  \u002F\u002F Cache miss: fetch from DB\n  const user = await db.user.findUnique({ where: { id: userId } });\n  \n  \u002F\u002F Store in cache (1 hour TTL)\n  await redis.setex(cacheKey, 3600, JSON.stringify(user));\n  \n  return user;\n}\n\n\u002F\u002F Cache invalidation\nasync function updateUser(userId: string, data: any) {\n  const user = await db.user.update({ where: { id: userId }, data });\n  \n  \u002F\u002F Invalidate cache\n  await redis.del(`user:${userId}`);\n  \n  return user;\n}\n```\n\n**Cache Stampede Prevention:**\n```typescript\nimport { Mutex } from 'async-mutex';\n\nconst locks = new Map\u003Cstring, Mutex>();\n\nasync function getCachedWithLock(key: string, fetchFn: () => Promise\u003Cany>) {\n  const cached = await redis.get(key);\n  if (cached) return JSON.parse(cached);\n  \n  \u002F\u002F Get or create lock for this key\n  if (!locks.has(key)) {\n    locks.set(key, new Mutex());\n  }\n  const lock = locks.get(key)!;\n  \n  \u002F\u002F Only one request fetches, others wait\n  return lock.runExclusive(async () => {\n    \u002F\u002F Check cache again (might be populated by another request)\n    const cached = await redis.get(key);\n    if (cached) return JSON.parse(cached);\n    \n    \u002F\u002F Fetch and cache\n    const data = await fetchFn();\n    await redis.setex(key, 3600, JSON.stringify(data));\n    return data;\n  });\n}\n```\n\n---\n\n## Rate Limiting\n\n- Per-user\u002FIP limits on expensive operations—login, signup, search\n- Different limits for different operations—read vs write\n- Return Retry-After header—tell clients when to retry\n- Rate limit early in request pipeline—save resources\n\n### Examples\n\n**Express Rate Limit:**\n```typescript\nimport rateLimit from 'express-rate-limit';\n\n\u002F\u002F General API rate limit\nconst apiLimiter = rateLimit({\n  windowMs: 15 * 60 * 1000, \u002F\u002F 15 minutes\n  max: 100, \u002F\u002F 100 requests per window\n  message: 'Too many requests, please try again later',\n  standardHeaders: true,\n  legacyHeaders: false\n});\n\n\u002F\u002F Strict limit for auth endpoints\nconst authLimiter = rateLimit({\n  windowMs: 15 * 60 * 1000,\n  max: 5, \u002F\u002F Only 5 login attempts\n  skipSuccessfulRequests: true\n});\n\napp.use('\u002Fapi\u002F', apiLimiter);\napp.use('\u002Fauth\u002Flogin', authLimiter);\n```\n\n**Redis-based Rate Limit:**\n```typescript\nasync function checkRateLimit(userId: string, limit: number, window: number) {\n  const key = `ratelimit:${userId}`;\n  const current = await redis.incr(key);\n  \n  if (current === 1) {\n    await redis.expire(key, window);\n  }\n  \n  if (current > limit) {\n    const ttl = await redis.ttl(key);\n    throw new RateLimitError(`Rate limit exceeded. Retry after ${ttl}s`);\n  }\n  \n  return { remaining: limit - current, resetIn: await redis.ttl(key) };\n}\n```\n\n---\n\n## Health Checks\n\n- Liveness: is process running—restart if fails\n- Readiness: can handle traffic—remove from load balancer if fails\n- Startup probe for slow-starting services—don't kill during init\n- Health checks fast and cheap—don't hit database on every probe\n\n### Examples\n\n**Express Health Endpoints:**\n```typescript\n\u002F\u002F Liveness: simple ping\napp.get('\u002Fhealth\u002Flive', (req, res) => {\n  res.status(200).json({ status: 'ok' });\n});\n\n\u002F\u002F Readiness: check dependencies\napp.get('\u002Fhealth\u002Fready', async (req, res) => {\n  try {\n    \u002F\u002F Quick DB check\n    await prisma.$queryRaw`SELECT 1`;\n    \n    \u002F\u002F Quick Redis check\n    await redis.ping();\n    \n    res.status(200).json({\n      status: 'ready',\n      checks: {\n        database: 'ok',\n        cache: 'ok'\n      }\n    });\n  } catch (err) {\n    res.status(503).json({\n      status: 'not ready',\n      error: err.message\n    });\n  }\n});\n```\n\n**Kubernetes Probes:**\n```yaml\napiVersion: v1\nkind: Pod\nspec:\n  containers:\n  - name: app\n    livenessProbe:\n      httpGet:\n        path: \u002Fhealth\u002Flive\n        port: 3000\n      initialDelaySeconds: 10\n      periodSeconds: 10\n    readinessProbe:\n      httpGet:\n        path: \u002Fhealth\u002Fready\n        port: 3000\n      initialDelaySeconds: 5\n      periodSeconds: 5\n    startupProbe:\n      httpGet:\n        path: \u002Fhealth\u002Flive\n        port: 3000\n      failureThreshold: 30\n      periodSeconds: 10\n```\n\n---\n\n## Graceful Shutdown\n\n- Stop accepting new requests first—drain load balancer\n- Wait for in-flight requests to complete—with timeout\n- Close database connections cleanly—prevent connection leaks\n- SIGTERM handling: graceful; SIGKILL after timeout\n\n### Examples\n\n**Node.js Graceful Shutdown:**\n```typescript\nconst server = app.listen(3000);\n\nlet isShuttingDown = false;\n\n\u002F\u002F Stop accepting new connections\napp.use((req, res, next) => {\n  if (isShuttingDown) {\n    res.set('Connection', 'close');\n    return res.status(503).json({ error: 'Server is shutting down' });\n  }\n  next();\n});\n\nasync function gracefulShutdown(signal: string) {\n  console.log(`${signal} received, starting graceful shutdown`);\n  isShuttingDown = true;\n  \n  \u002F\u002F Stop accepting new connections\n  server.close(async () => {\n    console.log('HTTP server closed');\n    \n    try {\n      \u002F\u002F Close database connections\n      await prisma.$disconnect();\n      console.log('Database connections closed');\n      \n      \u002F\u002F Close Redis connections\n      await redis.quit();\n      console.log('Redis connections closed');\n      \n      process.exit(0);\n    } catch (err) {\n      console.error('Error during shutdown:', err);\n      process.exit(1);\n    }\n  });\n  \n  \u002F\u002F Force shutdown after 30 seconds\n  setTimeout(() => {\n    console.error('Forced shutdown after timeout');\n    process.exit(1);\n  }, 30000);\n}\n\nprocess.on('SIGTERM', () => gracefulShutdown('SIGTERM'));\nprocess.on('SIGINT', () => gracefulShutdown('SIGINT'));\n```\n\n---\n\n## Logging\n\n- Structured logs (JSON)—parseable by log aggregators\n- Request ID in every log—trace request across services\n- Log level appropriate: debug for dev, info\u002Ferror for prod\n- Sensitive data never logged—passwords, tokens, PII\n\n### Examples\n\n**Winston Logger:**\n```typescript\nimport winston from 'winston';\n\nconst logger = winston.createLogger({\n  level: process.env.LOG_LEVEL || 'info',\n  format: winston.format.combine(\n    winston.format.timestamp(),\n    winston.format.errors({ stack: true }),\n    winston.format.json()\n  ),\n  defaultMeta: { service: 'api' },\n  transports: [\n    new winston.transports.Console(),\n    new winston.transports.File({ filename: 'error.log', level: 'error' }),\n    new winston.transports.File({ filename: 'combined.log' })\n  ]\n});\n\n\u002F\u002F Request logging middleware\napp.use((req, res, next) => {\n  req.id = req.headers['x-request-id'] || uuid();\n  \n  logger.info({\n    requestId: req.id,\n    method: req.method,\n    path: req.path,\n    ip: req.ip\n  });\n  \n  next();\n});\n\n\u002F\u002F Usage\nlogger.info({ requestId: req.id, userId, action: 'user_created' });\nlogger.error({ requestId: req.id, error: err.message, stack: err.stack });\n```\n\n---\n\n## API Design\n\n- Versioning strategy from day one—path (\u002Fv1\u002F) or header\n- Pagination for list endpoints—cursor or offset; include total count\n- Consistent response format—same envelope everywhere\n- Meaningful status codes—201 for create, 204 for delete, 404 for not found\n\n### Examples\n\n**RESTful API Design:**\n```typescript\n\u002F\u002F Versioned routes\napp.use('\u002Fapi\u002Fv1', v1Router);\n\n\u002F\u002F Pagination\napp.get('\u002Fapi\u002Fv1\u002Fusers', async (req, res) => {\n  const page = parseInt(req.query.page) || 1;\n  const limit = parseInt(req.query.limit) || 20;\n  const offset = (page - 1) * limit;\n  \n  const [users, total] = await Promise.all([\n    db.user.findMany({ skip: offset, take: limit }),\n    db.user.count()\n  ]);\n  \n  res.json({\n    data: users,\n    pagination: {\n      page,\n      limit,\n      total,\n      totalPages: Math.ceil(total \u002F limit)\n    }\n  });\n});\n\n\u002F\u002F Consistent response format\ninterface ApiResponse\u003CT> {\n  data?: T;\n  error?: {\n    code: string;\n    message: string;\n    details?: any;\n  };\n  meta?: {\n    requestId: string;\n    timestamp: string;\n  };\n}\n\n\u002F\u002F Status codes\napp.post('\u002Fapi\u002Fv1\u002Fusers', async (req, res) => {\n  const user = await createUser(req.body);\n  res.status(201).json({ data: user }); \u002F\u002F 201 Created\n});\n\napp.delete('\u002Fapi\u002Fv1\u002Fusers\u002F:id', async (req, res) => {\n  await deleteUser(req.params.id);\n  res.status(204).send(); \u002F\u002F 204 No Content\n});\n```\n\n---\n\n## Security Hygiene\n\n- Secrets from environment or vault—never in code or config files\n- Dependencies updated regularly—automated with Dependabot\u002FRenovate\n- Principle of least privilege—service accounts with minimal permissions\n- Authentication and authorization separated—who you are vs what you can do\n\n### Examples\n\n**Environment Variables:**\n```typescript\nimport { z } from 'zod';\n\nconst envSchema = z.object({\n  DATABASE_URL: z.string().url(),\n  JWT_SECRET: z.string().min(32),\n  REDIS_URL: z.string().url(),\n  NODE_ENV: z.enum(['development', 'production', 'test'])\n});\n\nconst env = envSchema.parse(process.env);\n\nexport default env;\n```\n\n**JWT Authentication:**\n```typescript\nimport jwt from 'jsonwebtoken';\n\n\u002F\u002F Middleware\nasync function authenticate(req, res, next) {\n  const token = req.headers.authorization?.replace('Bearer ', '');\n  \n  if (!token) {\n    return res.status(401).json({ error: 'No token provided' });\n  }\n  \n  try {\n    const payload = jwt.verify(token, env.JWT_SECRET);\n    req.user = payload;\n    next();\n  } catch (err) {\n    return res.status(401).json({ error: 'Invalid token' });\n  }\n}\n\n\u002F\u002F Authorization\nfunction authorize(...roles: string[]) {\n  return (req, res, next) => {\n    if (!roles.includes(req.user.role)) {\n      return res.status(403).json({ error: 'Forbidden' });\n    }\n    next();\n  };\n}\n\n\u002F\u002F Usage\napp.get('\u002Fadmin\u002Fusers', authenticate, authorize('admin'), getUsers);\n```\n\n---\n\n## Observability\n\n- Metrics: request count, latency percentiles, error rate—the RED method\n- Distributed tracing for microservices—follow request across services\n- Alerting on symptoms, not causes—high error rate, not CPU usage\n- Dashboards for operational visibility—know normal to spot abnormal\n\n### Examples\n\n**Prometheus Metrics:**\n```typescript\nimport promClient from 'prom-client';\n\nconst register = new promClient.Registry();\n\n\u002F\u002F Request counter\nconst httpRequestsTotal = new promClient.Counter({\n  name: 'http_requests_total',\n  help: 'Total HTTP requests',\n  labelNames: ['method', 'path', 'status'],\n  registers: [register]\n});\n\n\u002F\u002F Request duration\nconst httpRequestDuration = new promClient.Histogram({\n  name: 'http_request_duration_seconds',\n  help: 'HTTP request duration',\n  labelNames: ['method', 'path', 'status'],\n  buckets: [0.1, 0.5, 1, 2, 5],\n  registers: [register]\n});\n\n\u002F\u002F Middleware\napp.use((req, res, next) => {\n  const start = Date.now();\n  \n  res.on('finish', () => {\n    const duration = (Date.now() - start) \u002F 1000;\n    \n    httpRequestsTotal.inc({\n      method: req.method,\n      path: req.route?.path || req.path,\n      status: res.statusCode\n    });\n    \n    httpRequestDuration.observe({\n      method: req.method,\n      path: req.route?.path || req.path,\n      status: res.statusCode\n    }, duration);\n  });\n  \n  next();\n});\n\n\u002F\u002F Metrics endpoint\napp.get('\u002Fmetrics', async (req, res) => {\n  res.set('Content-Type', register.contentType);\n  res.end(await register.metrics());\n});\n```\n\n---\n\n## ? Additional Resources\n\n- [Node.js Best Practices](https:\u002F\u002Fgithub.com\u002Fgoldbergyoni\u002Fnodebestpractices)\n- [The Twelve-Factor App](https:\u002F\u002F12factor.net\u002F)\n- [API Security Checklist](https:\u002F\u002Fgithub.com\u002Fshieldfy\u002FAPI-Security-Checklist)\n- [Microservices Patterns](https:\u002F\u002Fmicroservices.io\u002Fpatterns\u002F)\n",{"name":5,"metadata":35,"description":7},{"clawdbot":36},{"os":37,"emoji":38},[19,29,22],"⚙️","main","000d804ba753926ec0eca35be68bdb42da72c672","skills\u002F01-SIAP-PAKAI\u002Fcoding\u002Fbackend","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo","2026-04-05 09:27:05",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill Backend",{"tool":51,"command":52},"bunx","bunx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill Backend",{"tool":54,"command":55},"pnpm","pnpm dlx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill Backend","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F01-SIAP-PAKAI\u002Fcoding\u002Fbackend\u002FSKILL.md",true,[],[60,87,111,128,134,140],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":30},"01M6K0FJ41XMDT72PK0E3ZJF9P","zahra-workspace-manager","Comprehensive workspace management skill for Zahra Maurita's development environment. Use when managing projects across 8 divisions (Web, App, AI Agent, Bot, Content, Marketing, Research, Business), organizing files, tracking progress, managing memory, or coordinating multi-domain work. Triggers on mentions of workspace organization, project management, division-specific tasks, memory updates, or cross-domain coordination.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002Fzahra-workspace-manager\u002FSKILL.md",[],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86],"workspace","workspace manager","manager","zahra workspace manager","work","updates","progress","app","project","across","multi-domain","files","command","coordination","projects","search","tasks","ai agent","memory","bot",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":30},"01M6K0FBZYXG5M8VBW5R6TPKEP","tinyfish","AI-powered web automation using TinyFish Web Agent. Use when you need to scrape data from websites, automate form filling, extract structured information, or perform any web-based task using natural language instructions. Works with any website including those with JavaScript, dynamic content, and bot protection.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Ftinyfish\u002FSKILL.md",[],[89,28,94,95,96,97,98,99,100,101,102,103,104,86,105,106,107,108,109,110],"natural language","web automation","form","information","scrape","task","language","protection","use","instructions","automate","you","website","web","javascript","automation","data",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":30},"01M6K0F57WDT62QNXTTC6YS34D","tinyfish-openclaw","TinyFish Web Agent integration for OpenClaw. Use this skill to scrape websites, automate web tasks, extract structured data, and perform browser automation using natural language. Works seamlessly with OpenClaw's MCP protocol.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Ftinyfish-openclaw\u002FSKILL.md",[],[89,118,119,109,120,121,122,107,104,123,28,94,102,98,110,124,125,126,127,83],"openclaw","tinyfish openclaw","structured data","browser automation","MCP","for","integration","mcp protocol","browser","protocol",{"skillNo":129,"name":130,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":30},"01M6K0E9ZWFTG44SK6G2ARS39Z","autoresearchclaw","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Fautoresearchclaw\u002FSKILL.md",[],[130],{"skillNo":135,"name":136,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":30},"01M6K0E6ZAEJFYDXM4GANCKZY0","researchclaw","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Fautoresearchclaw\u002F.claude\u002Fskills\u002Fresearchclaw\u002FSKILL.md",[],[136],{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":30},"01M6K0E1B6RZ8T2S7RMWQ6BVWW","academic-research-assistant","Research assistant for management & digital business academics - literature review, paper analysis, citation management, research methodology","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Facademic-research-assistant\u002FSKILL.md",[],[147,148,149,150,151,152,123,153,154,155,156,157,158,159,160,161,162,163],"research assistant","academic research assistant","Academic","assistant","research","paper analysis","literature","paper","Citation","research methodology","business","management","literature review","analysis","citation management","methodology","review"]