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

gemini-phased-workflow

v1.1.4

Published

`gpfw` is a globally-installable NPM command-line tool designed to standardize and streamline a 4-phase coding workflow (Research, Plan, Implement, Validate) using the Gemini CLI. It helps developers manage their thought process and code generation in a s

Readme

gemini-phased-workflow (gpfw)

gpfw is a globally-installable NPM command-line tool designed to standardize and streamline a 4-phase coding workflow (Research, Plan, Implement, Validate) using the Gemini CLI. It helps developers manage their thought process and code generation in a structured manner.

Features

  • Research: Conduct research on a given goal using Gemini and save the output.
  • Plan: Generate a detailed plan based on the latest research.
  • Refine: Refine an existing plan, with options for interactive or automated refinement.
  • Implement: Generate code based on a plan and a specific phase request.
  • Validate: Review generated code against a plan and provide a validation report.

Installation

Before installing gpfw, ensure you have the Gemini CLI installed and set up. You can find instructions and the repository at https://github.com/google-gemini/gemini-cli.

To install gpfw globally, run:

npm install -g gemini-phased-workflow

Usage

The gpfw tool guides you through a four-phase workflow. All generated files are stored in a thoughts/ directory within your project.

1. Research

Start by researching your project goal. This will generate a research document in thoughts/research/.

gpfw research "Your project goal, e.g., How to implement a dark mode toggle in a Gatsby React application using Material-UI?"

2. Plan

Generate a detailed plan based on your latest research. This will create a plan-vX.md file in thoughts/plans/.

By default, gpfw plan will use the latest research file from thoughts/research/.

gpfw plan "A high-level description of the plan, e.g., Create a dark mode toggle"

You can also specify which research files to use with the --research (or -r) flag.

gpfw plan "A high-level description of the plan" -r thoughts/research/file1.md thoughts/research/file2.md

3. Refine

Refine an existing plan. By default, the refined plan will be saved automatically.

gpfw refine thoughts/plans/plan-v1.md

You can also refine a plan interactively. This will launch an interactive Gemini session. You will need to manually save the refined plan after the session.

gpfw refine --interactive thoughts/plans/plan-v1.md

4. Implement

Generate code for a specific phase of your plan. The tool will modify files in the project directly.

gpfw implement <path-to-plan-file> "Description of the phase to implement"
# Example:
gpfw implement thoughts/plans/plan-v1.md "Implement the DarkModeToggle component"

5. Validate

Review the generated code against your plan. The validation report will be printed to the console.

gpfw validate <path-to-plan-file> <path-to-code-directory>
# Example:
gpfw validate thoughts/plans/plan-v1.md src/components/

Model Configuration

The gpfw tool automatically retries with the gemini-pro-flash model if the gemini-pro model is exhausted or encounters rate limits. This ensures a smoother workflow and continued operation even under heavy usage.

Development

Local Installation for Development

To link your local gpfw development version globally:

cd /path/to/gemini-phased-workflow
npm link

Updating Prompts

The prompts used by gpfw are located in the templates/ directory. You can modify these files to customize the behavior of the tool.

Contributing

(Add contributing guidelines here)

License

ISC

Inspiration

This project was inspired by the article "Claude Code" by Ashley H.