agentleFS
apacheapache/fesod/AGENTS.md

fesod

AGENTS.md6.3k starsChanged 13 months agoApache-2.0View on GitHub

This file provides guidance for AI coding agents working with the Apache Fesod (Incubating) codebase. Apache Fesod (Incubating) is a Java library for processing spreadsheets (XLS/XLSX/CSV) without OOM, derived from Alibaba EasyExcel. It uses Apache POI under the hood with streaming SAX-based reading. The project is an Apache incubator project and must follow ASF conventions.

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Real-file tests: Prefer AbstractExcelTest.createTempFile() + ExcelAssertions for integration tests

    line 98
  2. Very specific:

    Test data: Use TestDataBuilder.simpleData(n) or model classes in testkit/models/

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md
<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -->

Apache Fesod (Incubating) AI Agent Instructions

This file provides guidance for AI coding agents working with the Apache Fesod (Incubating) codebase.

Project Overview

Apache Fesod (Incubating) is a Java library for processing spreadsheets (XLS/XLSX/CSV) without OOM, derived from Alibaba EasyExcel. It uses Apache POI under the hood with streaming SAX-based reading. The project is an Apache incubator project and must follow ASF conventions.

  • Language: Java 8+ (source/target = 1.8; CI builds on JDK 8, 11, 17, 21, 25 — JDK 17+ is recommended for local development)
  • Build: Maven 3.6.3 via ./mvnw wrapper (project docs require 3.9+, but wrapper currently pins 3.6.3; both work)
  • CI matrix: JDK 8, 11, 17, 21, 25

Build & Test Commands

# Build (runs tests by default, per Maven/Apache convention)
./mvnw clean install

# Fast build without running tests
./mvnw clean install -DskipTests

# Run tests for the library modules only
./mvnw clean package -pl fesod-common,fesod-shaded,fesod-sheet

# Format check / auto-format
./mvnw spotless:check
./mvnw spotless:apply

# Run tests by tag
./mvnw test -Dtest.groups=unit          # fast unit tests only
./mvnw test -Dtest.excludedGroups=fuzz  # exclude slow fuzz tests

# Full install with javadoc (CI validation)
./mvnw install -B -V
./mvnw javadoc:javadoc

Code Style & Conventions

  • Formatter: Palantir Java Format (enforced by Spotless); Checkstyle checks import restrictions during Maven's validate phase
  • Imports: Static imports first, then regular imports; no unused imports (enforced by Spotless importOrder with \#| separator)
  • Import restrictions: Checkstyle allows named static imports from JUnit Assertions/Assumptions, Mockito Mockito/ArgumentMatchers, and AssertJ Assertions through AvoidStaticImport.excludes. These libraries have Maven test scope and are unavailable to production compilation. Other static imports and all wildcard imports remain forbidden by Checkstyle.
  • Indent: 4 spaces
  • License header: ASF Apache 2.0 header required on all .java, .xml, .yml, .toml files. Header template at tools/spotless/license-header.txt; enforced by the Hawkeye workflow (.github/workflows/license-check.yml), not Spotless
  • Lombok: Allowed; config in lombok.config (toString.callSuper = CALL, equalsAndHashCode.callSuper = CALL)
  • Commits: English, format type: description (types: fix, feat, refactor, test, docs, chore, style, dependency)

Module Structure

(root)                 # Root POM (artifactId: fesod-parent), dependency & plugin management
├── fesod-common/      # Zero-dependency utilities (org.apache.fesod.common.util)
├── fesod-shaded/      # Relocated Spring ASM/cglib (org.apache.fesod.shaded)
├── fesod-bom/         # BOM for downstream consumers
└── fesod-sheet/       # Core library: read/write XLS/XLSX/CSV via POI
    ├── src/main/java/org/apache/fesod/sheet/
    │   ├── FesodSheet.java    # Main entry: FesodSheet.read() / FesodSheet.write()
    │   ├── analysis/          # Read pipeline (v03=XLS BIFF, v07=XLSX SAX, csv)
    │   ├── write/             # Write pipeline (builder, executor, handler chains)
    │   ├── metadata/          # Data models, builders, csv/ property/
    │   ├── converters/        # Type conversion framework (by Java type)
    │   └── util/              # DateUtils, NumberUtils, WorkBookUtil, etc.
    └── src/test/java/org/apache/fesod/sheet/
        └── testkit/           # Test infrastructure (NOT a separate module)
            ├── Tags.java      # @Tag constants: unit, round-trip, read, write, format, fuzz
            ├── base/          # AbstractExcelTest (round-trip base)
            ├── assertions/    # ExcelAssertions fluent API
            └── builders/      # TestDataBuilder

Testing Conventions

  • JUnit 5 with PER_CLASS lifecycle and ReplaceUnderscores display name generator (configured globally in fesod-sheet/src/test/resources/junit-platform.properties, not via per-class annotations)
  • Tags (use @Tag(Tags.XXX)):
    • unit — pure logic, no file I/O
    • round-trip — write-then-read via AbstractExcelTest
    • read / write — single-direction tests
    • format — CSV/charset/date format tests
    • fuzz — Jazzer property-based (slow, excluded in PR CI)
  • Real-file tests: Prefer AbstractExcelTest.createTempFile() + ExcelAssertions for integration tests
  • Test data: Use TestDataBuilder.simpleData(n) or model classes in testkit/models/

CI Checks (must pass before merge)

  1. spotless:check — format
  2. License header (hawkeye)
  3. Multi-JDK test matrix (8/11/17/21/25)
  4. mvn install + mvn javadoc:javadoc
  5. CodeQL security scan

Download now (ZIP)

Trending

Less talk lately.thin dataabout the whole repository

Dec 2025: 2 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 2 mentionsJul 2026: 2 mentionsAug 2026: 2 mentionsSep 2026: 1 mentionOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the apache/fesod repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about apache/fesod

The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 14

Talked about on GitHub (14 times).

On GitHub · 14

9 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.