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.
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
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.
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
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.
- Imer describes what he needs in Spanish, for example adding the profile of a team member or showing the services in two columns.
- Claude Code programs it on a separate branch, without touching what is published, and opens the pull request.
- Each pull request generates a preview on Cloudflare, with its own address, so the result can be seen in the browser.
- Imer reviews the result and, if it is right, merges the change.
- Transgenia deploys it to the production server 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
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.
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
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.
| Term | What it means in this project |
|---|---|
| Pull request | A proposed change that is reviewed before it is published. |
| Branch | A working copy where the change is made without touching the published site. |
| Preview | A temporary version of the site with the change, with its own web address. |
| Gate | An automatic review that does not let a change with known defects through. |
| Schema | Structured data in the page's code that tells a search engine who the firm is and what it offers. |
llms.txt | A plain-text index of the site, meant to be read by an AI model. |
| Canary and holdout | The questions we optimize for and the ones we leave untouched to check that we did not cheat. |
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.
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
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.
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
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.
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
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.
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.
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
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.
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
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.
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
What did we decide not to publish?
Curating data also means deciding what does not go out. Three rules guided the project.
- Zero fabrication. The site only publishes verified facts. The phone number and office hours are waiting for written confirmation from the firm; in the meantime, the code leaves them empty and the gate knows it.
- Legal text is signed off by a professional. For the five unanswered questions we wrote a draft, with the article 32 figures checked against the current text of the law. In its first version, Jev scored it very high (the vulnerable activity question rises from 0.35 to 0.98) and flagged two sentences with insufficient support, which we rewrote. Even so, it sits in a draft pull request, unmerged, until the firm's responsible professional reviews it. That improvement targets three canary questions on purpose, which is why the gap with the holdout rises to +0.235. We report it as it is.
- Every figure with its source. The PLD pages cite their regulatory framework with a link and a review date.
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
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.
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
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.
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
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
- The definitive guide to AEO optimization: the full method behind this case.
- AI Search Visibility: Measure It and Find New Keywords: how we measure citations in AI engines.
- 165 pages, four versions of Transgenia and one no: why a company should say the same thing about itself on every page.
- SEO, GEO and AEO: multi-model orchestration: several AI models working on the same site.
- Nova House: Clinical Follow-up as an Operating System: another client case, in healthcare.
- Cleaning Malware Is Not Closing the Breach: WordPress Case: another client site, on the security side.
- Implementing Claude: A Six-Phase Enterprise Guide: the phases for bringing Claude to a team that does not code.
Hashtags: #SEO #GEO #GenerativeEngineOptimization #AEO #AISearch #AIVisibility #SchemaMarkup #LawFirmMarketing #LegalTech #ClaudeCode












