Agent skill

Swig Conventions

by swig in swig/swig

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…

Custom licenceAuto-check passedDevelopment

Install Swig Conventions

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

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

GitHub CLI
$ gh skill install swig/swig swig-conventions --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-conventions .claude/skills/swig-conventions && 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-conventions
GitHub stars
6.3k
Token cost
~2.7k tokens
SKILL.md length
1,395 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Custom licence

At a glance

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…

  • Tasks that involve Commit messages
  • SKILL.md covers When to use, Code formatting, Comment style and Function comment headers, plus 8 more sections
  • Calls make
  • Tasks that involve Technical documentation

What it does

Swig Conventions is an agent skill from swig/swig. 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 lists, adding or retiring a warning number and checking it is documented, commit message style, hyphenation, CHANGES.current file entries for user visible release notes and AI-assistance disclosure. Read before writing or editing Source/ or Lib/ code, comments, or commit messages.

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

It sits in Development, covering Commit messages, Technical documentation and Linting and formatting. It works with C++. 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.

When your agent uses it

  • Tasks that involve Commit messages
  • Tasks that involve Technical documentation
  • Tasks that involve Linting and formatting

Example prompts

  • “/swig-conventions”

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

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

  • Network

    No URLs in SKILL.md.

    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 Conventions loads about 2.7k tokens when it runs. Until then it costs about 123 tokens; SKILL.md has 1,395 words of instructions outside code blocks.

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

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,395 words (~2,685 tokens).

“Format config: Source/.clang-format (Google style, 160 column limit).”

— opening of SKILL.md by swig, Custom licence
name
swig-conventions

Read the full SKILL.md on GitHub

Files

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

Open the folder on GitHubat commit 068bf9b

Compare with similar skills

Swig Conventions 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 Conventions compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swig Conventions this skillswig/swig6.3k—~2.7kAutomated safety check: PassCustom licence
PR Pushicebear0828/codex-proxy1.8k—~2.2kAutomated safety check: NotesCustom licence
PR Pushicebear0828/codex-proxy1.8k—~2.3kAutomated safety check: NotesCustom licence
CommitLennartHennigs/Button2565—~562Automated safety check: PassMIT
Prosestatic-web-server/static-web-server2.4k—~1.2kAutomated safety check: PassApache-2.0
CommitLennartHennigs/ESPRotary188—~590Automated safety check: PassMIT

Similar skills

  • PR Push

    icebear0828/codex-proxy

    Package the current working changes into a standards-compliant codex-proxy pull request: branch hygiene, commit message linting, CHANGELOG prompt, conventional commit, push, and gh pr create against…

    1.8k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check: notes
  • PR Push

    icebear0828/codex-proxy

    Package the current working changes into a standards-compliant codex-proxy pull request: branch hygiene, commit message linting, CHANGELOG prompt, conventional commit, push, and gh pr create against…

    1.8k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check: notes
  • Commit

    LennartHennigs/Button2

    Stage and commit current changes for Button2 — checks for needed CHANGELOG/README/CLAUDE.md updates, creates a branch if on master, writes a commit message, and commits

    565 GitHub stars~562 tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Prose

    static-web-server/static-web-server

    Write or edit human-readable text for the Static Web Server (SWS) project — commit messages, CHANGELOG entries, PR descriptions, issue bodies, rustdoc comments, CLI help text, READMEs, and user docs…

    2.4k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Commit

    LennartHennigs/ESPRotary

    Stage and commit current changes for ESPRotary — checks for needed CHANGELOG/README/CLAUDE.md updates, creates a branch if on master, writes a commit message, and commits

    188 GitHub stars~590 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Mas Code Standards

    AUTO-MAS-Project/AUTO-MAS

    A skill your agent uses when implementing, fixing, refactoring, or reviewing non-generated AUTO-MAS code, or when preparing code-style guidance, comments, docstrings, version notes, or Conventional…

    711 GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-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 3 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 3 days ago
    Auto-check passed
  • Swig Doc

    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…

    6.3k GitHub stars~3.5k tokensUpdated 3 days ago
    Auto-check passed

Works with

Categories

Questions about Swig Conventions

What does Swig Conventions do?

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…. Swig Conventions is an agent skill from swig/swig.current file entries for user visible release notes and AI-assistance disclosure.

When should I use Swig Conventions?

Swig Conventions fits situations like: tasks that involve Commit messages; tasks that involve Technical documentation; tasks that involve Linting and formatting.

How do I install Swig Conventions in Claude Code?

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

How do I install Swig Conventions in Codex?

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

Can I use Swig Conventions 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-conventions -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-conventions, .gemini/skills/swig-conventions, .github/skills/swig-conventions and .opencode/skills/swig-conventions in your project.

What does Swig Conventions need to run?

Going by SKILL.md and its folder, Swig Conventions needs the command-line tools its instructions call (make).

Does Swig Conventions access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Swig Conventions 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 Conventions use?

Swig Conventions 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 Conventions use?

About 2.7k tokens (SKILL.md is roughly 11k 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 Conventions?

Skills that share tags, products or a category with Swig Conventions: PR Push (icebear0828/codex-proxy, 1.8k stars), PR Push (icebear0828/codex-proxy, 1.8k stars), Commit (LennartHennigs/Button2, 565 stars) and Prose (static-web-server/static-web-server, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swig Conventions?

swig (a GitHub organization) maintains it in swig/swig, which has 6,330 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.