Sw Init logo

Sw Init

Community
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.

Overview

Publishermhmtsrfglu
Repositorysuperwiki
Skill namesw-init
Stars
31
Forks
3
Bundled files
9
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 9 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by mhmtsrfglu on GitHub. Read the source before you install it.

Installation

Install the Sw Init AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mhmtsrfglu/superwiki/tree/main/skills/sw-init
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sw Init in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sw Init on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sw Init is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sw Init AI skill do?

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.

Why use Sw Init on TypingMind?

Because you install it once and use it with any model. Sw Init is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sw Init in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mhmtsrfglu/superwiki/tree/main/skills/sw-init. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sw Init?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sw Init?

As many as you like. As long as a model supports skills, you can use Sw Init with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sw Init AI skill free?

Yes. It is published on GitHub by mhmtsrfglu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