How can we make sense of and improve legacy systems using modern AI?
AIMER tackles this question by combining Generative AI, agentic AI, and structured methodologies for software analysis and improvement. We're inspired by proven approaches such as:
- The aim42 Architecture Improvement Method, which offers a structured way to analyze and evolve complex systems.
- The book Software Reviews, which provides practical, experience-driven techniques for understanding software quality and architecture.
Both aren't just abstract theories but contain battle-tested activities from real projects. Our goal is to translate them into actionable, reusable AI-powered workflows to make analyzing and improving software systems more efficient.
We want to create a tool that supports developers and architects in analyzing and improving legacy systems by guiding Large Language Models (LLMs) through codebases, artifacts, and architecture.
For this, this repository contains early ideas and prototypes of commands for Claude Code that implement parts of the aim42 method and Software Reviews techniques. Most of them will not work yet and need improvement to get the best out of Large Language Models. Therefore, we want to explore agentic workflows, where LLMs act as autonomous agents performing complex analysis tasks by combining code, documentation, Git history, quality models, and more.
Legacy systems are rarely clean. They’re huge, undocumented, and deeply embedded in real business processes. To generate valuable insights, LLMs need to:
- Navigate and interpret sprawling, inconsistent codebases
- Understand implicit decisions and trade-offs
- Connect technical structures to architectural and stakeholder concerns
- Make suggestions based on trustworthy data that can also be verified by humans
- Deliver actionable insights — ideally even suggesting or automating specific refactorings, and not vague advice
This is more than prompt engineering — it's about designing a mini framework that structures how an LLM thinks about software systems.
This is an open challenge and an evolving community effort.
We welcome contributions such as:
- Designing prompts or commands that operationalize analysis techniques
- Proposing how agents can autonomously explore and reason about legacy systems
- Sharing real-world cases that stress-test our prototypes
- Exploring hybrid integrations: static analysis + architecture views + LLM insights
We believe AI can become a true partner in software modernization — not by replacing human judgment, but by scaling and systematizing our expertise.
This is what we aim for with the AIMER project:
AIMER provides battle-tested methodologies and structured approaches for software analysis and improvement, leveraging years of practical experience in software architecture and development. These aren't just prompts – they're distilled little frameworks based on solid foundations from industry expertise and proven practices.
Each command represents a specific analytical methodology designed to systematically examine different aspects of your software systems: from identifying architectural hotspots and documenting decisions to analyzing stakeholder needs and security concerns.
You may use these prompts wherever you like. We’ll document a way to use them as custom slash commands in Claude Code:
To make AIMER prompts available within a specific project:
- Clone this repository into your project's
.claude/commands
directory:
# Navigate to your project root
mkdir -p .claude/commands
git clone https://github.com/innoq/aimer.git .claude/commands
- Use the commands in Claude Code with the
/project:
prefix:
claude > /project:hotspot-analysis
Adding AIMER as a Git submodule allows you to track specific versions and update more easily:
- Add the repository as a submodule in your project:
# Navigate to your project root
mkdir -p .claude/commands
git submodule add https://github.com/innoq/aimer.git .claude/commands/aimer
- Use the commands in Claude Code with the
/project:
prefix:
claude > /project:hotspot-analysis
- Update the submodule when needed:
git submodule update --remote .claude/commands/aimer
💡 Important Hint: All AIMER prompts are designed for thinking mode (reasoning) or, if not using Claude, models that can do chain-of-thought reasoning. For optimal results, append terms like "think", "think harder", or "ultrathink" to your slash commands. By default, thinking mode is not activated, so remember to explicitly enable it for deeper, more thorough analysis.
To make AIMER prompts available for all your projects:
- Clone this repository into your home Claude commands directory:
mkdir -p ~/.claude/commands
git clone https://github.com/innoq/aimer.git ~/.claude/commands
- Use the commands in Claude Code with the
/user:
prefix:
claude > /user:hotspot-analysis
- Command names are derived from the filename (e.g.,
hotspot-analysis.md
becomes/project:hotspot-analysis
) - You can organize prompts in subdirectories for better categorization
- Project-scoped commands are shared with team members who have access to the repository
- User-scoped commands are available to you across all projects
- All prompts use
$ARGUMENTS
to accept additional contextual information as parameter toclaude
on the CLI, as well as inside the REPL
All AIMER commands include a $ARGUMENTS
placeholder that allows you to pass additional instructions to enhance Claude's analysis. One powerful use case is enabling thinking mode to get deeper, more thorough analysis.
Basic command:
claude > /user:hotspot-analysis
With thinking mode for deeper analysis:
claude > /user:hotspot-analysis think
claude > /user:hotspot-analysis think harder
claude > /user:hotspot-analysis ultrathink
Other useful argument patterns:
claude > /user:code-walkthrough think and focus on error handling patterns
claude > /user:quality-scenario-analysis think and prioritize performance scenarios
claude > /user:stakeholder-interviews think especially about technical debt concerns
- Workflow Optimization: Prompts for improving development workflows
- Code and Architecture Analysis: Deep-dive code analysis and improvement suggestions
- Documentation: Templates for generating and improving documentation
Contributions are welcome! When creating or modifying prompts, please follow our Prompt Guidelines to ensure consistency and quality across all AIMER commands.
Please feel free to submit a pull request with new prompts or improvements to existing ones.
See the LICENSE file for details.
Built with ❤️ by humans and machines at INNOQ.