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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ai-cognitive-framework

v1.0.6

Published

A system for transforming AI interactions from assumption-based guesswork to systematic, evidence-driven excellence.

Readme

🧠 AI Cognitive Framework

A system for transforming AI interactions from assumption-based guesswork to systematic, evidence-driven excellence.

NPM version

This package provides a command-line tool to initialize your projects with a powerful cognitive framework, designed to enhance problem-solving, reduce errors, and foster a culture of quality and systematic thinking when working with AI.


What is This?

The AI Cognitive Framework is a set of principles and methodologies codified in Markdown files. It's designed to be loaded into an AI's context window (like Gemini, Claude, or others) to provide it with a structured, systematic approach to any task. It's the difference between an AI that makes random attempts and an AI that functions like a senior engineer.

Core benefits:

  • 85%+ first-attempt success rate on complex tasks.
  • Root cause resolution instead of symptomatic fixes.
  • Systematic, evidence-based decisions instead of unreliable assumptions.

Quick Start

Get started in seconds. All you need is Node.js.

  1. Navigate to your project's root directory.

  2. Run the initialization command:

    npx ai-cognitive-framework init

That's it! A new ai-cognitive-framework/ directory will be created in your project, containing the full framework. You can now point your AI to these files.

What the init command does:

  • Creates a visible ai-cognitive-framework/ directory in your current folder.
  • Copies the complete, versioned set of framework Markdown files into it.
  • Does not modify your .gitignore. We believe these framework files are a core part of your project's intellectual assets and should be committed to version control.

Installation

For most users, the npx command is all you need. However, to use the aicf command directly, you can install the package as a development dependency:

npm install --save-dev ai-cognitive-framework

This is the recommended approach for most teams.

How to Use the Framework

  1. Initialize: Run npx aicf init in your project.

  2. Commit: Add the newly created ai-cognitive-framework/ directory to Git.

  3. Install AI CLIs (Prerequisite): To interact with AI models from your terminal, you'll need their respective command-line interfaces. If you don't have them, install them globally:

    npm install -g @anthropic-ai/claude-cli @google/gemini-cli

    (Note: Ensure you have Node.js and npm installed. You may need to configure API keys for these CLIs separately.)

  4. Loading the Framework into Your AI: Once the framework files are in your project, you can instruct your AI to load and apply them.

    For AI models that are capable of reading local files (e.g., through tool-use, integrated environments, or specific CLI capabilities), you can instruct them directly in natural language within your chat session.

    General Recommendation: Claude CLI Start an interactive Claude session, then paste the following instruction:

    claude

    Paste this into the Claude session:

    "Please read and internalize the instructions in the file `ai-cognitive-framework/CLAUDE.md`."

    (This is the recommended method for Claude CLI users as it leverages the framework's auto-loading mechanism. The CLAUDE.md file will instruct the AI to then load the core framework content.)

    For Complex Problems: Gemini CLI Start an interactive Gemini session, then paste the following instruction:

    gemini

    Paste this into the Gemini session:

    "Please read and internalize the instructions in the file `ai-cognitive-framework/GEMINI.md`."

    (This is the recommended method for Gemini CLI users as it leverages the framework's auto-loading mechanism. The GEMINI.md file will instruct the AI to then load the core framework content.)

    For Cursor CLI Users: Start an interactive Cursor session, then paste the following instruction:

    cursor

    Paste this into the Cursor session:

    "Please read and internalize the content of the file `ai-cognitive-framework/.cursorrules`."

    For General AI Models (Core Rules): Start an interactive session with your AI CLI, then paste the following instruction:

    [AI_CLI_COMMAND]

    Paste this into the AI session:

    "Please read and internalize the content of the file `ai-cognitive-framework/CORE-RULES.md`."
  5. Experience the Difference: Observe the significant improvement in the quality, structure, and effectiveness of the AI's responses.