Use case · Law and accounting firm · SEO, GEO and AEO

How a law firm that does not code got its website ready for Google and for AI

Imer Galicia is not a programmer. Between September 24 and December 3, 2026 he opened 51 pull requests on the website of his firm, CIO Consultoría, with Claude Code and with the method we gave him. This case tells how a law and accounting firm in Mexico City got its website ready to be found by Google and by AI, what we measured, what we decided not to publish and what is still missing.

Short answer. CIO Consultoría maintains its own website through pull requests: 51 of the project's 67 come from the firm. Transgenia provided the method, the infrastructure and the measurement. An automatic gate brought technical SEO defects down from 46 to 0, the site now describes the firm as a single entity for search engines and AI models, and we used Jev to measure which passages an AI would cite: none got worse and the weakest ones went up. Measuring cost 0.24 USD. Traffic gains cannot be claimed yet: the change reached production on December 4, 2026.
Summary of the CIO Consultoría case: 67 pull requests, 51 from the firm with Claude Code; the technical SEO gate went from 46 failures to 0; no passage got worse in Jev and the average rose from 0.680 to 0.696; measuring cost 0.24 USD; traffic gains cannot be claimed yet.
Mermaid meta-structure
flowchart LR
    A["CIO Consultoría<br/>September to December 2026"] --> B["67 pull requests:<br/>51 from the firm with Claude Code"]
    A --> C["Technical SEO:<br/>from 46 failures to 0"]
    A --> D["AEO measured with Jev:<br/>0 passages get worse"]
    A --> E["Cost of measuring:<br/>0.24 USD"]
    A --> F["Traffic: cannot be<br/>claimed yet"]
    class B clave
    class F fuera
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
    classDef fuera stroke:#FEFEEA,stroke-dasharray:5 5
1. The case at a glance. On mobile, swipe to see the full diagram.

Who is CIO Consultoría and where was it starting from?

CIO Consultoría is a law and accounting firm with an office in Coyoacán, Mexico City. It handles corporate, tax and labor law, anti-money-laundering compliance (PLD/FT), the setup of SOFOMs (Mexican non-bank lenders), money transmitters and currency exchange houses, accounting, company formation and mortgage foreclosure auctions. That is ten services for an audience that asks very specific questions: whether their business is a vulnerable activity, how much cash they can accept or what to check before buying at a foreclosure auction.

In September 2026 its website was a static page. On September 14 we replaced it with a 14-route Astro site, which today generates 31 pages. The palette was not chosen by eye: the blue and the gold were sampled from the banner the firm itself already published. The site displays in full even without JavaScript.

Starting visibility was low outside the firm's own name. On December 4 we used TREG to measure Google Mexico's results page: the site comes up first when someone searches for the brand, but appears in 0 of 14 non-branded queries. The same goes for the answers from ChatGPT, Gemini and Google AI Mode: 0 of 9 non-branded answers cite it.

Screenshot of the cio-consultoria.com home page in production: header with the CIO Consultoría logo and the menu, the headline «Decisiones legales que puede entender y avanzar.» (Legal decisions you can understand and move forward with) on a blue background and a duotone image of Lady Justice.
2. The cio-consultoria.com home page in production, December 4, 2026.
Starting visibility, measured on December 4, 2026: in Google Mexico the site ranks first for the 2 branded queries and appears in 0 of 14 non-branded ones; in ChatGPT, Gemini and Google AI Mode, 0 of 9 non-branded answers cite it.
Mermaid meta-structure
flowchart LR
    C["Google Mexico<br/>December 4"] --> D["1st for the 2<br/>branded queries"]
    C --> E["0 of 14<br/>non-branded queries"]
    F["ChatGPT, Gemini and<br/>Google AI Mode"] --> G["0 of 9 non-branded<br/>answers cite it"]
    class E clave
    class G clave
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
3. Where the site showed up before the work.

How does a firm maintain its website without knowing how to code?

With pull requests. A pull request is a proposed change that gets reviewed before it is published. At the start we gave the team a workshop, an installation guide and a first exercise: a «Hola mundo» (Hello world) pull request, with their own account and Claude Code. Since then the flow has been the same for every change.

  1. Imer describes what he needs in Spanish, for example adding the profile of a team member or showing the services in two columns.
  2. Claude Code programs it on a separate branch, without touching what is published, and opens the pull request.
  3. Each pull request generates a preview on Cloudflare, with its own address, so the result can be seen in the browser.
  4. Imer reviews the result and, if it is right, merges the change.
  5. Transgenia deploys it to the production server and checks the published page.
Flow of a change: Imer describes it in Spanish, Claude Code programs it on a branch and opens the pull request, Cloudflare generates a preview, Imer reviews and merges, and Transgenia deploys to production and checks the published page.
Mermaid meta-structure
flowchart TB
    A["Imer describes<br/>the change in Spanish"] --> B["Claude Code programs it<br/>on a separate branch"]
    B --> C["Pull request with<br/>a Cloudflare preview"]
    C --> D["Imer reviews<br/>and merges"]
    D --> E["Transgenia deploys<br/>and checks production"]
    class C clave
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
4. The path of a change, from idea to production.

The result: 51 of the 67 pull requests come from the firm, and Imer himself merged 50 of them. In October there were 35. That is how Imer built the team profiles, five financial and regulatory services, a six-step interactive PLD risk questionnaire, the three landing pages for the «Reforma PLD 2026» (2026 PLD reform) campaign, the rebrand from «CIO Legal» (the firm's former name) to «CIO Consultoría» and the Novedades (News) section. Transgenia made 16: the site's foundation, dependency security, the SEO gate, the technical fixes, the contact form and the draft legal text.

Of 67 pull requests, 51 are from the firm: 12 in September, 35 in October, 2 in November and 2 in December; the firm itself merged 50. Transgenia made 16: site foundation, dependency security, SEO gate, technical fixes, form and legal draft.
Mermaid meta-structure
flowchart TB
    A["67 pull requests<br/>September 10 to December 4"] --> B["51 from the firm<br/>with Claude Code"]
    A --> C["16 from Transgenia"]
    B --> D["12 in September, 35 in October,<br/>2 in November, 2 in December"]
    C --> E["Site foundation, security, SEO gate,<br/>form and legal draft"]
    class B clave
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
5. Who made each change. On mobile, swipe to see the full diagram.

It was not easy. Imer is not a programmer, and a good part of the work was learning the vocabulary. This is the table we wish we had given him on day one.

TermWhat it means in this project
Pull requestA proposed change that is reviewed before it is published.
BranchA working copy where the change is made without touching the published site.
PreviewA temporary version of the site with the change, with its own web address.
GateAn automatic review that does not let a change with known defects through.
SchemaStructured data in the page's code that tells a search engine who the firm is and what it offers.
llms.txtA plain-text index of the site, meant to be read by an AI model.
Canary and holdoutThe questions we optimize for and the ones we leave untouched to check that we did not cheat.
Screenshot of the «Cuestionario de riesgo para actividades vulnerables» (Risk questionnaire for vulnerable activities) page on cio-consultoria.com, built by the firm with Claude Code.
6. The PLD risk questionnaire, one of the 51 changes the firm made.

What are SEO, GEO and AEO on a site like this one?

They are three layers of the same work. SEO means Google understands and indexes every page. GEO, generative engine optimization, means an AI model knows who the firm is and does not confuse it with another. AEO, answer engine optimization, means there is a short, verifiable passage that an AI can cite when someone asks a question.

The three layers: SEO, Google understands and indexes every page; GEO, an AI model knows who the firm is; AEO, there is a short, verifiable passage that an AI can cite.
Mermaid meta-structure
flowchart LR
    A["SEO<br/>Google understands and<br/>indexes every page"] --> B["GEO<br/>the AI knows who<br/>the firm is"]
    B --> C["AEO<br/>there is a short passage<br/>the AI can cite"]
    class C clave
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
7. Three layers of the same work. On mobile, swipe to see the full diagram.

How was the technical SEO fixed?

With a gate that runs on every change. On December 4 we added npm run seo:check, a nine-point check on every page: a title of 65 characters or fewer, a description of 70 to 155, a canonical URL, structured data that can be parsed, an image for social networks, a sitemap with no hidden pages, a complete llms.txt, internal links that exist and the site icon.

The first run found 46 failures, the same in the code and in production: 30 pages without a social image, 12 pages missing from llms.txt, 3 titles that were too long on the PLD campaign pages and one short description. The next pull request fixed them with text the site already published and left the gate in strict mode: a single failure makes it fail, and running it is part of the review checklist for every change. The result is 0 failures locally, in the preview and in production. One warning remains: the site icon is waiting for the firm's square logo.

Technical SEO gate: the first run found 46 failures, the same in the code and in production: 30 pages without a social image, 12 pages missing from llms.txt, 3 long titles and 1 short description. After the fixes: 0 failures locally, in the preview and in production.
Mermaid meta-structure
flowchart LR
    A["First run:<br/>46 failures"] --> B["30 pages without<br/>a social image"]
    A --> C["12 pages missing<br/>from llms.txt"]
    A --> D["3 long titles and<br/>1 short description"]
    B --> E["Today: 0 failures locally,<br/>in preview and production"]
    C --> E
    D --> E
    class E clave
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
8. The 46 failures from day one and where they ended up. On mobile, swipe to see the full diagram.
Screenshot of the «Servicios legales y contables para avanzar con claridad.» (Legal and accounting services to move forward with clarity) page on cio-consultoria.com, with the services in two columns.
9. The services page, with a title and description within the gate's limits.

How does an AI know who the firm is?

Because the site says it the same way everywhere. We organized the structured data as a single entity: the CIO Consultoría organization and its legal service linked together, with the area it serves, the ten topics it covers and its official Facebook and Instagram profiles. The verified address comes from a single file and is identical in the code, the footer, the contact page and the privacy notice, because Google compares it with the Business Profile once the firm sets one up.

The measurement showed why this matters: another organization that also uses the «CIO» brand shows up in three AI answers. The way to stand apart is to always give the same verifiable data.

Entity: the CIO Consultoría organization and its legal service linked together, with the area served, ten topics, a verified address and official Facebook and Instagram profiles. The Google Business Profile is pending setup by the firm.
Mermaid meta-structure
flowchart LR
    A["Organization<br/>CIO Consultoría"] --> B["Legal service<br/>linked to the organization"]
    A --> C["Verified address,<br/>the same across the site"]
    A --> D["Official profiles:<br/>Facebook and Instagram"]
    B --> E["10 services<br/>with their area served"]
    A --> F["Google Business Profile:<br/>pending setup"]
    class A clave
    class F fuera
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
    classDef fuera stroke:#FEFEEA,stroke-dasharray:5 5
10. The firm described as a single entity. On mobile, swipe to see the full diagram.

The firm's Facebook Page also made it onto the site. Novedades shows its posts as the domain's own text: a script fetches them with Meta's official API and each batch comes in through a pull request, so the firm approves the headlines before they are published. Of 9 posts, 7 were published; the other two were profile pictures. We did not use Facebook's embedded player: that content would count for facebook.com, not for the firm, and it would load Meta cookies before consent.

Screenshot of the Novedades (News) page on cio-consultoria.com: a Facebook post from December 2 turned into a card of the site's own, with its headline, the related page and the link to Facebook.
11. Novedades: Facebook posts as content on the firm's own domain.

How do you measure whether an AI would cite the site?

With Jev, a TypeSafe model that scores passages. We took 95 passages from the site (FAQs, «En resumen» (In short) blocks, descriptions and llms.txt lines) and 16 questions taken from the firm's keyword research. Ten are canary: the ones we set out to improve. Six are holdout: they are not touched, and they serve to detect whether we optimized for the test instead of improving the site. Jev gives two readings: a citability rubric per passage and the probability that each passage is the one cited for each question. DREX MAX, another model, gave a second opinion and agreed in 19 of 20 cases.

The baseline was clear. The «En resumen» blocks averaged 0.855 and the llms.txt lines 0.452: they gave the page's name and its address, and nothing else.

Jev's average citability rubric by passage type at baseline: En resumen (In short) blocks 0.855, FAQs 0.728, meta descriptions 0.637 and llms.txt lines 0.452.
Mermaid meta-structure
flowchart TB
    A["«En resumen» blocks<br/>0.855"] --- B["FAQs<br/>0.728"]
    B --- C["Meta descriptions<br/>0.637"]
    C --- D["llms.txt lines<br/>0.452"]
    class A clave
    class D fuera
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
    classDef fuera stroke:#FEFEEA,stroke-dasharray:5 5
12. How citable each passage type was.
Screenshot of the «En resumen» (In short) block on the PLD advisory page of cio-consultoria.com: the title «Prevención de lavado de dinero: una ruta de cumplimiento PLD/FT por etapas» (Money laundering prevention: a PLD/FT compliance path in stages) and a paragraph that names the firm, its location and its approach.
13. An «En resumen» block: the most citable passage type on the site.
Screenshot of the «Preguntas frecuentes sobre CIO Consultoría» (Frequently asked questions about CIO Consultoría) section on the home page, with four visible questions that match its structured data.
14. Visible FAQs, the same ones a search engine reads.

After the technical fixes we measured again. Of 94 comparable passages, none got worse by more than 0.05. The average rose from 0.680 to 0.696. The biggest improvements were the llms.txt lines, which now carry each page's published description. The gap between canary and holdout stood at +0.041, below the 0.10 cap we set.

llms.txt lines before and after the technical PR: PLD advisory 0.43 to 0.61, labor 0.41 to 0.58, corporate 0.40 to 0.57, tax 0.44 to 0.60 and PLD compliance for SOFOMs 0.44 to 0.57. No passage got worse by more than 0.05.
Mermaid meta-structure
flowchart LR
    A["PLD advisory<br/>0.43"] --> A2["0.61"]
    B["Labor law<br/>0.41"] --> B2["0.58"]
    C["Corporate law<br/>0.40"] --> C2["0.57"]
    D["Tax law<br/>0.44"] --> D2["0.60"]
    E["PLD compliance for SOFOMs<br/>0.44"] --> E2["0.57"]
    class A2,B2,C2,D2,E2 clave
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
15. The llms.txt lines, before and after carrying their page's description.

Five questions were left without a passage that answers them well: what a vulnerable activity is, the cash limit in article 32 of the LFPIORPI (Mexico's anti-money-laundering law), what a tax lawyer does, electronic accounting with the SAT (Mexico's tax authority) and registration on the PLD portal. No technical adjustment solves them: new text is needed.

Five questions without a passage that answers them well, with the best citation probability at baseline: vulnerable activity 0.33, article 32 cash limit 0.11, tax lawyer 0.22, SAT electronic accounting 0.51 and PLD portal registration 0.18. New text solves them, not a technical adjustment.
Mermaid meta-structure
flowchart LR
    A["Five questions<br/>without a citable passage"] --> B["Vulnerable activity: 0.33"]
    A --> C["Cash limit, art. 32: 0.11"]
    A --> D["Tax lawyer: 0.22"]
    A --> E["SAT electronic accounting: 0.51"]
    A --> F["PLD portal registration: 0.18"]
    B --> G["New text needed,<br/>reviewed by a professional"]
    C --> G
    D --> G
    E --> G
    F --> G
    class G clave
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
16. What a technical adjustment does not solve. On mobile, swipe to see the full diagram.

What did we decide not to publish?

Curating data also means deciding what does not go out. Three rules guided the project.

Data curation: the site only publishes verified facts; the phone number and office hours wait for written confirmation from the firm; the new legal text stays in an unmerged draft until the responsible professional reviews it.
Mermaid meta-structure
flowchart TB
    A["Is the data<br/>verified?"] -->|"yes"| B["It is published,<br/>with its source"]
    A -->|"no"| C["It stays empty<br/>until confirmed"]
    D["Is it new<br/>legal text?"] -->|"yes"| E["Unmerged draft until<br/>professional review"]
    class B clave
    class C,E fuera
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
    classDef fuera stroke:#FEFEEA,stroke-dasharray:5 5
17. Curating is also deciding what does not go out. On mobile, swipe to see the full diagram.

What happened with the contact form?

It did not reach any mailbox. The form sent to a function that only runs on a different type of hosting; on the real server that address answered "not found".

We solved it with a dedicated service on the server. It validates the inquiry, emails it to the firm's mailbox and answers "received" only if the mail server accepted it. If it fails, the page offers to send the same text by email, already written. It has protections against automated submissions, and its log does not store personal data. The full and the simplified privacy notices were published with it. On December 4 we tested it in production: a test message reached the firm's mailbox, and a submission from the browser was accepted by the mail server.

Contact form: before, it sent to a function that did not run on the real server, answered not found and did not reach any mailbox. Now a dedicated service validates, sends by email and confirms only if the mail server accepted; if it fails, it offers to send the text by email.
Mermaid meta-structure
flowchart LR
    A["Before: the route answered<br/>«not found»"] --> B["Did not reach<br/>any mailbox"]
    C["Now: a dedicated service<br/>on the server"] --> D["Validates and sends<br/>by email"]
    D --> E["«Received» only if the<br/>email was accepted"]
    D --> F["If it fails: offers to send<br/>the text by email"]
    class E clave
    class B fuera
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
    classDef fuera stroke:#FEFEEA,stroke-dasharray:5 5
18. The contact form, before and after. On mobile, swipe to see the full diagram.
Screenshot of the cio-consultoria.com contact page with the title «Cuéntenos qué necesita revisar.» (Tell us what you need reviewed) and the form with name, email, optional phone, topic of interest and description.
19. The contact form that now does deliver.

How much did measuring cost?

0.24 USD in calls to models and external services, out of a 2 USD cap we set before starting. It includes Jev (the baseline and three measurements), DREX MAX and TREG (Google results and answers from ChatGPT, Gemini and Google AI Mode). Every call goes through a budget control that stops it if it gets close to the cap. That cost does not include the team's hours or the development.

Cost of measuring: 0.24 USD on Jev, DREX MAX and TREG, out of a 2 USD cap set before starting. It does not include team hours or development.
Mermaid meta-structure
flowchart LR
    A["Cap set<br/>before starting: 2 USD"] --> B["Spent: 0.24 USD"]
    B --> C["Jev: baseline<br/>and three measurements"]
    B --> D["DREX MAX:<br/>second opinion"]
    B --> E["TREG: Google and<br/>AI answers"]
    B -.-> F["Does not include hours<br/>or development"]
    class B clave
    class F fuera
    classDef clave fill:#EE7623,stroke:#FEFEEA,stroke-width:2px,color:#101820,font-weight:bold
    classDef fuera stroke:#FEFEEA,stroke-dasharray:5 5
20. What measuring cost, against the cap we set. On mobile, swipe to see the full diagram.

What can we not claim yet?

That traffic went up. The fixes reached production on December 4, 2026, and search engines take weeks to read a site again. The next Search Console measurement is due 60 to 90 days later, with the same canary and holdout questions. The firm also still has to set up its Google Business Profile, and its responsible professional still has to review the legal text.

Acknowledgment

Thanks to Imer Galicia, of CIO Consultoría, for his collaboration throughout the project. He opened most of the changes, learned a vocabulary that was not his own and gave us permission to tell the case with screenshots and figures. This article is his too.

Frequently asked questions

What is the difference between SEO, GEO and AEO?

SEO means Google understands and indexes every page. GEO, generative engine optimization, means an AI model identifies the company without confusing it with another. AEO, answer engine optimization, means there is a short, verifiable passage that an AI can cite when it answers a question.

Can a firm without programmers maintain its own website?

Yes, with a pull request and review flow. In the CIO Consultoría case, the firm opened 51 of the 67 pull requests with Claude Code between September and December 2026; Imer, at the firm, merged 50 of them and Transgenia deployed each change to production.

How do you measure whether an AI would cite a website?

Each passage on the site is scored against real questions with a model such as Jev, from TypeSafe, and the questions are split into canary, which are optimized, and holdout, which are left untouched. If the holdout falls far below the canary, the improvement is overfitting and is not reported as progress.

How much did it cost to measure CIO Consultoría's AEO?

0.24 USD in calls to Jev, DREX MAX and TREG, out of a 2 USD cap set before starting. The figure does not include the team's hours or the development.

Why was the new legal text not published?

Because legal text is approved by the firm's responsible professional, not by a model. The draft for the five unanswered questions sits in an unmerged pull request until that review, even though Jev already scores it high.

Has the site's traffic gone up yet?

It cannot be claimed yet. The fixes reached production on December 4, 2026, and the next Search Console measurement will be made 60 to 90 days later, with the same questions.

Next step

If your website does not show up when someone asks about what you do, let's start with a free 15-minute QuickLook. Book 15 minutes or see how we implement AI in companies.

About the author and Transgenia

Efraín Carreón Ortiz is Director General (Chief Executive Officer) of Centrum Transgenia, a Mexican technology boutique. He holds the official Claude Code badge (Claude Partner Badge) issued by Anthropic, verifiable on Credly.

Transgenia is an OpenAI Select Partner in the OpenAI Partner Network and a registered partner in Anthropic's Claude Partner Network. Team: Víctor Estrada Bello, Chief PMO; Danild Johan Zambrana López, Chief Technology Officer; Jaime Lozano Castañeda, Chief Marketing Officer; Efraín Carreón Ortiz, Director General (Chief Executive Officer).

Let's talk: contacto@transgenia.org, WhatsApp +52 55 8034 0405, 15 minute meeting or the contact page.

Keep reading

Hashtags: #SEO #GEO #GenerativeEngineOptimization #AEO #AISearch #AIVisibility #SchemaMarkup #LawFirmMarketing #LegalTech #ClaudeCode

← Back to Blog
Transgenia, Verified IT agency on Vai.me