Skip to content

docToolchain/LLM-Prompts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

58 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LLM Prompts for Architecture Documentation

A collection of carefully crafted prompts to help with software architecture documentation using arc42, docToolchain, and related methodologies. These prompts are designed to work with various LLMs (Claude, ChatGPT, etc.) to streamline architecture documentation workflows.

Creating good architecture documentation is challenging. These prompts help you:

  • Structure your architecture thinking systematically

  • Generate consistent, high-quality documentation

  • Follow established methodologies like arc42

  • Create visual diagrams and decision records

  • Maintain documentation as living artifacts

Prompt Description Output Format

Architecture Communication Canvas

Creates a visual canvas summarizing key architecture aspects in one page

AsciiDoc with HTML table

Architecture Decision Record

Structured approach to documenting architecture decisions with Pugh Matrix evaluation

AsciiDoc document

Prompt Description Output Format

arc42 Chapter Generator

Step-by-step creation of complete arc42 documentation with quality-driven approach

Multiple AsciiDoc files

Quality Scenarios Builder

Create testable, specific quality requirements using structured scenarios

AsciiDoc quality scenarios

Prompt Description Output Format

Risk Assessment Matrix

Systematic identification and assessment of architecture risks with mitigation strategies

AsciiDoc risk register

Technical Debt Tracker

Comprehensive technical debt identification, prioritization, and management

AsciiDoc debt register

Prompt Description Output Format

Stakeholder Analysis

include::descriptions/Stakeholder-Analysis-Description.adoc[tag=purpose]

AsciiDoc stakeholder register

Context Diagram Generator

include::descriptions/Context-Diagram-Generator-Description.adoc[tag=purpose]

AsciiDoc with C4-PlantUML diagrams

Solution Strategy Planner

Develop comprehensive solution strategies based on quality goals following arc42 Chapter 4 principles

AsciiDoc strategy document

Deployment View Creator

Design and document comprehensive system deployment architectures following arc42 Chapter 7 principles

AsciiDoc deployment documentation

Simply copy the prompt content and paste it into your preferred LLM interface.

Use these prompts as system prompts to create specialized AI assistants for architecture work.

These prompts are designed to work seamlessly with docToolchain workflows:

  • Output is in AsciiDoc format

  • Diagrams use PlantUML/Kroki

  • Compatible with arc42 template structure

The generated AsciiDoc can be published directly to Confluence using docToolchain:

./dtcw publishToConfluence
  • Store prompts as documentation templates in your repository

  • Version control the generated architecture documents

  • Use in CI/CD for automated documentation generation

  • Link architecture decisions to requirements

  • Track technical debt in your issue tracking system

  • Use risk assessments for project planning

These prompts are designed to be customizable:

  1. Modify Questions: Adapt the guiding questions to your domain

  2. Adjust Output Format: Change AsciiDoc styling or structure

  3. Add Custom Sections: Include organization-specific requirements

  4. Integrate Tools: Connect with your existing toolchain

These prompts follow the arc42 template structure, which provides:

  • Proven documentation structure

  • Clear separation of concerns

  • Stakeholder-oriented communication

  • Pragmatic approach to architecture documentation

Based on Gernot Starke’s Architecture Communication Canvas, focusing on:

  • Value proposition clarity

  • Stakeholder identification

  • Core functionality emphasis

  • Risk and decision transparency

Architecture Decision Records (ADRs) use:

  • Pugh Matrix for objective evaluation

  • Structured problem-solution mapping

  • Consequence documentation

  • Traceability of architectural reasoning

Quality Scenarios provide:

  • Testable quality requirements

  • Objective success criteria

  • Architecture decision guidance

  • Validation frameworks

Risk Assessment includes:

  • Systematic risk identification

  • Impact and probability evaluation

  • Mitigation strategy development

  • Continuous risk monitoring

  1. Start with Architecture Communication Canvas - Get the big picture

  2. Use arc42 Chapter Generator - Create comprehensive documentation

  3. Build Quality Scenarios - Define testable requirements

  4. Create Architecture Decision Records - Document key decisions

  5. Assess Risks - Identify and mitigate project risks

  6. Track Technical Debt - Manage long-term code health

These prompts support:

  • Living Documentation: Keep docs updated as code evolves

  • Iterative Refinement: Improve documentation over multiple iterations

  • Team Collaboration: Involve multiple stakeholders in documentation creation

  • Knowledge Transfer: Maintain institutional knowledge

We welcome contributions! Please:

  1. Test Your Prompts: Ensure they work across different LLMs

  2. Follow Structure: Use similar format to existing prompts

  3. Add Examples: Include sample outputs

  4. Document Usage: Explain when and how to use the prompt

  5. Consider Integration: How does your prompt work with others?

  • Domain-specific prompts (e.g., microservices, data architecture)

  • Integration with specific tools (Jira, GitHub, etc.)

  • Visualization enhancements

  • Multilingual versions

  • Completeness of architecture coverage

  • Stakeholder understanding and feedback

  • Decision traceability

  • Risk mitigation effectiveness

  • Time to create documentation

  • Documentation maintenance effort

  • Team adoption rate

  • Knowledge transfer effectiveness

These prompts are available under Creative Commons Attribution-ShareAlike 4.0 International License, following the arc42 licensing approach.


These prompts are maintained by the docToolchain community. For questions or suggestions, please open an issue or contribute directly.

About

Some clever prompts to help with architecture documentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •