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-engineering-cookbook

v0.1.1

Published

AI Engineering Cookbook — installable skills and hooks for Claude Code.

Readme

AI Engineering Cookbook

Practical patterns, structures, and guidelines for building software autonomously with AI agents.

This cookbook provides an opinionated engineering workflow that combines Spec-Kit for planning ("what to build") and Superpowers for execution ("how to build it"), augmented with curated community extensions and an AI governance layer.


🤔 New Here? What Is AI-Native Engineering?

AI-Native Engineering is a development approach where AI agents write the majority of the code — but humans stay firmly in control by defining clear intent upfront and verifying outcomes rigorously.

Think of it this way: instead of writing code yourself, you write a precise specification of what the code should do. An AI agent then implements it, test by test, under strict constraints you set. Your role shifts from code author to intent definer and outcomes verifier.

This cookbook gives you the workflow, tools, and guardrails to do that safely and repeatably.

New to this? Follow the Learning Path below before diving into the guides. Don't know a term? Check the Glossary.


🎨 Interactive Cookbook Explorer

The AI Engineering Cookbook is accompanied by a modern, interactive web application that provides a comprehensive visual walkthrough of the entire agentic SDLC workflow, agent profiles, verification gates, and community extensions.

👉 Explore the Interactive Cookbook Explorer (hosted on GitHub Pages, or view the local code and guides)

Cookbook Explorer Preview


🗺️ Visual SDLC Workflow

The diagram below shows how the workflow is split: Spec-Kit manages specification and planning, while Superpowers drives isolated test-driven implementation.

graph TD
    subgraph Spec-Kit Phase: What to Build
        A["1. Constitution (Rules)"] --> B["2. Specify (Idea)"]
        B --> C["3. Clarify (Q&A)"]
        C --> D["4. Plan (Architecture)"]
        D --> E["5. Tasks (Checklist)"]
    end

    E -->|tasks.md Handoff| F

    subgraph Superpowers Phase: How to Build
        F["6. Worktree Creation"] --> G["7. TDD Loop (RED/GREEN/REF)"]
        G --> H["8. Spec & Code Review"]
        H --> I["9. Final Verifications"]
        I --> J["10. Branch Finish / Merge"]
    end

🧰 Installable Skills

This repo ships portable Agent Skills (SKILL.md) you can drop into any compatible agentic tool — Claude Code, Cursor, Roo Code, VS Code Copilot, OpenAI Codex, Google Antigravity. The same skill file works everywhere; only the install folder differs.

Install any skill directly inside your target repository using npx:

# Install Doc Coherence
npx ai-engineering-cookbook doc-coherence

# Install Prompt Optimizer
npx ai-engineering-cookbook prompt-optimizer

(You can also run npx ai-engineering-cookbook without arguments for an interactive selection menu.)

| Skill | What it does | Run inside your repo | | :--- | :--- | :--- | | 🎯 Prompt Optimizer | Turns vague requests into production-grade prompts — framework selection, model calibration, red-team, scorecard. Optional Claude Code session-start gate. | npx ai-engineering-cookbook prompt-optimizer | | 🔗 Doc Coherence | Single-source-of-truth registry + deterministic CI gate that fails the build when one doc restates a fact owned by another. | npx ai-engineering-cookbook doc-coherence |

🛠️ Troubleshooting & Installation Fallbacks

If the direct npx command fails or you are working in an environment with restricted network access/unresolved binary shims (common with direct GitHub URLs on Windows), choose one of these fallbacks:

Option A: Local DevDependency (Recommended)

Install the package locally to your target project. This ensures npm correctly configures binary shims on all operating systems:

# From npm registry:
npm install --save-dev ai-engineering-cookbook

# OR from GitHub directly:
npm install --save-dev github:cloudbloqavi/ai-engineering-cookbook

# Run the skill installer:
npx ai-engineering-cookbook doc-coherence

Option B: Global Installation

Install the CLI tool globally on your system:

# From npm registry:
npm install -g ai-engineering-cookbook

# OR from GitHub directly:
npm install -g github:cloudbloqavi/ai-engineering-cookbook

# Run the installer commands:
ai-engineering-cookbook doc-coherence
ai-engineering-cookbook prompt-optimizer

(Alternatively, you can run the direct script shortcuts: install-doc-coherence or install-prompt-optimizer.)


📚 Cookbook Documentation Directory

