Skill Synthesis
import { Card, CardGrid } from ‘@astrojs/starlight/components’;
Skill Synthesis
Section titled “Skill Synthesis”The third time you do the same thing, Ptah notices.
Skill Synthesis watches your sessions for trajectories — sequences of (turn count, tool calls, outcome) that look like reusable workflows. When several similar sessions cluster together (or the same trajectory succeeds 3 times), Ptah distills them into one generalized skill, runs it past a quality judge, and — once you accept it — materialises it as a permanent skill at:
~/.ptah/skills/<slug>/SKILL.mdFrom that point on, any agent can invoke it like a hand-authored skill — same trigger semantics, same on-the-fly context injection.
What’s in this section
Section titled “What’s in this section”Why it exists
Section titled “Why it exists”Hand-authored skills are great when you know up-front what’s worth abstracting. Most workflows aren’t like that — they emerge from repetition. Skill Synthesis catches those without you having to notice them yourself.
Limits
Section titled “Limits”Active skills are capped at 200 by default (skillSynthesis.maxActiveSkills). When the cap is exceeded, the weakest resident is demoted to dormant — kept on disk and in the database but skipped when skills load. Dormant skills are never deleted, and authored skills are exempt. Cosine dedup against the active set prevents near-duplicates from polluting the directory.