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

@attafii/clarityaicli

v1.5.0

Published

Improves developer prompts by fixing grammar, spelling, and clarity before sending to Copilot

Readme

ClarityAI — The Smart Prompt Layer for VS Code Copilot

Website VS Code Version License

ClarityAI transforms simple developer intent into professional, context-aware prompts for Copilot — so you get production-ready code the first time.

🌐 Website: https://clarity-ai.app


✨ What is ClarityAI?

ClarityAI acts as an intelligent translation layer between you and GitHub Copilot. Instead of sending vague or incomplete prompts to Copilot, ClarityAI:

  • 🎯 Enhances your prompts with technical precision and best practices
  • 🔍 Analyzes your project context (tech stack, dependencies, file patterns)
  • 🛡️ Protects your privacy by detecting and masking secrets before they leave your machine
  • 🚀 Routes intelligently between fast and deep-thinking AI models based on complexity
  • 👥 Enables team collaboration through shared prompt vaults and approval workflows

Quick Example

Try this in VS Code Chat:

@clarity make a login form with validation

ClarityAI enhances it to include security best practices, accessibility standards, tech stack compatibility, and more — then you can send it directly to Copilot with one click.


🎯 Key Features (v1.5.0)

🎭 Core Features

Expert Personas

  • Use specialized AI personas: @clarity /architect, /security, /reviewer, /tester, /documentation, /performance, /frontend
  • Each persona focuses enhancement on specific technical aspects (scalability, security, testing, etc.)

Smart Routing

  • @clarity - Automatically chooses fast or deep-thinking mode based on prompt complexity
  • @clarity-fast - Quick enhancements for simple requests
  • @clarity-thinking - Advanced reasoning for complex architectural decisions, with automatic fallback retries for transient upstream timeouts

Privacy & Security

  • Secret Shield: Automatically detects and masks API keys, tokens, and PII before sending
  • Vulnerability Scanner: Identifies dangerous patterns in prompts (SQL injection, eval, etc.)
  • Local-First: All privacy checks happen on your machine

Context Intelligence

  • Reads package.json to match framework versions and dependencies
  • Uses .clarityrules file for project-specific constraints
  • Analyzes current file and workspace structure
  • Prevents incompatible suggestions

🏺 Team Collaboration

Prompt Vault

  • Save enhanced prompts for reuse
  • Share standardized prompts across your team
  • Local vault (private) and Team vault (shared in .clarity/vault.json)

Approval Workflows

  • Draft → Submit → Review → Approve/Reject workflow
  • Role-based access: Admin, Reviewer, Contributor
  • Multi-reviewer approvals with comments
  • Version history and change tracking
  • SLA deadline management with alerts

Interactive Onboarding

  • Beautiful 6-step guided setup for new users
  • Introduces modes, templates, privacy, and features
  • Persistent state (shows once, can be reopened with @clarity /onboarding)

☁️ Enterprise Features

Cloud Synchronization

  • Sync vault across multiple devices
  • Support for Azure Blob Storage, AWS S3, and Firebase
  • Automatic conflict resolution with backup creation
  • Offline-first with intelligent queueing
  • Status bar integration

Analytics Dashboard

  • Real-time metrics: vault items, approvals, team activity
  • Team leaderboard and most-used prompts
  • 7-day trends and growth predictions
  • Export to CSV/JSON for reporting
  • Dark mode support, fully responsive

Advanced Workflows

  • Multi-reviewer approval system
  • Comment threads on prompts
  • Request changes workflow for iteration
  • Side-by-side version comparison
  • Full audit trail with timestamps

💡 Smart Features

Prompt Suggestions

  • Context-aware AI recommendations
  • 8 categories: Testing, Docs, Refactoring, Optimization, Architecture, Security, Debugging, Features
  • Confidence scoring (0-100)
  • Integrated with current file and language detection

Template Library

  • 50+ pre-built professional templates
  • Categories: API, UI, DevOps, Database, Testing, Agent Workflows
  • Searchable and customizable
  • Fill with parameters: @clarity t:rest-api resource=users method=POST
  • Build agent workflow skills: @clarity /skills or @clarity t:skills-md

Quality Analysis

  • Real-time quality score (1-10) for your prompts
  • Educational insights showing key improvements
  • Side-by-side before/after comparison
  • Learn better prompting practices

📖 Getting Started

Installation

  1. From VS Code

    • Open VS Code
    • Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X)
    • Search for "ClarityAI"
    • Click Install
  2. From Marketplace

  3. Manual Installation

    • Download the .vsix file from releases
    • In VS Code: Extensions → ··· menu → Install from VSIX

First Use

  1. Open VS Code Chat (Ctrl+Shift+I / Cmd+Shift+I)
  2. Type @clarity to activate ClarityAI
  3. Follow the onboarding - A beautiful 6-step guide will introduce you to all features
  4. Start enhancing - Try: @clarity create a user authentication system

Basic Usage

# Basic enhancement
@clarity add error handling to this function

