fernandoteixxeira/stark-bank-challenge/process-diagram
Claude Code and agent skill by fernandoteixxeira/stark-bank-challenge
- community
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-diagramSKILL.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.
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 TDfor sequential processing and decision-heavy flows. - Use
flowchart LRfor 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 signaturePublish eventReserve idempotency keyMark 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:
ProcessHandleDo validationSave 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:
A validation funnel, where each check can exit early:
An idempotent side effect, where the reservation precedes the external call:
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:
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 PersistenceorDomain 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
- SKILL.md in the repositoryChecking.skills/process-diagram/SKILL.md
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
[](https://verified-skill.com/skills/fernandoteixxeira/stark-bank-challenge/process-diagram)