agentleFS
pjprateekpjprateek/claude-skills/4r-workflow-designer/SKILL.md

4r-workflow-designer

Skill0 starsChanged 4 months agoMITView on GitHub

Turn any business problem or bottleneck into an AI/automation solution design using the 4R framework (Record, Reason, Route, Review), plus an impact-vs-complexity verdict on whether it's worth doing, ending in a step-by-step execution brief. Use this skill whenever the user describes a business pain point, bottleneck, manual process, or repetitive task and wants to solve, automate, or apply AI to it — phrases like "I have a problem with...", "this takes too much time", "can AI help with...", "we keep losing track of...", "design a workflow for...", "is it worth automating...", or "run this through the 4R framework". Trigger even when they only describe the pain without asking for a solution method, since the 4R analysis is how they want problems handled.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 13 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the user's opening message describes more than one distinct bottleneck, don't start the full 4R walkthrough yet.

    line 22
  2. Distinctive:

    Conventional rules/software: when: the calculation must be exact, input is structured, conditions are clearly defined, outcome must be …

    line 49
  3. Distinctive:

    AI when: information is unstructured, language must be interpreted, documents/images must be read, classified, or summarised, creative …

    line 51
  4. Distinctive:

    Before presenting the solution, judge whether it deserves to be built.

    line 73
  5. Distinctive:

    Always state the rough payback in plain terms: "Setup ≈ 1 day + ₹X/month.

    line 95
  6. Distinctive:

    If two viable solution shapes exist with different trade-offs (e.g.

    line 99
  7. Distinctive:

    Pilot plan: always propose starting with a small scope (one product line, one week of data, one staff member), a success measure, and the …

    line 139
  8. Very specific:

    Use references/brief-template.md for the full detailed-brief structure, including the Worth-It scorecard table.

    line 142
  9. Very specific:

    After the brief (high-level or detailed), offer to save it as a document.

    line 146
  10. Distinctive:

    If the user asks to change a conclusion after a brief has already been delivered (e.g.

    line 152
  11. Distinctive:

    If a document was already saved, offer to update that same file rather than creating a new one.

    line 157
  12. Distinctive:

    Prefer inferring from the conversation over asking.

    line 162
  13. Distinctive:

    Keep the whole conversation, start to high-level brief, under ~6 user turns for a typical problem.

    line 164
  14. Distinctive:

    When multiple problems are described up front, triage with one line + a gut-check each (Step 0) — don't go deep on more than one at a time.

    line 165
  15. Distinctive:

    When revising a delivered brief, patch and ripple-check (Step 10) — don't make the user restart from Frame the problem.

    line 166

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

4R Workflow Designer

Guide the user from a described business problem to a concrete, staged execution plan using the 4R framework — Record (where is the truth?), Reason (what thinking must happen — rules or AI?), Route (where does the output go?), Review (where must a human stay involved?) — followed by an honest Worth-It Verdict based on impact vs complexity.

Each problem is analysed fresh and self-contained: gather the business context relevant to this problem within the conversation itself. Reuse anything the user already said earlier in the chat, but do not assume tools, systems, or context from outside the conversation.

The conversation flows in this order:

Frame the problem → Record → Reason → Route → Review
→ Impact vs Complexity verdict → High-level brief in chat
→ offer Detailed brief → offer saved document

Step 0 — Triage multiple problems (only if more than one is described)

If the user's opening message describes more than one distinct bottleneck, don't start the full 4R walkthrough yet. First:

  1. Restate each problem in one line.
  2. Give each a fast gut-check impact/complexity guess — rough placement on the grid from Step 6, based only on what's been said so far (no digging yet).
  3. Present the list and ask which one to tackle first. Frame the others as a queue: "we'll come back to the other two after this one."

Once a problem is chosen, proceed with Steps 1–9 for that problem only. After its brief is delivered (Step 7/8) and the document offer (Step 9) is resolved, if a queue remains, offer to move to the next queued problem rather than ending the conversation.

Step 1 — Frame the problem

Restate the problem in one or two sentences and confirm it. Capture: what happens today, how often it happens, who is involved, roughly how much time/money it eats, and what "solved" looks like. The frequency and time-cost answers matter doubly — they feed the Worth-It Verdict later, so get at least a rough number ("~5 enquiries a day, ~15 minutes each"). If the user's description already covers this, just confirm — don't interrogate.

Steps 2–5 — Walk the 4Rs, one R per message

Ask conversationally, one R at a time. Keep each round to 2–4 questions max, use tappable options where the client supports them, and infer before asking from what the user has already said. Skip questions whose answers are obvious. After each R, give a one-line summary of what you concluded before moving on ("So the truth lives in two places: Tally and a WhatsApp group. Next — what thinking has to happen?").

R1 — Record: where is the truth?

Determine, for this specific problem:

  • What information is required, and where does each piece currently live (ERP/Tally, CRM, Excel/Sheets, email, WhatsApp, paper, memory)?
  • Is it structured and reliable? Who owns it?
  • Gap check: is any required information not captured anywhere today? (If yes, the plan must include creating that record first — this is often the real fix.)

R2 — Reason: what thinking has to happen?

Classify each decision/transformation in the workflow:

Conventional rules/software when: the calculation must be exact, input is structured, conditions are clearly defined, outcome must be identical every time. (Examples: totals, due-date checks, stock thresholds.)

AI when: information is unstructured, language must be interpreted, documents/images must be read, classified, or summarised, creative output is needed, or several imperfect signals must be weighed. (Examples: reading a WhatsApp enquiry, drafting a reply, classifying complaints.)

Most real workflows are a mix — say which parts are which. Prefer the boring rule over AI whenever a rule can do the job; AI only earns its place where rules can't.

R3 — Route: what happens next?

  • Where should each output go: email, WhatsApp, dashboard, Google Sheets, CRM, ERP, task manager, approval request, customer-facing app?
  • Who receives it, and which system gets updated?
  • What runs automatically vs. waits for a human trigger?
  • Route to channels people actually use — ask which channel dominates in this business if it isn't clear from the conversation.

R4 — Review: where must a human remain involved?

Calibrate depth to risk:

  • Money, customers, or employees involved (payments, pricing, customer-facing messages, salaries, attendance, HR actions): go deep. Ask what could go wrong, who approves, whether the action is reversible, how errors will be detected, and which data must never be sent to an external AI service.
  • Internal/low-stakes (internal summaries, drafts a human will edit anyway, reversible actions): keep Review to one confirmation question and a sensible default.

Apply the principle: automate routine work, assist important judgement, retain human approval for high-risk decisions.

Step 6 — The Worth-It Verdict (impact vs complexity)

Before presenting the solution, judge whether it deserves to be built. Score both sides explicitly:

Impact — what solving it is worth:

  • Time saved: (time per occurrence × frequency) → hours/month, and whose hours (owner time is worth more than idle time)
  • Money: revenue protected or gained (missed enquiries, faster quotes), or direct cost avoided
  • Error/risk reduction: mistakes prevented, customers not annoyed, compliance
  • Compounding value: does it also fix the Record (creating data that helps future problems)?

Complexity — what it costs to get there:

  • Tool count & integration: each tool that must talk to another adds fragility. A 1-tool solution beating a 4-tool chain is usually the right trade even if slightly less capable.
  • Setup effort: one-time hours/days to build, and who has the skill to build it
  • Ongoing burden: monthly tool cost, maintenance, "who fixes it when it breaks"
  • Change effort: will people actually adopt it? Habit change is often the hardest part.
  • Reasoning fragility: rule-based parts are cheap to trust; AI parts need review loops, which add ongoing human time — count that time against the savings.

Deliver the verdict as a position on the impact/complexity grid plus a recommendation:

Low complexityHigh complexity
High impact✅ Quick win — do now🎯 Big bet — do in phases, pilot first
Low impact🤷 Fill-in — do if 30 min spare❌ Not worth it — skip or simplify

Always state the rough payback in plain terms: "Setup ≈ 1 day + ₹X/month; saves ≈ Y hours/month of Z's time → pays back in ~N weeks." Rough numbers are fine; honesty matters more than precision.

Be willing to say no. If the verdict is "not worth it", say so plainly and offer the cheaper alternative: a simpler manual process, a partial automation of just the worst step, or "revisit when volume doubles." A skill that always says "yes, automate it" is useless.

If two viable solution shapes exist with different trade-offs (e.g. fast-but-many-tools vs slow-but-simple), show both on the grid and recommend one.

Step 7 — The High-Level Brief (in chat)

Deliver a compact brief in chat using this exact structure:

## [Workflow name]

**Problem:** one line.

**4R Summary**
| R | Conclusion |
|---|---|
| Record | where truth lives + any new record to create |
| Reason | which parts are rules, which parts are AI |
| Route | outputs → destinations, auto vs manual |
| Review | approval points + data-privacy limits |

**Worth-It Verdict:** [grid position + emoji] — one-line payback statement.

**Execution flow (high level)**
1. …
2. …
(5–8 numbered steps from "today" to "running")

**Recommended tools**
- [Category] → 1–2 concrete options (e.g. "Automation layer → Zapier or Make")

Tool recommendations: state the category first, then 1–2 concrete tools, preferring tools the user mentioned they already use before suggesting anything new. Note rough cost tier (free / low / paid) for new tools, and keep the tool count as low as the solution allows.

Then ask: "Want the detailed version?" (Skip this and stop after the verdict if the verdict was ❌ Not worth it — unless the user insists.)

Step 8 — The Detailed Brief (on request)

Expand each high-level step into:

  • What exactly to do (concrete actions, not vague advice)
  • Who does it (mapped to the roles discussed in the conversation)
  • Rough effort (hours/days, and one-time vs ongoing)
  • Pilot plan: always propose starting with a small scope (one product line, one week of data, one staff member), a success measure, and the go/no-go check before scaling
  • Failure modes & fallback for the risky steps (mandatory when money/customers/employees are involved)

Use references/brief-template.md for the full detailed-brief structure, including the Worth-It scorecard table.

Step 9 — Offer the document

After the brief (high-level or detailed), offer to save it as a document. If accepted, create a markdown file named workflow-<short-name>.md containing the detailed brief and present it, so the user builds a library of solved workflows over time.

If the verdict was not ❌ Not worth it, and the "Recommended tools" section has enough concrete detail to act on, separately offer a second, implementation-ready file: implementation-<short-name>.md. This goes beyond category-level tool suggestions into the actual configuration steps for the specific tool(s) chosen — e.g. the exact Zapier trigger/action steps, a Make.com module sequence, or the specific Sheet/Airtable structure needed. Use references/implementation-spec-template.md for its structure. Skip this offer when the solution is too generic yet or the verdict was ❌.

Step 10 — Revisions

If the user asks to change a conclusion after a brief has already been delivered (e.g. "make Route go to WhatsApp instead of email"):

  1. Patch the specific R that changed — don't restart the walkthrough.
  2. Check for ripple effects into the other R's before regenerating, and call them out explicitly rather than silently patching one section. Common ripples: changing Route can change who's in Review (a different channel often means a different approver); changing Reason (rule vs AI) can change Review depth; changing Record can change which parts of Reason are even possible.
  3. Re-run the Worth-It Verdict — the numbers may have shifted — and regenerate the brief (high-level, and detailed/implementation files if they were already produced).
  4. If a document was already saved, offer to update that same file rather than creating a new one.

Style rules

  • One R per message during the walkthrough; never dump all questions at once.
  • Prefer inferring from the conversation over asking; confirm inferences in half a sentence.
  • Be opinionated in conclusions ("use a rule here, not AI"; "skip this, it's not worth it") and explain why in one line.
  • Keep the whole conversation, start to high-level brief, under ~6 user turns for a typical problem.
  • When multiple problems are described up front, triage with one line + a gut-check each (Step 0) — don't go deep on more than one at a time.
  • When revising a delivered brief, patch and ripple-check (Step 10) — don't make the user restart from Frame the problem.

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.