# Use expert personas
@clarity /security review this authentication code
@clarity /architect design a scalable notification system
@clarity /tester write comprehensive tests for this module

# Use templates
@clarity t:rest-api resource=products method=POST
@clarity /skills                        # Build a reusable skills.md workflow starter
@clarity templates                    # List all templates

# Work with vault
@clarity /vault                       # View saved prompts

⚙️ Configuration

Open Settings (Ctrl+,) and search for "Clarity":

General Settings

  • Context Injection - Auto-inject project metadata (framework, dependencies, current file)
  • Show Diff View - Display side-by-side comparison with quality score
  • Enable Mermaid - Auto-generate architectural diagrams for complex requests
  • Educational Insights - Show "Why This Matters" explanations
  • Default Persona - Set a default expert mode (architect, security, etc.)

Privacy & Analytics

  • Enable Analytics - Opt-in anonymous usage tracking (default: disabled)
  • No PII Collection - Zero personally-identifiable information collected
  • GDPR Compliant - Full transparency and user data rights

Cloud Sync

  • Enable Cloud Sync - Sync vault across devices
  • Provider - Choose Azure, AWS, or Firebase
  • Sync Interval - How often to sync (default: 5 minutes)

Dashboard

  • Auto Refresh - Update dashboard every 30 seconds (default: enabled)
  • Metrics Display - Choose which metrics to show

Workflows

  • Required Approvals - Number of reviewers needed (default: 1)

Available Commands

Press Ctrl+Shift+P (or Cmd+Shift+P) and type:

| Command | Description | |---------|-------------| | ClarityAI: Setup Cloud Sync | Configure cloud provider for vault sync | | ClarityAI: Open Analytics Dashboard | View real-time metrics and team activity | | ClarityAI: Show Cloud Sync Status | Check synchronization status | | ClarityAI: Submit to Approval Workflow | Submit prompt for multi-reviewer approval | | Clarity: Open Prompt Vault | Browse and manage saved prompts | | Clarity: Show Skills.md Builder | Open the agent workflow skills.md starter | | Clarity: Show Command Guide | Quick reference of all commands |


🛡️ Privacy & Security

Privacy-First Design

  • All privacy checks happen locally on your machine
  • Source code never leaves your device
  • No code or prompts stored remotely

Secret Detection & Masking

  • Automatically detects: AWS keys, GitHub tokens, Stripe keys, JWT tokens, API keys, SSH keys, database URIs, and more
  • Masks PII (email addresses, phone numbers) before any outbound request
  • All masking happens on-device

Analytics Transparency

  • Analytics are opt-in by default (disabled until you enable)
  • Only anonymous usage data collected (no PII, no code, no prompts)
  • GDPR compliant with full user data rights
  • Can be disabled anytime in Settings

Cloud Security

  • Credentials stored securely using VS Code Secrets API
  • Encrypted transmission for cloud sync
  • Role-based access control for team features
  • Full audit trail for compliance

OWASP Compliance

  • Input validation on all user inputs
  • XSS prevention verified
  • No hardcoded credentials
  • Follows security best practices

📊 What's New in v1.5.0

Reliability Update ✨

Thinking Mode Resilience

  • @clarity-thinking now retries transient upstream 524/timeout failures with the fallback model.
  • This reduces raw enhancement failures when the primary reasoning model is slow.

Docs Refresh

  • README, FEATURES.md, help banner, and changelog updated for the 1.5.0 release.

See CHANGELOG.md for complete release notes.


🤝 Contributing

We welcome contributions! Here's how to get started:

Development Setup

# Clone the repository
git clone https://github.com/Attafii/ClarityAI-Extension.git
cd ClarityAI-Extension

# Install dependencies
npm install

# Open in VS Code
code .

# Run in development mode
# Press F5 to launch the Extension Development Host

Building & Testing

# Compile TypeScript
npm run compile

# Watch mode (auto-compile on changes)
npm run watch

# Run tests
npm test

# Build for marketplace
npm run vscode:prepublish
npm run package

Contributing Guidelines

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Test thoroughly
  5. Commit with clear messages (git commit -m 'Add amazing feature')
  6. Push to your fork (git push origin feature/amazing-feature)
  7. Open a Pull Request

What We're Looking For

  • 🐛 Bug fixes
  • ✨ New template contributions
  • 📝 Documentation improvements
  • 🧪 Test coverage expansion
  • 🌐 Internationalization (i18n)
  • 🎨 UI/UX enhancements

📚 Documentation


🔗 Links


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙏 Acknowledgments

Built with ❤️ by developers, for developers.

Special thanks to:

  • The VS Code team for the excellent Extension API
  • GitHub Copilot for inspiring better AI collaboration
  • The open-source community for feedback and contributions

📈 Project Stats

  • 10,500+ lines of production code
  • 70%+ test coverage
  • 50+ professional templates
  • 8 expert personas
  • 15 modules
  • 0 security vulnerabilities
  • < 200ms startup time
  • < 100MB memory usage

Ready to write better prompts? Install ClarityAI today and transform how you interact with GitHub Copilot! 🚀