Agent skill

Swig Doc

by swig in swig/swig

Author and edit chapters of the SWIG Users Manual under Doc/Manual: chapter conventions, manual heading anchors, the four content <div styles (code / targetlang / shell / diagram), how to show a…

Custom licenceAuto-check passed

Install Swig Doc

skills CLI
$ npx skills add swig/swig --skill swig-doc -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install swig/swig swig-doc --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/swig/swig.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/swig-doc .claude/skills/swig-doc && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
swig-doc
GitHub stars
6.3k
Token cost
~3.5k tokens
SKILL.md length
1,611 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Custom licence

At a glance

Author and edit chapters of the SWIG Users Manual under Doc/Manual: chapter conventions, manual heading anchors, the four content <div styles (code / targetlang / shell / diagram), how to show a…

  • Works in 4 steps: Numbers – from the chapter's position in… → Adds an anchor inside each heading only… → Rewrites the <!-- INDEX -->...<!-- INDEX… → …
  • SKILL.md covers When to use, Source of truth, The default make target and Heading anchors — always name…, plus 11 more sections
  • Calls make, git and javac

What it does

Swig Doc is an agent skill from swig/swig. Author and edit chapters of the SWIG Users Manual under Doc/Manual: chapter conventions, manual heading anchors, the four content <div styles (code / targetlang / shell / diagram), how to show a warning or error message, the auto generated section TOC, the make targets that renumber headings and validate HTML, the warning list in Warnings.html and how to check it against the warning numbers in the source, and the rules for cross document anchored links.

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.

Example prompts

  • “/swig-doc”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Numbers – from the chapter's position in chapters (e.g. 10.2.1 ...).
  2. Adds an anchor inside each heading only if one is not already present.
  3. Rewrites the <!-- INDEX -->...<!-- INDEX --> block at the top of the chapter as a table of contents.
  4. Backs up the original to *.bak (delete with make clean-baks before committing).

What it can do on your machine

Read from SKILL.md and the folder at commit 068bf9b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make
    • git
    • javac
    • java

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swig Doc loads about 3.5k tokens when it runs. Until then it costs about 118 tokens; SKILL.md has 1,611 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,611 words (~3,490 tokens).

“The reference manual is hand written HTML4 Transitional. There is no Markdown / Sphinx / Doxygen layer for the user manual — edit the .html files directly.”

— opening of SKILL.md by swig, Custom licence
name
swig-doc
argument-hint
Optionally specify the chapter file (e.g. CPlusPlus20.html) to edit

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/swig-doc of swig/swig.

Open the folder on GitHubat commit 068bf9b

Compare with similar skills

Swig Doc next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Swig Doc compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swig Doc this skillswig/swig6.3k—~3.5kAutomated safety check: PassCustom licence
Doc AuthorInsForge/InsForge13k—~3.7kAutomated safety check: PassMIT
Docs AuthoringTracecatHQ/tracecat3.8k—~3.1kAutomated safety check: NotesAGPL-3.0
Docnexu-io/open-design100k—~266Automated safety check: PassApache-2.0
Docsremotion-dev/remotion63k—~248Automated safety check: PassCustom licence
Pm The Docssupabase/supabase111k—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Doc Author

    InsForge/InsForge

    Write, edit, and maintain documentation. An agent skill from InsForge/InsForge.

    13k GitHub stars~3.7k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Docs Authoring

    TracecatHQ/tracecat

    A skill your agent uses when adding or updating documentation pages in an existing docs site.

    3.8k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check: notes
  • Doc

    nexu-io/open-design

    Read, create, and edit .docx documents with formatting and layout fidelity via OpenAI's document skill.

    100k GitHub stars~266 tokensUpdated today
    Documents & OfficeAuto-check passed
  • Docs

    remotion-dev/remotion

    Official

    Start the Remotion docs site and open it in the Codex browser.

    63k GitHub stars~248 tokensUpdated today
    Media & CreativeAuto-check passed
  • Pm The Docs

    supabase/supabase

    Official

    Docs-PM decision support for the "Write the docs" authoring process — makes audience, stage, and cross-cutting scope calls during the Frame and Shape stages (including cross-repo product lookup via…

    111k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Update Docs

    vercel/next.js

    Official

    This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with code", "scaffold docs for this feature"…

    143k GitHub stars~1.9k tokensUpdated today
    Documents & OfficeAuto-check passed

More from swig/swig

  • Swig Test

    swig/swig

    Run SWIG test suite for specific languages. An agent skill from swig/swig.

    6.3k GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Swig CI Repro

    swig/swig

    Reproduce a GitHub Actions Linux CI failure locally when it does not happen on your machine: a podman/docker image that mirrors the ubuntu-22.04 runner by reusing the real Tools/CI-linux-.sh install…

    6.3k GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed
  • SWIG source and contribution conventions: clang-format / code formatting, C/C++ comment style (quotes, widths, function header blocks), parser.y new-code rules, alphabetical ordering of makefile…

    6.3k GitHub stars~2.7k tokensUpdated 2 days ago
    Auto-check passed

Questions about Swig Doc

What does Swig Doc do?

Author and edit chapters of the SWIG Users Manual under Doc/Manual: chapter conventions, manual heading anchors, the four content <div styles (code / targetlang / shell / diagram), how to show a…. Swig Doc is an agent skill from swig/swig.html and how to check it against the warning numbers in the source, and the rules for cross document anchored links.

How do I install Swig Doc in Claude Code?

Run `npx skills add swig/swig --skill swig-doc -a claude-code`. Or copy the skill folder (.agents/skills/swig-doc in swig/swig) into .claude/skills/swig-doc in your project. Claude Code loads it when a task matches its description.

How do I install Swig Doc in Codex?

Run `npx skills add swig/swig --skill swig-doc -a codex`. Or copy the skill folder (.agents/skills/swig-doc in swig/swig) into .agents/skills/swig-doc in your project. Codex loads it when a task matches its description.

Can I use Swig Doc in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add swig/swig --skill swig-doc -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swig-doc, .gemini/skills/swig-doc, .github/skills/swig-doc and .opencode/skills/swig-doc in your project.

What does Swig Doc need to run?

Going by SKILL.md and its folder, Swig Doc needs the command-line tools its instructions call (make, git, javac and java). Our summary lists: Python 3.

Does Swig Doc access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Swig Doc safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Swig Doc use?

Swig Doc has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Swig Doc use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Swig Doc?

Skills that share tags, products or a category with Swig Doc: Doc Author (InsForge/InsForge, 13k stars), Docs Authoring (TracecatHQ/tracecat, 3.8k stars), Doc (nexu-io/open-design, 100k stars) and Docs (remotion-dev/remotion, 63k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swig Doc?

swig (a GitHub organization) maintains it in swig/swig, which has 6,329 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 7, 2026.

Source: swig/swig on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.