First, check available analysis templates.
llm templates list | grep '^sin'
Analyze codebase to recommend suitable framework.
files-to-prompt -c scripts | llm -m llama3.2 -c -t sin \
"Analyze this codebase and recommend a suitable framework for summarizing, assessing risk, or strategic analysis."
Run RAID framework analysis.
files-to-prompt -c scripts | llm -m llama3.2 -c -t memory \
"Using the RAID framework, identify and document risks, assumptions, issues, and dependencies in this codebase."
Analyze repository structure.
tree -a -I '.git|.venv|__pycache__|*.pyc' . | llm -m llama3.2 -c -t memory \
"Identify the most important files and directories in this codebase and explain their purpose."
find . -type f -name "*.md" -o -name "*.org" | files-to-prompt | llm -m llama3.2 -c -t memory \
"Assess the quality and completeness of the documentation, including READMEs, comments, and inline docs."
files-to-prompt -c scripts | llm -m llama3.2 -c -t memory \
"Identify external libraries or tools used in this project and assess their impact on the codebase."
files-to-prompt -c tests | llm -m llama3.2 -c -t memory \
"Evaluate the presence and quality of tests, CI/CD pipelines, and their coverage in this project."
find . -type f -name "*.sh" -o -name "*.py" | xargs grep -l "TODO\|FIXME" | files-to-prompt | \
llm -m llama3.2 -c -t memory \
"Identify any TODOs or FIXMEs in the codebase and suggest actions to address them."
cat data/analysis/*.md | llm -m llama3.2 "Create an executive summary of the codebase analysis, including:
1. Key findings
2. Critical risks and dependencies
3. Recommended immediate actions
4. Long-term improvements
Format with markdown headings and bullet points."