crystallize
Skill112 starsChanged 2 months agoMITView on GitHub
Distils repeating patterns from session logs and lessons.md into draft skill files. Run after ≥10 sessions to extract durable knowledge. Output: draft skills/ files + promotion report.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- YAHU2024/claude-skillstheir own version, first seen Oct 13, 2026
- ratacat/ratacats-skillstheir own version, first seen Jul 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ratacat/ratacats-skills★ 9same name
- YAHU2024/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aesthetic-instrumentSkill
- anti-patternsSkill
- anydesignSkill
- archetype-review-baseSkill
- brainstormingSkill
- build-speedSkill
- codex-hostSkill
- committed-aestheticSkill
- cost-modelSkill
- decision-evalSkill
- deploy-landedSkill
- discoverySkill
- done-blockedSkill
- great_ctoSkill
- lifecycle-messagingSkill
- migration-ready-schemaSkill
- observability-baselineSkill
- opportunity-solution-treeSkill
- outcome-roadmapSkill
- pm-planningSkill
- pre-mortemSkill
- product-economicsSkill
- prose-styleSkill
- quant-validationSkill
- secrets-rotationSkill
- signing-preflightSkill
- skeptical-triageSkill
- stack-baselineSkill
- test-strategySkill
- ui-ux-pro-maxSkill
- vertical-onboardingSkill
- verticalsSkill
- well-architectedSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
If SESSION_COUNT is 0, tell the CTO: "No session logs found in .great_cto/logs/.
- Very specific: line 57
If SESSION_COUNT < 10, tell the CTO: "Only {N} sessions found.
- Distinctive: line 80
Wait for the agent to complete before proceeding to Step 3.
- Distinctive: line 86
After the agent completes, print:
- Distinctive: line 109
After emitting the report, write the marker file:
- Very specific: line 129
If SESSION_COUNT is a multiple of 10 (and > 0), append to the report:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Crystallize — distil session patterns into reusable skills
Invoke when the CTO says /crystallize, "crystallize", "extract knowledge", or
"what have we learned?". Also auto-suggested when session count is a multiple
of 10 (the session-end hook checks .great_cto/.last-crystallize).
The knowledge-extractor agent (Opus) does the heavy lifting. This skill
orchestrates the workflow and emits the final report.
Session-end hint integration: The session-end hook checks
.great_cto/.last-crystallize and suggests running /crystallize when the
session count exceeds last_sessions + 10. Run this skill after ≥10 sessions
to keep extracted skills current.
Step 1 — Gather raw material
# Count sessions
SESSION_COUNT=$(ls .great_cto/logs/session-*-end.md 2>/dev/null | wc -l | tr -d ' ')
echo "Sessions: $SESSION_COUNT"
# Read lessons
cat .great_cto/lessons.md 2>/dev/null || echo "(no lessons yet)"
# Read cross-project decisions
D=$(head -200 ~/.great_cto/decisions.md 2>/dev/null); [ -n "$D" ] && printf '%s\n' "$D" || echo "(none)"
# Find patterns that appear in ≥3 sessions
grep -h "^## pattern:" .great_cto/logs/session-*-end.md 2>/dev/null | sort | uniq -c | sort -rn | head -20
# Recent git log for context
git log --oneline --since="30 days ago" | head -30If SESSION_COUNT is 0, tell the CTO: "No session logs found in
.great_cto/logs/. Run at least 10 sessions before crystallizing." Exit.
If SESSION_COUNT < 10, tell the CTO: "Only {N} sessions found. Patterns
are more reliable after ≥10 sessions. Proceed anyway? [yes/no]" Wait for
confirmation before continuing.
Step 2 — Cluster patterns (via knowledge-extractor agent)
Spawn the knowledge-extractor agent with the gathered data as context:
Agent: knowledge-extractor
Task: |
Read .great_cto/lessons.md and all files in .great_cto/logs/.
Cluster lesson entries by pattern slug.
For each cluster with ≥3 occurrences, write a draft skill file to
skills/{domain}/SKILL.md (status: draft in frontmatter).
If a skill for that domain already exists, append a new ## section instead
of replacing the file.
Infer domain from the pattern slug and its archetype tags.
Return a structured summary: clusters found, drafts written, already-covered.Wait for the agent to complete before proceeding to Step 3.
Step 3 — Emit promotion report
After the agent completes, print:
CRYSTALLIZE REPORT
════════════════════════════════════════
Sessions analysed: {SESSION_COUNT}
Lessons found: {LESSON_COUNT}
Clusters: {CLUSTER_COUNT}
Draft skills: {DRAFT_COUNT} (in skills/{domain}/SKILL.md)
Already covered: {COVERED_COUNT} (pattern already in existing skill)
════════════════════════════════════════
Draft files:
{list of paths and brief description per draft}
Next: review drafts, remove `status: draft` when satisfied.
Run /crystallize again after 10 more sessions.
════════════════════════════════════════Step 4 — Write .last-crystallize marker
After emitting the report, write the marker file:
SESSION_COUNT=$(ls .great_cto/logs/session-*-end.md 2>/dev/null | wc -l | tr -d ' ')
DRAFT_COUNT={P} # from agent output
mkdir -p .great_cto
node -e "
const fs = require('fs');
fs.writeFileSync('.great_cto/.last-crystallize', JSON.stringify({
ts: new Date().toISOString(),
sessions: parseInt('$SESSION_COUNT') || 0,
drafts: parseInt('$DRAFT_COUNT') || 0
}) + '\n');
"Step 5 — Auto-run cadence suggestion
If SESSION_COUNT is a multiple of 10 (and > 0), append to the report:
Auto-suggestion: you've completed {SESSION_COUNT} sessions. Consider running
`/crystallize` every 10 sessions to keep skills current.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

