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

ai-personas

v1.0.3

Published

Inject domain-specific expertise into your favorite AI coding assistants. Run: npx ai-personas install. Workflow-embedded context systems with checklists, anti-patterns, and file-scoped rules.

Readme

AI-Personas

NPM version Build Status License Node Version

Inject domain-specific expertise into your favorite AI coding assistants.


Quick Start 🚀

No global installation required. Just use npx directly in any repository to start injecting expertise:

# Install specific personas
npx ai-personas install developer security

# See what's available
npx ai-personas list

Overview

AI-Personas is a zero-overhead, workflow-embedded context system designed to bridge the "Senior Context Gap" in generic AI models. It ships with deeply-structured persona packages—including checklists, anti-patterns, and decision trees—so your AI assistant thinks like a specialized expert, not just a general-purpose autocomplete.

Whether you use GitHub Copilot, Claude Code, Windsurf, or Cursor, AI-Personas surgical-injects the metadata needed for your AI to adhere to top-tier engineering standards natively.


Why?

Generic AI coding assistants (Copilot, Cursor, Windsurf, Claude Code) lack domain-specific context. They write code that "works" but misses:

  • Code review criteria specific to your team's standards
  • Security checklists like OWASP Top 10 validation
  • Compliance requirements like HIPAA or PCI-DSS
  • Performance budgets for real-time or financial systems
  • Anti-patterns that experienced engineers catch immediately

AI-Personas solves this by installing deeply-structured persona files that your AI reads natively — no orchestrator, no custom commands, no overhead.


How it Works

AI-Personas uses a surgical injection system that understands the specific rule formats of leading AI tools.

graph TD
    subgraph Registry
        R[Persona Registry] -->|Templates| CM[Composition Engine]
    end

    subgraph Logic
        CM -->|Unified Markdown| IJ[Multi-Target Injector]
    end

    subgraph Targets
        IJ --> CP[GitHub Copilot]
        IJ --> CC[Claude Code / Windsurf]
        IJ --> CR[Cursor .mdc]
        IJ --> UN[Universal AI_PERSONA.md]
    end

    style R fill:#1e1e1e,stroke:#00d8ff,stroke-width:2px,color:#fff
    style CM fill:#1e1e1e,stroke:#00d8ff,stroke-width:2px,color:#fff
    style IJ fill:#1e1e1e,stroke:#00d8ff,stroke-width:2px,color:#fff

Available Personas 🎭

Core Roles 🧩

| Role | Badge | Logic Focus | Key Expert Guidance | |:---|:---:|:---|:---| | developer | 💻 | Clean Code | SOLID principles, DRY, performant ESM, unit testing | | architect | 🏛️ | Scalability | System design, ADRs, trade-off analysis, patterns | | qa | 🧪 | Reliability | Test strategies, edge cases, validation, reliability | | designer | 🎨 | UX/UI | Accessibility (WCAG), responsive design, component APIs | | devops | 🚀 | CI/CD | Infrastructure-as-code, monitoring, incident response | | security | 🔒 | Protection | OWASP Top 10, auth, input validation, auditing |

Domain Verticals 🏢

| Industry | Persona | Logic Focus | Key Expert Guidance | |:---|:---|:---|:---| | Finance | fintech | Accuracy | Precision arithmetic, audit trails, PCI-DSS, AML/KYC | | Health | healthtech | Privacy | HIPAA compliance, PHI protection, consent management | | Gaming | gamedev | Loops | ECS patterns, frame budgets, asset pipelines |


What Gets Installed 📦

Each persona is more than a simple markdown file. It's a structured context package containing:

| Section | Purpose | |---------|---------| | Persona | Identity, core principles, decision framework, code review lens | | Workflows | Decision trees, process flows, templates (e.g., ADR template, bug fix protocol) | | Checklists | Quality gates for pre-commit, pre-PR, pre-deploy | | Anti-Patterns | Common mistakes this persona specifically catches |

Where Files Go

| Tool | Target Path | Rule Format | |:---|:---|:---| | GitHub Copilot | .github/copilot-instructions.md | Single file (Multi-Persona Merging) | | Claude Code | .claude/rules/persona-*.md | Multi-file (Native paths: scoping) | | Windsurf | .windsurf/rules/persona-*.md | Multi-file deployment | | Cursor | .cursor/rules/persona-*.mdc | High-performance .mdc format | | Antigravity | .agents/rules/persona-*.md | Agent-native rule configuration | | Universal | AI_PERSONA.md | Fallback for any AI tool |


Multi-Persona Stacking & Intelligence 🧠

Install multiple personas and they're simultaneously active — your AI thinks from all perspectives at once:

$ npx ai-personas install developer security fintech

+   ✓ Loaded 3 personas: developer, security, fintech
  
!   ℹ Composition Note:
!     developer and security share focus areas (code-quality). 
!     Both perspectives will be active for comprehensive coverage.

  Injecting into GitHub Copilot...
+     ✓ .github/copilot-instructions.md (appended)

  Injecting into Claude Code...
+     ✓ persona-developer.md (created)
+     ✓ persona-security.md (created)
+     ✓ persona-fintech.md (created)
+     ✓ _persona-manifest.md (created)

+   ✓ Done! 3 personas → 14 files injected.
  Your AI assistant now thinks as Developer + Security + Fintech.

This stack makes the AI:

  • Write clean, well-tested code (developer)
  • Check for OWASP vulnerabilities (security)
  • Use integer arithmetic for money and enforce audit trails (fintech)

Claude Code File Scoping 📂

For Claude Code, AI-Personas uses native paths: frontmatter to activate personas only for relevant files:

---
paths:
  - "**/*.ts"
  - "**/*.tsx"
  - "**/*.js"
---
# Developer Persona
[...]

This ensures the developer persona activates when editing code files, but remains quiet when you are just modifying markdown documentation or generic config files.


Idempotent & Surgical 🔪

  • Idempotent installs — Running install twice doesn't create duplicate content blocks.
  • Surgical removal — Running remove developer scrubs only the developer persona markers across all configured targets without disrupting customized modifications you made independently.
  • Marker-based Tracking — Uses clean HTML comments (<!-- AI-PERSONAS:name:START -->) natively hidden in Markdown previews.

Commands Reference 💻

| Command | Args | Description | |:---|:---|:---| | install | [personas...] | Install one or more experts into the current project | | list | | List all available personas with detailed tags | | info | <persona> | Preview a persona's full guide in the terminal | | status | | Show active personas and detected target paths | | remove | [personas...] | Surgical remove personas from all configured paths |


Requirements

  • Node.js 22.0.0+
  • npm 7.0.0+

Community & Support