
workflow-skill-creator
Distills a completed user workflow or interaction into a reusable agent skill. Use when the user asks to turn their workflow, interaction, or multi-step process into a skill, or when they say "make this a skill", "create a skill from what we just did", "package this workflow" or similar. Do not use for creating skills from scratch without an existing workflow (use a generic skill-creator for that).
- Installs
- 2.4K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/google-deepmind/science-skills --skill workflow-skill-creator- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads workflow-skill-creator automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Workflow-to-Skill Distiller
Turns a completed workflow into a reusable agent skill. Specifically, this skill extracts patterns from an interaction or workflow that already happened and packages them.
[!CAUTION] You MUST complete Phase 1 (Brainstorming) before writing any code or SKILL.md content. Skipping brainstorming produces skills that are either too rigid or too vague. The brainstorming conversation is the most important part of this process.
Phase 1: Brainstorming (MANDATORY)
Have an iterative back-and-forth conversation with the user. Do NOT ask all questions at once. Pick 2-3 relevant questions per round from the bank below, refine your understanding, and ask follow-ups.
Round 1: Understand the Workflow
Start by summarizing what you observed from the workflow, then ask:
- "Here's my understanding of the workflow: [summary]. Is this accurate? What would you change?"
- "What are the expected inputs and outputs for this workflow?"
- "How often do you expect to run this workflow? Is it recurring or one-off?"
Round 2: Flexibility and Error Handling
For each step identified in the workflow, determine its rigidity:
- "For [step X], if the primary approach fails (e.g., API down, no results), should the agent: (a) ask you for guidance, (b) try alternative approaches automatically, or (c) fail loudly with an error?"
- "Are there any steps where the exact method matters (e.g., must use a specific database), vs. steps where any reasonable approach is fine?"
- "Should the skill handle edge cases silently or surface them to the user?"
Round 3: Dependencies and Resources
Before asking these questions, check which of your installed skills overlap with the workflow. If an existing skill from the science bundle covers a step, the new skill MUST reference it — do not offer a self-contained option.
- "I noticed the workflow uses functionality covered by [existing skill X, skill Y]. The new skill will reference these rather than reimplementing them. Are there any other tools or skills you'd like me to incorporate?"
- "Are there any API rate limits I should be aware of for services used in this workflow that aren't already covered by an existing skill?"
- "Are there specific files that provide important scientific context for creating this skill? For example: API documentation, reference papers, example datasets, or domain-specific notes. If so, please share them and I will incorporate their content into the skill's reference materials."
Round 4: Scope and Shape
- "Our workflow covered [X, Y, Z]. Should I distill all of these into the skill, or is there additional functionality that's important to include? Conversely, should any of these be left out?"
- Determine whether the skill needs any code. If any step involves calling an
API, processing data, reading/writing files, or computing results, the skill
needs code and you should default to the CLI pattern. Only use a
text-only instruction skill when every step is purely about reasoning,
coordinating existing tools, or following a written protocol with no
programmatic work at all. Confirm your assessment with the user in plain
language:
- If code is needed: "Some of these steps involve [fetching data from an
API / processing files / computing results], so I'll create a helper
script that the agent can run for you. The script will have simple
commands like
search,fetch,analyze, etc. — you won't need to write any code yourself. Does that sound right?" - If no code is needed: "This workflow is entirely about following a set of steps and using existing tools — no new code is needed. I'll write it as a set of clear instructions the agent follows. Does that sound right?"
- If code is needed: "Some of these steps involve [fetching data from an
API / processing files / computing results], so I'll create a helper
script that the agent can run for you. The script will have simple
commands like
- If a helper script will be created: "I'm thinking the script should have these commands: [proposed commands in plain English, e.g. 'search for proteins', 'fetch results', 'compare sequences']. What would you add or change?"
- "What should the skill be called? Proposed name:
[suggestion]."
Round 5: Testing (Optional)
- "Can you provide a sample query and expected answer that I can use to verify the skill works as intended? For example: 'If I ask [question], the skill should produce [answer].' This is optional but helps me validate the skill during development."
Brainstorming Completion Criteria
You are ready to move to Phase 2 when you can confidently answer ALL of:
- What is the workflow's purpose and scope?
- What are the inputs and outputs?
- Which steps are strict vs. flexible?
- Which existing skills should be referenced?
- What new scripts (if any) are needed?
- What rate limits apply?
- How should errors be handled?
- Does the workflow need any code? (If yes → CLI pattern; if no → instruction-only)
- Where should the skill be installed? (local, global, or custom path)
- Is there a sample query/answer for validation?
Phase 2: Skill Design
Produce a design document (as an artifact / implementation plan) and present it to the user for approval. The document must include:
- Skill name and description (following YAML frontmatter rules: name ≤64 chars, lowercase + hyphens; description ≤1024 chars).
- Directory structure showing all planned files and the install location (local, global, or custom — see Rule 7).
- Existing skills referenced with rationale for each.
- New scripts (if any) with proposed subcommands and arguments.
- Rate limiting strategy for any APIs not covered by existing skills.
- Error handling strategy per step.
Wait for explicit user approval before proceeding to Phase 3.
Phase 3: Implementation
Guiding Principles
General guidelines for skill implementation:
- Use
uv run, neverpythonorpython3. - Prefer stdlib libraries that come with a default Python 3 installation
(
urllibpreferred); Avoid libraries that require extra installation if possible. - Rate limits must be documented and respected in code. Prefer file-lock–based rate limiting so that concurrent sub-agents sharing the same machine collectively respect the limit. See other skills in the Science Skills bundle for the canonical cross-process–safe implementation.
- Skill output must be <500 lines or redirected to a file. Long output files should be processed programmatically to extract relevant fields.
- Hyphens are recommended for the skill name and YAML
name:field.
Rule 1: Reuse Existing Skills
When the workflow uses functionality covered by an existing installed skill, the new SKILL.md MUST reference it by name rather than reimplementing. Include a Dependencies section in the SKILL.md listing required skills with a brief rationale for each.
Rule 2: Rate Limiting for New APIs
For any API interaction not covered by an existing skill, the generated CLI
script MUST implement rate limiting. Before writing any rate-limiting code,
look up the API's official rate-limit guidelines: check any documentation
the user provided during brainstorming, then search the API's public
documentation online. If no documented rate limit can be found, default to 1
request per second. The rate limiting pattern is built directly into the CLI
template at references/cli_script_template.py — see the RateLimitError class
and the _request method of the API client.
Key requirements:
- Use
time.monotonic()for timing (nottime.time()). - Calculate delay from documented rate limits.
- Implement retry with exponential backoff for transient errors (5xx).
- Raise a dedicated
RateLimitErrorwhen HTTP 429 is received. - Log retry attempts to stderr so the agent can observe progress.
- Include the URL and rate-limit value in error messages.
- On non-retriable HTTP errors (e.g. 400, 403, 404), read and include the response body in the error message — not just the status code. API response bodies contain actionable details (e.g., "Invalid parameter") that enable the agent to self-correct.
Rule 3: CLI Script Pattern (Default When Code Is Needed)
This is the default choice. If any step in the workflow involves API
calls, data processing, file I/O, computation, or any other programmatic work,
produce a multi-command CLI script using argparse with subcommands. Follow the
template in references/cli_script_template.py.
Key requirements:
- Each major workflow step becomes a subcommand.
- All subcommands accept
--outputfor writing results to a file. - Use
json.dumpwithindent=2for JSON output. - Print a success message with the output file path.
- Exit with code 1 on errors.
- Make arguments like
--limitrequired (no silent defaults). This forces the agent to specify the value explicitly, preventing it from assuming it retrieved "all" results when it was silently capped.
Rule 4: Default to File Output
All scripts and workflows MUST write output to files, not stdout. Stdout should only contain short status messages (e.g., "Success! Data written to: results.json"). This is critical because:
- API responses can be very large and will truncate in terminal output.
- File output is token-efficient — the agent reads only the fields it needs
using
jpor Python one-liners. - Large stdout output wastes context window space.
Rule 5: Instruction-Only Pattern (Only When No Code Is Needed)
Use this pattern only when the workflow requires zero programmatic work — i.e., every step is purely about orchestration, reasoning, multi-skill coordination, or following a written protocol. If any step needs code (API calls, data processing, file I/O, etc.), use the CLI pattern from Rule 3 instead. Produce a SKILL.md with a structured workflow section:
## Workflow
### 1. Step Name
- Description of what to do
- Which skill to use and how
### 2. Next Step
...
Rule 6: SKILL.md Structure
Every generated SKILL.md must follow this structure:
---
name: {skill-name}
description: >-
{description}
---
# {Skill Title}
## Overview
{Brief description of what the skill does.}
## Dependencies
{List of required skills, if any.}
## Quick Start
{Minimal example to get started.}
## Utility Scripts (if CLI-based)
{Document each subcommand with examples.}
## Workflow (if instruction-only)
{Numbered steps with clear instructions.}
## Rate Limiting (if applicable)
{Document rate limits and how they are enforced.}
## Common Mistakes
{List 2-3 common pitfalls.}
Rule 7: Skill Placement
Skills can be installed locally (project-specific, per-workspace) or globally (available across all projects). Ask the user if they want to install locally, globally, or use a custom install path.
Skill paths by agent CLI (local paths relative to project root):
- Claude Code: local
.claude/skills/, global~/.claude/skills/ - Codex: local
.agents/skills/, global~/.agents/skills/ - Antigravity 2.0: local
.agents/skills/, global~/.gemini/config/skills/ - Gemini CLI: local
.gemini/skills/, global~/.gemini/skills/ - OpenCode: local
.opencode/skills/, global~/.config/opencode/skills/
For other CLIs, find out local and global skill paths by yourself.
Phase 4: Validation
After implementation is complete:
-
Test the skill manually by invoking the agent with a natural-language prompt that should trigger the new skill.
-
If a sample query/answer was provided during brainstorming, run it through the skill and verify the output matches expectations.
FAQ
What does the workflow-skill-creator skill do?
Distills a completed user workflow or interaction into a reusable agent skill. Use when the user asks to turn their workflow, interaction, or multi-step process into a skill, or when they say "make this a skill", "create a skill from what we just did", "package this workflow" or similar. Do not use for creating skills from scratch without an existing workflow (use a generic skill-creator for that).
How do I install workflow-skill-creator?
Run npx skills add https://github.com/google-deepmind/science-skills --skill workflow-skill-creator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/workflow-skill-creator/ (personal) or .claude/skills/workflow-skill-creator/ (project).
Which AI agents can use workflow-skill-creator?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is workflow-skill-creator safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains workflow-skill-creator?
It is published by google-deepmind in google-deepmind/science-skills. It has 2,418 recorded installs.
More from google-deepmind/science-skills
literature-search-arxiv
google-deepmind/science-skills
Search for scientific papers, preprints, and publications on arXiv. Extract metadata, abstracts, and download full-text PDFs or HTML versions of papers. Use when the user asks to find research papers, literature, or specific arXiv IDs.
literature-search-openalex
google-deepmind/science-skills
Query the OpenAlex scholarly database for research papers, authors, institutions, topics, sources, publishers, funders, geo-locations, and keywords. Use when searching academic papers, resolving DOIs, downloading open-access PDFs, finding an author's publications, aggregating bibliometric data (citation counts, h-index, impact factor), exploring the research taxonomies, or performing DOI lookups.
pubmed-database
google-deepmind/science-skills
Search PubMed for scientific literature, including published clinical trials. Fetch abstracts and full text. Link published research to biological databases (gene, protein, nucleotide, PubChem) to discover associations between papers and specific compounds or genes. Verify medical spelling, match raw citations, and cache result sets for bulk processing. Interfaces NCBI E-utilities and PMC BioC APIs.
literature-search-europepmc
google-deepmind/science-skills
Search Europe PMC for scientific literature and download open-access full texts and PDFs. Retrieve full-text XML/plain text by PMCID, get citation lists and bibliography.
literature-search-biorxiv
google-deepmind/science-skills
Browse and filter life sciences, biology, and medical preprints from bioRxiv and medRxiv. Supports fetching paper metadata by DOI, and browsing by date range with category and keyword filters. Keyword filtering is local, so date ranges MUST be narrow (1-4 weeks) with a category to prevent timeouts.
uv
google-deepmind/science-skills
Checks whether the uv Python package manager is installed and installs it if missing. Ensures uv is on PATH. Use when another skill requires uv as a prerequisite.
Popular productivity & automation skills
agent-browser
vercel-labs/agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.
lark-doc
open.feishu.cn
飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。
lark-base
open.feishu.cn
飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。
lark-drive
open.feishu.cn
飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。
lark-shared
open.feishu.cn
Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.
lark-im
open.feishu.cn
飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。