Agent skill

Swpm Code Review

by deinsoftware in deinsoftware/swpm

Automated code review bash script for SWPM. An agent skill from deinsoftware/swpm.

MITAuto-check passedDevelopment

Install Swpm Code Review

skills CLI
$ npx skills add deinsoftware/swpm --skill swpm-code-review -a claude-code

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

GitHub CLI
$ gh skill install deinsoftware/swpm swpm-code-review --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/deinsoftware/swpm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/swpm-code-review .claude/skills/swpm-code-review && 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
swpm-code-review
GitHub stars
125
Token cost
~1.1k tokens
SKILL.md length
327 words
Files
2 (incl. scripts)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Automated code review bash script for SWPM. An agent skill from deinsoftware/swpm.

  • Works in 7 steps: Typing Standards → Naming Conventions → Export Patterns → …
  • Tasks that involve Code review
  • SKILL.md covers When to Use, What the Script Checks, Usage and Example Output, plus 4 more sections
  • Runs Shell scripts from its folder; calls bash and npm

What it does

Swpm Code Review is an agent skill from deinsoftware/swpm. Automated code review bash script for SWPM. Checks typing standards (type vs interface, no any), naming conventions, file structure, export patterns, and project constraints. Invoke via executable script.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/code-review.sh`).

It sits in Development, covering Code review and Shell scripting. It works with Bash, npm, Node.js and TypeScript. The repository describes itself as: Switch Package Manager - Say goodbye to Package Manager confusion. The licence is MIT.

When your agent uses it

  • Tasks that involve Code review
  • Tasks that involve Shell scripting

Example prompts

  • “/swpm-code-review”

Requirements

  • Node.js
  • A Bash shell

Workflow steps

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

  1. Typing Standards
  2. Naming Conventions
  3. Export Patterns
  4. File Structure
  5. Project Constraints
  6. Lint and Tests
  7. Markdown Lint

What it can do on your machine

Read from SKILL.md and the folder at commit ee443bd. 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

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • npm

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

  • Network

    No URLs in SKILL.md. Its commands use npm, 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

Swpm Code Review loads about 1.1k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 327 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

The full file from deinsoftware/swpm at commit ee443bd, republished under its MIT licence (© deinsoftware). 327 words, ~1,094 tokens.

Download SKILL.mdSave it as .claude/skills/swpm-code-review/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
swpm-code-review
description
Automated code review bash script for SWPM. Checks typing standards (type vs interface, no any), naming conventions, file structure, export patterns, and project constraints. Invoke via executable script.
id
swpm-code-review
version
1.0.0
tags
swpm, code-review, standards, lint, quality
disable-model-invocation
true
user-invocable
false

SWPM Code Review

Use this skill to perform automated code reviews ensuring compliance with SWPM development standards. The skill provides an executable bash script that checks multiple aspects of the codebase.

When to Use

  • Developer requests "review my code" or "check my changes"
  • Before submitting a pull request
  • Verifying compliance with project standards
  • Do not use for questions about standards (use swpm-dev-standards instead)

What the Script Checks

The executable script scripts/code-review.sh validates:

  1. Typing Standards

    • No interface keyword usage
    • No any type usage
    • Correct import type usage for type-only imports
    • Types in separate *.types.ts files
  2. Naming Conventions

    • Files: kebab-case or lowercase
    • Functions: camelCase, arrow functions preferred
    • Constants: UPPER_SNAKE_CASE
  3. Export Patterns

    • Default exports for configs/commands
    • Named exports for utilities
    • No anonymous function exports
  4. File Structure

    • Tests in same directory as source
    • Type files in *.types.ts
    • Aliases in src/alias/*.js
  5. Project Constraints

    • Node.js >= 20
    • ESM only (check package.json)
    • TypeScript strict mode
    • @yargs v18 API
  6. Lint and Tests

    • Runs npm run lint
    • Runs npm run ts:check
    • Runs tests for changed test files
  7. Markdown Lint

    • No trailing whitespace
    • No multiple consecutive blank lines
    • Correct date formats in CHANGELOG.md

Usage

Make it executable (required)
bash
chmod +x .agents/skills/swpm-code-review/scripts/code-review.sh
Run the review script
bash
./agents/skills/swpm-code-review/scripts/code-review.sh

Or without execute permission:

bash
bash .agents/skills/swpm-code-review/scripts/code-review.sh
Review changes from master branch

Reviews only files changed compared to master branch:

bash
bash .agents/skills/swpm-code-review/scripts/code-review.sh --master
Review changes from main branch
bash
bash .agents/skills/swpm-code-review/scripts/code-review.sh --main
Review staged changes
bash
bash .agents/skills/swpm-code-review/scripts/code-review.sh --staged
Review specific files
bash
bash .agents/skills/swpm-code-review/scripts/code-review.sh --files "src/helpers/cmds.ts src/helpers/args.ts"

Example Output

=== SWPM Code Review ===

Checking changes vs master branch...
Files to review:
  - src/helpers/repos.ts
  - .agents/skills/swpm-release/scripts/release.sh

=== Running lint ===
...

=== Running type check ===
...

=== Checking typing standards ===
  WARNING: Found 'any' type in src/helpers/debug.ts
  WARNING: Found 'interface' in src/config.ts (use 'type' instead)

=== Checking naming conventions ===
  WARNING: Found PascalCase export in src/components/Button.ts (use camelCase)

=== Checking markdown files ===
  WARNING: Found trailing whitespace in README.md

=== Code Review Complete ===

Script Location

.agents/skills/swpm-code-review/
├── SKILL.md
└── scripts/
    └── code-review.sh

Example Questions

Q: "Can you review my changes?" A: Run bash .agents/skills/swpm-code-review/scripts/code-review.sh

Q: "What does the code review check?" A: Typing (no any, no interface), naming, exports, file structure, lint, tests, and project constraints.

Q: "How do I check specific files?" A: Use --files flag: bash .../code-review.sh --files "src/file1.ts src/file2.ts"

Observations

Before running the review:

  • Ensure you're in the project root directory
  • Review swpm-dev-standards skill for detailed standards
  • Check package.json for current configuration
  • Verify CHANGELOG.md follows Keep a Changelog format

Configuration

The script uses:

  • package.json - version, engines, type field
  • tsconfig.json - TypeScript configuration
  • npm scripts: lint, ts:check, test

© deinsoftware, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in .agents/skills/swpm-code-review of deinsoftware/swpm.

  • SKILL.md
  • scripts/code-review.sh

Open the folder on GitHubat commit ee443bd

Compare with similar skills

Swpm Code Review 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.

Swpm Code Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swpm Code Review this skilldeinsoftware/swpm125—~1.1kAutomated safety check: PassMIT
ZxLeoYeAI/openclaw-master-skills2.2k—~2.2kAutomated safety check: NotesMIT
Mole Bug Patternstw93/Mole70k—~2kAutomated safety check: PassGPL-3.0
Install Language Serversweave-os/router5.6k—~745Automated safety check: NotesApache-2.0
Minimum Viableferrumclaudepilgrim/claude-code-android266—~538Automated safety check: NotesMIT
Bun Runtime and Toolkitmweinbach/agent-coworker156—~2.2kAutomated safety check: NotesCustom licence

Similar skills

  • Zx

    LeoYeAI/openclaw-master-skills

    Comprehensive guide for writing shell scripts with Google zx — a tool for writing better scripts using JavaScript/TypeScript.

    2.2k GitHub stars~2.2k tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    70k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Installs a language server such as gopls, typescript-language-server, pyright or rust-analyzer and, with explicit confirmation, its underlying toolchain so the lsp tool can use it.

    5.6k GitHub stars~745 tokensUpdated today
    DevelopmentAuto-check: notes
  • Minimum Viable

    ferrumclaudepilgrim/claude-code-android

    Before building anything, justify the tool choice and complexity level.

    266 GitHub stars~538 tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • Bun Runtime and Toolkit

    mweinbach/agent-coworker

    Quick reference for using Bun to run TypeScript and JavaScript, install packages, bundle code, run tests and serve HTTP, with the key files and commands.

    156 GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check: notes
  • Migrate to Deno

    denoland/skills

    Official

    Moves a Node.js, npm, Yarn, pnpm or Bun project to Deno in reversible steps, starting with Deno as the package manager and changing no code unless needed.

    100 GitHub stars~2.2k tokensUpdated 2 mo ago
    DevelopmentAuto-check: warnings

More from deinsoftware/swpm

  • Swpm Keepachangelog

    deinsoftware/swpm

    Keep a Changelog 1.1.0 standards for SWPM. An agent skill from deinsoftware/swpm.

    125 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Swpm Release

    deinsoftware/swpm

    Automated release bash script for SWPM. An agent skill from deinsoftware/swpm.

    125 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Swpm Semver

    deinsoftware/swpm

    Semantic Versioning 2.0.0 guidelines for SWPM. An agent skill from deinsoftware/swpm.

    125 GitHub stars~1.3k tokensUpdated 4 mo ago
    Auto-check passed
  • Swpm Conventional Commits

    deinsoftware/swpm

    Conventional Commits 1.0.0 specification for SWPM. An agent skill from deinsoftware/swpm.

    125 GitHub stars~1.6k tokensUpdated 4 mo ago
    Auto-check passed
  • Swpm Dev Guide

    deinsoftware/swpm

    Development guide for setting up, debugging, and testing SWPM locally.

    125 GitHub stars~1k tokensUpdated 4 mo ago
    Auto-check passed
  • Swpm Manage Commands Args

    deinsoftware/swpm

    Manage cmds and args props in SWPM package manager configs (src/packages/managers/.ts), including adding, modifying or removing command and argument mappings across npm, yarn, pnpm, bun, deno.

    125 GitHub stars~1.5k tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Swpm Code Review

What does Swpm Code Review do?

Automated code review bash script for SWPM. An agent skill from deinsoftware/swpm. Swpm Code Review is an agent skill from deinsoftware/swpm. Automated code review bash script for SWPM.

When should I use Swpm Code Review?

Swpm Code Review fits situations like: tasks that involve Code review; tasks that involve Shell scripting.

How do I install Swpm Code Review in Claude Code?

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

How do I install Swpm Code Review in Codex?

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

Can I use Swpm Code Review 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 deinsoftware/swpm --skill swpm-code-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swpm-code-review, .gemini/skills/swpm-code-review, .github/skills/swpm-code-review and .opencode/skills/swpm-code-review in your project.

What does Swpm Code Review need to run?

Going by SKILL.md and its folder, Swpm Code Review needs a shell for the scripts in its folder and the command-line tools its instructions call (bash and npm). Our summary lists: Node.js; A Bash shell.

Does Swpm Code Review access the network?

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

Is Swpm Code Review 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Swpm Code Review use?

Swpm Code Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Swpm Code Review use?

About 1.1k tokens (SKILL.md is roughly 4.4k 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 Swpm Code Review?

Skills that share tags, products or a category with Swpm Code Review: Zx (LeoYeAI/openclaw-master-skills, 2.2k stars), Mole Bug Patterns (tw93/Mole, 70k stars), Install Language Servers (weave-os/router, 5.6k stars) and Minimum Viable (ferrumclaudepilgrim/claude-code-android, 266 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swpm Code Review?

deinsoftware (a GitHub organization) maintains it in deinsoftware/swpm, which has 125 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on June 6, 2026.

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