Skill Candidate Harvester
Use this skill when repeated workflows need to move beyond task-local notes and become structured skill candidates or drafts.
Preconditions
- The target environment should have:
- tracked repos listed in
$CODEX_HOME/memories/durable-knowledge/repos.yaml - candidate storage under
$CODEX_HOME/memories/durable-knowledge/skill-candidates/ - draft storage under
$CODEX_HOME/memories/durable-knowledge/skill-drafts/
- tracked repos listed in
- If those paths are missing, seed them first from this skill's
assets/templates.
Read first
$CODEX_HOME/memories/durable-knowledge/repos.yaml- the candidate schema in
assets/skill-candidate.template.yaml - each tracked repo's:
AGENTS.mddocs/work/.current- recent task
meta.yamlfiles - recent task
learning-log.mdfiles - recent task
status.mdfiles, especiallyPotential Skills knowledge/changelog.md- relevant pitfalls, checklist, or verification docs when evidence needs confirmation
Workflow
- Load the tracked repo list.
- use
assets/repos.template.yamlonly as a seed, not as the live registry
- use
- Collect candidate evidence.
- triaged or promoted entries from
learning-log.md - explicit
skill_candidatesfrom task metadata Potential Skillssections in task status files- repeated durable findings in changelogs, pitfalls, or checklists
- triaged or promoted entries from
- Merge by workflow identity.
- prefer a stable
pattern_keyfirst when present - otherwise merge by stable skill-style name plus normalized summary similarity
- merge evidence instead of creating near-duplicates
- prefer a stable
- Update or create candidate records under
$CODEX_HOME/memories/durable-knowledge/skill-candidates/.- use
assets/skill-candidate.template.yaml - keep
pattern_keys,trigger_types,source_entries,recurrence_count,source_repos,source_tasks, validation, and failure modes current
- use
- Decide whether a draft should be created.
- require at least two independent tasks or two repositories of evidence
- require at least one validation path
- require at least one pitfalls or edge-case record
- require stable steps that no longer depend on large amounts of one-off context
- When the threshold is met:
- create or refresh a draft under
$CODEX_HOME/memories/durable-knowledge/skill-drafts/<skill-name>/ - link back to source repos, source tasks, and verification state
- hand off to
skill-creatorfor the final installed skill
- create or refresh a draft under
- If the workflow is already an installed skill:
- mark the candidate
installed - update the global skills changelog instead of generating a duplicate draft
- mark the candidate
Hard rules
- Do not create multiple candidates for the same workflow just because wording differs.
- Do not promote a candidate to a draft without evidence, validation, and at least one failure-mode record.
- Do not treat manual enthusiasm alone as enough for draft promotion.
- Do not overwrite source-repo nuance; keep blocked or partial validation states intact.
- Do not install a skill directly from this skill; draft first, then use
skill-creator.
Bundled assets
assets/skill-candidate.template.yamlassets/repos.template.yamlassets/global-memory/
Deliverables
- Tracked repos are aggregated into candidate evidence.
- Candidate files stay normalized and deduplicated.
- Mature candidates become drafts with clear provenance.
- Installed skills remain linked back to their source evidence.