agentsclimarketplace

Ai knowledge harvester

Skill jackzhaojin/ai-builder-kit/skills/ai-knowledge-harvester

Harvests AI documentation into a centralized private knowledge repo using a project-first taxonomy. Two modes: (1) Repo scan - collects AI docs (specs, prompt logs, CLAUDE.md files, gap analyses, kickoff prompts, agent configs) from a source repo. (2) Ad-hoc ingest - captures pasted content exported from ChatGPT, Claude web, Clo.ai, or any AI interface. Triggers on phrases like 'harvest AI docs from', 'move my AI docs to', 'collect my prompt logs', 'sync AI docs to knowledge repo', 'organize my ai-docs folder', 'save this conversation', 'store this export', 'add this to my knowledge repo', or any request to consolidate AI documentation across repositories and AI tools into a single searchable private store. Also trigger when the user pastes a large markdown block that looks like an AI conversation export or asks to file away content from an AI session.From its SKILL.md

Install
npx -y skills add jackzhaojin/ai-builder-kit --skill ai-knowledge-harvester

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

8.5 KB, as published. Nobody here has run it

AI Knowledge Harvester

Collect AI documentation into a centralized private ai-knowledge repository. Two modes, same output: classified, frontmattered markdown in a two-tier project taxonomy.

Capabilities

CapabilityDescription
Repo scanScan a source repo for AI docs (CLAUDE.md, specs, prompt logs, gap analyses, kickoff prompts) and copy them into the knowledge repo
Ad-hoc ingestCapture pasted content from ChatGPT, Claude web, Clo.ai, Copilot, or any AI tool and file it into the knowledge repo
Monorepo supportTwo-tier taxonomy: {github-repo}/{sub-project} — handles monorepos and simple repos alike
Auto-classifyClassify documents as spec, prompt-log, working-doc, or harness-prompt based on content signals
FrontmatterAdd standardized YAML frontmatter to every document for future indexing
README manifestsCreate/update README.md at each folder level (1 level deep only) with Last Modified dates, sorted newest-first
Safe stagingStage changes for review — never commit or push automatically
Non-destructiveSource files are kept in place by default — harvest is a copy, not a move

Parameters

ParameterRequiredDefaultDescription
source_repoMode 1 only—Path to the repo with AI docs
knowledge_repoNo{source_repo}/../ai-knowledgePath to the private ai-knowledge repo
project_nameNoGitHub remote repo nameTop-level project (the GitHub repo name)
sub_projectNoSame as project_name for simple repos, or detected sub-project name for monoreposSecond tier in taxonomy

For Mode 2 (ad-hoc), also determine doc_type, title, source_tool, and why_private from content or by asking the user. See references/ad-hoc-ingest.md.

Document Types

TypeFolderPrioritySignals
specspecs/Primary"specification", "requirements", "architecture", "decisions" — stable reference docs
prompt-logprompt-logs/PrimarySession transcripts, conversation exports, "→ Response / → Action" patterns
working-docworking-docs/PrimaryGap analyses, kickoff prompts, CLAUDE.md, AGENTS.md, operational guides. Default when uncertain.
harness-promptharness-prompts/SecondaryAI-generated prompts, agent configuration templates, harness prompt files in src/prompts/. Optional — harvest but deprioritize.

Two-Tier Taxonomy

The primary key is always the GitHub repo name. Within it, a second tier for sub-projects.

  • Simple repo: {repo}/{repo}/ — repeat the name (e.g., ai-builder-kit/ai-knowledge-harvester/)
  • Monorepo: {repo}/{sub-project}/ — one folder per sub-project (e.g., jack-dev-server-configs/generic-harness-v1/)
ai-knowledge/
├── README.md
├── projects/
│   ├── README.md
│   ├── {github-repo}/                    # Top tier: GitHub repo name
│   │   ├── README.md                     # Repo overview, why private, sub-project list
│   │   └── {sub-project}/               # Second tier: sub-project (or repo name repeated)
│   │       ├── README.md                 # Sub-project overview, type folder list
│   │       ├── specs/
│   │       │   ├── README.md
│   │       │   └── YYYY-MM-DD-{seq}-{slug}.md
│   │       ├── prompt-logs/
│   │       │   ├── README.md
│   │       │   └── YYYY-MM-DD-{seq}-{slug}.md
│   │       ├── working-docs/
│   │       │   ├── README.md
│   │       │   └── YYYY-MM-DD-{seq}-{slug}.md
│   │       └── harness-prompts/          # Optional — only if harness prompts exist
│   │           ├── README.md
│   │           └── YYYY-MM-DD-{seq}-{slug}.md
│   └── {another-repo}/
│       └── ...
└── shared/
    ├── README.md
    └── skills/

Each README describes its folder's purpose and lists immediate children only — never recurses deeper. For full README templates and frontmatter spec, see references/taxonomy.md.

Core Workflow

Mode 1: Repo Scan

  1. Validate source_repo and knowledge_repo paths exist
  2. Determine project name from GitHub remote, detect sub-projects (monorepo or simple)
  3. Discover AI docs — scan ai-docs/, local-ai-docs/, local-only/, local/, nested subdirectories
  4. Present classified list to user, wait for confirmation
  5. Create project folder structure, write files with frontmatter
  6. Create/update README.md files at each level (1 level deep)
  7. Stage and commit changes — never push
  8. Source files stay in place — only offer cleanup if the user explicitly asks

For detailed steps, scan patterns, and exclusion rules: see references/repo-scan.md.

Mode 2: Ad-Hoc Ingest

  1. Read pasted content — detect source tool, classify type, identify project + sub-project
  2. Ask the user if project, sub-project, type, or title is ambiguous — don't guess
  3. Clean up formatting, prepend frontmatter with source_tool field
  4. Write to correct type folder, update READMEs, stage and commit — never push

For detailed steps, source detection hints, and example interactions: see references/ad-hoc-ingest.md.

Edge Cases

SituationAction
File already exists in destinationCompare dates — newer overwrites (with note), older skips. If dates are equal, keep the larger (more comprehensive) file. Log every collision decision
Ambiguous file typeDefault to working-doc, tell the user
Monorepo with sub-projectsUse two-tier: {repo}/{sub-project}/ — detect sub-projects from directory structure
Simple repo (not a monorepo)Repeat repo name: {repo}/{repo}/
Multiple docs on same dateUse sequence numbers in filename (01, 02) to preserve chronological order
No git history for dateUse today's date, add date_note in frontmatter
Large markdown files (up to 50MB)Harvest them — storage is free. Only skip files >50MB
Binary files / images / PDFsSkip, mention them, ask if user wants to handle separately
Pasted content with no contextAsk project and type — don't assume
Mixed-topic pasteAsk: file as one doc or split?
Non-markdown pasteConvert to clean markdown, preserve substance
"Save this conversation"Summarize current session as prompt-log or working-doc, ask project
local-ai-docs/ found in repoHarvest everything in it — this folder exists specifically for AI docs awaiting harvest. Recommend adding to .gitignore if not already ignored

Safety Rules

  • Never push. Stage and commit, but never push to remote.
  • Never modify source files during harvest. Read-only access to source repos during harvest.
  • Never delete source files unless explicitly asked. Harvest is a copy, not a move. Source files stay in place by default.
  • Never silently overwrite. Report every file action, especially collision resolutions (log both versions' dates and sizes).
  • Ask when uncertain. Project, type, and title must be confirmed when ambiguous.

Why This Skill Exists

For the design rationale — why GitHub+markdown over Notion/CosmosDB, why project-first taxonomy, the open source philosophy, and what comes next — see references/spirit.md.

Keep looking

Skills are one crate of 628,971. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.