fernandoteixxeira/stark-bank-challenge/markdown-mermaid

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 writing or reviewing Markdown documentation that includes Mermaid diagrams, including SDD specs, architecture diagrams, sequence diagrams, flowcharts, state diagrams, entity diagrams, event flows, and rendering-safe Mermaid syntax.

Install

npx vskill@latest install fernandoteixxeira/stark-bank-challenge/markdown-mermaid

SKILL.md

The same SKILL.md was published earlier as fernandoteixxeira/stark-bank-challenge/markdown-mermaid.

Markdown Mermaid

Use Mermaid diagrams to clarify relationships, flows, decisions, states, and integration boundaries. Diagrams should support the text, not replace requirements or decisions.

Markdown Rules

  • Put Mermaid diagrams in fenced code blocks with mermaid.
  • Add a short heading or sentence before each diagram explaining what it shows.
  • Keep diagrams close to the section they explain.
  • Prefer ASCII labels unless the surrounding document already uses Portuguese text with accents consistently.
  • Avoid very large diagrams. Split by concern when the diagram becomes hard to scan.
`markdown

flowchart TD A[Start] --> B[Process]

Choosing a Diagram

  • Use flowchart for decisions, processing steps, retries, and system flows.
  • Use sequenceDiagram for request/response interactions and webhook/event choreography.
  • Use stateDiagram-v2 for lifecycle/status transitions.
  • Use classDiagram for domain model relationships when ER syntax is not enough.
  • Use erDiagram for document or relational data relationships only when relationships matter.
  • Use C4Context or simple flowchart for architecture boundaries; prefer simple flowchart when C4 support is uncertain.
  • Use journey sparingly for user/operator workflows.

Flowcharts

Use top-down flowcharts for backend processing.

mermaid
flowchart TD
A[Receive provider event] --> B{Valid signature?}
B -- No --> C[Reject request]
B -- Yes --> D[Persist event idempotency key]
D --> E[Publish broker message]
E --> F[Return success]

Guidelines:

  • Use TD for vertical process flow.
  • Use decision nodes only for real branches.
  • Keep labels short and behavior-oriented.
  • Avoid styling unless it adds useful meaning.

Sequence Diagrams

Use sequence diagrams for integrations and timing.

mermaid
sequenceDiagram
participant Ext as External Provider
participant API as Inbound API
participant Broker as Message Broker
participant Worker as Processor
Ext->>API: POST /events/orders
API->>API: Validate request signature
API->>Broker: Publish validated event
API-->>Ext: 2xx
Broker->>Worker: Deliver message
Worker->>Worker: Process idempotently

Guidelines:

  • Use aliases for external systems.
  • Show validation, persistence, publish, acknowledgement, and retry points when relevant.
  • Do not include every method call. Show system-level behavior.

State Diagrams

Use state diagrams for lifecycle rules.

mermaid
stateDiagram-v2
[*] --> Received
Received --> Validated
Received --> Rejected
Validated --> Published
Published --> Processed
Published --> DeadLettered
DeadLettered --> Replayed
Replayed --> Processed

Guidelines:

  • State names should be stable domain/status words.
  • Add transitions only when they can happen in the system.
  • Keep error states explicit.

Entity Diagrams

Use erDiagram when persistence relationships help the reader understand indexes, ownership, or lookup patterns.

mermaid
erDiagram
INBOUND_EVENT {
string id
string source
string subscription
string status
datetime receivedAt
}
PROCESSING_ATTEMPT {
string id
string eventId
string status
datetime attemptedAt
}
INBOUND_EVENT ||--o{ PROCESSING_ATTEMPT : has

Guidelines:

  • Keep fields to the ones important for the spec.
  • Do not model every persistence detail unless it matters for behavior.
  • For document stores, explain embedding vs referencing in text next to the diagram.

Architecture Diagrams

Use flowcharts for hexagonal architecture and cloud components.

mermaid
flowchart LR
Ext[External Provider] --> Inbound[Event Controller]
Inbound --> UseCase[Application Use Case]
UseCase --> EventPort[Event Publisher Port]
EventPort --> Broker[Message Broker Adapter]
UseCase --> RepositoryPort[Event Repository Port]
RepositoryPort --> Store[(Managed Database)]

Guidelines:

  • Direction should reflect dependency or runtime flow, but do not mix both without explaining.
  • Label ports as ports and adapters as adapters when documenting hexagonal architecture.
  • Use database cylinder syntax for data stores: Store[(Managed Database)].

Rendering Safety

  • Avoid unescaped colons, quotes, pipes, and parentheses in labels when they cause rendering errors.
  • Wrap complex labels in quotes: A["POST /events/orders"].
  • Keep node IDs simple: letters, numbers, and underscores.
  • Avoid duplicate node IDs.
  • Prefer <br/> for line breaks inside labels only when needed.
  • If Mermaid rendering fails, simplify labels first before changing the diagram type.

Spec Integration

When adding diagrams to SDD specs:

  • Put flow diagrams in Architecture Notes or Interfaces and Contracts.
  • Put lifecycle diagrams in Domain Rules.
  • Put persistence diagrams in Data and Persistence.
  • Put sequence diagrams near external integration contracts.
  • Reference requirements in nearby text, not inside dense diagram labels.

Quality Checklist

  • The diagram answers a concrete reader question.
  • The diagram type matches the information being shown.
  • The Mermaid block renders with valid syntax.
  • Labels are short and consistent with the domain language.
  • The surrounding text explains decisions, constraints, and tradeoffs.

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/markdown-mermaid/badge)](https://verified-skill.com/skills/fernandoteixxeira/stark-bank-challenge/markdown-mermaid)

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