soul-refine

Refine AI outputs using cosine similarity and philosophy balance scoring.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill refines AI outputs to match the Kingdom's aesthetic and philosophical balance using vibe alignment.

Core Features & Use Cases

  • Cosine similarity: Measure and optimize vibe match.
  • Philosophy balance: Ensure alignment with truth, goodness, beauty, serenity.
  • Output refinement: Provide actionable suggestions to improve final results.

Quick Start

refined = soul_refine.refine(output="Draft sermon on Trinity Score", target_vibe="royal")

Frequently Asked Questions about soul-refine

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

FAQPage Schema
How do I align AI output with specific aesthetic and philosophical values?

Vibe alignment uses cosine similarity to measure how well your output matches a target philosophy. soul-refine scores your content against dimensions like truth, goodness, beauty, and serenity, then generates actionable refinement suggestions to close gaps between current and desired alignment.

What is cosine similarity and how does it improve output refinement?

Cosine similarity quantifies the directional match between your output and a target vibe as a numerical score. soul-refine applies this to detect misalignment in content generation and code refinement workflows, enabling precise philosophy-to-output matching rather than subjective assessment.

Can I use vibe refinement for both content generation and code outputs?

Yes. soul-refine handles content generation, code refinement, and decision-support workflows. It applies the same cosine similarity and philosophy balance mechanics across domains, making it suitable wherever output-to-values alignment matters.

How does soul-purity scoring work in output refinement?

Soul-purity scoring evaluates how well your output embodies the target philosophy across multiple dimensions. soul-refine combines this scoring with philosophy balance calculations to identify which aspects of your output need adjustment and suggest concrete improvements.

What happens if my output doesn't match the target vibe?

soul-refine detects misalignment through cosine similarity and philosophy balance analysis, then returns specific refinement suggestions. These actionable recommendations guide you to revise content or code to better match your target aesthetic and philosophical values.

Do I need special prerequisites or input formats to use vibe alignment?

No special dependencies are required. soul-refine accepts your output as a string and a target vibe identifier, then applies cosine similarity matching and philosophy balance scoring without additional setup or input preparation steps.