fernandoteixxeira/stark-bank-challenge/process-diagram

Claude Code and agent skill by fernandoteixxeira/stark-bank-challenge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when creating, reviewing, or updating process diagrams for business flows, operational workflows, decision trees, backend processing, retries, compensations, idempotency, SDD specs, and Mermaid flowchart syntax.

Install

npx vskill@latest install fernandoteixxeira/stark-bank-challenge/process-diagram

SKILL.md

The same SKILL.md was published earlier as fernandoteixxeira/stark-bank-challenge/process-diagram.

Process Diagram

Use process diagrams to explain how work moves through a system from trigger to outcome. Prefer them for business workflows, backend processing steps, decisions, retries, and operational procedures.

Core Rules

  • Use a process diagram when the main question is "what happens next?"
  • Keep one diagram focused on one process or scenario.
  • Start with a clear trigger and end with explicit outcomes.
  • Use decision nodes only for real branches.
  • Label steps with action-oriented verbs.
  • Show retry, rejection, dead-letter, and compensation paths when they affect correctness.
  • Keep implementation details out unless they change the process.

Mermaid Flowchart Syntax

Use fenced mermaid blocks with flowchart TD for most backend processes.

`markdown

flowchart TD Start([Event received]) --> Validate{Valid signature?} Validate -- No --> Reject[Reject request] Validate -- Yes --> Relevant{Relevant event type?} Relevant -- No --> Ignore[Ignore event] Relevant -- Yes --> Publish[Publish order placed event] Publish --> Accepted([Return 2xx])

Node Types

  • Use rounded terminal nodes for process start/end: Start([Start]).
  • Use rectangles for actions: Create[Create order].
  • Use diamonds for decisions: Valid{Valid signature?}.
  • Use database cylinders for storage: Store[(Order Store)].
  • Use queues/topics as named action or storage nodes when Mermaid support is limited: Topic[order-events-topic].

Direction

  • Use flowchart TD for sequential processing and decision-heavy flows.
  • Use flowchart LR for high-level system handoffs.
  • Avoid switching direction inside the same diagram unless it greatly improves readability.

Labeling

Good labels state a concrete action or a concrete question:

  • Validate request signature
  • Publish event
  • Reserve idempotency key
  • Mark event processed

Keep the specific numbers and rules of a given system out of the notation guidance and in that system's spec. A label reads Create orders; how many, and how often, is a requirement.

Avoid labels that are too vague:

  • Process
  • Handle
  • Do validation
  • Save data

Recurring Shapes

These are notation patterns, not prescribed flows. The rules of any particular system belong in its spec.

A gate that decides whether work runs at all:

mermaid
flowchart TD
Start([Trigger fires]) --> Gate{Eligible to run?}
Gate -- No --> Skip([Skip this run])
Gate -- Yes --> Work[Perform the work]
Work --> Done([Wait for next trigger])

A validation funnel, where each check can exit early:

mermaid
flowchart TD
Start([Receive request]) --> Auth{Authentic?}
Auth -- No --> Reject[Return unauthorized]
Auth -- Yes --> Relevant{Relevant to this consumer?}
Relevant -- No --> Ignore[Acknowledge without acting]
Relevant -- Yes --> Accept[Accept for processing]
Accept --> Accepted([Return 2xx])

An idempotent side effect, where the reservation precedes the external call:

mermaid
flowchart TD
Start([Event received]) --> Reserve{Reserve idempotency key}
Reserve -- Already processed --> AckDuplicate[Acknowledge without acting]
Reserve -- Reserved --> Call[Call external system]
Call --> Success{Succeeded?}
Success -- Yes --> Mark[Mark processed]
Success -- No --> Retry[Retry or send to dead-letter]
Mark --> Done([Acknowledge])
Retry --> End([Processing deferred])

Note the ordering in the last one: reserve before the external call, mark after it. That ordering is the technique. Which systems are involved is not.

Branching and Retries

Show failure paths when they affect behavior or tests:

  • invalid input or invalid signature
  • duplicate event
  • missing required fields on the incoming payload
  • external API failure
  • datastore write failure
  • message publish failure
  • retry exhaustion and dead-letter handling

Use labels on edges to clarify decisions:

mermaid
flowchart TD
A{External API available?}
A -- Yes --> B[Create shipment]
A -- No --> C[Retry with backoff]

Process vs Sequence

Use a process diagram when the focus is decision flow and outcomes.

Use a sequence diagram when the focus is interaction order between participants.

If both are useful:

  • process diagram: summarize what decisions the system makes
  • sequence diagram: show who calls whom and when acknowledgements happen

SDD Integration

When adding process diagrams to SDD specs:

  • Put business process diagrams in Domain Rules.
  • Put backend processing diagrams in Architecture Notes.
  • Put retry and idempotency processes near Data and Persistence or Domain Rules.
  • Tie diagram branches to acceptance criteria in nearby text.
  • Keep requirements as prose bullets; do not encode every requirement inside the diagram.

Rendering Safety

  • Keep node IDs simple: letters, numbers, and underscores.
  • Avoid duplicate node IDs.
  • Wrap complex labels in quotes only when needed.
  • Avoid punctuation-heavy labels.
  • If rendering fails, simplify labels and remove special characters first.

Review Checklist

  • The diagram has a clear trigger and clear end states.
  • Each step is an action or decision, not a vague placeholder.
  • Decision branches are labeled.
  • Failure, retry, and duplicate paths are shown when relevant.
  • The diagram does not mix process flow with class structure.
  • The level of detail matches the spec or discussion.
  • The surrounding text explains assumptions, constraints, and unresolved questions.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fernandoteixxeira/stark-bank-challenge/process-diagram/badge)](https://verified-skill.com/skills/fernandoteixxeira/stark-bank-challenge/process-diagram)

Something wrong with this skill or its page? Tell us.