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

@memoryai.dev/coding-guard

v2.0.2

Published

Universal coding-agent guardrails: 4 core principles + anti-sloppy enforcement, installs into 11 IDE/CLI in one command. Family of @memoryai.dev/*-guard.

Readme

MemoryAI Coding-Guard

Universal coding-agent guardrails. Install once → 11 IDE/CLI follow the rules.

npm license

Stop AI agents from being sloppy. 4 core coding principles + anti-sloppy enforcement — packaged as drop-in rule files for every major coding agent in 2026.

What it does

AI coding agents share the same bad habits: they refactor code you didn't ask them to, over-engineer simple tasks, fake "done" without running tests, and hallucinate APIs that don't exist. Coding-Guard installs typed behavioral rules into your project, plus enforcement hooks that block sloppy actions instead of just suggesting they're bad.

npx @memoryai.dev/coding-guard install

That single command:

  • Detects which agent(s) your project uses (Cursor, Claude Code, Aider, Copilot, ...)
  • Drops the right rule file into the right path with the right format
  • Optionally wires up enforcement hooks (block --no-verify, force test before commit, etc.)

The 4 principles

Distilled from years of senior-engineer practice on LLM coding workflows.

| Principle | What it stops | |---|---| | Think Before Coding | Silent assumptions, missing tradeoffs | | Simplicity First | Over-engineering, speculative abstractions | | Surgical Changes | Drive-by refactors, scope creep | | Goal-Driven Execution | "Done" without verification |

Plus 5 anti-sloppy mechanisms: anti-hallucinate, anti-fake-verify, anti-out-of-scope, anti-loop, anti-destructive.

Every rule ships with rationalization tables (the lies an agent tells itself, paired with the truth) and red flags (observable anti-patterns), wired to runtime hooks that quote the truth back when the lies surface.

Skills, personas, and slash commands (v2.0)

Coding-Guard v2 ships an opinionated workflow layer on top of the rules:

  • 7 skillsspec-driven-development, planning-and-task-breakdown, test-driven-development, doubt-driven-development, code-review-and-quality, security-and-hardening, debugging-and-error-recovery. Each is a process with steps, rationalization table, red flags, and verification.
  • 4 personascode-reviewer, security-auditor, test-engineer, web-performance-auditor.
  • 8 slash commands/cg:spec /cg:plan /cg:build /cg:review /cg:audit /cg:debug /cg:doubt /cg:ship (namespaced under cg: to avoid collision).
  • 4 reference checklists — security, performance, accessibility, testing patterns (under references/).

Skill / persona / command content is adapted from addyosmani/agent-skills (MIT) and restructured into TOML so the build pipeline can fan it out across 11 IDE/CLI. See NOTICE for attribution. Coding-Guard adds the enforcement layer (predicates + hooks + signed constitution); the upstream playbook supplies the workflow content.

Supported platforms (11)

| Platform | File installed | |---|---| | Claude Code | CLAUDE.md + plugin/hooks | | Cursor | .cursor/rules/*.mdc | | Windsurf | .windsurfrules | | Cline | .clinerules/ | | Roo Code | .roo/rules/ (per-mode) | | Kilo Code | .kilocode/rules/ | | GitHub Copilot | .github/copilot-instructions.md + chatmodes | | JetBrains Junie | .junie/guidelines.md | | Aider | CONVENTIONS.md + .aider.conf.yml | | OpenAI Codex | AGENTS.md + ~/.codex/config.toml | | Gemini CLI | GEMINI.md + ~/.gemini/settings.json |

AGENTS.md is shared across OpenCode, Continue, Crush, and any RFC-9999-compatible agent.

Install

npm (recommended)

npm i -g @memoryai.dev/coding-guard
coding-guard install

Or run directly without installing:

npx @memoryai.dev/coding-guard install

curl (Linux / macOS)

curl -fsSL https://memoryai.dev/install.sh | bash

PowerShell (Windows)

iwr https://memoryai.dev/install.ps1 | iex

Commands

coding-guard install            # detect IDE + install
coding-guard install --all      # install for every platform
coding-guard install --only cursor
coding-guard install --dry-run  # preview without writing

coding-guard list               # list supported platforms
coding-guard sync               # rebuild platform files from source
coding-guard update             # update to latest rule version
coding-guard doctor             # check installation health
coding-guard validate           # validate skills/personas/commands TOML
coding-guard verify             # verify Ed25519 signature of rules

Architecture

rules/
  constitution.toml        ← source-of-truth (typed, signed)
  schema.json              ← JSON Schema for validation
  predicates/*.ts          ← executable assertion functions
  metrics.json             ← per-rule measurable metrics
  lineage.jsonl            ← append-only history (audit chain)
  skills/*.toml            ← 7 workflow skills
  personas/*.toml          ← 4 reusable personas
  commands/*.toml          ← 8 slash commands

platforms/                 ← built outputs per platform (12 dirs)
runtimes/hooks/            ← enforcement hooks (block-dangerous, post-edit-verify,
                              stop-gate, inject-rules, quote-rationalization,
                              detect-red-flags)
references/                ← security / performance / accessibility / testing
telemetry/                 ← optional opt-in violation logging
scripts/sync-upstream.js   ← upstream diff report for vendored skills

The constitution is signed Ed25519 from day one. Future-proof for cross-vendor rule registries (RFC-9999 AGENTS.md, Sigstore Rekor).

Family

@memoryai.dev/coding-guard is part of the MemoryAI Guards family:

License

MIT


Built by MemoryAI. For developers who want their AI agents to think before they type.