porcupine-md/anoa-browser/scaffold-library

Claude Code and agent skill by porcupine-md/anoa-browser

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Setup library project structure with src, build config, exports, and tests

Install

npx vskill@latest install porcupine-md/anoa-browser/scaffold-library

SKILL.md

The same SKILL.md was published earlier as porcupine-md/jonggrang/scaffold-library.

Context

You will create a library "{{input.name}}" targeting {{input.runtime}}. Output format: {{input.format}}.

Instructions

  1. Setup package.json
  • name, version, description, license
  • main (CJS), module (ESM), types
  • exports field for dual package
  • scripts: build, test, lint, prepublishOnly
  • peerDependencies (not dependencies) for shared libs
  1. Setup TypeScript config
  • tsconfig.json for source
  • tsconfig.build.json for build output
  • Strict mode enabled
  • Declaration files enabled
  1. Setup build tool
  • tsup or unbuild (simple, near-zero-config)
  • Config for ESM + CJS output
  • Source maps
  • DTS generation
  1. Create source structure

`` src/ ├── index.ts # Public API exports ├── types.ts # Shared types └── [modules]/ # Feature modules ``

  1. Setup testing
  • Vitest config
  • Example test file
  • Coverage config
  1. Setup linting
  • ESLint config (if not already present)
  • Prettier config (if not already present)
  1. Create README stub
  • Installation
  • Quick start
  • API reference placeholder
  1. Setup CI (if jonggrang.json ci.provider != none)
  • Build + test on PR
  • Publish on tag/release

Script

bash
#!/bin/bash
# Initialize if no package.json
if [ ! -f "package.json" ]; then
npm init -y
fi
# Install dev dependencies
npm install -D typescript tsup vitest @types/node

Validation

  • [ ] npm run build succeeds
  • [ ] npm run test passes
  • [ ] Output files generated (dist/)
  • [ ] Types generated (.d.ts)
  • [ ] ESM import works
  • [ ] CJS require works (if format includes cjs)
  • [ ] Exports field correct in package.json

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/porcupine-md/anoa-browser/scaffold-library/badge)](https://verified-skill.com/skills/porcupine-md/anoa-browser/scaffold-library)

Something wrong with this skill or its page? Tell us.