agentleFS
ratacatratacat/ratacats-skills/skills/crystallize/SKILL.md

crystallize

Skill9 starsChanged 4 months agoMITView on GitHub

Use when asked to crystallize a workflow, skill, codebase, or agent runs, or to find where agents repeatedly rediscover methods, apply stable rules, or do unnecessary work. Analysis of opportunities to replace repeated agent effort with reusable procedures; not a general code cleanup or an automatic implementation run.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default to analysis and proposals.

    line 20
  2. Distinctive:

    Look for repeated reasoning with a stable method, even when each case has a different answer.

    line 26
  3. Distinctive:

    Consider these changes, starting with work that can disappear:

    line 32
  4. Distinctive:

    Remove a step when its result cannot affect any required outcome.

    line 34
  5. Distinctive:

    Keep an agent for investigation or decisions whose scope remains open.

    line 39
  6. Distinctive:

    Do not prescribe a model vendor, DSL, or framework.

    line 41

≈ “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.

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

Crystallize

Find where an agent repeatedly figures out something the system could learn to do once. Recommend small replacements that preserve the task's outcome and leave open-ended work to an agent where needed.

Default to analysis and proposals. Implement only when the user's request includes implementation. Use existing code, instructions, records, and run histories; do not require a new tracing system or workflow engine.

Find the repeated work

Establish the requested outcome and the consequences of a wrong result before proposing shortcuts. Read the relevant procedure, code, or skill, then inspect available runs, including failures and exceptions. Follow an input through the steps that produce the outcome.

Look for repeated reasoning with a stable method, even when each case has a different answer. Identify what stays fixed, what varies, and what the next step actually needs. Cite the specific instructions, code, or runs behind each finding.

Code and prompts reveal candidates. Runs establish recurrence and expose variation. Without run evidence, label the opportunity a hypothesis and identify the smallest observation that would settle it. Never invent frequencies, costs, or savings.

Choose the smallest replacement

Consider these changes, starting with work that can disappear:

  • Remove a step when its result cannot affect any required outcome. Include required evidence and reporting in that outcome; an unchanged verdict alone may not justify skipping research.
  • Reorder work or stop early when the remaining results cannot change the outcome. State why that condition holds and what would invalidate it.
  • Retain a discovered method, address, query, or retrieval route. State when it must be refreshed or rediscovered. Reusing a method does not make yesterday's facts current.
  • Turn explicit rules, parsing, calculations, polling, and mechanical actions into ordinary code or an existing tool.
  • Isolate a narrow judgment with clear inputs and possible answers. Carry the relevant criteria, exceptions, and blockers into that judgment. Keep uncertain cases on a path that can resolve them.
  • Keep an agent for investigation or decisions whose scope remains open. A short reusable instruction can be sufficient when code would be brittle.

Do not prescribe a model vendor, DSL, or framework. Use the project's existing tools where they fit. A model's stated confidence is not evidence of calibration; any routing threshold needs support from representative outcomes.

Find where the replacement breaks

For each serious candidate, look for an actual exception or construct a clearly labeled counterexample. Repeated successful answers may share an accidental condition.

Describe the inputs the replacement handles and the observable condition that returns work to an agent or person. Identify silent failures as well as explicit errors. If the system cannot recognize the exception reliably, narrow the proposed replacement or retain the current investigation.

Do not assume the current agent's output is correct. Compare against the task's requirements and reviewed outcomes where available. Propose a bounded comparison using ordinary cases and relevant exceptions. Use cases outside those that suggested the shortcut when available. Preserve any asymmetry in the cost of mistakes.

Retained evidence can support replay only for decisions it still contains the necessary facts to answer. A new question, policy requirement, or freshness requirement may need new research.

Return a short ranked list

Rank by recurrence, avoidable effort, consequences of mistakes, and maintenance burden. Distinguish observed savings from estimates, and account for fallback work and upkeep. Prefer a few supported opportunities; no worthwhile candidate is a valid result.

For each recommendation, give:

  • The repeated work and its evidence.
  • The stable part and the smallest replacement.
  • The exception condition and where that case goes.
  • The likely benefit, with the basis for any estimate.
  • The smallest comparison or observation needed before adopting it.

Recommend one starting point. Keep speculative candidates visibly separate from findings supported by runs. Return the analysis in the conversation unless the user requests another artifact.

Example

An agent repeatedly navigates an organization's website to find the same calendar. Save the calendar address and retrieval method so later runs can start there. Return to discovery if retrieval fails or the page no longer contains the expected listings. Check freshness separately; a successful fetch may return an abandoned calendar. Compare later runs against independent discovery before treating the shortcut as dependable.

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.