I’ve developed a library with an advanced DSL. Wri...
# ai
m
I’ve developed a library with an advanced DSL. Writing unit tests and regular code works well with Junie inside this project. What I am struggling with is the development with Junie in other IntelliJ/JUnit projects that consume my library from Maven Central to use the DSL effectively. I was thinking of providing API dumps and an
AGENTS.md
description. Is this a good approach, and what would be considered best practice?
d
I've recently been doing the same type of thing. I settled on a full API derived from a comprehensive example that was described in a test that was marked with a particular annotation. The you can get an LLM to search for the annotation and inline the API into a markdown instruction file
m
Cool, thank you! I really like the idea with examples — I’d been thinking of them more as getting-started materials for humans, but having them as annotated unit tests is brilliant and always in sync with the code.
d
np. i had an additional problem that I was actually trying to write a claude command that would do something with the api description - which led me to have to write a "meta-command" whose job it was to write the actual claude command which is used by the end user. that got all very complicated because claude kept trying to enact the eventual command as a part of building 😂
m
Haha, makes sense 😄 Thanks for sharing — really appreciate the insight!
👍 1