Repository navigation
feat(candidate-db)!: give each kind of Candidate information one home - #28
Merged
Merged
Conversation
Every kind of Candidate information now lives in one place that SKILL.md names, and every layer refers to it by id instead of copying it. - SKILL.md gains "Where information lives": Sources stay as received, analysis goes into Import reports, resume rules into the Strategy, critiques into Feedback, and the precedence Strategy, Role profile, Master resume, Tailored resume. Agents record Candidate decisions only in the Data folder, never only in their own memory (Rule 13). - Import reports start with an Analysis section for summaries and the arithmetic behind converted numbers. A Fact is one claim; implementation details stay in the Source and are reached through `at`. - `source github <id> <owner/repo> --issue N --pr N` saves issue and pull request text, comments and reviews as GitHub returns them, so Facts cite the raw material, such as `at: Pull request #12`. - Role profiles record the Strategy they were built from. `role stale` and `candidate show` report "strategy.md changed"; the Roles section the script keeps does not count. The positioning follows the Strategy. - Feedback on the Master resume: `feedback add <id> master` writes master-feedback.md. It has no company_note, shows in `feedback list` and `candidate show`, and stays out of `feedback patterns`. - Write resumes: the Strategy wins over the Role profile; a bullet may tell one story about one event; the Job's wording only renames what that event's Facts say. Resume critiques are logged as Feedback, and the Strategy rule they lead to cites the entry. - `validate` reports a Source with no Import report that answers no follow-up question, a resume in one language only, and a resume with no PDF. Breaking: existing Data folders may fail `validate`, and every Role profile built before this change reports "strategy.md changed" until it is rebuilt. The pull request describes the migration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every kind of Candidate information now has one home that
SKILL.mdnames. Each layer refers to the others by id and never copies them, so every session, whichever agent runs it, reads the same evidence and the same rules.SKILL.mdSources stay raw; Import reports hold the analysis
at.source github <id> <owner/repo> --issue N --pr Nsaves issue and pull request text, with their comments and reviews, as GitHub returns them, without summarizing.--issueand--prrepeat, and each refuses the wrong kind of number. A Fact then cites the raw material, such asat: Pull request #12.git logoutput throughsource add.Role profiles follow the Strategy
role buildrecords a digest of the Strategy's guidance inbuilt_from.role staleandcandidate showreportstrategy.md changedand give the reason. Lines in the Roles section, which the script keeps, do not count.Critiques go through Feedback
from: userand causeresume-presentation. Its Fix direction is the Strategy change it calls for, and the new rule cites the entry.feedback add <id> masterandfeedback update <id> master <entry>writemaster-feedback.md.company_note.feedback list(as· Master resume) and incandidate show.feedback patternsand Company notes leave it out, because they are about Applications.Write resumes
resume save.validatenow reports:— answered in s-…);CONTEXT.mdupdates Source, Fact, Import report, Strategy and Feedback.README.mdandREADME.zh-TW.mddescribe the same behavior.Related Issues
Fixes #26
Type of Change
Migration of existing Data folders. Nothing is deleted. Run
validate <id>androle stale <id>; together they list what a folder still needs.Sources with no Import report: run
import-reportand fill it in. For a Source that answers follow-up questions, mark those questions— answered in s-…instead.Agent-written Sources, such as summaries of a repository:
source github --issue/--prorgit logthroughsource add;fact update.The old file stays.
Agent text appended to the user's Source: move it into that Source's Import report under Analysis, so the Source holds only the user's words.
Critiques saved as interview Sources: they stay, and Strategy rules may keep citing them. New critiques go through Feedback.
Resume rules kept in an agent's memory: move them into
strategy.md, each citing the Feedback or Source it came from. Leave at most a pointer in memory.Role profiles: every profile built before this change reports
strategy.md changed. Check each positioning against the Strategy and rebuild it withrole build.Resumes in one language or without a PDF: write them again with
resume save --replace, or print them withresume pdf.Import reports without an Analysis section stay valid. Add the section the next time the report is edited.
Validation
All checks ran with a fictional Candidate (Alex Chen, c-001) in a scratch
HEADHUNTER_DATA_DIRoutside the repository. The GitHub part read this public repository's #24 and #27 withgh. 41 of 41 checks passed:import-reportstarts with## Analysis.validatereportssource s-001: it has no Import report…before the report exists.- [x] q-001: … — answered in s-002passes without a report.validate→OKonce every Source is processed.source github--pr 24→is an issue; use --issue.--issue 27→is a pull request; use --pr. A user target with--issue→need a repository.--issue 24 --pr 27saveds-004-github-codeotter0201-headhunter-agent-issue-24-pr-27.mdas agithubSource. It has the## Issue #24and## Pull request #27headings, the merge date, the description and the comments word for word.at: Pull request #27was added, andvalidate→OK.profile.mdrecordsstrategy:inbuilt_from, and a fresh profile is current.strategy.md changedinrole stale, andcandidate showshowsprofile stale: strategy.md changed.company_noteis refused.feedback add c-001 master→fb-001, andmaster-feedback.mdhasjob: master.feedback listshowsmaster fb-001 … · Master resume, andcandidate showlists the open Fix direction.feedback update c-001 master fb-001sets it to done.validate→OK; withjobchanged by hand it reportsmaster-feedback.md: job must be master.feedback addwith acompany_notestill works.feedback listshows· Fictional Corp,--company Fictionalleaves out the Master resume entry, andfeedback patternsruns.resume.zh.mdalone givesonly resume.zh.md existsandresume.zh.pdf missing. With it removed,validate→OK.claude plugin validate .andclaude plugin validate .claude-plugin/plugin.json: passed, with two warnings that were already there:CLAUDE.mdis not loaded as plugin context (documented inCONTRIBUTING.md), and the plugin has no icon.python3 -m py_compile skills/headhunter/scripts/hh.py: OK.Not run:
main. This change does not touchresume save,resume planorcheck_resume.claude --plugin-dir ..validateon a real Data folder, whichCONTRIBUTING.mdrules out.Checklist
skills/headhunter/SKILL.md,README.mdandREADME.zh-TW.mdupdated when behavior or data layout changed🤖 Generated with Claude Code