spring-ai-loom-agent: Instructions file for Claude Code

CLAUDE.md

spring-ai-loom-agent CLAUDE.md is an instructions file for Claude Code from wb04307201/spring-ai-loom-agent. It costs 6,850 tokens per session, scanned C, original, Apache-2.0.

Repository guidance for Spring AI LoomAgent, a Spring Boot library that adds a chat interface, document search, tool calling, skills, and user roles to Spring AI applications. It also describes the Java, Maven, database, and migration setup.

In plain words
What is it for?
Use it when working on the chat UI, knowledge search, tool connections, skills, permissions, modules, or database migrations.
Why use it?
It gives agents the architecture and project conventions needed to change a multi-module Java application safely.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is wb04307201/spring-ai-loom-agent's own configuration. It tells Claude Code how to work on spring-ai-loom-agent 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 spring-ai-loom-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wb04307201/spring-ai-loom-agent. 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/wb04307201/spring-ai-loom-agent/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/wb04307201/spring-ai-loom-agent

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 spring-ai-loom-agent CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wb04307201/spring-ai-loom-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/wb04307201/spring-ai-loom-agent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,850 This file is loaded in full into every session.
When invoked 6,850 The same file — it is already loaded in full.
Security scan C 1 finding. 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.06850 $0.06850
Opus 5 $0.03425 $0.03425
Sonnet 5 $0.01370 $0.01370
Haiku 4.5 $0.00685 $0.00685

Measured 5d ago against content hash cb6b88236bd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

spring-ai-loom-agent CLAUDE.md scanned grade C with 1 finding 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 5d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Schema** (单一 V1.0 一站式 init,**项目只跑全新库**;任何已有 V1/V2 历史部署必须 `flyway baseline` 或 `rm -rf ~/.loom/datasource` 重跑):
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

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Spring AI LoomAgent — A Spring Boot auto-configuration library that provides an out-of-the-box chat UI with RAG knowledge base, MCP tool calling, Skill library + Skill market, and role-based access (RBAC) for Spring AI applications.

  • JDK: 17+
  • Framework: Spring Boot 3.x + Spring AI 1.x
  • Build: Maven (multi-module)
  • Database: H2 (default), with Flyway migrations

Project Overview Images

docs/project-overview-en.png and docs/project-overview-zh.png (shown at the top of README.md / README.zh-CN.md) are generated from project source + README.md + this CLAUDE.md by the project skill at .claude/skills/project-overview-image/ using DashScope wan2.7-image (generate.py PRIMARY_MODEL; requires DASHSCOPE_WORKSPACE_ID + DASHSCOPE_API_KEY). The infographic layout (single source of truth) lives in generate.py's EN_LAYOUT / ZH_LAYOUT — edit those, not the PNGs. Regenerate via the skill trigger phrases ("更新项目概览图", "刷新 README 顶部的 overview 图", "生成 docs/project-overview-{en,zh}.png") whenever the architecture changes meaningfully — never hand-edit the PNGs.

Module Structure

Module Purpose
spring-ai-loom-agent Core library — chat, knowledge base, file, MCP, skill (market + role auth), RBAC (user/role/mcp), user interfaces + default implementations, JVector vector store, H2 schema, static frontend resources
spring-ai-loom-agent-spring-boot-autoconfigure LoomAgentConfiguration with 7 nested static @Configuration classes (Infrastructure, Chat, Rag, Mcp, Tool, Storage, Web) — @AutoConfiguration with @ConditionalOnMissingBean on all beans for full replaceability
spring-ai-loom-agent-spring-boot-starter Empty JAR that depends on autoconfigure — the one dependency users add
spring-ai-loom-agent-test Test application with application.yml — run locally to verify changes

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. 5d ago Changed · +97 lines · +1,911 tokens per session cb6b88236bd2
  2. 9d ago First seen · 169 lines · 4,939 tokens per session scan C 3def1315e317

Subscribe to this mod's changes

spring-ai-loom-agent CLAUDE.md is an instructions file published in the GitHub repository wb04307201/spring-ai-loom-agent (327 stars, last pushed 9d ago), licensed Apache-2.0. It adds 6,850 tokens to every session, about $0.0343 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens