Skip to content

Implement with AI

This documentation is also written for AI agents (Claude, ChatGPT, Cursor, Claude Code and others). You can ask them to implement CEP lookup in your project with the right context from the start.

At the top of every page there are two buttons:

  • Copy Markdown copies the page content as clean Markdown, ready to paste into a chat.
  • Open opens the page straight in Claude, ChatGPT and others, already asking the agent to read the page and help you.
URL What is in it
/llms.txt An index of the documentation, with a project summary and the links.
/_llms-txt/english.txt The whole English documentation in a single text file.
/llms-full.txt The same documentation in Portuguese (the site’s default language).
/en/docs/<page>.md Any page as Markdown: just add .md to the URL.

Point the agent at /_llms-txt/english.txt and it will have all the context at once.

Pick your environment, copy the prompt and paste it into your agent, or open it straight in Claude or ChatGPT. Each prompt includes an API summary and the link to the full documentation.

Implement CEP lookup in my React project using the unicep library.

Full documentation (read it first): https://unicep.thet.dev/_llms-txt/english.txt

API summary:
- npm install @unicep/react
- import { useCep } from '@unicep/react';
- const { data, error, isLoading } = useCep(value); // data is an Address; the lookup runs only for a valid CEP
- Options: useCep(value, { unicep, enabled })
- Errors (import from @unicep/core): InvalidCepError, CepNotFoundError, AllProvidersFailedError.

What I need:
1. A CEP field with a 00000-000 mask that fetches the address on its own once the CEP is complete.
2. Fill in street, neighborhood, city and state from the result, and show loading and error states.
3. Show different messages for "CEP not found" and "services unavailable".
4. Create the Unicep instance once (outside the component), with the cache enabled.

Follow my project conventions and explain what you changed.
  • If the agent runs in the terminal (like Claude Code), paste the prompt straight into it: it reads the documentation and changes your project.
  • Ask it to create the Unicep instance just once and turn on the cache.
  • Review what it generated: check that the errors are handled and that the use of the providers is responsible.