Logotipo de Sw Lint

Sw Lint

Comunidad
mhmtsrfglu
sw-lint

Use when the user asks to check, lint, health-check, clean up or audit the Superwiki vault or wiki, after bulk edits or a migration, or invokes sw-lint.

Descripción general

Editormhmtsrfglu
Repositoriosuperwiki
Nombre de la habilidadsw-lint
Estrellas
31
Forks
3
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por mhmtsrfglu en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Sw Lint en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/mhmtsrfglu/superwiki/tree/main/skills/sw-lint
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mhmtsrfglu/superwiki.git /tmp/superwiki
mkdir -p .claude/skills
cp -r /tmp/superwiki/skills/sw-lint .claude/skills/sw-lint
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Sw Lint en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Sw Lint automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Sw Lint no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

sw-lint

Two passes. The first is a script and costs almost nothing. The second reads pages and costs tokens, so it runs only when the user approves it.

Pass 1: structure (always)

  1. Run node docs/.sw/sw.mjs lint from the project root. Read only its output, not the vault. It exits with code 1 while errors remain; that is expected.

  2. Fix broken links first, then run lint again, because one rename produces several findings (broken-link in every page that linked the old name, plus not-in-index and orphan-page for the new one).

    • A rename is established when exactly one page is reported not-in-index or orphan-page and its name is a variation of the broken target. Re-point every [[old]] to [[new]] in the files lint named, including index.md and task files.
    • Two candidates, or no resemblance: do not guess. Report it.
  3. Fix what else has one correct answer:

    FindingFix
    stale-board, missing-boardnode docs/.sw/sw.mjs index: it rewrites the task list in index.md from the task files. Never edit that list by hand
    not-in-indexadd - [[page]]: summary to index.md, using the page's summary:
    missing-field summarycopy it from the page's line in index.md; if there is none, read the page and write it
    missing-field typeread that page, write the field
    missing-datefill from git log --follow --format=%ad --date=short -- <file> when the project is under git and the date is unambiguous
  4. Report the rest and let the user decide. Do not change a task's status or deps to silence a finding.

    FindingWhy it needs a human
    started-before-deps, done-before-deps, dep-cycle, cancelled-depeither the status or the dependency is wrong; only the user knows which
    done-unverifiedthe task is done but its ## Summary holds an unverified or failed item. Run sw-verify for it; do not edit a verdict by hand
    missing-date you could not fillno history to take it from, or it hangs on a finding above
    duplicate-nameone of the pages must be renamed and every link to it re-pointed
    broken-link with no clear target, orphan-plan, unknown-depthe page may be missing or the reference stale
    orphan-pagemay be fine; may want a link from a related page
  5. Run lint again and state the before and after counts.

Pass 2: meaning (ask first)

Offer it with its size: "The wiki has N pages; a semantic review reads them. Run it?" (N from node docs/.sw/sw.mjs status). If approved:

  1. Read index.md. Collect follow-ups that ingests deferred: find the last lint entry with grep -n '^## \[.*\] lint' docs/log.md | tail -1 and read the log from that line to the end (the whole log only if there is no lint entry and it is short; otherwise tail -60).
  2. Read the wiki pages. Up to about twenty pages, read them all; beyond that, go group by group (same type, or linked to each other). Open a file in raw/ only to settle whether two pages really contradict each other. Look for:
    • claims that contradict each other;
    • a decision page superseded by a later one without saying so;
    • concepts named on several pages that have no page of their own;
    • pages that should link to each other and do not;
    • summaries or titles that no longer match the page;
    • each collected follow-up: still needed, or already handled.
  3. Present the findings as a numbered list with the pages involved, and say which ones you recommend applying now. Apply only what the user agrees to.

Finish

  1. Run node docs/.sw/sw.mjs lint once more if you edited anything after the last run.

  2. Append to docs/log.md, in the layout its last entries use:

    ## [YYYY-MM-DD] lint | <N> fixed, <M> open
    Fixed: <what>. Open: <findings left for the user>. Follow-up: <semantic findings and ingest follow-ups not yet handled>.

    Carry every unhandled follow-up into this entry: the next lint reads only from here on. Name a page that was renamed or removed in backticks, not as a [[link]].

Preguntas frecuentes

¿Qué hace la habilidad de IA Sw Lint?

Use when the user asks to check, lint, health-check, clean up or audit the Superwiki vault or wiki, after bulk edits or a migration, or invokes sw-lint.

¿Por qué usar Sw Lint en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Sw Lint está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Sw Lint en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/mhmtsrfglu/superwiki/tree/main/skills/sw-lint. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Sw Lint?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Sw Lint?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Sw Lint con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Sw Lint?

Sí. mhmtsrfglu la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