adapt-workflow

A guide for adapting an existing workflow to a different AI provider, deployment environment, model tier, or organisation. It compares the current and target context before changing prompts, interfaces, limits, costs, or safeguards.

In plain words
What is it for?
Porting AI workflows between providers or deployments, resizing context use, handling provider API differences, identifying missing capabilities, and recalculating costs.
Why use it?
A workflow that works in one environment may behave differently elsewhere because of differences in models, APIs, speed, pricing, team structure, or data rules.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sharpdeveye/maestro/adapt-workflow
Any agent
npx skills add sharpdeveye/maestro --skill adapt-workflow
Clone the repo
git clone --depth 1 https://github.com/sharpdeveye/maestro

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 504 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00504
Opus 5 $0.00013 $0.00252
Sonnet 5 $0.00005 $0.00101
Haiku 4.5 $0.00003 $0.00050

Measured 2d ago against content hash cb17c9c406a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adapt-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

source/skills/adapt-workflow/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MANDATORY PREPARATION

Invoke /agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run /teach-maestro first. Additionally gather: what the workflow is being adapted to.


Adapt a working workflow for a different context.

Adaptation Assessment

Dimension Current Target Impact
Model provider ? ? Prompt format, capabilities, pricing
Model tier ? ? Context window, reasoning ability
Deployment env ? ? Latency, availability, compliance
Team structure ? ? Monitoring, escalation, ownership
Data sensitivity ? ? Guardrails, logging, access controls

Provider Adaptation

  • Prompt format: Adjust for provider-specific features
  • Context limits: Resize context budget for different window sizes
  • Capability gaps: Identify features available in one provider but not another
  • Pricing model: Recalculate cost estimates
  • API differences: Update tool calling interfaces, error handling, retry logic

Environment Adaptation

  • Latency requirements: Adjust timeout values, caching strategy
  • Compliance: Add or adjust guardrails, logging, and data handling
  • Scale: Adjust concurrency limits, batch sizes
  • Monitoring: Adapt alerting thresholds

Adaptation Checklist

  • All provider-specific APIs updated
  • Context budget recalculated for target model
  • Cost estimates updated with target pricing
  • Guardrails adjusted for target compliance requirements
  • Tests updated and passing in target environment
  • Documentation updated for target team

Recommended Next Step

After adaptation, run /evaluate to verify the workflow performs correctly in the target environment, then /diagnose for a full health check.

NEVER:

  • Assume prompts work identically across providers
  • Copy production config to development without adjusting guardrails
  • Adapt without updating the evaluation suite
  • Skip cost re-estimation

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 62 lines · 26 tokens per session scan A cb17c9c406a0

Subscribe to this mod's changes

adapt-workflow is a skill published in the GitHub repository sharpdeveye/maestro (415 stars, last pushed 4mo ago), licensed MIT. It adds 26 tokens to every session and 504 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.