Graduation Manager
The Graduation Manager automatically promotes external skills to local trusted skills based on proven adoption metrics. When an external skill demonstrates consistent success (85%+ confidence, 5+ uses, 80%+ success rate), it becomes eligible for graduation.createGraduationManager
Creates a graduation manager instance that handles skill lifecycle management.Path to the skill tracker SQLite database (reserved for future use)
Directory to save graduated skill files
Returns an object with graduation detection, execution, history, and statistics methods.
GraduationCandidate Type
Represents a skill eligible for graduation from external to local.Graduation Criteria
Skills must meet all three thresholds to graduate:- Minimum Confidence: 0.85 (85%)
- Minimum Usage Count: 5 uses
- Minimum Success Rate: 0.80 (80%)
Methods
detectCandidates
Detect skills eligible for graduation from aggregated statistics.Aggregated per-skill statistics keyed by skill name. Each skill entry should include:
source: “external” | “mental-hint” | “local”confidence: number (0-1)usage_count: numbersuccess_count: numberfirst_used: ISO-8601 timestamplast_used: ISO-8601 timestampmetadata: optional metadata object
Array of graduation candidates sorted by confidence (highest first). Excludes:
- Already graduated skills
- Local skills
- Skills not meeting criteria thresholds
graduateSkill
Graduate a single skill candidate to a local SKILL.md file.The graduation candidate to promote
Absolute path to the generated skill file, or
null on failure.- Writes a SKILL.md file with YAML frontmatter and graduation metadata
- Appends entry to
graduation_log.json - Sets graduated skill confidence to 0.80 (local)
autoGraduateAll
Automatically graduate the top candidates without user prompting.Aggregated per-skill statistics
Maximum number of skills to graduate
Array of paths to graduated skill files
getGraduationHistory
Retrieve the full graduation history.Array of graduation log entries. Each entry contains:
skill_name: stringgraduated_at: ISO-8601 timestampgraduated_from: “external” | “mental-hint”usage_count: numbersuccess_rate: numberfinal_confidence: 0.80skill_path: absolute path to skill file
statsSummary
Get a summary of graduation statistics.Aggregated per-skill statistics (used to count pending candidates)
Object with graduation statistics:
total_graduated: numberpending_candidates: numbergraduation_rate: string (percentage)recent_graduations: array of last 5 graduation entries