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

mugiew-method

v0.1.2

Published

AI Governance & Autonomous Execution Framework.

Readme

Mugiew Method

No implementation before clarity.

Mugiew Method is an AI Governance and Autonomous Execution Framework for AI-assisted software projects. It is built to reduce AI coding chaos by making discovery, requirements, approval gates, task graphs, validation, review, and execution state explicit before autonomous implementation continues.

This repository contains the TypeScript/Node.js CLI implementation.

Why This Exists

AI coding tools are fast, but they often fail in predictable ways:

  • implementation starts before requirements are clear
  • architecture decisions drift across long sessions
  • future agents lose context
  • edge cases and safety gates are skipped
  • generated code becomes hard for humans and future AI agents to maintain

Mugiew Method treats software work as a governance and specification problem first, then an implementation problem.

Core principle:

Clarity before implementation.
Specification before execution.
Understanding before generation.

What It Does

Mugiew Method installs project-local governance files and provides CLI commands for:

  • creating/resuming discovery state
  • generating and approving PRD/specification artifacts
  • enforcing YOLO-RUN readiness gates
  • validating approval integrity
  • managing task dependency graphs
  • detecting dependency cycles
  • running bounded validation commands
  • scanning project files for governance violations
  • writing durable review and runtime journal entries
  • reporting machine-readable project status

Current Implementation Status

Implemented:

  • project install flow
  • _mugiew-method/ project artifact structure
  • root AGENTS.md generation
  • discovery bootstrap artifacts
  • ambiguity/confidence state contracts
  • PRD/spec/rules artifact generation
  • approval gate with SHA-256 artifact integrity
  • project status reporting
  • review-project scanning with path safety
  • task graph and cycle detection
  • YOLO-RUN gate denial
  • runtime task selection primitives
  • bounded validation runner
  • self-review primitives
  • npm release packaging smoke test

Not yet implemented:

  • full adaptive conversational discovery runtime
  • full end-to-end YOLO-RUN implementation loop
  • validation command allowlist policy
  • complete public slash-command adapter layer

Important: create-prd currently bootstraps discovery artifacts and state. It does not yet run full natural-language adaptive interrogation.

Project Structure

packages/
  cli/                 oclif command adapter
  core/                shared contracts, errors, paths, safe writes
  discovery-engine/    discovery bootstrap, ambiguity, confidence
  governance-engine/   install, PRD/spec generation, approval, status, review
  execution-engine/    task graph, YOLO-RUN gates, validation, runtime review

docs/                  generated project documentation
_bmad/                 BMad workflow configuration
_bmad-output/          planning, stories, retrospectives, project context
bin/run.js             published root package entrypoint
scripts/pack-smoke.mjs package release smoke test

packages/cli must stay thin. Business logic belongs in engine packages.

Requirements

  • Node.js >=24.0.0
  • pnpm 10.33.2

Install From npm

After publication:

npx mugiew-method install

Local development command:

node packages/cli/bin/run.js install

Basic Workflow

1. Install Mugiew Method In A Project

mugiew-method install

Creates project governance files:

AGENTS.md
_mugiew-method/
  discovery/
  prd/
  tasks/
  journal/
  state/
  rules/

If installation already exists, the command reports detected files and does not overwrite them silently.

2. Start Discovery / PRD Bootstrap

mugiew-method create-prd

Creates or resumes:

_mugiew-method/discovery/answers.md
_mugiew-method/discovery/ambiguities.md
_mugiew-method/discovery/assumptions.md
_mugiew-method/discovery/confidence-report.md
_mugiew-method/state/ambiguity-report.json

Current phase output:

Discovery Phase: bootstrap-primitives
Adaptive Interrogation: pending

3. Approve PRD

mugiew-method approve-prd

Approval succeeds only when readiness gates pass. The approval record stores content hashes for:

  • PRD.md
  • confidence-report.md
  • ambiguity-report.json

If any approved artifact changes later, YOLO-RUN is denied until re-approval.

4. Check Project Status

Human-readable:

mugiew-method project-status

Machine-readable:

mugiew-method project-status --json

Status reports approval state, confidence, ambiguity blockers, dependency graph blockers, runtime stop state, drift, and corrupt/missing state files.

5. Review Project

Review explicit files:

mugiew-method review-project --path src/example.ts --path README.md

Review changed git files:

mugiew-method review-project --changed

The review scanner:

  • keeps reads inside project root
  • rejects symlink escapes
  • skips binary files
  • deduplicates inputs
  • reports scanned/skipped counts
  • writes review results into _mugiew-method/journal/

6. Start YOLO-RUN Gate

mugiew-method yolo-run

YOLO-RUN is allowed only when gates pass:

  • PRD approved
  • approval record valid and fresh
  • no blocking ambiguities
  • confidence threshold satisfied
  • task graph has no blocking cycles

If denied, the command exits with gate failure details and writes a journal entry.

Development

Install dependencies:

pnpm install

Run checks:

pnpm typecheck
pnpm test
pnpm build
pnpm check

Run local CLI:

node packages/cli/bin/run.js
node packages/cli/bin/run.js install
node packages/cli/bin/run.js create-prd
node packages/cli/bin/run.js project-status --json

Package Smoke Test

pnpm pack:smoke

The smoke test:

  1. builds workspace packages
  2. prepares self-contained root package vendor files
  3. packs only the root mugiew-method tarball
  4. installs the root tarball in a temporary project
  5. runs mugiew-method install
  6. verifies AGENTS.md and _mugiew-method/ were created

Publishing

Publish only the root package:

pnpm publish --access public --no-git-checks

Before publishing:

pnpm pack:smoke
pnpm check
pnpm build

Package Strategy

  • mugiew-method is the only public package users need.
  • Internal workspace packages stay in this repository for architecture boundaries.
  • prepack builds the workspace and vendors internal package dist output into the root tarball.
  • The published root package has no public dependency on @mugiew-method/* packages.
  • User command stays simple: npx mugiew-method install.

Documentation

Useful docs:

License

MIT