liteflow: Instructions file for Claude Code

CLAUDE.md

liteflow CLAUDE.md is an instructions file for Claude Code from dromara/liteflow. It costs 4,658 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for coding agents working on LiteFlow, a Java framework for building business workflows from rules and components.

In plain words
What is it for?
Use it when building LiteFlow, running its tests, building one module, or preparing release builds for different Java versions.
Why use it?
It gives the agent the project background and the correct Maven build commands, including which parts require newer Java versions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is dromara/liteflow's own configuration. It tells Claude Code how to work on liteflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything liteflow configures →

About the project

LiteFlow is a Java rules engine that represents business logic as reusable components arranged through a domain-specific language, with support for synchronous and asynchronous flows, scripting, nested rules, and runtime refreshes. Teams use it to build and change complex business orchestration, and it can also place AI agents directly in those flows. The catalogue add-ons support LiteFlow-related workflows.

dromara/liteflow · 3,901 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to dromara/liteflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dromara/liteflow/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/dromara/liteflow

Made for: Claude Code.

Wrote 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.

agentmods badge for liteflow CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dromara/liteflow/claude-md/github.svg)](https://agentmods.dev/instructions/dromara/liteflow/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/dromara/liteflow/claude-md"><img src="https://agentmods.dev/badge/instructions/dromara/liteflow/claude-md/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.

agentmods 80×15 button for liteflow CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dromara/liteflow/claude-md"><img src="https://agentmods.dev/badge/instructions/dromara/liteflow/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,658 This file is loaded in full into every session.
When invoked 4,658 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.04658 $0.04658
Opus 5.5 $0.01863 $0.01863
Sonnet 5.5 $0.00932 $0.00932
Haiku 4.5 $0.00466 $0.00466

Measured 1mo ago against content hash dae8481c8076, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

liteflow CLAUDE.md 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 1mo 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.

CLAUDE.md · 266 lines

How it starts

The opening of the file, as written. The whole thing — 266 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

本文件为 Claude Code (claude.ai/code) 在本仓库中工作时提供指引。

概述

LiteFlow(v2.16.1)是一个轻量级规则引擎框架,用于复杂的组件化业务编排。它通过 DSL 驱动工作流,支持热重载和 11 种脚本语言。项目面向 Java 8+(最高支持到 JDK 25),拥有 2000+ 测试用例。

官方文档:https://liteflow.cc/pages/5816c5/

命令

构建

# 构建整个项目(模块集由 JDK 版本自动选择 —— 见下方说明)
mvn clean package -DskipTests

# 带测试构建
mvn clean package

# 构建指定模块
mvn clean package -DskipTests -pl liteflow-core

# 发布生产模块(手动选择 profile,不会自动激活)
mvn clean package -DskipTests -P release-on-8     # JDK 8 发布产物
mvn clean package -DskipTests -P release-on-17     # agent + spring-boot4-starter

JDK 驱动的模块选择(重要): 根 pom.xml 中没有顶层的 <modules> 块 —— 构建的模块列表完全由按 JDK 激活的 profile 提供:

  • compile-8-to-16(在 JDK [1.8,17) 上激活):core、scripts、rules、spring-boot-starter、spring、solon、testcase-el、el-builder、metrics、benchmark。
  • compile-17+(在 JDK [17,) 上激活):以上全部,外加 liteflow-agent 和 liteflow-spring-boot4-starter。

因此 liteflow-agent 和 liteflow-spring-boot4-starter 只有在 JDK 17+ 上构建时才会被纳入。这两个模块以 maven.compiler.target=17 编译,但根 pom 注释指出 agentscope-java(agent 背后的引擎)运行时需要 Java 21+ —— 本仓库当前的开发 JDK 为 21。release-on-8 / release-on-17 这两个 profile 没有 <activation>,必须用 -P 手动选择:release-on-8 发布 JDK 8 产物(含 liteflow-metrics),release-on-17 只发布 liteflow-agent 与 liteflow-spring-boot4-starter。

运行测试

测试用例的编写位置(强制约定): 所有测试用例必须写在 liteflow-testcase-el/ 下对应的测试模块中,禁止写在 liteflow-core、liteflow-metrics、liteflow-spring* 等核心代码模块下。核心代码模块只放生产代码,不放测试。新增功能时,请在 liteflow-testcase-el/ 下选择(或新建)合适的测试模块来覆盖该功能(按框架 / 配置源 / 脚本 / 特性维度划分,见下文「测试基础设施」)。

注意: 根 pom 的 surefire 默认 skipTests=true,直接 mvn test 不会真正执行测试,需要显式加 -DskipTests=false。

# 运行所有测试
mvn test -DskipTests=false

# 运行指定模块的测试(liteflow-testcase-el/ 下有 30+ 个测试模块)
mvn test -DskipTests=false -pl liteflow-testcase-el/liteflow-testcase-el-springboot

# 运行单个测试类
mvn test -DskipTests=false -pl liteflow-testcase-el/liteflow-testcase-el-springboot -Dtest=FlowExecutorTest

# 运行指定的测试方法
mvn test -DskipTests=false -pl liteflow-testcase-el/liteflow-testcase-el-springboot -Dtest=FlowExecutorTest#testExecute

Read the full file on GitHub · 266 lines

Changes

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.

  1. 1mo ago Changed · -17 tokens per session dae8481c8076
  2. 2mo ago First seen · 266 lines · 4,675 tokens per session scan A 32703b4f6f9a

Subscribe to this mod's changes

liteflow CLAUDE.md is an instructions file published in the GitHub repository dromara/liteflow (3,901 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 4,658 tokens to every session, about $0.0186 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-30.

Related

liteflow CLAUDE.md compared with instructions from other repositories

liteflow CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
liteflow CLAUDE.mddromara/liteflowInstructions file3.9k1mo agoApache-2.0A4,658Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode