Logo de Sw Init

Sw Init

Comunidade
mhmtsrfglu
sw-init

Use when the user asks to set up, initialize, scaffold or upgrade a second brain, LLM wiki or Superwiki vault in a project's docs folder, or invokes sw-init.

Visão geral

Publicado pormhmtsrfglu
Repositóriosuperwiki
Nome da habilidadesw-init
Estrelas
31
Forks
3
Arquivos incluídos
9
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 9

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por mhmtsrfglu no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Sw Init no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/mhmtsrfglu/superwiki/tree/main/skills/sw-init
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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-init .claude/skills/sw-init
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Sw Init em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Sw Init automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Sw Init não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

sw-init

Turns docs/ into a Superwiki vault: an LLM-maintained wiki that is also an Obsidian vault, with an optional task module. A script does the scaffolding; do not create the files by hand.

The vault is always <project root>/docs. Run every command below from the project root. <skill-dir> is the directory this SKILL.md is in.

Steps

  1. Check Node: node --version must be 18 or newer. If not, go to "Without Node".

  2. Upgrade or new? If docs/.sw/config.json exists this is an upgrade: skip step 3 and run the script with no flags; it reuses the saved choices.

  3. Ask the user, in one message (new vault only):

    • Task module on or off. Recommend on when the project is mainly code, off for a pure knowledge base.
    • If on, the area prefixes for task ids (M-01, B-01). Recommend the single default area T unless the project already has separately named parts. Area names are optional labels; do not ask for them separately.
    • Whether the Superwiki skills should also be kept in the repository, as sw-<name> folders, and for which agents: Claude Code (.claude/skills), Codex and Copilot (.agents/skills). Recommend yes, for the agents the team uses, when cloud agents will work on the repository (Claude Code on the web, Codex cloud, the Copilot coding agent): they start from a clone, see no home folder, and so have only the skills that are committed. Otherwise recommend no. Leave the question out when <skill-dir> is inside the project: the skills are in the repository already.
  4. Run the script, with the flags that match the answers. --skills takes the agents, comma-separated: claude, codex, copilot or all. Without it no skills are copied.

    bash
    node <skill-dir>/scripts/init.mjs --tasks                               # tasks on, default area T
    node <skill-dir>/scripts/init.mjs --tasks --areas "M=Mobile,B=Backend"  # tasks on, named areas
    node <skill-dir>/scripts/init.mjs --no-tasks                            # wiki only
    node <skill-dir>/scripts/init.mjs --tasks --skills claude,codex         # tasks on, skills in the repository for Claude Code and Codex
    node <skill-dir>/scripts/init.mjs                                       # upgrade
  5. Check: run node docs/.sw/sw.mjs lint. A new vault reports 0 errors, 0 warnings. On an upgrade, findings are about the user's existing pages: show them, do not fix them unasked.

  6. Report to the user from the script's output. Each line starts with a status:

    StatusSay
    created, updatedwhat is new or changed
    created, updated for .claude/skills/sw-*/ or .agents/skills/sw-*/that the skills are in the repository, in one sentence naming the folders, not one line per skill; and that the folders have to be committed before a clone or a cloud agent has them
    kept, unchangedthat user content and settings were not touched (one sentence, no list)
    kept ... (not installed by Superwiki)that a skill folder of that name was already there and was left as it is; name it. npx superwiki install --project . --force <targets> replaces it, if the user wants that
    missingthat this Superwiki build lacks the file; name it, and do not point the user at it
    note about CLAUDE.mdoffer to add the @AGENTS.md line. Add it only after the user agrees to that specific change
    note "skills in the repository left alone"that the script ran from the repository's own copy of the skills and so did not update them; give the command from the note
    "docs/ already had content"that content is untouched and outside the vault; sw-migrate converts it

    End with how to look at the result: open docs/ as an Obsidian vault, or open docs/viewer.html in Chrome or Edge and pick the project folder (only if the viewer was not reported missing). When the answers name Codex or Copilot (the skills question answered yes, or the user said they work with one of them), add that Codex and Copilot run the planner, implementer and reviewer only through agent files in the project, which sw-config writes: sw-config sync --tools codex, copilot or both, once, before the first sw-plan or sw-implement there.

What the script guarantees

FileOn re-run
docs/index.md, docs/log.md, everything in raw/, wiki/, tasks/, plans/kept
docs/.sw/sw.mjs, docs/.sw/templates/, docs/viewer.htmlreplaced with this version
AGENTS.mdonly the Superwiki block (from the sw:start comment to the sw:end comment) is replaced
docs/.sw/config.jsonareas, models and the agents whose skills are kept in the repository (skills) stay as saved unless new flags are passed
.claude/skills/sw-*/ and .agents/skills/sw-*/, when skills names their agentsa folder Superwiki installed is replaced with this version; any other folder of that name is kept. Nothing is deleted, also not after --no-skills. Left alone when the script runs from that folder

Without Node

The script and docs/.sw/sw.mjs need Node 18 or newer. If node is missing or older, say so and stop; continue by hand only if the user asks for that. By hand: create docs/{raw/assets,wiki} (plus tasks, plans), copy assets/templates/ to docs/.sw/templates/ and assets/viewer.html to docs/, write index.md and log.md as the script would, and paste assets/agents-block.md into AGENTS.md with the {{...}} lines resolved. Tell the user the sw.mjs commands in that block will not work until Node is installed.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Sw Init faz?

Use when the user asks to set up, initialize, scaffold or upgrade a second brain, LLM wiki or Superwiki vault in a project's docs folder, or invokes sw-init.

Por que usar Sw Init no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Sw Init é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Sw Init no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/mhmtsrfglu/superwiki/tree/main/skills/sw-init. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Sw Init?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Sw Init?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Sw Init com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Sw Init é gratuita?

Sim. A habilidade é publicada no GitHub por mhmtsrfglu sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