Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

flowbookflowbook 搜索

Agent Skill

flowbook 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

218

周安装

9

GitHub Stars

15

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:flowbook(flowbook 搜索)
来源仓库:https://github.com/epsilondelta-ai/flowbook
仓库路径:skills/flowbook
安装命令:
npx skills add https://github.com/epsilondelta-ai/flowbook --skill flowbook
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/epsilondelta-ai/flowbook --skill flowbook

简介

flowbook 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • 建议结合原始 README 和仓库路径进一步核验具体用法和功能边界。

SKILL.md

flowbook — Flowchart Documentation Generator

Analyze codebase logic → setup flowbook → generate .flow.md files → verify → build.

Execute ALL phases in order. Do NOT skip phases. Generate flows for ALL significant logic — not just a few.


Phase 1: Project Analysis

1.1 Check Flowbook Existence

Check if flowbook is already set up:

  • package.json has "flowbook" script → Already initialized, skip Phase 2
  • Otherwise → Proceed to Phase 2

1.2 Detect Package Manager

LockfilePM
bun.lock or bun.lockbbun
pnpm-lock.yamlpnpm
yarn.lockyarn
package-lock.jsonnpm

1.3 Detect Framework & Language

Read package.json dependencies:

DependencyFramework
nextNext.js
nuxtNuxt
@sveltejs/kitSvelteKit
svelte (no kit)Svelte
vue (no nuxt)Vue
@angular/coreAngular
express / fastify / hono / koaNode.js Backend
@nestjs/coreNestJS
react (no next)React
django / flask / fastapiPython Backend
springJava/Kotlin Backend
gin / echo / fiberGo Backend

Language detection:

  • tsconfig.json → TypeScript
  • *.go files → Go
  • *.py files → Python
  • *.java / *.kt files → Java/Kotlin
  • Otherwise → JavaScript

1.4 Detect Source Structure

Scan for actual source directories:

Frontend:

  • src/components/, src/pages/, src/views/, src/routes/
  • src/app/, app/, pages/, components/
  • src/store/, src/hooks/, src/composables/, src/lib/

Backend:

  • src/routes/, src/api/, src/controllers/, src/services/
  • src/middleware/, src/handlers/, src/resolvers/
  • routes/, api/, controllers/, services/

Shared:

  • src/utils/, src/helpers/, src/lib/
  • src/models/, src/schemas/, src/types/

Only include directories that actually exist.


Phase 2: Flowbook Setup

2.1 Initialize Flowbook

npx flowbook@latest init

This will:

  • Install flowbook as a devDependency
  • Add "flowbook" and "build-flowbook" scripts to package.json
  • Create flows/example.flow.md as a starter template
  • Add flowbook-static to .gitignore

2.2 Verify Setup

Check that:

  • package.json contains "flowbook": "flowbook dev" script
  • flowbook is in devDependencies
  • flows/ directory exists

2.3 Remove Example Flow

After verification, delete the example to replace with real flows:

rm flows/example.flow.md

Phase 3: Codebase Analysis & Flow Discovery

This is the most critical phase. Deeply analyze the codebase to identify all significant logic flows.

3.1 Flow Categories to Discover

Scan the codebase for these flow types. For EACH one found, plan a .flow.md file:

A. API / Route Flows

  • HTTP request → middleware chain → handler → response
  • REST endpoints (GET, POST, PUT, DELETE)
  • GraphQL resolvers (Query, Mutation)
  • WebSocket message flows
  • RPC handlers

B. Authentication & Authorization

  • Login / signup / logout flows
  • Token refresh / session management
  • OAuth flows (redirect → callback → token exchange)
  • Role-based access control (RBAC) decision trees
  • Password reset / email verification

C. Data Flows

  • CRUD operations (Create → Validate → Save → Respond)
  • Data pipeline / ETL (Extract → Transform → Load)
  • Form submission → validation → API call → state update
  • File upload → process → store → respond
  • Cache strategies (read-through, write-through, invalidation)

D. State Management

  • Global state flow (Redux, Zustand, Pinia, Vuex)
  • Action → Reducer → State → UI update cycle
  • Side effects (Sagas, Thunks, Effects)
  • Optimistic updates → rollback on failure

E. Business Logic

  • Order processing / checkout flow
  • Payment flow (initiate → process → confirm / refund)
  • Notification system (trigger → queue → send → track)
  • Scheduling / cron job flows
  • Approval workflows (submit → review → approve/reject)

