> ## Documentation Index
> Fetch the complete documentation index at: https://codegeninc-jay-docs-fixes-24.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Learn by Example

Explore our tutorials to learn how to use Codegen for various code transformation tasks.

## Modernization & Migration

<CardGroup cols={2}>
  <Card title="API Migrations" icon="arrow-right-arrow-left" href="/tutorials/migrating-apis">
    Update API calls, handle breaking changes, and manage bulk updates across
    your codebase.
  </Card>

  <Card title="Python 2 to 3" icon="snake" href="/tutorials/python2-to-python3">
    Migrate Python 2 code to Python 3, updating syntax and modernizing APIs.
  </Card>

  <Card title="SQLAlchemy 1.6 to 2.0" icon="layer-group" href="/tutorials/sqlalchemy-1.6-to-2.0">
    Update SQLAlchemy code to use the new 2.0-style query interface and
    patterns.
  </Card>

  <Card title="unittest to pytest" icon="vial" href="/tutorials/unittest-to-pytest">
    Convert unittest test suites to pytest's modern testing style.
  </Card>

  <Card title="Increase Type Coverage" icon="shield-check" href="/tutorials/increase-type-coverage">
    Add TypeScript types, infer types from usage, and improve type safety.
  </Card>

  <Card title="React Modernization" icon="react" href="/tutorials/react-modernization">
    Convert class components to hooks, organize components into files, and
    extract prop types.
  </Card>
</CardGroup>

## Code Quality & Organization

<CardGroup cols={2}>
  <Card title="Delete Dead Code" icon="broom" href="/tutorials/deleting-dead-code">
    Remove unused imports, functions, and variables with confidence.
  </Card>

  <Card title="Organize Your Codebase" icon="folder-tree" href="/tutorials/organize-your-codebase">
    Restructure files, enforce naming conventions, and improve project layout.
  </Card>

  <Card title="Improve Modularity" icon="cubes" href="/tutorials/modularity">
    Split large files, extract shared logic, and manage dependencies.
  </Card>
</CardGroup>

## Documentation & Features

<CardGroup cols={2}>
  <Card title="Create Documentation" icon="book" href="/tutorials/creating-documentation">
    Generate JSDoc comments, README files, and API documentation.
  </Card>

  <Card title="Manage Feature Flags" icon="flag" href="/tutorials/manage-feature-flags">
    Add, remove, and update feature flags across your application.
  </Card>
</CardGroup>

## AI Integration

<CardGroup cols={2}>
  <Card title="Prepare for AI" icon="robot" href="/tutorials/preparing-your-codebase-for-ai">
    Generate system prompts, create hierarchical documentation, and optimize for
    AI assistance.
  </Card>
</CardGroup>

<Note>
  Each tutorial includes practical examples, code snippets, and best practices.
  Follow them in order or jump to the ones most relevant to your needs.
</Note>
