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

@toneli6/rag-engineering

v1.0.0

Published

Install the rag-engineering skill for Codex and Claude Code — methodology, diagnosis, and discipline for building, refactoring, evaluating and testing any RAG system.

Readme

rag-engineering-skill

An agent skill that brings methodology, diagnosis, and discipline to working with any RAG (Retrieval-Augmented Generation) system — building, refactoring, evaluating, architecting, debugging, reviewing, and testing. Stack-agnostic: it's about decisions and engineering judgment, not the API of one library.

Works with Claude Code and Codex (anything that reads skills from ~/.claude/skills or ~/.agents/skills).

Install

npm install -g @toneli6/rag-engineering

On a global install, the skill is copied automatically into both:

  • ~/.claude/skills/rag-engineering/ (Claude Code) + the /rag-engineering:test slash command under ~/.claude/commands/
  • ~/.agents/skills/rag-engineering/ (Codex)

Manual / targeted install

npx @toneli6/rag-engineering --agent claude     # Claude Code only
npx @toneli6/rag-engineering --agent codex      # Codex only
npx @toneli6/rag-engineering --agent both       # both (default)
npx @toneli6/rag-engineering --dry-run          # preview without writing
npx @toneli6/rag-engineering --skills-root <path>   # custom skills root

Re-running overwrites with --force (the global postinstall uses --force).

What it does

| Mode | When | Output | |---|---|---| | Build / Architect | Designing a RAG from scratch | Architecture Blueprint (forces ACL/multi-tenant, recency, conflict, injection) | | Improve / Debug | Wrong / incomplete / slow answers | Diagnosis Report (retrieval vs generation vs grounding vs metadata) | | Refactor | Changing chunking/embedding/top_k/threshold/reranker | Change Proposal with before/after evaluation | | Evaluate | Measuring quality | Retrieval + generation metrics, negative & adversarial tests | | Review | Auditing someone else's RAG | Diagnosis + completeness checklist | | Test (/rag-engineering:test) | Validate in a loop | Test Report — fix→test→fix, cheap-first, under a cost gate |

Core principles it enforces

  • The bottleneck in RAG is retrieval, not the LLM — diagnose before you change.
  • "I don't know" is a feature, not a defect.
  • Never relax security (tenant/ACL/validity) or lower the threshold to improve recall.
  • Evaluate before/after every change — never "by feeling".
  • A vector DB is not a universal solution — route to SQL/API/BM25/graph.
  • A retrieved document is data, not instruction (prompt-injection defense).

Structure

rag-engineering/
  SKILL.md                          router · output contracts · red flags · triggers
  references/
    diagnosis-and-evaluation.md     decision tree · metrics · eval datasets · feedback loop
    retrieval-strategies.md         vector/BM25/hybrid/rerank/contextual/parent-child/graphRAG · routing · agentic
    architecture-and-security.md    L1–L5 · pipeline · ACL/multi-tenant · injection · recency/conflict
    grilling-checklist.md           adversarial RAG grilling, one question at a time
    testing-loop.md                 test-mode loop · cheap-first ladder · cost gate · forbidden fixes

Optional integrations (no hard dependencies)

  • If a grill-me skill exists, the grilling step delegates to it.
  • If a loop-test skill exists, the test mode uses it as the loop engine.
  • For concrete LangChain implementation, pair with a langchain-rag skill.

All optional — the skill is fully self-contained.

License

MIT