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

plsr-taskmaster

v1.0.1

Published

AIとのタスク対話を行うためのライブラリです。

Readme

Pulsar Task Master (plsr-taskmaster)

AIとのタスク対話を行うためのライブラリです。

Install

グローバルインストール(推奨)

npm install -g plsr-taskmaster

ローカルインストール

npm i plsr-taskmaster

Usage

タスクフォルダはデフォルトでtasksです。変更したい場合はpackage.json内にplsr-taskプロパティを作成してください。こんな感じです。

...
    "plsr-task" : {
        "task-dir" : "tasks"
    }

コマンド一覧

| 正式コマンド | エイリアス | 説明 | |-------------|-----------|------| | plsr-task | ptm | 短縮形で利用可能 |

コマンドラインからの利用は以下のように実施します。

# タスクを作成する(実行中があればわきにどける)
npx plsr-task create <タスク名(default="task")>
# または短縮形
npx ptm create <タスク名>

# タスクのplan/reviewサイクルを作成する
npx ptm cycle

# 実行中タスクをわきにどける
npx ptm stash

# stashされたタスクを復元する
npx ptm pop

# 実行中タスクを完了する
npx ptm done

概念

3つのファイルから構成されています。

planファイル

  • 指示を行うファイルで、タスクの内容が記述されています。
  • ファイル名はplan.[タスク名].[サイクル数].mdとなります。
    • ex) plan.create-project.1.md

AIはタスクファイルを読んで、作業し、作業内容のレポートを同一のファイルへ書き込みます。

reviewファイルの後続で作成された場合は、レビューの結果を受けて改善する指示が書き込まれています。

reviewファイル

  • レビューを行うファイルで、レビューの内容が記述されています。
  • ファイル名はreview.[タスク名].[サイクル数].mdとなります。
    • ex) review.create-project.1.md

このファイルはplanファイルの後続サイクルで作成されます。planファイルを指し示していて、AIまたはユーザーはplanファイルの結果をレビューします。

サイクル

AIの指示はplan/reviewサイクルを繰り返すことで実施されます。


開発者向け情報

ビルド

# 開発中ビルド
npm run dev

# 本番ビルド
npm run build

グローバルインストール検証

グローバルインストールが正しく動作するかを検証するスクリプトを用意しています:

node scripts/global-install-test.js

このスクリプトは以下を自動で行います:

  1. npm packでパッケージを生成
  2. グローバルインストール
  3. 全コマンドの動作テスト(create/cycle/stash/pop/done)
  4. アンインストールとクリーンアップ

トラブルシューティング

グローバルインストール時のPATHエラー

'plsr-task' is not recognized as an internal or external command

原因: npmのグローバルbinディレクトリがPATHに含まれていない

解決方法:

# グローバルbinディレクトリを確認
npm config get prefix

# 表示されたパスをPATHに追加(Windowsは直下、Linux/macOSはbin配下)

権限エラー(Linux/macOS)

EACCES: permission denied

解決方法:

# オプション1: sudoを使用
sudo npm install -g plsr-taskmaster

# オプション2: npmのprefixを変更(推奨)
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
# ~/.bashrc または ~/.zshrc に追加:
# export PATH=~/.npm-global/bin:$PATH

古いキャッシュの問題

# npmキャッシュをクリア
npm cache clean --force

# 再インストール
npm uninstall -g plsr-taskmaster
npm install -g plsr-taskmaster