F. Error Handling

  • Global error boundary flow
  • Retry strategies (exponential backoff)
  • Fallback / circuit breaker patterns
  • Error logging / monitoring pipeline

G. DevOps & Infrastructure

  • CI/CD pipeline stages
  • Deployment flow
  • Health check / monitoring flow
  • Database migration flow

H. Lifecycle & Initialization

  • App bootstrap / initialization sequence
  • Component lifecycle flows
  • Server startup → middleware registration → route binding → listen
  • Database connection → migration → seeding → ready

3.2 How to Analyze

For each source file:

  1. Read the file — understand its purpose
  2. Trace the flow — follow function calls, conditionals, async operations
  3. Identify decision points — if/else, switch, try/catch, early returns
  4. Map dependencies — what other modules/services does it call?
  5. Note error paths — what happens when things fail?

3.3 Flow Classification

For each discovered flow, determine:

FieldHow to Determine
titleClear, descriptive name (e.g., "User Login Flow")
categoryGroup by domain: Authentication, API, Data, State, Business, DevOps, etc.
tagsRelevant keywords for filtering
orderLower = more important. Core flows first.
descriptionOne-line summary of what the flow does

3.4 Skip Rules

Do NOT create flows for:

  • Trivial utility functions (formatDate, slugify, etc.)
  • Simple getters/setters with no logic
  • Type definitions / interfaces only
  • Test files
  • Config files (unless they represent a complex pipeline)
  • Files that already have corresponding .flow.md

Phase 4: Flow File Generation

4.1 File Placement

Place ALL flow files in the flows/ directory at project root:

flows/
├── auth-login.flow.md
├── auth-oauth.flow.md
├── api-user-crud.flow.md
├── data-order-processing.flow.md
├── state-cart-management.flow.md
└── devops-ci-pipeline.flow.md

Naming convention: {category}-{name}.flow.md (kebab-case)

4.2 Flow File Template

Every .flow.md file MUST follow this structure:

---
title: {Descriptive Title}
category: {Category Name}
tags: [{tag1}, {tag2}, {tag3}]
order: {number}
description: {One-line description}
---

flowchart TD A[Start] --> B{Decision} B -->|Yes| C[Action] B -->|No| D[Other Action] C --> E[End] D --> E

4.3 Mermaid Diagram Guidelines

Node Types

flowchart TD
    A[Regular Step]         %% Rectangle: action/process
    B{Decision Point}       %% Diamond: if/else, switch
    C([Start / End])        %% Stadium: entry/exit points
    D[(Database)]           %% Cylinder: DB operations
    E[[Sub-routine]]        %% Subroutine: function call
    F>Event / Signal]       %% Flag: async event, webhook
    G{{Validation}}         %% Hexagon: validation step
    H[/Input/]              %% Parallelogram: user input
    I[\Output\]             %% Reverse parallelogram: response

Label Quoting Rules (MANDATORY)

Node labels containing special characters MUST be wrapped in double quotes to prevent Mermaid parse errors.

Characters that REQUIRE quoting:

CharacterWhy it breaksUnquoted (BROKEN)Quoted (CORRECT)
()Conflicts with ([...]) stadium and (...) rounded shapesA([Agent run() Start])A(["Agent run() Start"])
{}Conflicts with {...} diamond shapeB{tokio::select!{}}B{"tokio::select!{}"}
[]Conflicts with [...] rectangle shapeC[arr[0] value]C["arr[0] value"]
::Interpreted as Mermaid class/namespace syntaxD[std::io::Error]D["std::io::Error"]
#Interpreted as Unicode escape or commentE[Issue #42]E["Issue #42"]
&Interpreted as HTML entity startF[A & B]F["A & B"]

Rule: When in doubt, quote it. Quoting a label that doesn't need it causes no harm. Unquoted special characters WILL break rendering.

Examples of correct quoting by node shape:

flowchart TD
    A(["fn main() entry"])         %% Stadium with parens
    B["process_data(input)"]       %% Rectangle with parens
    C{"is_valid(x)?"}              %% Diamond with parens
    D[["handle_error(err)"]]       %% Subroutine with parens
    E{{"validate(req)"}}           %% Hexagon with parens
    F["Config::new()"]             %% Rectangle with double colon

NEVER generate unquoted labels containing (), {}, [], ::, #, or &.

Edge Labels

flowchart TD
    A{Authenticated?} -->|Yes| B[Dashboard]
    A -->|No| C[Login Page]
    D[API Call] -->|200 OK| E[Process Data]
    D -->|4xx/5xx| F[Handle Error]
    G[Submit] -->|Valid| H[Save]
    G -->|Invalid| I[Show Errors]

