agentleFS
imMamdouhaboammarimMamdouhaboammar/chatgpt-codex-plugin-autopilot/skills/workflow-to-skill-compiler/SKILL.md

workflow-to-skill-compiler

Skill53 starsChanged 4 months agoMITView on GitHub

Use when a repository has a valuable agentic workflow, prompt chain, playbook, command, or runbook that should become a portable ChatGPT/Codex Skill without losing its real decision logic.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write Skill metadata for discovery.

    line 14
  2. Very specific:

    Keep the main SKILL.md focused on execution.

    line 15
  3. Distinctive:

    Prefer host capabilities over unnecessary bundled runtime code.

    line 18
  4. Distinctive:

    Keep tool names capability-oriented where possible so the Skill can travel across compatible hosts.

    line 19
  5. Very specific:

    When the workflow touches files, repositories, generated artifacts, or local workspace state, integrate the host-workspace-operator …

    line 20
  6. Very specific:

    Add agents/openai.yaml only when interface metadata, product targeting, invocation policy, icons, or documented MCP tool dependencies …

    line 21
  7. Distinctive:

    Run public-distribution review before packaging.

    line 22
  8. Distinctive:

    When the source workflow includes operations such as:

    line 26
  9. Very specific:

    After compilation, pass the Skill set and its workspace-capability needs to plugin-experience-architect.

    line 63

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

Workflow to Skill Compiler

Convert source workflows into portable Skills. Preserve behavior, not file shape.

Compilation rules

  1. Define one user job for the Skill. If the source mixes unrelated jobs, split it before conversion.
  2. Trace the source workflow from trigger to evidence, decisions, actions, validation, and stop conditions.
  3. Write Skill metadata for discovery. The description must say when to use the Skill, not merely what topic it contains.
  4. Keep the main SKILL.md focused on execution. Move deep reference material into references/ and deterministic mechanical helpers into scripts/.
  5. Replace source-repository assumptions with portable contracts. Remove absolute paths, personal machine locations, private aliases, hidden environment assumptions, and undocumented dependencies.
  6. Preserve meaningful gates. Do not flatten approval, safety, testing, evidence, or verification steps just to make the Skill shorter.
  7. Prefer host capabilities over unnecessary bundled runtime code. Add MCP only when the workflow genuinely needs external data/actions that cannot be represented honestly as Skill guidance.
  8. Keep tool names capability-oriented where possible so the Skill can travel across compatible hosts.
  9. When the workflow touches files, repositories, generated artifacts, or local workspace state, integrate the host-workspace-operator contract. Prefer read/list/search/grep for discovery, patch/write only for authorized mutations, shell for repository commands, and sandbox-python-executor for deterministic Python work.
  10. Add agents/openai.yaml only when interface metadata, product targeting, invocation policy, icons, or documented MCP tool dependencies materially improve the Skill. Do not invent dependencies for host-native filesystem, shell, patch, search, or Python tools.
  11. Run public-distribution review before packaging. Internal workflows may contain capabilities that should never be mirrored into a public Skill.

Workspace-capability compilation

When the source workflow includes operations such as:

  • reading files
  • listing directories
  • searching concepts or filenames
  • exact grep/regex lookup
  • creating or editing files
  • applying focused patches
  • running tests or repository commands
  • deterministic Python/file processing

represent those operations as host-native capability requirements in the Skill instructions. Do not hard-code one product's tool names unless the current host contract requires it.

For generated Plugins, the main Autopilot should install the canonical workspace Skill with:

python3 <autopilot-skill>/scripts/install_host_workspace_skill.py <target-plugin>

The installer is intentionally non-destructive. If the target already contains a customized host-workspace-operator, review it instead of overwriting it.

Quality gate

Reject the compilation if:

  • it is mostly a pasted prompt with no operating logic
  • it cannot explain its trigger and completion condition
  • it depends on files that will not exist after installation
  • it silently drops source validation or approval gates
  • multiple Skills are near-duplicates with different names
  • the Skill description is so broad that it will collide with unrelated workflows
  • generated instructions claim tools or permissions the Plugin does not actually provide
  • mutation operations are mixed into read-only discovery without a clear authorization boundary
  • the Skill says it searched, read, wrote, patched, ran shell, or executed Python without host evidence

Handoff

After compilation, pass the Skill set and its workspace-capability needs to plugin-experience-architect. The experience brief should state which host-native operations the Plugin benefits from and which are mutation-capable. Then run the main Autopilot generation and validation gates.

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.