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

@openscientist/extract-knowhow

v0.16.0

Published

Extract your research trajectory as a decision tree from conversation history for OpenScientist. Supports both Claude Code and Codex.

Readme

@openscientist/extract-knowhow

Automatically extract research skills from Claude Code / Codex conversation history and submit them to OpenScientist.

What It Does

When you use Claude Code or Codex for scientific research — data analysis, paper writing, experiment design, theoretical derivation — your conversations contain valuable tacit knowledge: judgment calls, abandoned approaches, tool choices, and reasoning patterns.

/extract-knowhow extracts three types of cognitive memory from your research sessions:

  • Procedural memory: IF-THEN rules for navigating research impasses (e.g., "IF gradient explodes THEN check learning rate before architecture")
  • Semantic memory: Domain facts that LLMs don't reliably know (e.g., calibration constants, undocumented tool behaviors)
  • Episodic memory: Concrete research episodes capturing what was tried, what failed, and what was learned

Install

npm install -g @openscientist/extract-knowhow

This installs the command automatically to both platforms:

  • Claude Code~/.claude/commands/extract-knowhow.md
  • Codex~/.codex/skills/extract-knowhow/SKILL.md

Usage

Claude Code:

/extract-knowhow

Codex (start with codex -a never -s danger-full-access):

$extract-knowhow

💡 For best results: use the most powerful model with the highest reasoning effort — Claude Code: Opus 4.6 + max effort. Codex: GPT-5.4 + x-high. Don't worry about token usage — conversations are heavily compressed before analysis, and per-session extraction is delegated to lighter models behind the scenes. Your chosen model mainly orchestrates the pipeline.

The command runs a 7-stage pipeline:

  1. Scan — discover all Claude Code and Codex sessions
  2. Classify — identify research vs. engineering projects (Sonnet)
  3. Confirm — you choose which projects to scan (multi-select)
  4. Extract — extract research skills per session (Sonnet), organized by cognitive memory type
  5. Clean — review extracted skills with Opus: reject engineering content, fix PII, merge duplicates
  6. Score — assess each skill's value on 3 dimensions with Opus (procedural / semantic / episodic, 0-5)
  7. Finalize — upload cleaned, scored skills to researchskills.ai
  8. Summary — report results with review statistics

Output

Each skill is a markdown file with YAML frontmatter, including three review scores:

---
name: gradient-explosion-diagnosis
memory_type: procedural
subtype: operator-fail
llm_score: 4
review_scores:
  procedural: 4   # decision frameworks AI doesn't know
  semantic: 2      # facts/beliefs AI doesn't have
  episodic: 3      # concrete research experiences
tags: [gradient-descent, debugging, neural-networks]
domain: computer-science
subdomain: machine-learning
contributor: anon-7f3b42c9
---

## When
Using Adam or SGD with deep networks; loss spikes unpredictably.

## Decision
Check learning rate first (most common cause), not architecture.

## Local Verifiers
- nan_count in gradients > threshold
- loss jump > 10x in single step

## Failure Handling
If gradient norm clipping doesn't fix: check batch normalization placement

Contributing Back

After extraction, an interactive review page opens at researchskills.ai/review/batch/<id> where you can:

  • Review and edit skill content
  • See the 3-dimension review scores
  • Assign domain/subdomain taxonomy
  • Submit to OpenScientist

Uninstall

npm uninstall -g @openscientist/extract-knowhow

Privacy

  • All analysis happens locally via your Claude Code / Codex session
  • Session data is read from ~/.claude/projects/ and ~/.codex/ on your machine
  • You choose which projects to scan — the tool pauses after classification for your selection
  • Unselected projects are skipped for extraction (classification reads only brief message samples)
  • AI auto-strips personal information; you review before submitting
  • Nothing is uploaded without your explicit consent

License

CC BY 4.0

Part of OpenScientist

Building the Library of Alexandria for AGI — Accelerating Automated Scientific Discovery.