← all artifacts
skillv1.0.0tested

Skill Harvester

skill-harvester

Extract reusable competencies from a working codebase or project snapshot, with recorded evidence and provenance. Use when mining a repository for transferable craft, deciding whether something should become a skill, a reference, tooling or documentation, or authoring a new skill from observed practice.

Provenance

Derived procedure. The source project remains authoritative for its own doctrine; nothing here governs it.

Source project
Skills Foundry
Snapshot
unknown — Authored during the Foundry conversion; no pre-existing commit to cite.
Source paths
  • docs/harvests/atlas-2026-09-10.md
Harvested
2026-09-10
Evidence standing
known
Note
Derived from performing the Atlas harvest, not from Atlas source. Evidence class: inference, honestly labelled.
Predecessor
unknown
Supersedes
nothing
Superseded by
unknown

Compatibility and state

Compatible targets
GenericAtlasHTC HubAtlas Harmony Hub
Runtime needs
none declared
Dependencies
none
Tests
structural-and-fixtures-passing (last verified 2026-09-10)
Content hash
pending_export
Consumers
not_searched — No activation survey has been performed across target projects.
Transformation
New skill with no external source. Procedure is the generalisation of the harvest actually performed on Atlas; its weakest evidence class is recorded in the harvest document.

Files in the artifact

  • SKILL.md
  • agents/openai.yaml
  • references/harvest-record-template.md

Agent metadata

display_name: Skill Harvester
summary: Mines a codebase for reusable competencies with cited evidence, routes each to skill, reference, tooling or docs, and never elevates interpretation into truth.
category: foundry
artifact_class: skill
includes_reference: references/harvest-record-template.md
when_to_use:
  - Mining a repository or snapshot for transferable craft
  - Deciding whether something becomes a skill, a reference, tooling or documentation
  - Authoring a new skill from observed practice
when_not_to_use:
  - Capturing a single solved problem as institutional knowledge (use Knowledge Capture)
  - Judging whether an already-authored claim is supported (use Epistemic Reviewer)

SKILL.md

Skill Harvester

Working systems contain craft that nobody wrote down. Harvesting extracts that craft into reusable procedure — without taking ownership of the source system's truth.

The chain is explicit, and every arrow is a transformation with its own provenance:

software experience → evidence → harvested competency → tested skill
                                      → versioned release → target activation

Hard rules

  • Never elevate harvested material into governing truth. A skill may say "derived from X at snapshot Y". It may never say "therefore this governs X".
  • Cite the evidence for every candidate, with its class (below). An uncited candidate is an opinion.
  • Never silently duplicate an existing skill. Search the catalog first.
  • Declare project-specific dependencies honestly. A skill needing infrastructure the target lacks is not "mostly portable"; it is incompatible, and the metadata says so.
  • The source is read-only. Harvesting never modifies what it harvests from.
  • A failed search is `searched_no_match`, not "the project has none".
  • Repetition is the signal. One occurrence is an implementation. Three across unrelated areas is a competency.

Evidence classes

Every candidate records where it came from and what kind of evidence that is. Strongest first:

ClassMeaningStrength
documented_doctrineWritten doctrine in the source — architecture docs, protocol READMEsStrong: intentional and stated
testsAsserted by a testStrong: enforced, not aspirational
observed_codeRead from implementationMedium: real, but may be accident or legacy
project_conventionStated by the project ownerMedium: authoritative on intent, not on state
inferenceThe harvester's own conclusionWeak: must be labelled as such, always
unknownNot establishedNone

Doctrine that the code contradicts is contradictory — record both sides. Do not pick the tidier one.

Procedure

  1. Bound the source. Name the project, the snapshot or commit, and the paths read. Unavailable identifiers are typed, never invented.
  2. Sweep for repetition. Look for: repeated architectural decisions; recurring review objections; the same constraint restated in several places; a shape repeated across many modules; rules enforced by tests; conventions stated by the owner.
  3. Draft candidates. For each, one sentence: "the competency of ___ , evidenced by ___ ". If the evidence half is hard to write, it is not a candidate yet.
  4. Classify the evidence for each candidate.
  5. Detect dependencies. Does the candidate assume specific infrastructure, a framework, a protocol, a schema? List them. This determines compatibility, and getting it wrong ships a skill that cannot run.
  6. Route each candidate with the disposition table below.
  7. Check for duplication against the existing catalog — by capability, not by name. Two skills that would fire on the same trigger are one skill.
  8. Consolidate. Candidates that always co-occur are one competency. This step removes more candidates than any other; expect the first list to shrink by a third.
  9. Generate the skeleton — SKILL.md with the two frontmatter keys, agents/openai.yaml, and only the optional folders actually needed.
  10. Record provenance in the catalog sidecar and in a harvest document that keeps the interpretation separate from the source.
  11. Write fixtures before declaring it done: one task it owns, one nearby task it does not, one that challenges an invariant.

Disposition table

Route toWhen
Standalone skillA distinct competency with its own trigger, its own decision procedure, and a boundary another skill would not respect
Reference in an existing skillFramework- or domain-specific detail attached to a competency that already exists
Deterministic toolingThe check is mechanical and needs no judgement. Prose would be a worse implementation of a script
Project documentation onlyTrue of one project, not transferable, no decision procedure
NothingAn implementation detail, an accident, or already-public knowledge

The commonest error is routing to standalone skill because the material is interesting. Interest is not a trigger. If no realistic task would load it in preference to an existing skill, it is a reference.

Worked example

Source: Atlas Project, snapshot `02260d7e`.

  1. Sweep. supabase/migrations/ shows 73 migrations, every one ordering CREATE → GRANT → RLS → POLICY. The owner states the same rule in project conventions. No test enforces it.
  2. Candidate. "The competency of writing Postgres migrations whose grant and policy ordering is correct by construction, evidenced by 73 consistent migrations and a stated convention."
  3. Evidence. observed_code (strong repetition) plus project_convention. Not tests — nothing enforces it, which is itself worth recording, and is why part of it became a script.
  4. Dependencies. Postgres, row-level security, a Data API where grants are not implied. Not universal.
  5. Route. Standalone skill: distinct trigger, real decision procedure, clear boundary. The purely mechanical part — ordering, missing grants, RLS without policy — routes to a script inside the skill, because prose is a bad linter.
  6. Duplication check. security-reviewer also touches RLS. Different trigger: one writes migrations, the other audits posture. Both exist; each names the other in its stop conditions.
  7. Not elevated. The resulting skill informs migration work. It does not become Atlas's migration policy — Atlas owns that.

Pressure tests

  • For each candidate, can you name the file and the class of evidence? Not "it's in the codebase somewhere".
  • Would a real task load this in preference to an existing skill? Name the task.
  • Does the candidate assume anything the target profile marks unknown or absent?
  • Is any inference presented as documented_doctrine?
  • Would activating this skill in the source project change what that project believes about itself? If yes, you have elevated interpretation into truth — stop.
  • Could two harvested skills fire on the same request and disagree?

Stop conditions

  • The source snapshot cannot be identified — record unknown and proceed, but never fabricate a commit.
  • A candidate's only evidence is inference and the material is consequential — hold it as a documented candidate, not a skill.
  • The candidate duplicates an existing skill's trigger — extend that skill.
  • Harvesting would require writing to the source — stop; sources are read-only.