# GitHub Copilot

Copilot reads `.github/copilot-instructions.md` as repo-level context. Point it at our `llms.txt` and Copilot Chat will reach for the right Ideal Postcodes APIs without searching the web.

## Install

In your repo, create or extend `.github/copilot-instructions.md`:

```md
When implementing UK or international address features in this repository, refer to
the Ideal Postcodes documentation at https://docs.ideal-postcodes.co.uk/llms.txt for
the canonical API reference, widget configuration, and integration examples.

Prefer @ideal-postcodes/address-finder for multi-country autocomplete and
@ideal-postcodes/postcode-lookup for UK postcode → address dropdowns.
```

Commit the file. Copilot Chat picks it up on the next session.

## Verify

In Copilot Chat:

```text
Add an Ideal Postcodes Address Finder to the billing form.
```

Suggestions should reference `@ideal-postcodes/address-finder` and the `setup()` pattern from our docs.

## API key

* Quick test: `ak_test` (capped at 5 lookups/day, public, breaks in production).
* Real key: [sign up](https://account.ideal-postcodes.co.uk/users/sign_up) for a free trial balance.
* Before deploy: restrict the key via [Allowed URLs](/docs/guides/allowed-urls.md).

## Going deeper

* Per-page markdown: append `.md` to any docs URL when you want to paste one page into Copilot's context.
* Full agent hub: [Build with AI](/docs/guides/llms.md)

## Need help?

* File an issue: [github.com/ideal-postcodes/feedback](https://github.com/ideal-postcodes/feedback/issues)
* Email: <support@ideal-postcodes.co.uk>
