con un clic
knowledge-check
// Guides structured knowledge base updates after implementation work
// Guides structured knowledge base updates after implementation work
| name | knowledge-check |
| description | Guides structured knowledge base updates after implementation work |
Guides the agent through structured knowledge base updates after completing implementation work.
Invoke this skill (via /knowledge-check) when:
Do NOT invoke for:
Ask: "Did I learn anything new about THIS PROJECT that future sessions would benefit from?"
If tmp-opencode/knowledge-candidate-report.md exists, read it before deciding; process notes require user acceptance unless the current task explicitly asked to maintain the knowledge base.
Categories of worth-recording knowledge:
lessons-learned.mdAGENTS.md (root, kubejs/, or CDC-mod-src/)kubejs/AGENTS.md UNIQUE STYLES sectionlessons-learned.md or relevant AGENTS.md| Knowledge Type | Target File | When |
|---|---|---|
| Cross-module convention | Root AGENTS.md | Applies to entire project |
| KubeJS recipe/dev pattern | kubejs/AGENTS.md | KubeJS-specific |
| Java mod pattern | CDC-mod-src/AGENTS.md | CDC-specific |
| Bug fix / pitfall / history | lessons-learned.md | Preventive knowledge |
| New utility function | kubejs/AGENTS.md UNIQUE STYLES | Developer reference |
Rules for updating knowledge base files:
ALLOWED actions (knowledge update only):
AGENTS.md files (root, kubejs/, CDC-mod-src/)lessons-learned.md.agents/skills/ or .opencode/plugins/NOT ALLOWED (when invoked as knowledge check):
If applying or rejecting a candidate report, run scripts/resolve-knowledge-candidate.ps1 -Status applied|rejected after the decision so temporary process notes do not repeat.
Output this block at the end:
📝 Knowledge Check
- Learned: [1-3 items or "nothing significant"]
- Updated: [file path or "no update needed"]
- Reason: [one sentence]
If nothing significant was learned, output ONLY: 📝 Knowledge: no update needed
Before saving any edit to AGENTS.md or lessons-learned.md, verify ALL of these:
If any check fails, fix before saving. This self-check is the primary mechanism ensuring knowledge base quality over time.