RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/CLAUDE.md/dotCMS/core

CLAUDE.md

dotCMS/src/main/java/com/dotcms/rest/CLAUDE.md
CLAUDE.md

Quality

57/100

Scores the file, not the repository.

Length

316 words

8 headings · 1 code blocks

Repository

949

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
dotCMS/core/dotCMS/src/main/java/com/dotcms/rest/CLAUDE.mdRawGitHub
1# dotCMS REST API Guide for Claude AI
2 
3## 📋 Essential Reference
4 
5**👉 REQUIRED: Read [README.md](./README.md) for comprehensive REST API development guidelines**
6 
7This file contains **AI-specific instructions only**. You MUST follow all patterns, standards, and checklists in README.md.
8 
9---
10 
11## 🤖 AI-Specific @Schema Rules
12 
13### Quick Decision Matrix
14 
15| Method Returns | Use @Schema |
16|---------------|-------------|
17| `ResponseEntity<UserView>` | `implementation = ResponseEntityUserView.class` |
18| `ResponseEntity<List<T>>` | `implementation = ResponseEntityListView.class` |
19| `List<MyEntity>` | `implementation = MyEntityListView.class` ¹ |
20| `Map<String, MyType>` | `implementation = MapStringMyTypeView.class` ¹ |
21| `Map<String, Object>` | `type = "object", description = "..."` |
22| `JSONObject` / AI APIs | `type = "object", description = "...", example = "..."` |
23 
24¹ *Create if doesn't exist: `class MyEntityListView extends ArrayList<MyEntity>`*
25 
26### 🚨 FORBIDDEN for AI
27 
28```java
29❌ @Schema(implementation = Object.class) // Use type = "object" instead
30❌ @Schema(implementation = Map.class) // Use specific view class
31❌ @Schema(implementation = HashMap.class) // Use specific view class
32❌ Missing descriptions on type = "object" // Always add description
33```
34 
35### ✅ AI Description Requirements
36 
37For `@Schema(type = "object")`:
38- **Analyze the method's business logic** to understand what data is returned
39- **Be specific**: "AI search results with contentlets and fragments" not "JSON object"
40- **Add examples** for complex AI/external API responses
41- **Pattern**: "[Service] [operation] response containing [specific data] and [metadata]"
42 
43---
44 
45## 🎯 AI Workflow
46 
471. **READ** [README.md](./README.md) patterns and requirements
482. **ANALYZE** method return statement - wrapped vs unwrapped?
493. **CHECK** if specific view class exists for the return type
504. **APPLY** correct @Schema from decision matrix above
515. **VERIFY** against [README.md checklist](./README.md#summary-checklist)
52 
53### Critical AI Verification
54- ✅ Schema matches actual return type (not generic Object.class)
55- ✅ All `type = "object"` have meaningful descriptions
56- ✅ Descriptions explain actual data structure
57- ✅ No deprecated Object.class/Map.class patterns remain
58 
59**Goal**: Create precise API documentation that helps developers understand exactly what each endpoint returns.

Sections

  • dotCMS REST API Guide for Claude AI
  • 📋 Essential Reference
  • 🤖 AI-Specific @Schema Rules
  • Quick Decision Matrix
  • 🚨 FORBIDDEN for AI
  • ✅ AI Description Requirements
  • 🎯 AI Workflow
  • Critical AI Verification

What it covers

typesdatabaseapido-notagent-behaviour

Stack — with the evidence

java

(1.00)

node

(1.00)

angular

(0.70)

jest

(0.70)

pytest

(0.70)

eslint

(0.70)

vercel

(0.70)

typescript

(0.60)

github-actions

(0.60)

javascript

(0.50)

python

(0.50)

Format

CLAUDE.md

Claude Code's memory file. Shaped like AGENTS.md but with two things it lacks: @path imports, so shared rules live in one place, and a user-scope layer that follows the developer across repos rather than shipping with the code.

What the corpus says about it

Repository

Owner
dotCMS
Language
—
License
—
Archived
no

All configs in this repo

Also in dotCMS/core

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
dotCMS/core.github/copilot-instructions.md · 949Copilot instructionsjavanode+10setupbuildtestlint-format+1184/100today
dotCMS/corecore-web/apps/dotcms-ui-e2e/AGENTS.md · 949AGENTS.mdtypescriptjava+10setupstylearchtesting-strategy+278/1003 days ago
dotCMS/corecore-web/apps/mcp-server/CLAUDE.md · 949CLAUDE.mdtypescriptjava+9setupbuildtestlint-format+589/1003 days ago
dotCMS/core.cursor/rules/doc-updates.mdc · 949Cursor rulesjavanode+9docs30/1003 days ago
dotCMS/core.cursor/rules/dotcms-guide.mdc · 949Cursor rulesjavanode+9archdo-notdocs69/1003 days ago
dotCMS/core.cursor/rules/e2e-rules.mdc · 949Cursor rulesjavanode+9setupteststylearch+589/1003 days ago
dotCMS/core.cursor/rules/frontend-context.mdc · 949Cursor rulesjavanode+10teststyledocs78/1003 days ago
dotCMS/core.cursor/rules/java-context.mdc · 949Cursor rulesjavanode+9buildstyle44/1003 days ago
dotCMS/core.cursor/rules/test-context.mdc · 949Cursor rulesjavanode+9testtesting-strategy54/1003 days ago
dotCMS/core.github/instructions/frontend.instructions.md · 949Copilot instructionsjavanode+10testlint-formatstylearch+369/1003 days ago
dotCMS/coreCLAUDE.md · 949CLAUDE.mdjavanode+9setupbuildteststyle+799/100today
dotCMS/corecore-web/AGENTS.md · 949AGENTS.mdjavanode+13style63/1003 days ago
dotCMS/corecore-web/CLAUDE.md · 949CLAUDE.mdjavanode+13teststylearchtesting-strategy+3100/1003 days ago
dotCMS/corecore-web/apps/dotcms-ui/AGENTS.md · 949AGENTS.mdtypescriptjava+9buildteststyledependencies+394/1003 days ago
dotCMS/corecore-web/libs/block-editor/CLAUDE.md · 949CLAUDE.mdtypescriptjava+9archdo-not69/1003 days ago
dotCMS/corecore-web/libs/new-block-editor/CLAUDE.md · 949CLAUDE.mdtypescriptjava+9lint-formatstyledo-notagent-behaviour61/1003 days ago
dotCMS/corecore-web/libs/portlets/CLAUDE.md · 949CLAUDE.mdjavanode+9setupteststyleui+177/1003 days ago
dotCMS/corecore-web/libs/portlets/edit-ema/portlet/src/lib/store/CLAUDE.md · 949CLAUDE.mdjavanode+9teststylearchtypes+265/1003 days ago
dotCMS/corecore-web/libs/sdk/client/CLAUDE.md · 949CLAUDE.mdtypescriptjava+9setupbuildtestlint-format+997/1003 days ago
dotCMS/corecore-web/libs/sdk/react/CLAUDE.md · 949CLAUDE.mdtypescriptjava+10setupbuildtestlint-format+997/1003 days ago
Diff against .github/copilot-instructions.md Diff against core-web/apps/dotcms-ui-e2e/AGENTS.md Diff against core-web/apps/mcp-server/CLAUDE.md Diff against .cursor/rules/doc-updates.mdc Diff against .cursor/rules/dotcms-guide.mdc Diff against .cursor/rules/e2e-rules.mdc Diff against .cursor/rules/frontend-context.mdc Diff against .cursor/rules/java-context.mdc Diff against .cursor/rules/test-context.mdc Diff against .github/instructions/frontend.instructions.md Diff against CLAUDE.md Diff against core-web/AGENTS.md Diff against core-web/CLAUDE.md Diff against core-web/apps/dotcms-ui/AGENTS.md Diff against core-web/libs/block-editor/CLAUDE.md Diff against core-web/libs/new-block-editor/CLAUDE.md Diff against core-web/libs/portlets/CLAUDE.md Diff against core-web/libs/portlets/edit-ema/portlet/src/lib/store/CLAUDE.md Diff against core-web/libs/sdk/client/CLAUDE.md Diff against core-web/libs/sdk/react/CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4kCLAUDE.mdtypescriptnode+16setupbuildstylearch+2100/1003 days ago
bagisto/bagistoCLAUDE.md · 28kCLAUDE.mdphplaravel+8setupbuildteststyle+5100/1003 days ago
microsoft/playwrightCLAUDE.md · 94kCLAUDE.mdtypescriptjavascript+10buildtestlint-formatstyle+7100/1003 days ago
dotCMS/corecore-web/CLAUDE.md · 949CLAUDE.mdjavanode+13teststylearchtesting-strategy+3100/1003 days ago
filamentphp/filamentCLAUDE.md · 32kCLAUDE.mdphplaravel+5buildtestlint-formatstyle+7100/1003 days ago
Adit-Jain-srm/NightmareNetCLAUDE.md · 45CLAUDE.mdtypescriptpython+18buildtestlint-formatstyle+6100/1003 days ago
dotCMS/coreCLAUDE.md · 949CLAUDE.mdjavanode+9setupbuildteststyle+799/100today
carrot-foundation/middle-earthCLAUDE.md · 0CLAUDE.mdtypescriptnode+12setupbuildtestlint-format+697/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack