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

@lmammino/c4-codebase-architecture-skill

v0.1.2

Published

Agent skill for documenting codebases with the C4 model

Readme

c4-codebase-architecture-skill

An agent skill for turning codebases into clear, evidence-based C4 architecture documentation.

What it does

This skill helps an AI coding agent inspect a repository and produce C4 model architecture documentation. It:

  • inspects codebase evidence (entrypoints, manifests, infrastructure code, deployment descriptors, etc.)
  • produces System Context, Container, and Component views
  • separates observed facts from inferences
  • asks targeted follow-up questions when the code alone is insufficient
  • supports output as Markdown narrative with Mermaid diagrams, PlantUML, or Structurizr DSL

Installation

Install from npm

# npm
npx skills install npm:@lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

# pnpm
pnpm dlx skills install npm:@lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

# yarn (Berry / modern Yarn)
yarn dlx skills install npm:@lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

# bun
bunx skills install npm:@lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

Add -a <agent> if you want to target a specific agent explicitly. Otherwise, skills will prompt you to choose one.

Install from GitHub

# npm
npx skills add lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

# pnpm
pnpm dlx skills add lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

# yarn (Berry / modern Yarn)
yarn dlx skills add lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

# bun
bunx skills add lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

Install from a local checkout

If you already cloned this repository:

# npm
npx skills add . --skill c4-codebase-architecture

# pnpm
pnpm dlx skills add . --skill c4-codebase-architecture

# yarn (Berry / modern Yarn)
yarn dlx skills add . --skill c4-codebase-architecture

# bun
bunx skills add . --skill c4-codebase-architecture

Add -g to install globally instead of into the current project, or -y for a non-interactive install.

Install the skills CLI globally

If you want a persistent skills command instead of npx/dlx/bunx:

# npm
npm install -g skills

# pnpm
pnpm add -g skills

# yarn (classic)
yarn global add skills

# bun
bun add -g skills

Then install the skill with:

skills install npm:@lmammino/c4-codebase-architecture-skill --skill c4-codebase-architecture

Manual installation

You can also copy the skill directory directly into your project without using the CLI:

# Agents that use .agents/skills
cp -r skills/c4-codebase-architecture .agents/skills/

# Claude Code
cp -r skills/c4-codebase-architecture .claude/skills/

# GitHub Copilot
cp -r skills/c4-codebase-architecture .github/skills/

Usage

Once installed, ask your agent to document the architecture of your codebase. Example prompts:

  • "Use the c4-codebase-architecture skill to document this repository."
  • "Produce a C4 architecture diagram for this codebase."
  • "Reverse engineer the system architecture from the code and give me a Container view."

Repository layout

c4-codebase-architecture-skill/
├─ skills/
│  └─ c4-codebase-architecture/
│     └─ SKILL.md
├─ package.json
├─ README.md
└─ LICENSE

License

MIT