본문으로 건너뛰기
cccskills
무료GitHub에 공개

db

Safe Postgres CLI. Reads DATABASE_URL from .env, runs SQL, prints JSON. Read-only by default.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

galiprandi/job-seeker스타 58(GitHub 58 + cccskills 0)
연동 도구LinkedInPostgreSQL

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

db — Postgres CLI for agents

scripts/db.js is the single entry point to the database. Use it instead of psql or inline pg scripts.

Why

  • Reads DATABASE_URL from .env automatically. No manual sourcing, no leaked credentials.
  • Read-only by default. Writes require explicit --write. Prevents accidental destructive SQL.
  • JSON output. Easy to parse, token-efficient.
  • Portable. Works on any machine that cloned the repo and ran onboarding (no psql in PATH required).
  • Never prints the connection string. --ping shows masked user@host/db only.

Commands

# Read (default, JSON array out)
node scripts/db.js "SELECT * FROM users WHERE id = <user_id>"
node scripts/db.js "SELECT data->'profile' AS profile FROM users WHERE id = <user_id>"

# Write (requires --write)
node scripts/db.js "INSERT INTO applications (user_id, platform, company, role, url, status, data) VALUES (<user_id>, 'linkedin', 'Acme', 'Eng Manager', 'https://...', 'applied', '{}'::jsonb)" --write
node scripts/db.js "UPDATE users SET data = jsonb_set(data, '{linkedin_profile}', '\"https://...\"') WHERE id = <user_id>" --write

# Introspection
node scripts/db.js --tables
node scripts/db.js --schema applications
node scripts/db.js --ping

Rules

  • Always use this CLI for DB access. Never write inline pg scripts in skills, never call psql directly.
  • Read-only by default. A statement that does not start with SELECT/WITH/SHOW/EXPLAIN/VALUES/DESCRIBE is refused without --write.
  • Output is JSON. SELECTs print [{...}, ...]. Writes print {rowCount, command}.
  • Never echo DATABASE_URL. If you need to confirm connectivity, use --ping (masked).
  • Parametrize when needed by interpolating safely into the SQL string. This CLI has no parameter binding for CLI args; for user-supplied strings, escape single quotes (' -> '').
  • JSONB access: use data->'key' (jsonb) or data->>'key' (text). Use jsonb_set for updates.

Schema reference

Tables live in public. Discover with --tables and --schema <table>. Known tables:

  • users — single row (repo owner). data JSONB holds profile, job_preferences, style_profile, platforms, linkedin_profile.
  • applications — user_id, platform, company, role, url, status, applied_at, data.
  • messages — recruiter / contact messages.

applications table

Columns: id, user_id, platform, company, role, url, status, applied_at, data

Platforms used:

  • linkedin = Easy Apply jobs
  • linkedin_invite = connection requests
  • email = direct emails to recruiters
  • teamtailor = applications via Teamtailor (with LinkedIn auth, email verification, Connect)
  • humand = applications via Humand.co
  • <company>_career_site, etc. = specific career sites

Status values (pipeline stages, canonical):

Active stages (left to right in the kanban):

  • discovered = found but no action taken
  • contacted = invite/email sent, no formal application
  • applied = application submitted
  • in_review = company reviewing, no response
  • screening = screening call scheduled/done
  • interview = technical interview in progress
  • offer = offer received, negotiating
  • hired = accepted, starting

Closed stages (shown with --closed):

  • rejected = company rejected
  • withdrawn = user withdrew
  • skipped = decided not to apply / not a fit

data JSONB: include source, match (high/medium/low), location, tech array, stage_history array (audit trail of status changes), and any relevant metadata.

Helper library

lib/browser-helpers.js provides atomic helpers that prevent session death between browser calls:

const {
  goto, evalJS, evalJSON, clickByText,
  waitFor, waitForSelector, waitForText,
  snapshotReliable, dismissModals,
  dbQuery, dbWrite,
  // Atomic helpers (prevent session death between calls)
  openAndEval, openAndEvalJSON,
  gotoAndEval, gotoAndEvalJSON,
} = require('./lib/browser-helpers');

Atomic helpers chain open/goto + eval in a single shell command to prevent session death between calls:

// Open browser + extract in one call (no session death risk)
const jobs = openAndEvalJSON(
  'https://www.linkedin.com/jobs/search/?keywords=...',
  `(function(){ ... return JSON.stringify(...); })()`,
  { session: 'my-session', headed: true }
);

// Navigate + extract in one call (browser already open)
const emails = gotoAndEvalJSON(
  'https://mail.google.com/mail/u/0/#all',
  `(function(){ ... return JSON.stringify(...); })()`,
  { session: 'my-session' }
);

Dependencies

  • Depends on onboarding (.env + DB must exist).
  • Consumed by every flow that reads or writes DB: profile, apply, news, daily.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

apply

무료

Searches for jobs on LinkedIn, filters by profile Must-haves, applies via Easy Apply, registers each application in DB.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

galiprandi/job-seeker582026년 10월 26일 업데이트

Control a dedicated browser via agent-browser (Vercel). Use when automating web apps, scraping authenticated sites, filling forms, or navigating SPAs. Do NOT use for desktop apps or API-only integrations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

galiprandi/job-seeker582026년 10월 26일 업데이트

daily

무료

Periodic routine that runs news, cleans up inbox and applies if there's no recent activity. Designed to run 1-2 times per day.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

galiprandi/job-seeker582026년 10월 26일 업데이트

dashboard

무료

Opens a local web dashboard that visualizes the job application pipeline, funnel stats, recent messages, and target company status. The agent opens it at the end of a round so the user can visually review the pipeline.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

galiprandi/job-seeker582026년 10월 26일 업데이트

memory

무료

Autonomous user preference detection, storage and injection. The agent detects preferences from conversation, saves them to Postgres, and loads active ones at the start of every flow.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

galiprandi/job-seeker582026년 10월 26일 업데이트

news

무료

Reviews job application updates from Gmail, LinkedIn and platforms. Prepares drafts, presents executive summary by priority, validates with the user and sends replies.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

galiprandi/job-seeker582026년 10월 26일 업데이트

galiprandi의 스킬 모두 보기

이 스킬의 문제 신고