Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cocoCzl/coco-skills --skill java-code-to-erdgit clone --depth 1 https://github.com/cocoCzl/coco-skillsWrote 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.
[](https://agentmods.dev/skills/cococzl/coco-skills/java-code-to-erd)<a href="https://agentmods.dev/skills/cococzl/coco-skills/java-code-to-erd"><img src="https://agentmods.dev/badge/skills/cococzl/coco-skills/java-code-to-erd/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.
<a href="https://agentmods.dev/skills/cococzl/coco-skills/java-code-to-erd"><img src="https://agentmods.dev/badge/skills/cococzl/coco-skills/java-code-to-erd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00089 | $0.00803 |
| Opus 5.5 | $0.00036 | $0.00321 |
| Sonnet 5.5 | $0.00018 | $0.00161 |
| Haiku 4.5 | $0.00009 | $0.00080 |
Grade A, and why
java-code-to-erd 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 16d 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.
How it starts
The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Java Code to ERD
Reconstruct the database model expressed by a Java repository. The result describes project evidence, not a live database.
Non-negotiable boundaries
- Never connect to a database, execute SQL or migrations, build/run the target project, access the network, or install software.
- Analyze repository source and project files only. Exclude tests, examples, build outputs, dependencies, external JARs, and paths outside the project unless the user explicitly includes test sources.
- Do not infer a confirmed relation from names alone. Preserve unknowns, conflicts, conditional facts, and unsupported constructs.
- Generate every artifact from the validated
database-model.json; never produce an ERD directly from an ad-hoc reading. - Evidence stores project-relative path and line range only—no source snippets.
Workflow
Read references/workflow.md, references/data-model.md, and references/confidence-and-conflicts.md for every analysis.
-
Run
analyzedirectly through the compatibility launcher; usedoctoronly for capability questions or actual environment errors. It selects an already-installed Python 3.10+ and never installs one:python3 <skill-dir>/scripts/launch.py analyze --project <project-root> -
Read only the detected framework rules listed in the result's
rule_references. -
Inspect
unresolvedandconflicts. Use repository reading to resolve only what static evidence supports; record manual confirmations withreview, never by editing generated facts. -
Re-run analysis after review or scoped inspection.
-
If Mermaid SVGs were produced, inspect them for clipping, overlap, density, labels, direction, and legend. Read references/output-and-visual-quality.md. After every generated SVG passes that inspection, run
verify-visuals --project <project-root>so the model and report recordVERIFIED. Never run this command before actually viewing all SVGs. -
Report
COMPLETEonly when the model validates and no material file, unsupported data path, unresolved construct, or conflict remains. Otherwise reportPARTIAL; useFAILEDonly when no valid core model can be produced.
What ships with it
24 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 254 B
- assets/mermaid-config.json 462 B
- CONTEXT.md 12 KB
- README.md 1.5 KB
- references/confidence-and-conflicts.md 1.9 KB
- references/data-model.md 1.4 KB
- references/output-and-visual-quality.md 1.1 KB
- references/rules/ddl-flyway-liquibase.md 752 B
- references/rules/jdbc-and-java-sql.md 617 B
- references/rules/jpa-hibernate.md 838 B
- references/rules/mybatis.md 727 B
- references/rules/project-discovery.md 1.3 KB
- references/rules/sql-semantics.md 619 B
- references/workflow.md 2.8 KB
- schemas/agent-result.schema.json 1.1 KB
- schemas/analysis-fragment.schema.json 505 B
- schemas/database-model.schema.json 6.2 KB
- schemas/incremental-state.schema.json 424 B
- schemas/user-review.schema.json 678 B
- scripts/java_code_to_erd.py 7.7 KB runs code
- scripts/java/SourceFactExtractor.java 5.1 KB
- scripts/launch.py 1.4 KB runs code
- scripts/lib/__init__.py 50 B runs code
- scripts/lib/core.py 183 KB runs code
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.
- 16d ago Changed · +1 lines b02321eb6fdb
- 2mo ago First seen · 44 lines · 89 tokens per session scan A 4f7f3fe36aec
java-code-to-erd is a skill published in the GitHub repository cocoCzl/coco-skills (5 stars, last pushed 16d ago), licensed MIT. It adds 89 tokens to every session and 803 once invoked, about $0.0004 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-09-05.
java-code-to-erd compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| java-code-to-erdcocoCzl/coco-skills | Skill | 5 | 16d ago | MIT | A | 89 | Codex |
| jpa-patternsaffaan-m/ECC | Skill | 299k | yesterday | MIT | A | 33 | Claude Code, Kiro |
| azure-data-tables-javamicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 47 | Claude Code |
| azure-cosmos-javamicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 59 | Claude Code |
| cudf-query-engine-builderNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 99 | Claude Code, Codex |
| jpa-patternspiomin/claude-ai-spring-boot | Skill | 1.4k | 8d ago | Apache-2.0 | A | 47 | Claude Code |
| jpa-patternsdecebals/claude-code-java | Skill | 770 | 9d ago | MIT | A | 47 | Claude Code, Codex |