ronjunevaldoz/kmp-agent-skills/kmp-skill-harvester
Claude Code and agent skill by ronjunevaldoz/kmp-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Reads docs/lessons/*.md files from one or more consumer KMP projects and proposes concrete amendments to the source skills in kmp-agent-skills. Use this skill when the user wants to incorporate consumer feedback into the skills collection, when lessons have accumulated in a project and need upstreaming, or when running a skills governance review. Produces a structured amendment report and optionally drafts the actual skill diffs. Trigger when the user says "harvest lessons", "upstream the lessons", "incorporate feedback", "update skills from consumer projects", or "skills review". Also trigger proactively when you see a docs/lessons/ directory with unprocessed files.
Install
npx vskill@latest install ronjunevaldoz/kmp-agent-skills/kmp-skill-harvesterSKILL.md
The same SKILL.md was published earlier as ronjunevaldoz/kmp-agent-skills/kmp-skill-harvester.
When to Use This Skill
Use when you need to:
- Read accumulated
docs/lessons/*.mdfrom a consumer project and propose skill amendments - Run a cross-project review to find recurring patterns across multiple lessons
- Draft actual diffs to skill SKILL.md or references/ files for review
- Identify which skills have the most consumer-reported gaps or corrections
Trigger keywords: harvest lessons, upstream lessons, incorporate feedback, update skills from projects, skills review, skill amendments, process lessons, consumer corrections, skill training, feedback loop, process lesson issues, triage lesson reports, harvest GitHub issues.
Freshness rule: recheck kmp-expert and the source skill's changelog before proposing amendments — the gap may already be fixed in a recent release.
Recommendation First
Run scripts/harvest_lessons.py first to parse and group all lessons, then review the report manually against the source skill before proposing any diff.
Why: the script catches malformed frontmatter, duplicate findings, and already-resolved gaps faster than manual review. The manual pass catches nuance the script cannot — whether a lesson is project-specific or truly generalizable.
Input Sources
Lessons reach the harvester through two paths:
| Source | How | Who | |
|---|---|---|---|
docs/lessons/*.md | Consumer writes a structured markdown file in their own project; we run the harvester against their repo | Developers with local access to the consumer project | |
GitHub issue (lesson label) | Consumer files a Lesson Report issue on this repo | Any external user — no repo access needed |
Both paths produce the same fields (skill, severity, type, what broke, correct pattern, evidence) and feed into the same amendment flow.
Fetching open lesson issues
Treat each lesson issue the same as a docs/lessons/*.md file — apply the same filter criteria (Step 2) before drafting any amendment. Close the issue with a comment referencing the skill changelog entry once the amendment is applied.
Harvest Flow
Step 1 — Collect lessons
The script:
- Finds all
docs/lessons/*.mdunder each project root - Parses YAML frontmatter (
skill,date,severity,type) - Groups findings by target skill
- Flags malformed files and unknown skill references
- Produces a grouped report ordered by severity
Step 2 — Filter before amending
Not every lesson warrants a skill change. Apply this filter before drafting any diff:
| Lesson type | Action | |
|---|---|---|
correction (high severity) | Always amend — add to error-patterns or anti-patterns | |
correction (medium/low) | Amend if it would prevent a real mistake; skip if project-specific | |
gap (high severity, fits existing skill) | Add a new section or cross-skill note | |
gap (high severity, new domain) | Propose a new skill — name it kmp-<topic> | |
gap (medium/low) | Add a note in "Related Skills" or defer | |
better-pattern | Amend only if the improvement is general, not project-specific | |
deprecation | Always amend — stale references mislead every consumer | |
confirmation | No amendment needed; record as evidence the skill is working |
Key question: would this lesson have helped a different team on a different project? If yes, amend. If it only makes sense with this project's constraints, skip or add a note in the skill's "Common Anti-Patterns" table with a caveat.
Step 3 — Read the source skill
Before drafting any diff, read the current SKILL.md and its references/ for the target skill. The lesson may already be addressed in a recent update. Check last-updated in the frontmatter and the Changelog section.
Step 4 — Draft amendments
For each lesson that passes the filter, produce one of:
A) New error-pattern entry (for correction type):
Add to references/error-patterns.md and cross-reference in the "Common Anti-Patterns" table in SKILL.md.
B) New section or subsection (for gap type, fits existing skill): Add the missing guidance directly to SKILL.md under the relevant heading, or create a new references/ file if the content is large (>50 lines).
E) New skill proposal (for gap type, new domain — no existing skill covers it):
The suggested name must start with kmp-. Never suggest a bare topic name without the prefix.
C) Version/API update (for deprecation type): Update the version reference and add a freshness note if one is missing.
D) Anti-pattern table row (for better-pattern type): Add a row to "Common Anti-Patterns" contrasting the old and new approach.
Step 5 — Present the proposal
Show the user a summary before touching any skill file:
Only apply changes after explicit confirmation.
Step 6 — Apply and update changelog
For each amended skill:
- Apply the diff to SKILL.md or the relevant references/ file
- Bump
last-updatedin frontmatter - Add a changelog entry:
| YYYY-MM-DD | Harvested from <project>: <summary> |
Then commit: docs(skills): harvest lessons from <project-name>
Bundled Script
scripts/harvest_lessons.py— parses docs/lessons/, groups by skill,
validates frontmatter, produces a text or JSON report.
Script usage
Amendment Patterns
Correction → error-patterns.md
Gap → new subsection
Deprecation → inline version bump + freshness note
Common Anti-Patterns
| Anti-pattern | Rule | |
|---|---|---|
| Amending a skill for a project-specific constraint | Only amend when the lesson generalizes across projects | |
| Amending before reading the current skill | The lesson may already be addressed; always read first | |
| Applying amendments without user confirmation | Always show the harvest report and get explicit approval | |
| One giant amendment per skill | One diff per lesson — easier to review and revert | |
| Skipping the changelog entry | Every amendment needs a dated changelog entry so consumers know when guidance changed |
Testing
The harvester is a document-analysis and diff-generation tool, not runtime code. Validation is output-driven:
- Run the bundled harvest script against a sample
docs/lessons/directory and verify the report lists only findings that match the configured filter thresholds - Check that each proposed amendment in the report references a real
skilldirectory name - Verify the
amendment_typefield is one of:add_section,update_section,add_example,add_anti_pattern,add_version_note,create_skill - For
create_skillproposals: the suggested skill name must start withkmp- - Confirm the report excludes lessons already marked
applied: true
Run python3 skills/kmp-audit/scripts/audit_skills_repo.py . to catch naming and line-limit violations in harvested output files.
Output Style
When running a harvest, respond in this order:
- State how many lessons were scanned and how many findings passed the filter threshold
- Show the harvest report (grouped by skill, then by amendment type)
- For each HIGH-severity finding, include the proposed diff inline
- End with a summary:
N amendments proposed, M skills affected
Do not narrate what each amendment means unless the user asks. The report is the primary output.
Related Skills
kmp-lessons— consumer-side skill for writing the lesson
files this harvester reads
kmp-audit— run after harvesting to verify the amendments
were applied correctly and no new gaps were introduced
kmp-project-docs-maintainer— owns PLAN.md and CHANGELOG
in the skills repo; coordinate when a harvest produces a significant update
Changelog
| Date | Change | |
|---|---|---|
| 2026-06-26 | Added GitHub Issues as a second input source alongside docs/lessons/. Added lesson_report.yml issue template. | |
| 2026-06-26 | Initial release — harvest flow, filter criteria, amendment patterns, bundled script. |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kmp-skill-harvester/SKILL.md
Popularity
- 7-day trend score
- 5
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/ronjunevaldoz/kmp-agent-skills/kmp-skill-harvester)