# Overview

Plugins for Algebra Integral are smart contracts that can expand or limit the functionality of liquidity pools. The plugin can be connected to a liquidity pool, then the pool will be able to call the corresponding plugin methods before and after the main actions in the pool:

* swap
* mint
* burn
* flash

A more detailed general description of plugins can be found in the section: [Core logic - plugins](https://docs.algebra.finance/algebra-integral-documentation/algebra-integral-technical-reference/core-logic/plugins)

## Template repository

To simplify the creation of new plugins, you can use a special template: [algebra-plugin-template](https://github.com/cryptoalgebra/algebra-plugin-template)

### Installation

Clone repository:

```bash
git clone https://github.com/cryptoalgebra/algebra-plugin-template --recursive
cd algebra-plugin-template
```

Install dependencies:

```bash
npm i
```

Now you can use the template to create new plugins.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.algebra.finance/algebra-integral-documentation/algebra-integral-technical-reference/plugins/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
