Agent skill

Swpm Dev Guide

by deinsoftware in deinsoftware/swpm

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

MITAuto-check passedDevelopment

Install Swpm Dev Guide

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

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

GitHub CLI
$ gh skill install deinsoftware/swpm swpm-dev-guide --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-dev-guide .claude/skills/swpm-dev-guide && 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-dev-guide
GitHub stars
125
Token cost
~1k tokens
SKILL.md length
437 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 4 steps: Clone the repository → Run npm install to install dependencies → Run npm run build to compile → …
  • Tasks that involve Debugging
  • SKILL.md covers When to Use, Project Structure, Build & Test Commands and Development Tasks, plus 3 more sections
  • Calls npm, node and npx

What it does

Swpm Dev Guide is an agent skill from deinsoftware/swpm. Development guide for setting up, debugging, and testing SWPM locally. Includes project structure, build commands, testing, and common development tasks.

Its SKILL.md is about 1k 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 Debugging. It works with 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 Debugging

Example prompts

  • “/swpm-dev-guide”

Requirements

  • Node.js

Workflow steps

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

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Run npm run build to compile
  4. Use npm link (in bin/) to test globally

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

    Shell commands in SKILL.md call:

    • npm
    • node
    • npx

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

  • Network

    No URLs in SKILL.md. Its commands use npm and npx, 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 Dev Guide loads about 1k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 437 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~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); files beside SKILL.md are not scanned.

SKILL.md

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

