leopu00/job-hunter-team/application-flow
Claude Code and agent skill by leopu00/job-hunter-team
- community
Checking that the SKILL.md file is still in the repository.
DB + filesystem contract every Scrittore follows when taking a position from `scored` (≥50) to `ready`/`excluded`. Three gates BEFORE writing a single line of CV (anti-rewriting, anti-collision, link verification), one canonical path for deliverables, one final gate after the 3rd Critic round. Skipping any of these produces duplicate work, overwrites another Writer's claim, or — worst — pushes an `excluded`-grade CV to the user as `ready`. Owned by the Scrittore.
Install
npx vskill@latest install leopu00/job-hunter-team/application-flowSKILL.md
The same SKILL.md was published earlier as leopu00/job-hunter-team/application-flow.
application-flow — claim, write, gate
The Writer touches only two areas of the DB:
positions.status(writing → ready | excluded)applications(INSERT + UPDATE via UPSERT)
Everything else is off-limits: never scores, companies, position_highlights, positions.notes (Analyst territory), positions.applied (Capitano/user only). T09 + scrittore role boundary.
Step 1 — Pull the next position
Priority: score ≥ 70 first, then 50-69 descending. The script already orders.
Step 2 — Anti-rewriting gate (MUST run before claim)
A position whose Critic verdict is already set is FINAL — never re-review.
Exit codes:
0→ no application yet, or application without verdict → proceed to Step 3.1→critic_verdictalready set → SKIP ABSOLUTE, the Critic's vote is final.
⚠️sqlite3CLI is NOT installed in the container. Always usedb_query.py. Neverpython3 -c "import sqlite3 ..."workarounds — they bypass the script's invariants.
Step 3 — Anti-collision claim
Verify the position is not already claimed by another Writer, then claim it atomically by flipping the status.
Optional but recommended: announce the claim to peers via tmux so they don't even start the gate sequence on the same ID.
Anti-collision contract details: agents/_manual/anti-collision.md.
Step 4 — Link verification
A JD that died between Phase 2 (Analyst) and now should NOT consume Critic budget. Two-level check:
If match → mark excluded and exit:
Level 2 (only if Level 1 inconclusive) — fetch MCP, look for "No longer accepting" / "applications closed" in the rendered DOM.
Step 5 — INSERT the application row + write the CV
After link is valid, create the application row. Always via `db_update.py application` (UPSERT) — never raw python3 -c "import sqlite3 ... INSERT INTO applications ...".
⚠️ Never pass the literal string'now'as a timestamp value to a hand-rolled SQL — it gets stored as the string"now"instead of an ISO timestamp. The wrapper handles--written-at nowcorrectly; the wrapper is the only safe path.
Then write the CV (skill cv-structure) → generate PDF → run critic-loop.
Step 6 — Path discipline (T11) + unique naming (bug #25)
Final deliverables MUST live under $JHT_USER_DIR, NEVER under $JHT_AGENT_DIR. Filename must include `position_id` so 2+ openings at the same company don't overwrite each other:
| Artifact | Path | |
|---|---|---|
| CV markdown | $JHT_USER_DIR/cv/CV_<Candidato>_<position_id>_<CompanySlug>_<TitleSlug>.md | |
| CV PDF | $JHT_USER_DIR/cv/CV_<Candidato>_<position_id>_<CompanySlug>_<TitleSlug>.pdf | |
| Cover Letter (only if asked) | $JHT_USER_DIR/allegati/CoverLetter_<Candidato>_<position_id>_<CompanySlug>.{md,pdf} |
<Candidato>=Nome_Cognomefrom profile.<position_id>=positions.id(integer, monotonic, unique).<CompanySlug>= company lowercased, non-alphanumeric →-. Es.canonical,bending-spoons.<TitleSlug>= title lowercased + truncated to ~30 chars. Es.observability,junior-ubuntu.
Example for 2 Canonical openings (bug #25 case):
Before bug #25 fix both saved as CV_MarioRossi_Canonical.pdf → second overwrote first → DB had 2 application rows pointing to the same file → silent data corruption visible only when the user opened the PDF and read content from the other application.
When recording the path in the DB (--cv-path, --cv-pdf-path), record the $JHT_USER_DIR/... path. Never a path under $JHT_AGENT_DIR (that's scratch — see workspace below).
Step 7 — Final gate (after critic-loop reaches round 3)
The critic-loop skill records each round's score; here you persist the verdict, flip the application status, and align the position status.
⚠️ Single-writer rule (bug #21).applications.status='ready'is set only here, by you, after Critic PASS. The Critic never writesapplications.statusdirectly — its only output iscritic_verdict+critic_score. You own the final transition.
`--critic-notes` is USER-FACING — it renders under the candidate's Application card with the same markdown as the Scorer's rationale, so write it that way (scorer RULE-09), never the telegraphic one-liner below:
- In the user's language (RULE-T14 lists "critic feedback" as user-locale). The review file is English — rephrase it for the candidate; don't leave it English when the team language isn't.
- Markdown talking TO the candidate: lead with the verdict and how the score moved across the 3 rounds in words, then
**bold**the decisive points, a couple of pro/con bullets, one sparing emoji. Two short paragraphs — no wall of text, no keyword dump. - No internal jargon — never rule codes (
T10,RULE-*), tool names (WeasyPrint/pandoc/typst) or session ids. - Real newlines via
$'...\n...'(a literal\nprints as text). Build it once before the gate:
The applications.status='ready' promotion is what makes the CV visible on the user's /ready dashboard. Skipping it leaves the row in 'draft' forever — Capitano reports a ready count that the DB and the dashboard don't agree with.
Then notify Capitano with a [REPORT] (skill tmux-send).
Workspace — tools/ + tmp/, housekeeping at boot (T12)
Your $JHT_AGENT_DIR has 2 canonical subdirs created by the launcher:
| Subdir | What | Lifetime | |
|---|---|---|---|
$JHT_AGENT_DIR/tools/ | helper scripts you wrote for yourself (one-off JD parsers, etc.) | as long as useful; audit each boot | |
$JHT_AGENT_DIR/tmp/ | scratch: downloaded JDs, draft CV revisions between rounds | wiped at boot if older than 7 days |
Boot housekeeping (FIRST step in your loop, before Step 1):
Repeat every ~6h of continuous run or every ~50 main-loop iterations. NOT inside a tight loop — costs FS calls.
🚫 Out of bounds: neverfind -deleteoutside$JHT_AGENT_DIR/tmp/. Never wipe$JHT_USER_DIR(deliverables), never wipe sibling agents' workspaces. T12.
Hard rules
- Anti-rewriting before claim, always. Skipping Step 2 means re-running the Critic on a finalised application = wasted Opus/Sol tokens and possibly overwriting a final verdict.
- Claim before write. A CV written without claim risks two Writers producing parallel CVs for the same position.
- Path under `$JHT_USER_DIR/cv/`, never `$JHT_AGENT_DIR/`. The user looks under
$JHT_USER_DIR; CVs scattered in agent workspaces are invisible to them. T11. - No raw SQL. Always
db_query.py/db_update.py/db_insert.py. The wrappers enforce invariants the team relies on. - No git. No
git add, nogit commit, nogit push(T02).
Anti-patterns
- ❌ Skipping Step 2 (anti-rewriting) "because the position looks fresh" — exit 1 means the Critic already voted, never invisible.
- ❌ Claiming a position then writing the CV under
$JHT_AGENT_DIR/cv/— the user can't see it; the path in the DB is wrong; T11 violation. - ❌
python3 -c "import sqlite3; INSERT INTO applications ..."— bypasses UPSERT logic, garbage data in the DB. - ❌ Passing
'now'as a literal string when not using the wrapper — stored as string instead of ISO timestamp. - ❌ Touching
positions.notes(Analyst's column) — role boundary violation, breaks Analyst's structured fields. - ❌ Setting
positions.appliedfrom here — only Capitano or user can flip that flag.
See also
cv-structure— what to write between Step 5 andcritic-loop.critic-loop— the 3-round review that produces the final score for Step 7.agents/_manual/anti-collision.md— full multi-Writer coordination contract.agents/_manual/db-schema.md—applicationscolumns + role boundaries.agents/_team/team-rules.mdT11 (deliverables path) + T12 (workspace housekeeping).
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/application-flow/SKILL.md
Popularity
- Repository stars
- 53
- Repository forks
- 8
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/application-flow)