ml-metacognition

Integrate feedback into model evaluation with sympy-based convexity proofs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lofibrainwav/AFO_Kingdom --skill ml-metacognition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-metacognition
Source: https://github.com/lofibrainwav/AFO_Kingdom/tree/main/skills/ml-metacognition
Command: npx skills add https://github.com/lofibrainwav/AFO_Kingdom --skill ml-metacognition

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enhances machine-learning model metacognition: a feedback loop with convexity proofs to improve self-reflection over time.

Core Features & Use Cases

  • Feedback integration: Incorporate user feedback into model evaluation.
  • Convexity proof: Sympy-based justification for convergence properties.
  • 2nd derivative optimization: Advanced optimization for performance gains.

Quick Start

result = await metacognition.run(input_batch)

Frequently Asked Questions about ml-metacognition

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How can I improve machine learning model performance through self-reflection and feedback loops?

Self-reflection optimization uses feedback integration loops with convexity proofs to enable models to analyze their own performance and iteratively improve. This Skill applies symbolic analysis via sympy and second-derivative optimization to achieve measurable convergence gains within 10 iterations.

What does convexity proof mean in the context of model optimization?

Convexity proof is a mathematical justification—generated via sympy—that guarantees an optimization landscape has no local minima, ensuring your model's improvement strategy converges reliably. This Skill provides symbolic proofs to validate that your feedback-driven adjustments move toward better performance.

Can I use second-derivative optimization to fine-tune model behavior?

Yes. Second-derivative optimization leverages curvature information to guide more precise parameter updates than first-order methods. This Skill integrates second-derivative tuning into its metacognitive feedback loop for accelerated performance gains.

How do I set up a feedback integration loop for continuous model improvement?

Feed performance metrics and user feedback into the metacognition pipeline using `await metacognition.run(input_batch)`. The Skill processes this feedback through convexity-validated optimization to produce refined model behavior over successive iterations.

Does this approach work for adaptive systems that need real-time performance tuning?

Yes. This Skill targets adaptive systems requiring continuous-improvement pipelines and model evaluation loops. Its 10-iteration convergence design and symbolic validation make it suitable for systems that must tune behavior based on live feedback.

What are the limitations of convexity-based optimization for metacognition?

Convexity assumptions hold for well-formed objective landscapes but may not apply to highly non-convex problem spaces. This Skill provides sympy-based proofs to confirm convexity in your specific context before relying on convergence guarantees.