| Guide | Description | Key Focus | | :--- | :--- | :--- | | 🎨 Cookbook Explorer (Local) | Interactive visual companion to explore the cookbook. | Interactive SDLC, agents, verification gates, and extensions | | 🚀 Quickstart Guide | Start here! Launch your first AI-native feature in 5 minutes. | CLI cheatsheet, 3-step setup | | 📦 Installation & Setup | Prerequisites and global configuration steps. | uv, specify-cli, plugins | | 🌱 Greenfield Workflows | Building new features and applications from scratch. | Next.js Expense Tracker example | | 🍂 Brownfield Workflows | Safe development in legacy or existing codebases. | Express.js JWT Auth example | | 🛡️ AI Governance & Observability | The SDLC flywheel, logs, postmortems, and agent roles. | reflections, blameless logs | | 🧩 Community Extensions | 20 curated plugins to enhance security, scope, and testing. | Extension maps, decision guide | | 🎯 Prompt Optimizer Skill | Production prompt engineering skill + optional session-start gate. Install via Installable Skills. | Framework selection, model calibration, scorecard | | 🧭 Context Engineering | The 6 Context-Engine principles mapped honestly to this repo's mechanisms. | Conflict resolution, token optimization, scope boundaries | | 🔗 Doc Coherence Skill | Single-source-of-truth registry + CI gate that flags cross-doc drift. Install via Installable Skills. | Canonical owners, authority order, deterministic gate | | 🔧 Troubleshooting | Common failure scenarios and step-by-step fixes. | Install errors, TDD issues, phantom completions | | 📖 Glossary | Plain-English definitions for every key term. | 30+ terms from AI Agent to Worktree | | 🤝 Contributing | How to improve the cookbook and add new content. | PR checklist, style guide, extension submissions |


🛤️ Learning Path (Start Here)

Not sure where to begin? Follow this sequence:

| Step | You Are... | Go To | | :---: | :--- | :--- | | 1 | Brand new — never used AI agents for coding | Quickstart Guide | | 2 | Setting up your local machine | Installation & Setup | | 3 | Starting a new project from scratch | Greenfield Workflow | | 4 | Adding AI to an existing project | Brownfield Workflow | | 5 | Curious about governance and quality gates | AI Governance & Observability | | 6 | Want more tools and plugins | Community Extensions | | 7 | Want a sharper prompt before starting work | Prompt Optimizer Skill | | 8 | Stuck on something | Troubleshooting Guide | | 9 | Want to contribute | Contributing Guide |


💡 The Five Principles of AI-Native Engineering

In well-structured agentic pipelines, AI agents generate approximately 75% of the implementation code. This changes the human role from code author to intent definer, outcomes verifier, and system governor.

We enforce five core principles to manage this shift safely:

  1. Intent First, Code Second: Code that passes tests but misses design intent is a liability. Clarify intent before generating.
  2. Verify, Don't Just Generate: Value is measured by spec adherence, not lines produced. A smaller, correct implementation is always preferred.
  3. Precision Over Productivity: Architectural consistency protects the codebase. Adhere to project guidelines even if they require extra steps.
  4. Observability is Non-Negotiable: Every coding session must record reflections to feed the continuous learning loop.
  5. Blameless Culture: Production bugs and gate escapes are system failures. We update spec-rules, check-gates, or prompt-skills to prevent them, rather than blaming the developer or agent.

📖 Glossary — canonical terms

To prevent the same concept being called different things across docs, these are the canonical names. Use them exactly; everything else points here.

| Term | Means | Not to be confused with | | :--- | :--- | :--- | | Spec-Kit | The product/methodology for spec-driven development. | — | | specify-cli | The CLI package that installs Spec-Kit (uv tool install specify-cli). | the /speckit.* commands | | .specify/ | The directory Spec-Kit creates for specs, plans, tasks, and constitution. | specify-cli (the tool) | | /speckit.* | The slash commands (/speckit.specify, /speckit.plan, …). | specify-cli (the tool) | | Superpowers | The Claude Code plugin (/plugin install superpowers@…) providing TDD/worktree skills. | this repo's local skills/ | | The Five Principles | The philosophy (why) — authored in this README. | the Five Directives | | The Five Directives | The operational rules (how) — authored in CLAUDE.md §5. | the Five Principles | | skills/ | Canonical source for this repo's installable skills. | .claude/skills/ (generated install output — never hand-edited) |


🤝 Contributing

We welcome contributions! Read our Contributing Guide before submitting a PR — it covers branch naming, style guide, how to add new extensions, and the PR checklist.