agentleFS
ShmayroShmayro/singularity-claude/skills/crystallizing/SKILL.md

crystallizing

Skill28 starsChanged 9 months agoMITView on GitHub

Use when a skill has proven itself with consistently high scores across multiple executions and should be locked as a stable, immutable version via /singularity-crystallize

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read score file and config:

    line 20
  2. Distinctive:

    If not ready, explain what's missing: *"This skill needs <X more runs / higher scores / edge case coverage> before crystallization."*

    line 31
  3. Very specific:

    If ~/.claude/skills/ is a git repository:

    line 41
  4. Distinctive:

    If not a git repo, create a backup copy:

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Crystallize a Validated Skill

Lock a battle-tested skill version as production-grade. Crystallized skills are immutable — further changes require a new version.

When to Use

  • Skill average score >= 90 with 5+ executions
  • Skill has handled at least one edge case
  • User confirms the skill is ready

Workflow

Step 1: Validate Readiness

Read score file and config:

"${CLAUDE_PLUGIN_ROOT}/scripts/score-manager.sh" trend <skill-name>

Check requirements:

  • Average score >= crystallizationThreshold (default: 90)
  • Execution count >= crystallizationMinExecutions (default: 5)
  • At least one edge case recorded in score history
  • Maturity is hardened (not draft or tested)

If not ready, explain what's missing: "This skill needs <X more runs / higher scores / edge case coverage> before crystallization."

Step 2: Confirm with User

Show the skill's full score summary and ask: "Ready to crystallize <skill-name> v<version>? This locks the current version as immutable."

Step 3: Create Git Tag

If ~/.claude/skills/ is a git repository:

cd ~/.claude/skills
git add <skill-name>/
git commit -m "singularity: crystallize <skill-name> v<version>"
git tag "singularity/<skill-name>/v<version>"

If not a git repo, create a backup copy:

mkdir -p ~/.claude/singularity/crystallized/<skill-name>/
cp -r ~/.claude/skills/<skill-name>/ ~/.claude/singularity/crystallized/<skill-name>/v<version>/

Step 4: Update Records

Update score file:

  • Set maturity to "crystallized" for the current version

Update registry:

  • Set maturity to "crystallized"

Step 5: Log Telemetry

"${CLAUDE_PLUGIN_ROOT}/scripts/telemetry-writer.sh" log <skill-name> \
  --trigger "crystallization" \
  --summary "Crystallized v<version> (avg: <score>/100, <count> runs)"

Report

Crystallized: <skill-name> v<version>
  Average score: <avg>/100 over <count> executions
  Edge cases handled: <count>
  Git tag: singularity/<skill-name>/v<version>
  Status: LOCKED — further changes require a new version

Rollback

To recover a crystallized version later:

git checkout singularity/<skill-name>/v<version> -- <skill-name>/

Or restore from backup:

cp -r ~/.claude/singularity/crystallized/<skill-name>/v<version>/ ~/.claude/skills/<skill-name>/

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.