Borrowing it
Nothing to install: this file belongs to Flexonze/claude-init. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Flexonze/claude-init/main/.claude/skills/generate-sequence-diagram/SKILL.mdgit clone --depth 1 https://github.com/Flexonze/claude-initWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/flexonze/claude-init/generate-sequence-diagram)<a href="https://agentmods.dev/skills/flexonze/claude-init/generate-sequence-diagram"><img src="https://agentmods.dev/badge/skills/flexonze/claude-init/generate-sequence-diagram/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/flexonze/claude-init/generate-sequence-diagram"><img src="https://agentmods.dev/badge/skills/flexonze/claude-init/generate-sequence-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.00719 |
| Opus 5.5 | $0.00005 | $0.00288 |
| Sonnet 5.5 | $0.00002 | $0.00144 |
| Haiku 4.5 | $0.00001 | $0.00072 |
Grade A, and why
generate-sequence-diagram 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Sequence Diagram
Generate a simple Mermaid sequence diagram showing the flow of a feature: $ARGUMENTS
Instructions
1. Identify the Feature Flow
Search the codebase to understand how the feature works:
- Find the entry point (API view, signal, management command, etc.)
- Identify the key functions/methods called
- Understand the order of operations
- Note important interactions between components
Guidelines
- Focus on the main happy path flow
- Keep it simple - only show essential steps
- Include key function calls and their purpose
- Skip trivial operations (logging, validation unless critical)
2. Generate Mermaid Sequence Diagram
Follow these rules:
- Use Mermaid sequence diagram syntax
- Keep it SIMPLE - max 10-15 key steps
- Show participants (actors, models, functions, external services)
- Use clear, descriptive step descriptions
- Group related operations in loops or alt blocks when helpful
- Add notes to separate major phases
Example Output
sequenceDiagram
autonumber
Note over User,Storage: CREATING RESOURCE
participant User
participant API
participant create_resource
participant Storage
User->>API: POST /resources/ with data
API->>create_resource: create_resource(data)
create_resource->>Storage: Save to database
create_resource-->>API: Return resource
API-->>User: Return 201 Created
Note over User,Storage: PROCESSING RESOURCE
participant process_task
API->>process_task: process_resource.delay(resource_id)
loop Each item
process_task->>process_task: Process item
end
process_task->>Storage: Update status
3. Generate the Diagram Image
- Create an SVG image:
.claude/outputs/sequence-diagram-<feature-name>.svg(use kebab-case) - Create the
.claude/outputs/directory with a.gitkeepif it doesn't exist - Use SVG format for better scalability and readability
Steps
- Pipe the Mermaid sequence diagram code directly to
npx @mermaid-js/mermaid-cliusing stdin:mkdir -p .claude/outputs && touch .claude/outputs/.gitkeep && cat << 'EOF' | npx -y @mermaid-js/mermaid-cli -i - -o .claude/outputs/sequence-diagram-<feature-name>.svg sequenceDiagram autonumber participant User participant API participant create_resource User->>API: POST /resources/ API->>create_resource: create_resource(data) create_resource-->>API: resource API-->>User: 201 Created EOF - Inform the user that the diagram has been created at
.claude/outputs/sequence-diagram-<feature-name>.svg
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.
- 2mo ago First seen · 99 lines · 12 tokens per session scan A 30b1b56cb955
generate-sequence-diagram is a skill published in the GitHub repository Flexonze/claude-init (10 stars, last pushed 7mo ago), licensed MIT. It adds 12 tokens to every session and 719 once invoked, about $0.0000 per session on Opus 5.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-31.
Other skills, from other repositories
chief-data-officer-advisor
Chief Data Officer advisory for startups: AI training data rights and consent provenance, data product strategy (warehouse vs lakehouse vs mesh, build-vs-buy), B2B customer-data-as-asset valuation and M&A readiness, data team org evolution. Use when deciding whether to train models on customer data, choosing data…
wrap-up
Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page, and suggest the next 1-2 upgrades. Use when the user says "wrap up", "close this out", "what do I own now", "give me the summary", "recap the agent", or when the orchestrator routes…
ctf-malware
Provides malware analysis and network traffic techniques for CTF challenges. Use when analyzing obfuscated scripts, malicious packages, custom crypto protocols, C2 traffic, PE/.NET binaries, RC4/AES encrypted communications, YARA rules, shellcode analysis, memory forensics for malware (Volatility malfind, process…
add-cloud-flow
Integrates Power Automate cloud flows into a Power Pages site. Lists available flows, suggests relevant ones based on intent, identifies scenarios and web roles, creates metadata files, and generates client-side code to call flows. Handles both new flow registration and adding already-registered flows to additional…
configure-env-variables
Configures environment variables for Power Pages site settings to support ALM across environments. Creates environment variable definitions in Dataverse, guides the user through linking site settings to those variables via the Power Pages Management app, adds the variables to the solution, and generates a…
edit-site
Plans, coordinates and customizes PAC CLI-downloaded Standard or Enhanced data model non-SPA Power Pages sites created from Microsoft templates or manually in Design Studio. Use for requests involving pages, localized content, navigation, assets, snippets, site markers, Liquid/web templates, page layouts, or styling.…