npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@4meta5/skills

v0.5.3

Published

TypeScript library for managing Claude AI skills

Readme

@4meta5/skills

TypeScript library for managing Claude Code skills.

Installation

npm install @4meta5/skills

Usage

Create a skills library instance

import { createSkillsLibrary } from '@4meta5/skills';

const library = createSkillsLibrary({
  cwd: process.cwd(),  // optional, defaults to process.cwd()
});

Load a skill by name

const skill = await library.loadSkill('tdd');

console.log(skill.metadata.name);        // 'tdd'
console.log(skill.metadata.description); // 'Test-driven development workflow'
console.log(skill.content);              // Skill instructions

Skills are loaded from these locations (in order):

  1. Project: .claude/skills/<name>/SKILL.md
  2. User: ~/.claude/skills/<name>/SKILL.md

List all available skills

// List all skills
const skills = await library.listSkills();

for (const skill of skills) {
  console.log(`${skill.metadata.name}: ${skill.metadata.description}`);
}

// Filter by category
const testingSkills = await library.listSkills('testing');

Install a skill

const skill = await library.loadSkill('tdd');

// Install to project
await library.installSkill(skill, { location: 'project' });

// Install to user directory
await library.installSkill(skill, { location: 'user' });

Create a new project with skills

import { createSkillsLibrary, newTsProject } from '@4meta5/skills';

const library = createSkillsLibrary();

await library.createProject(newTsProject, './my-new-project');

This creates:

  • CLAUDE.md with skill references
  • README.md
  • .gitignore
  • .claude/skills/ directory with installed skills

Extend an existing project

await library.extendProject(['tdd', 'security-analysis']);

This installs the specified skills and updates CLAUDE.md to reference them.

Project Templates

Pre-configured templates for common project types:

import { newTsProject, extendWithTesting, extendWithSecurity } from '@4meta5/skills';

// Create a TypeScript project
await library.createProject(newTsProject, './my-project');

// Extend with testing skills
await library.createProject(extendWithTesting, './my-project');

// Extend with security skills
await library.createProject(extendWithSecurity, './my-project');

Categories

Filter and organize skills by category:

import type { SkillCategory } from '@4meta5/skills';

const categories: SkillCategory[] = [
  'meta',
  'audit',
  'principles',
  'habits',
  'hot'
];

Re-exports from @4meta5/skill-loader

For backwards compatibility, this package re-exports functions from @4meta5/skill-loader:

import {
  loadSkillFromPath,
  loadSkillsFromDirectory,
  parseFrontmatter,
  discoverSupportingFiles
} from '@4meta5/skills';

Types

interface Skill {
  metadata: SkillMetadata;
  content: string;
  path: string;
  supportingFiles?: string[];
}

interface SkillMetadata {
  name: string;
  description: string;
  category?: SkillCategory;
  'disable-model-invocation'?: boolean;
  'user-invocable'?: boolean;
  'allowed-tools'?: string;
  context?: 'fork' | 'inline';
  agent?: string;
  extensions?: string;
}

type SkillCategory =
  | 'meta'
  | 'audit'
  | 'principles'
  | 'habits'
  | 'hot';

interface InstallOptions {
  location: 'project' | 'user';
  cwd?: string;
}

interface SkillsLibraryOptions {
  cwd?: string;
}

interface SkillsLibrary {
  loadSkill(name: string): Promise<Skill>;
  listSkills(category?: SkillCategory): Promise<Skill[]>;
  installSkill(skill: Skill, options: InstallOptions): Promise<void>;
  createProject(template: ProjectTemplate, targetPath: string): Promise<void>;
  extendProject(skills: string[]): Promise<void>;
}

License

MIT