feat: convention identifier / introspection for llm
Expected Behavior
LLM should be able to acknowledge in a simple way the commit conventions.
Current Behavior
When using LLM, it tends to fail commitlint because it cannot always know what is the commit convention on repository
Commitlint is a great place to "teach" both llm and humans how a good commit should look like.
Instead of a "die and retry approach", commitlint cli could provide a way to explain configuration.
I do not have a clear feature scope to suggest but here could be some ideas :
provide a simple convention identifier in the configuration such as "conventional-commit", "conventional-gitmoji", etc. => few tokens but relies on the model knowledge of the implication
provide a simple "config pretty print" something like
commitlint config --output=llm=> it allows to output a resolved configuration readable and optimized for llm => more tokens but clearly more accurate
Thanks in advance for your answer !
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
No response
Context
No response
Source: conventional-changelog/commitlint