Styling — Flow-Group Coloring

Color nodes by logical flow group, not by shape. Nodes on the same path or serving the same purpose share a color.

Step 1: Identify flow groups — Analyze the diagram and group nodes by semantic role:

  • Happy path / success flow
  • Error / failure / rejection path
  • Validation / guard checks
  • External service calls (API, third-party)
  • Data storage operations (DB read/write, cache)
  • User interaction points (input, redirect)
  • Each distinct branch from a decision point

Step 2: Assign colors using classDef + class — One classDef per group, then apply with class:

flowchart TD
    A([POST /api/login]) --> B{{"Validate Input"}}
    B -->|Invalid| C[\400 Bad Request/]
    B -->|Valid| D[(Find User)]
    D -->|Not Found| E[\401 Unauthorized/]
    D -->|Found| F{{Compare Password}}
    F -->|Mismatch| E
    F -->|Match| G[Generate Token]
    G --> H[(Save Token)]
    H --> I[\200 OK + Token/]

    classDef entry fill:#6366f1,stroke:#818cf8,color:#fff
    classDef validation fill:#f59e0b,stroke:#fbbf24,color:#000
    classDef success fill:#10b981,stroke:#34d399,color:#fff
    classDef error fill:#ef4444,stroke:#f87171,color:#fff
    classDef data fill:#3b82f6,stroke:#60a5fa,color:#fff

    class A entry
    class B,F validation
    class G,I success
    class C,E error
    class D,H data

Color palette (assign by flow group, not by shape):

GroupColorHexUse When
Entry/ExitIndigo#6366f1Start/end points of the flow
Success pathGreen#10b981Happy path, successful operations
Error pathRed#ef4444Failures, rejections, error responses
ValidationAmber#f59e0bGuards, checks, decision points that validate
Data opsBlue#3b82f6DB reads/writes, cache, storage
ExternalPurple#8b5cf6Third-party API calls, external services
User actionCyan#06b6d4User-facing interactions, redirects
ProcessingSlate#64748bInternal processing, transformation

Rules:

  • Nodes on the same logical path MUST share the same classDef
  • A decision node (diamond) gets the color of the flow group it guards (e.g., validation diamond → validation class)
  • If a node belongs to multiple paths, color it by its primary purpose
  • Use classDef + class (NOT individual style per node) — it's cleaner and groups are explicit
  • Keep to 3–5 color groups per diagram. Too many colors defeats the purpose
  • Uncolored nodes use the theme default — only color nodes that benefit from grouping

Subgraphs for Complex Flows

Use subgraphs to group related steps:

flowchart TD
    A([Request]) --> B

    subgraph Middleware
        B[Auth Check] --> C[Rate Limit] --> D[Parse Body]
    end

    D --> E

    subgraph Handler
        E[Validate Input] --> F{Valid?}
        F -->|Yes| G[Process]
        F -->|No| H[Return 400]
    end

    G --> I[(Save)]
    I --> J[\200 OK/]
    H --> K[\400 Error/]

4.4 Complexity Guidelines

  • Simple flows (3-8 nodes): Single linear or branching flow
  • Medium flows (8-15 nodes): Multiple branches, some subgraphs
  • Complex flows (15-25 nodes): Multiple subgraphs, parallel paths
  • Do NOT exceed 25 nodes per diagram — split into multiple flows instead

If a flow is too complex:

  1. Create a high-level overview flow
  2. Create detailed sub-flows for each section
  3. Reference sub-flows in the overview's description

4.5 Real-World Example

For a Next.js API route app/api/auth/login/route.ts:

---
title: User Login
category: Authentication
tags: [auth, login, jwt, api]
order: 1
description: POST /api/auth/login — validates credentials and returns JWT tokens
---

flowchart TD A([POST /api/auth/login]) --> B[/Parse Request Body/] B --> C{{"Validate Email & Password"}} C -->|Invalid| D[\400 Bad Request/] C -->|Valid| E[(Find User by Email)] E -->|Not Found| F[\401 Unauthorized/] E -->|Found| G{{Compare Password Hash}} G -->|Mismatch| F G -->|Match| H[Generate JWT Access Token] H --> I[Generate Refresh Token] I --> J[(Save Refresh Token)] J --> K[\200 OK + Tokens/]

