agentleFS
YesehYeseh/skillet/skills/migrate/SKILL.md

migrate

Skill3 starsChanged 6 months agoMITView on GitHub

Migrate plain markdown SKILL.md files to a managed skillet workspace with typed refs and extracted fragments.

72 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident, scaffold and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JkudjoSkill

    incident

    Production incident response — structured triage, hypothesis tree, safe remediation, incident record

    Also in 5 projects that use this

  • BerryKuipersSkill

    scaffold

    Detect project stack, apply architecture patterns, wire quality gates, and scaffold features. Use when bootstrapping a project, adding a vertical slice, wiring CI/CD, adding Docker compose, or setting up quality gates.

    Also in 5 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 4 projects that use this

  • liatrio-labsSkill

    sdd

    Execute the Liatrio Spec-Driven Development (SDD) workflow when explicitly invoked by the user. NOTE: this skill is NOT intended to be dynamically loaded or automatically triggered; it should only ever be explicitly called by the user.

    Also in 4 projects that use this

  • drewdrewthisSkill

    sweep

    Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.

    Also in 3 projects that use this

  • MicrosoftSkill

    hotfix

    Proposes a scoped version bump for a roosterjs hotfix. Given one or more commits provided by the user, determines which packages had files changed by those commits, bumps the version only for the affected version groups, and creates a draft PR. Use when asked to do a hotfix, a scoped/targeted version bump, or to release only specific commits.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 58 edited versions we read keep these.

  • 7

    Distinctive

    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
  1. Very specific:

    Use this skill when converting a project's plain-markdown SKILL.md files into a fully managed skillet workspace with .pan sources, typed …

    line 8
  2. Distinctive:

    Check whether the workspace is already initialised before doing anything else.

    line 12
  3. Very specific:

    Look for skillet.toml in the project root.

    line 14
  4. Distinctive:

    If it is absent, run:

    line 15
  5. Very specific:

    If skillet.toml already exists but .pan source files are missing, run adoption manually: copy each skills/<name>/SKILL.md to …

    line 26
  6. Distinctive:

    Run lint in pedantic mode to surface all backtick spans that look like refs:

    line 39
  7. Distinctive:

    After each batch of rewrites, re-run lint to confirm the warning count drops:

    line 58
  8. Distinctive:

    Create the fragment file:

    line 96
  9. Distinctive:

    Run the full pipeline to confirm the workspace is clean:

    line 189
  10. Distinctive:

    Commit both the source files and the compiled outputs together:

    line 198

“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “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

migrate

Use this skill when converting a project's plain-markdown SKILL.md files into a fully managed skillet workspace with .pan sources, typed references, and shared fragments.

Phase 1 — Adopt existing skills

Check whether the workspace is already initialised before doing anything else.

  1. Look for skillet.toml in the project root.
  2. If it is absent, run:
    skillet init --adopt
    --adopt copies every skills/<name>/SKILL.md it finds into src/skills/<name>/<name>.pan so the existing compiled outputs become editable sources without losing the original files.
  3. Confirm the source files were created:
    ls src/skills/
  4. If skillet.toml already exists but .pan source files are missing, run adoption manually: copy each skills/<name>/SKILL.md to src/skills/<name>/<name>.pan then add the required YAML frontmatter:
    ---
    name: <name>
    description: "One-line description."
    ---

Phase 2 — Resolve untyped references

Run lint in pedantic mode to surface all backtick spans that look like refs:

skillet lint --pedantic

For each untyped-backtick diagnostic, rewrite the backtick to the suggested typed ref using the table below. The lint output already tells you which type to use (e.g. looks like a path — consider ref::...):

TypeExampleTyped ref
ref./scripts/deploy.shref::./scripts/deploy.sh
cmdkubectl apply -f …cmd::kubectl
skilldiagnoseskill::diagnose
urlhttps://example.comurl::https://example.com
varrepeated project-specific stringextract to [vars] and use var::name
envenvironment variable nameenv::VAR_NAME

After each batch of rewrites, re-run lint to confirm the warning count drops:

skillet lint --pedantic

Also scan for standard markdown links whose target is a local path:

[text](./path/to/file.md)

Where the link target should be treated as a file reference, inline it as a typed ref: ref::./path/to/file.md.


Phase 3 — Fragment extraction

Scan all .pan files for duplicate or near-duplicate passages that appear in two or more skills. Common candidates:

  • Repeated safety / disclaimer notes
  • Shared prerequisites or environment-setup sections
  • Copy-pasted command-reference tables
  • Boilerplate headers that vary only in the skill name

Detection approach

  1. Open each .pan file and read the body (below the frontmatter).
  2. Break each body into logical paragraphs or sections.
  3. Compare paragraphs across files — flag any passage of ≥ 3 lines that appears verbatim or near-verbatim in two or more skills.
  4. Also check skillet lint output for duplication diagnostics, which surface text that exceeds the similarity threshold automatically.

Extraction steps for each candidate

  1. Create the fragment file:
    src/skills/_fragments/<name>.fragment.pan
    Paste the shared passage as its entire content (no frontmatter required).
  2. Replace every occurrence in the .pan files with a fragment include on its own line: wrap the fragment name in the fragment delimiters — an opening { immediately followed by >, then the name, then the closing pair <}. Includes are block-level and cannot be nested.
  3. Rebuild and verify:
    skillet build
    skillet lint
    Confirm no unused-fragment warning fires (every fragment is referenced at least once) and that the compiled SKILL.md output is unchanged.

Phase 4 — Configure skillet.toml

Open skillet.toml and tune it for the project. The default file written by skillet init is a starting point; adjust each section as needed.

[workspace] — workspace-wide settings. The only path it owns is the global fragments directory; source and output paths live per-plugin:

[workspace]
fragments_dir = "src/skills/_fragments"

[plugin.<name>] — each plugin declares its own source/output pair. skillet init writes a single default plugin; add or rename plugins only if the project ships more than one source/output tree:

[plugin.default]
src_dir = "src/skills"
out_dir = "skills"
version = "0.1.0"

[vars] — promote any project-specific string that appears in multiple skills to a named variable, then reference it with var::name:

[vars]
project_name = "my-project"
repo_url     = "https://github.com/org/repo"

[env] — declare environment variables that skills reference, with sensible defaults so builds work locally without every variable set:

[env]
CI        = { default = "false" }
TEAM_NAME = { default = "engineering" }

[lint] — token budgets and rule control. Add rule IDs to disable only when a rule genuinely does not apply to the project:

[lint]
max_activation_tokens = 4000
max_discovery_tokens  = 100
max_fragment_tokens   = 500
disable               = []

allowed_commands — a top-level array (not under [lint]) listing every shell command referenced via cmd::… that should be treated as available regardless of whether it is found on PATH:

allowed_commands = ["docker", "kubectl", "make"]

[build] — enable URL verification once you are confident all links are reachable; leave it off during the initial migration pass to avoid noise:

[build]
tokenizer   = "cl100k_base"
verify_urls = false

Phase 5 — Verify and finalize

Run the full pipeline to confirm the workspace is clean:

skillet build          # compile all .pan sources to SKILL.md
skillet check          # confirm outputs are fresh
skillet lint --strict  # promote warnings to errors; fix any that remain
skillet budget         # review token costs; split oversized skills if needed

Commit both the source files and the compiled outputs together:

git add src/skills/ skills/ skillet.toml skillet.lock
git commit -m "Migrate skills to skillet workspace"

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.