Download SKILL.mdSave it as .claude/skills/swpm-dev-guide/SKILL.md (or your agent's skills folder).
name
swpm-dev-guide
description
Development guide for setting up, debugging, and testing SWPM locally. Includes project structure, build commands, testing, and common development tasks.
id
swpm-dev-guide
version
1.0.0
tags
swpm, development, debugging, local-env, testing, build

SWPM Development Guide

Use this skill when developers need help with local development tasks, debugging, project structure understanding, or setting up their development environment for SWPM.

When to Use

  • Developer asks how to set up the development environment
  • Questions about building, testing, or debugging SWPM
  • Need to understand project structure or architecture
  • Help with common development tasks (adding features, fixing bugs)
  • Do not use for questions about using SWPM as an end-user

Project Structure

swpm/
├── src/
│   ├── cli/swpm/          # CLI commands and entry points
│   │   ├── cli.ts         # Main CLI router (yargs v18)
│   │   └── commands/      # Individual command files
│   ├── packages/
│   │   ├── managers/      # Package manager configs (npm.ts, yarn.ts, etc.)
│   │   └── *.ts           # Package detection and utilities
│   └── alias/             # Direct CLI entry points (not via yargs)
├── bin/                   # Compiled output (deleted on prebuild)
├── .agents/skills/        # Agent skills for AI assistants
└── package.json           # ESM module, Node.js >= 20

Build & Test Commands

Build the project
bash
npm run build

Deletes bin/, compiles TypeScript, copies assets, runs npm ci in bin/.

Run tests
bash
npm run test

Runs vitest with --pool=forks (required for ESM).

Run single test
bash
npx vitest run src/cli/swpm/commands/upgrade.test.ts --pool=forks
Type checking
bash
npm run ts:check

Type checking without emit.

Development Tasks

Starting development
  1. Clone the repository
  2. Run npm install to install dependencies
  3. Run npm run build to compile
  4. Use npm link (in bin/) to test globally
Debugging a command
  1. Check if command exists in src/cli/swpm/commands/*.ts
  2. Verify manager config in src/packages/managers/*.ts
  3. Check registration in src/cli/swpm/cli.ts
  4. Add console.log or use Node.js inspector
  5. Run with node --inspect bin/swpm.js <command>
Adding a new feature
  1. Follow architecture rules (two-layer command system)
  2. Update manager configs if needed
  3. Create command file if new command
  4. Register in cli.ts if new command
  5. Update documentation (CHEATSHEET.md, README.md)
  6. Run tests and build to verify

Key Constraints

  • Node.js >= 20 (strict requirement)
  • ESM only ("type": "module" in package.json)
  • TypeScript strict mode enabled
  • @yargs v18 API (not v17 or earlier)
  • Output directory: bin/ (gets deleted on prebuild)

Example Questions

Show full SKILL.md (187 more words)Show less
Setup & Environment

Q: "How do I set up the development environment for SWPM?" Q: "What are the requirements to develop SWPM locally?" Q: "How do I build the project from source?"

Debugging

Q: "How can I debug why the upgrade command is not working?" Q: "The build is failing, how do I troubleshoot it?" Q: "How do I test changes to the npm manager config?"

Project Understanding

Q: "What is the two-layer command system?" Q: "Where are package manager configurations defined?" Q: "How does SWPM detect which package manager to use?"

Testing

Q: "How do I run tests for a specific command?" Q: "Why does vitest need --pool=forks?" Q: "How do I add a new test for my feature?"

Development Workflow

Q: "What steps should I follow to add a new command?" Q: "How do I verify my changes don't break existing functionality?" Q: "What documentation should I update when adding a feature?"

Observations

Before answering, observe:

  • Check current Node.js version with node --version
  • Verify if bin/ directory exists (build output)
  • Review AGENTS.md for architecture rules
  • Check .agents/skills/swpm-manage-commands-args/ for command/args management
  • Review CHEATSHEET.md for current implementation status

© 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

Just SKILL.md in .agents/skills/swpm-dev-guide of deinsoftware/swpm.

Open the folder on GitHubat commit ee443bd

Compare with similar skills

Swpm Dev Guide 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 Dev Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swpm Dev Guide this skilldeinsoftware/swpm125—~1kAutomated safety check: PassMIT
EasyEDA Pro API Bridgeeasyeda/easyeda-api-skill855—~7.8kAutomated safety check: PassMIT
Dbgtheodo-group/debug-that158—~1.9kAutomated safety check: PassMIT
Bun Runtime and Toolkitmweinbach/agent-coworker156—~2.2kAutomated safety check: NotesCustom licence
Migrate to Denodenoland/skills100—~2.2kAutomated safety check: WarnMIT
Update Depsviclafouch/meme-studio110—~2.6kAutomated safety check: PassNone

Similar skills

  • EasyEDA Pro API Bridge

    easyeda/easyeda-api-skill

    Gives an agent the EasyEDA Pro API reference and a WebSocket bridge to run code in a live EasyEDA client, for PCB, schematic and library work and extension development.

    855 GitHub stars~7.8k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Dbg

    theodo-group/debug-that

    Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.

    158 GitHub stars~1.9k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • 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 yesterday
    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
  • Update Deps

    viclafouch/meme-studio

    Audit all outdated dependencies with detailed research on changelogs, breaking changes, bug fixes, and deprecations.

    110 GitHub stars~2.6k tokensUpdated 6 mo ago
    DevelopmentAuto-check passed
  • Static Code Analysis Typescript

    jaktestowac/awesome-copilot-for-testers

    Creates, reviews, and modernizes static code analysis setups for Node.js and TypeScript repositories, covering ESLint flat config, typescript-eslint, tsconfig, Prettier, import sorting, Husky…

    116 GitHub stars~4.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from deinsoftware/swpm

  • Swpm Code Review

    deinsoftware/swpm

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

    125 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • 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 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 Dev Guide

What does Swpm Dev Guide do?

Development guide for setting up, debugging, and testing SWPM locally. Swpm Dev Guide is an agent skill from deinsoftware/swpm. Development guide for setting up, debugging, and testing SWPM locally.

When should I use Swpm Dev Guide?

Swpm Dev Guide fits situations like: tasks that involve Debugging.

How do I install Swpm Dev Guide in Claude Code?

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

How do I install Swpm Dev Guide in Codex?

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

Can I use Swpm Dev Guide 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-dev-guide -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-dev-guide, .gemini/skills/swpm-dev-guide, .github/skills/swpm-dev-guide and .opencode/skills/swpm-dev-guide in your project.

What does Swpm Dev Guide need to run?

Going by SKILL.md and its folder, Swpm Dev Guide needs the command-line tools its instructions call (npm, node and npx). Our summary lists: Node.js.

Does Swpm Dev Guide access the network?

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

Is Swpm Dev Guide 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 Swpm Dev Guide use?

Swpm Dev Guide 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 Dev Guide use?

About 1k tokens (SKILL.md is roughly 4.2k 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 Dev Guide?

Skills that share tags, products or a category with Swpm Dev Guide: EasyEDA Pro API Bridge (easyeda/easyeda-api-skill, 855 stars), Dbg (theodo-group/debug-that, 158 stars), Bun Runtime and Toolkit (mweinbach/agent-coworker, 156 stars) and Migrate to Deno (denoland/skills, 100 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swpm Dev Guide?

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.