classDef entry fill:#6366f1,stroke:#818cf8,color:#fff classDef validation fill:#f59e0b,stroke:#fbbf24,color:#000 classDef success fill:#10b981,stroke:#34d399,color:#fff classDef error fill:#ef4444,stroke:#f87171,color:#fff classDef data fill:#3b82f6,stroke:#60a5fa,color:#fff

class A entry class B,C,G validation class H,I,K success class D,F error class E,J data


Phase 5: Verification

5.1 Syntax Check

For each generated .flow.md file:

  1. Verify YAML frontmatter is valid (title, category present)
  2. Verify mermaid code block is properly fenced (mermaid)
  3. Verify mermaid syntax has no obvious errors (matched brackets, valid node IDs)
  4. Special Character Validation (CRITICAL): Scan ALL node labels for unquoted special characters:

- () inside any node shape → MUST be quoted: A(["label()"]) not A([label()]) - {} inside any node shape → MUST be quoted: A{"label{}"} not A{label{}} - [] inside any node shape → MUST be quoted: A["label[]"] not A[label[]] - :: anywhere in labels → MUST be quoted: A["std::io"] not A[std::io] - # anywhere in labels → MUST be quoted: A["Issue #1"] not A[Issue #1] - & anywhere in labels → MUST be quoted: A["A & B"] not A[A & B] - If ANY unquoted special characters are found, fix them BEFORE proceeding to build

  1. Verify all node IDs are unique within each diagram
  2. Verify subgraph labels don't contain special characters

5.2 Build Verification

npx flowbook build 2>&1

If build fails:

  • Read error output
  • Fix the issue (likely malformed mermaid syntax)
  • Retry until build succeeds

5.3 Visual Verification

Start dev server and verify rendering:

npx flowbook dev &
FB_PID=$!
sleep 3

If the playwright skill is available, load it and:

  1. Navigate to http://localhost:6200
  2. Wait for Flowbook UI to load
  3. Check sidebar — all flow categories should appear
  4. Click through each flow — verify diagrams render (no error messages)
  5. Screenshot any failures
kill $FB_PID 2>/dev/null

5.4 Fix-and-Retry Loop

If mermaid diagrams fail to render:

  1. Common issue: special characters in labels — wrap in quotes: A["Label with (parens)"]
  2. Common issue: reserved keywords — prefix with text: A[End Point] not A[End] alone as node content after using End as ID
  3. Re-run build verification
  4. Repeat until all diagrams render

Phase 6: Summary Report

Print a summary:

=== Flowbook Report ===
Framework: {detected framework}
Language: {detected language}

Flows generated: {N}
Categories:
  - Authentication: {N} flows
  - API: {N} flows
  - Data: {N} flows
  - State: {N} flows
  - Business Logic: {N} flows
  - DevOps: {N} flows

Files created:
  - flows/{filename}.flow.md — {title}
  - flows/{filename}.flow.md — {title}
  ...

Build: ✅ / ❌

Troubleshooting

Flowbook init fails

  • No package.json: Run npm init -y first
  • Permission error: Check write permissions on project directory

Mermaid syntax errors

  • Brackets: Every [, {, ( must be closed
  • Special characters in labels: Wrap in double quotes: A["User's Input"]
  • Parentheses in labels (MOST COMMON): A([run() Start]) → Parse error. Fix: A(["run() Start"])
  • Double colons in labels: A[std::io::Error] → Interpreted as class syntax. Fix: A["std::io::Error"]
  • Curly braces in labels: B{select!{}} → Conflicts with diamond shape. Fix: B{"select!{}"}
  • Square brackets in labels: C[arr[0]] → Conflicts with rectangle shape. Fix: C["arr[0]"]
  • Hash in labels: D[Issue #42] → Unicode escape. Fix: D["Issue #42"]
  • Ampersand in labels: E[A & B] → HTML entity. Fix: E["A & B"]
  • Arrow syntax: Use --> for solid, -.-> for dotted, ==> for thick
  • Node ID reuse: Each node ID must be unique per diagram. Reuse ID to reference same node.
  • Subgraph naming: Subgraph labels cannot contain special characters

Diagrams too complex

  • Split into overview + detail flows
  • Use subgraphs to group related logic
  • Keep each diagram under 25 nodes
  • Link related flows via description references

Build fails

  • Check mermaid version compatibility (flowbook uses Mermaid 11+)
  • Validate YAML frontmatter (no tabs, proper indentation)
  • Ensure code blocks use triple backticks with mermaid language tag

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

33.84%
按下载量换算24

Codex

32.77%
按下载量换算23

Cursor

19.85%
按下载量换算14

Gemini CLI

9.5%
按下载量换算7

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills