leopu00/job-hunter-team/db-update
Claude Code and agent skill by leopu00/job-hunter-team
- community
Checking that the SKILL.md file is still in the repository.
Update existing records in the JHT DB (positions / applications). Use it to promote positions to checked/excluded, write Critic score/verdict, mark applications as sent, update salary, last-checked, etc. Always after a `db-query` that confirms the current record state.
Install
npx vskill@latest install leopu00/job-hunter-team/db-updateSKILL.md
The same SKILL.md was published earlier as leopu00/job-hunter-team/db-update.
db-update — record updates on the JHT DB
Wrapper at /app/shared/skills/db_update.py. Updates specific fields on existing records. Does not create records — for that, see db-insert.
General pattern
Tables: position, application.
Positions
Applications
Position state transitions are auto-logged (bug #14)
Every call to db_update.py position <id> --status <s> that actually changes positions.status inserts a row in position_state_transitions with from_state, to_state, ts, by_agent (from JHT_AGENT_NAME), and the --notes you passed (if any). Same goes for the initial db_insert.py position (logged as NULL → 'new').
You don't have to do anything — the wrapper handles it. Don't bypass it with raw SQL: a python3 -c "import sqlite3; UPDATE positions SET status=..." workaround skips the transition log and makes throughput / funnel charts undercount.
Maintenance checks leave a history (--action / --outcome)
last_checked and last_open_check hold only the latest date: every pass overwrites the previous one, so nothing records how many times a position was looked at, or how often a check failed to conclude anything.
Pass --action on maintenance work and the check is kept in maintenance_events, one row per changed field — or one row anyway when nothing changed, because knowing a position was looked at is half the point.
--action: liveness_check · geocode · logo_fetch · website_fetch · jd_refresh · exclude · rescore
--outcome: confirmed_open · confirmed_closed · `inconclusive` · updated · unchanged · unreachable · skipped · failed. Omit it and it is derived from whether anything changed.
--evidence-url / --evidence-code / --evidence-hash are optional context: a 403 that keeps recurring tells you about an authwall, not about a dead posting.
⛔ An unresolved check may not close a position. With--outcomeinconclusive,unreachable,skippedorfailed, writing--is-open falseor--status excluded|expiredis refused with exit 1.Not knowing is not the same as knowing it expired, and a position binned ona doubt is an opportunity lost in silence — leave it alive, the check staysin the history and it will be retried. Everything else still goes through:notes, coordinates, summaries. Reopening is never blocked.
Read it back with db_query.py check-history <id>, which also reports the streak of consecutive unresolved checks — that is a source problem to report, not a position to discard.
Single-writer gate on applications.status='ready' (bug #21)
applications.status='ready' is set exclusively by the Scrittore in application-flow Step 7, only after Critic PASS on the 3rd round. This is the gate that makes the CV visible on the user's /ready dashboard. Other agents:
- Critic: writes
critic_verdict+critic_scoreonly. Neverstatus. - Capitano: never writes
applications.status. May read it. - Mentor / Assistente: read-only on
applications.
Without this gate, the Capitano can report "12 ready" verbally while the DB still shows 0 — exactly the divergence that bug #21 fixed.
Safety rules
- Read first. Run
db-query position <id>(orapplication) to see the current state before writing. Blind overwrites produce inconsistent records. - Status flow is forward-only. Legitimate transitions:
new → checked → scored → writing → ready → applied → response.excludedis reachable from any step but no step ever moves backward. Don't reverse. - `now` timestamp. The wrapper converts the literal string
nowinto the current timestamp. Don't pass$(date)— parsing is handled Python-side. - Exclusion tags in `--notes`. When marking a position
excluded, prefix the notes with one of the canonical tags:[LINK_MORTO]·[SCAM]·[GEO]·[LINGUA]·[SENIORITY]·[STACK]. Same taxonomy used by the Analyst (seeagents/analista/analista.mdREGOLA-06).
Don't use it for
- Reads: use `db-query`
- Creating records: use `db-insert` (only the Scout INSERTs positions)
- Schema changes: never run raw
sqlite3against the tables — it bypasses foreign keys and Next.js's WAL journaling
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/_skills/db-update/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leopu00/job-hunter-team/db-update)