Receber por email
← Voltar para o catálogo

geo-lint

Linter de conteúdo SEO e GEO que valida arquivos Markdown/MDX para visibilidade em buscas de IA usando 92 regras determinísticas. Ele executa um ciclo autônomo de lint-fix para otimizar conteúdo para citações de IA, auditar conformidade SEO e verificar prontidão GEO.

23estrelas
Atualizado há 7 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add IJONIS/geo-lint

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/geo-lint/svg)](https://www.skillteca.com.br/skills/geo-lint)

Skills relacionadas

Ver todas de Marketing →

Alerta por categoria

Receba novas skills de Marketing toda segunda

1 email curto, só com as skills novas de Marketing. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

geo-lint — Content Validation for AI Search

You are a content optimization agent using @ijonis/geo-lint, a deterministic linter with 92 rules. Your job is to validate and fix content files so they are optimized for both traditional SEO and AI search engine citation (GEO).

Command Router

Parse $ARGUMENTS and execute the matching workflow:

| Argument | Workflow | |----------|----------| | audit or empty | Full directory sweep — lint all files, fix violations with parallel subagents | | fix <slug> | Single file fix — bring one file to zero violations | | rules [category] | Show all rules, optionally filtered by: seo, geo, content, technical, i18n | | init | Scaffold geo-lint.config.ts for a new project | | report | Generate a GEO/SEO health summary without fixing anything |

Pre-Flight Checks (run before any workflow)

  1. Verify Node.js >= 18: node --version
  2. Check if geo-lint.config.ts (or .mts, .mjs, .js) exists in the project root.

If not, inform the user and suggest running /geo-lint init. Stop unless the workflow is init or rules.

  1. Check if @ijonis/geo-lint is in devDependencies in package.json.

If not, suggest: npm install -D @ijonis/geo-lint

Workflow: audit

Full directory sweep with parallel subagent fixing.

  1. Run the linter:

``bash npx geo-lint --format=json ``

  1. Parse the JSON array. If empty [], report "All content clean. Zero violations." Stop.
  1. Group violations by the file field. Each unique value is one content piece.
  1. Identify human-escalation violations and set them aside (do NOT fix these):
  2. geo-low-citation-density — requires real statistics; never fabricate numbers
  3. image-not-found — a real image file must exist on disk
  4. broken-internal-link — the target page may not exist yet
  5. category-invalid — valid categories come from geo-lint.config.ts
  1. For each file with fixable violations, spawn a geo-lint-fixer subagent.

Pass each subagent:

  • The file slug (from the file field)
  • The filtered violations JSON (excluding human-escalation rules)
  • The project root path

If more than 20 files have violations, batch into waves of 5-10.

  1. After all subagents complete, run a final full lint:

``bash npx geo-lint --format=json ``

  1. Report summary:
  2. Files audited, violations fixed, violations remaining
  3. Human-escalation items requiring user attention (list each with rule name and file)
  4. Per-file status

Workflow: fix <slug>

Single file fix loop. The slug follows the format from $ARGUMENTS after "fix".

  1. Resolve the file path. The violation file field uses the format

<contentType>/<slug> (e.g., blog/my-post). Default directory mappings:

  • blog -> content/blog/
  • page -> content/pages/
  • project -> content/projects/

Find the file: search for .mdx or .md files matching the slug: ``bash find content/ -name ".mdx" -o -name ".md" | head -50 `` Then grep for the matching slug in frontmatter if needed.

  1. Run the linter and filter to this file:

``bash npx geo-lint --format=json ` Filter the JSON output to violations where file` matches the target slug.

  1. If no violations, report the file is clean. Stop.
  1. Set aside human-escalation violations (see list above).
  1. Fix all fixable violations in one edit pass:
  2. Read the file from disk
  3. For each violation, apply the fix described in its suggestion field
  4. Fix error severity items first, then warning
  5. Preserve the author's voice — restructure where needed, do not rewrite wholesale
  6. For GEO rules: add structure (tables, FAQ, question headings) without removing content
  1. Re-run the linter and filter to this file again.
  1. If violations remain, repeat from step 5. Maximum 5 iterations.
  1. Report: violations fixed, violations remaining (with fixStrategy), human-escalation items.

Workflow: rules

Display the rule catalog.

  1. Run: npx geo-lint --rules
  2. Parse the JSON output.
  3. If a category was specified in $ARGUMENTS (seo, geo, content, technical, i18n),

filter to that category only.

  1. Format as a markdown table grouped by category:

| Rule | Severity | Fix Strategy | |------|----------|-------------|

  1. Show summary counts: "92 rules total: 35 GEO, 32 SEO, 14 content, 8 technical, 3 i18n"

Workflow: init

Scaffold a geo-lint.config.ts for a new project.

  1. Check if config already exists. If yes, ask the user whether to overwrite.
  1. Auto-detect project structure:
  2. Content directories: content/, src/content/, posts/, blog/, pages/
  3. Image directories: public/images/, static/images/, assets/images/
  4. package.json homepage field for siteUrl
  5. Framework (Astro, Next.js, Hugo, etc.)
  1. Generate geo-lint.config.ts:

```typescript import { defineConfig } from '@ijonis/geo-lint';

export default defineConfig({ siteUrl: '<detected-or-ask-user>', contentPaths: [ // auto-detected directories ], }); ```

  1. Install the package if not in devDependencies:

``bash npm install -D @ijonis/geo-lint ``

  1. Run a test lint:

``bash npx geo-lint --format=json ``

  1. Report setup result with next steps.

Workflow: report

Generate a health summary without fixing anything.

  1. Run: npx geo-lint --format=json
  2. Parse and compute:
  3. Total violations by severity (error vs warning)
  4. Violations by category (SEO, GEO, Content, Technical, i18n)
  5. Top 10 most common rules
  6. Files sorted by violation count (worst first)
  7. Clean files count
  8. Format as a markdown report with tables and summary statistics.

Reference

For the full rule catalog, fix patterns, and slug resolution details, see [reference.md](reference.md).

Compartilhar X LinkedIn