Skip to content

feature(cli): add a command to generate a llm-ready report#116

Open
PierreCapel wants to merge 2 commits intosymfonycorp:mainfrom
PierreCapel:generate-llm-input
Open

feature(cli): add a command to generate a llm-ready report#116
PierreCapel wants to merge 2 commits intosymfonycorp:mainfrom
PierreCapel:generate-llm-input

Conversation

@PierreCapel
Copy link

@PierreCapel PierreCapel commented Dec 10, 2025

Introduces a new CLI command, generate-llm-input that fetches the latest analysis for a specific project and generates a structured, context-rich Markdown prompt which is outputted in the console.

This output can be directly fed into an LLM to receive actionable code fixes that adhere to Symfony best practices.
The current prompt states to provide different output based on who it is fed to: IDE integrated LLM with code access will provide patches whereas LLM chats will provide code example and explanations.

Security violations are excluded by default to prevent accidental leakage of vulnerability details to public AI models. (can be included with --with-security-violations flag, that would require user confirmation before proceeding).

Added a --show-ignored-violations flag to include or not ignored violations, similar to the analysis command.

@PierreCapel PierreCapel force-pushed the generate-llm-input branch 2 times, most recently from f220501 to c2f1ca6 Compare December 11, 2025 10:27
@nicolas-grekas
Copy link
Contributor

dumping the report into a file we should just put it in the system clipboard

just printing on the console is the best IMHO
ppl that want a file can pipe to a file

@PierreCapel
Copy link
Author

@nicolas-grekas thanks, updated per your recommendations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants