Skip to content

Docs: restore npm-first quickstart#8

Merged
venikman merged 1 commit intomainfrom
chore/npm-publish-docs
Jan 14, 2026
Merged

Docs: restore npm-first quickstart#8
venikman merged 1 commit intomainfrom
chore/npm-publish-docs

Conversation

@venikman
Copy link
Copy Markdown
Owner

@venikman venikman commented Jan 14, 2026

Summary

  • restore npm-first quickstart examples now that @venikman/fpf is published
  • keep local fallback instructions
  • update changelog for 0.1.1 publish

Testing

  • bunx --bun @venikman/fpf@0.1.1 --help

Summary by CodeRabbit

  • Documentation
    • Added local fallback usage examples demonstrating how to run fpf without npm.
    • Updated changelog for version 0.1.1 release.

✏️ Tip: You can customize this high-level summary in your review settings.

Copilot AI review requested due to automatic review settings January 14, 2026 10:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores npm-first quickstart examples in the documentation after publishing version 0.1.1 of @venikman/fpf to npm. The changes update documentation to show the npm-based installation method as the primary approach while maintaining local fallback instructions for users who prefer to run from the repository.

Changes:

  • Bumped package version from 0.1.0 to 0.1.1
  • Updated README files to show npm-based bunx --bun @venikman/fpf commands as the primary usage method
  • Added "Local fallback" sections with instructions for running from the repository
  • Updated CHANGELOG to document the 0.1.1 release

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/fpf/package.json Version bump to 0.1.1
packages/fpf/README.md Restructured to show npm commands first with local fallback alternatives
README.md Added local fallback examples for quickstart and machine mode
CHANGELOG.md Added 0.1.1 release notes and cleaned up 0.1.0 entry

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 14, 2026

📝 Walkthrough

Walkthrough

This release updates the package version to 0.1.1 and adds documentation examples demonstrating local fallback methods for running fpf commands without npm, using repository path-based invocation alongside existing npm-based usage.

Changes

Cohort / File(s) Summary
Version Bump
packages/fpf/package.json
Version incremented from 0.1.0 to 0.1.1
Release Documentation
CHANGELOG.md
Added 0.1.1 release entry; simplified 0.1.0 description
Usage Documentation
README.md, packages/fpf/README.md
Added local fallback (no npm) usage blocks with examples showing FPF_REPO and --root variants for both init and check commands, plus corresponding JSON output examples

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A version hops forth, from oh-one to oh-one-one,
With docs trailing behind like clover in the sun,
Local fallbacks sprout, when npm takes a rest,
"FPF_REPO and --root," the rabbit knows best! 🌱

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'Docs: restore npm-first quickstart' directly aligns with the main change: restoring npm-first documentation examples in README files after the package was published to npm, while keeping local fallback instructions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @venikman, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on improving the user documentation for the fpf CLI. It reintroduces npm-first quickstart examples, which were previously removed, now that the @venikman/fpf package is published. Additionally, it ensures that local fallback instructions are retained and expanded, offering comprehensive usage guidance for both npm-based and direct repository usage. The changes aim to make the CLI more accessible and easier to get started with for all users.

Highlights

  • Documentation Update: Restored and enhanced the npm-first quickstart examples in the documentation, providing clearer guidance for users.
  • Local Fallback Instructions: Maintained and expanded local fallback instructions for using the fpf CLI without npm, ensuring flexibility for different environments.
  • Version Bump: The project version has been updated from 0.1.0 to 0.1.1 in package.json.
  • Changelog Entry: Added a new entry to the CHANGELOG.md for version 0.1.1, documenting its publication to npm.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation to restore npm-first quickstart examples and adds local fallback instructions, along with bumping the package version. The changes are a good improvement. My review focuses on enhancing the clarity and consistency of the documentation examples. I've provided suggestions to make the code snippets in the README files more robust and self-contained, ensuring a smoother experience for users following the quickstart guides.

Comment on lines +55 to +57
FPF_REPO=/path/to/fpf-foundry
"$FPF_REPO"/packages/fpf/bin/fpf init --root . --json | cat
"$FPF_REPO"/packages/fpf/bin/fpf check --root . --json | cat
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To make this example self-contained and clearer for users, I suggest including the directory creation and git initialization steps, similar to the main quickstart example. This ensures the commands run in the correct context without relying on previous steps.

The preceding npm example for machine mode should also be updated for consistency.

Suggested change
FPF_REPO=/path/to/fpf-foundry
"$FPF_REPO"/packages/fpf/bin/fpf init --root . --json | cat
"$FPF_REPO"/packages/fpf/bin/fpf check --root . --json | cat
FPF_REPO=/path/to/fpf-foundry
mkdir fpf-demo-json && cd fpf-demo-json
git init -q
"$FPF_REPO"/packages/fpf/bin/fpf init --root . --json | cat
"$FPF_REPO"/packages/fpf/bin/fpf check --root . --json | cat


```bash
FPF_REPO=/path/to/fpf-foundry
mkdir my-fpf && cd my-fpf
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the root README.md and to ensure the example is complete, I suggest two changes:

  1. Use fpf-demo as the directory name instead of my-fpf.
  2. Add git init -q after creating the directory. The fpf commands seem to operate within a git repository context, and this step is present in the root README.md's quickstart.

This will make the example more robust. The preceding npm example should also be updated similarly for consistency.

Suggested change
mkdir my-fpf && cd my-fpf
mkdir fpf-demo && cd fpf-demo
git init -q

Comment on lines +47 to +49
FPF_REPO=/path/to/fpf-foundry
"$FPF_REPO"/packages/fpf/bin/fpf init --root . --json
"$FPF_REPO"/packages/fpf/bin/fpf check --root . --json
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To make this example self-contained and clearer for users, I suggest including the directory creation and git initialization steps. This ensures the commands run in the correct context without relying on previous steps being completed.

Using a different directory name like fpf-demo-json avoids conflicts with the previous example. The preceding npm example for machine output should also be updated for consistency.

Suggested change
FPF_REPO=/path/to/fpf-foundry
"$FPF_REPO"/packages/fpf/bin/fpf init --root . --json
"$FPF_REPO"/packages/fpf/bin/fpf check --root . --json
FPF_REPO=/path/to/fpf-foundry
mkdir fpf-demo-json && cd fpf-demo-json
git init -q
"$FPF_REPO"/packages/fpf/bin/fpf init --root . --json
"$FPF_REPO"/packages/fpf/bin/fpf check --root . --json

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@CHANGELOG.md`:
- Around line 3-6: Update the "## 0.1.1" changelog section to include a bullet
noting the documentation updates: add a line such as "Add local fallback usage
examples to both READMEs" (or similar) alongside the existing "Publish 0.1.1 to
npm." so the release notes reflect the README changes.
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 142d439 and f43925b.

📒 Files selected for processing (4)
  • CHANGELOG.md
  • README.md
  • packages/fpf/README.md
  • packages/fpf/package.json
🧰 Additional context used
🧠 Learnings (18)
📓 Common learnings
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Local CLI must be invoked via `bun packages/fpf/bin/fpf` for development testing
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/bin/fpf : CLI bin file must have shebang at `packages/fpf/bin/fpf`
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : `fpf init` command must create a minimal FPF workspace under `--root` directory with optional `--template minimal` and `--force` flags
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : CLI exit code `1` indicates usage, input, or IO error
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : Domain commands (`fpf mint-name`, `fpf record-drr`, `fpf log-work`) must accept `--root` flag and support `--json` mode
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : CLI exit code `0` indicates success
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : `fpf doctor` command must report environment and root status
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : CLI exit code `0` indicates success

Applied to files:

  • packages/fpf/package.json
  • README.md
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : `fpf init` JSON output must include `created`, `updated`, and `skipped` fields

Applied to files:

  • packages/fpf/package.json
  • README.md
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : `fpf check` JSON output must include `issues[]` array field (empty on success)

Applied to files:

  • packages/fpf/package.json
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : CLI exit code `1` indicates usage, input, or IO error

Applied to files:

  • packages/fpf/package.json
  • README.md
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : CLI exit code `2` indicates invariant check failed (from `fpf check` command)

Applied to files:

  • packages/fpf/package.json
  • README.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : In JSON mode (`--json` flag), every command must print exactly one JSON object to stdout, terminated by newline

Applied to files:

  • packages/fpf/package.json
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : CLI exit code `3` indicates unhandled or internal error

Applied to files:

  • packages/fpf/package.json
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Local CLI must be invoked via `bun packages/fpf/bin/fpf` for development testing

Applied to files:

  • packages/fpf/package.json
  • README.md
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/entry.ts : CLI entrypoint must be compiled to `packages/fpf/src/entry.ts`

Applied to files:

  • packages/fpf/package.json
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : `fpf init` command must create a minimal FPF workspace under `--root` directory with optional `--template minimal` and `--force` flags

Applied to files:

  • packages/fpf/package.json
  • README.md
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/bin/fpf : CLI bin file must have shebang at `packages/fpf/bin/fpf`

Applied to files:

  • packages/fpf/package.json
  • README.md
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : Domain commands (`fpf mint-name`, `fpf record-drr`, `fpf log-work`) must accept `--root` flag and support `--json` mode

Applied to files:

  • README.md
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : `fpf check` command must validate SkillSpec files at `design/skills/**/skill.json`, verify `design/skills/SKILL_INVENTORY.md`, and run inventory and unicode safety checks

Applied to files:

  • README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : `fpf doctor` command must report environment and root status

Applied to files:

  • README.md
  • CHANGELOG.md
  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : Global `--root <dir>` flag must default to `process.cwd()` and be available on all commands

Applied to files:

  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : `fpf doctor` command must support optional `--check` flag that embeds `fpf check` output under `check` field

Applied to files:

  • packages/fpf/README.md
📚 Learning: 2026-01-14T09:45:01.365Z
Learnt from: CR
Repo: venikman/fpf-foundry PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-14T09:45:01.365Z
Learning: Applies to packages/fpf/src/**/*.ts : Global `--json` flag must be available on all commands to enable machine-readable output mode

Applied to files:

  • packages/fpf/README.md
🔇 Additional comments (5)
packages/fpf/package.json (1)

3-3: LGTM!

Version bump to 0.1.1 is appropriate for this release.

CHANGELOG.md (1)

9-9: LGTM!

The updated 0.1.0 entry clearly describes the initial release.

packages/fpf/README.md (2)

28-35: LGTM!

The local fallback examples are consistent and provide clear alternatives to npm-based usage. The explicit --root . flag improves clarity even though it defaults to the current directory.

Also applies to: 44-50


13-18: No changes needed. The documented local invocation method using direct execution ("$FPF_REPO"/packages/fpf/bin/fpf) is correct and appropriate. With the shebang #!/usr/bin/env bun and executable permissions (100755) in place, direct execution is functionally equivalent to explicit bun invocation and is the proper approach for end-user documentation.

Likely an incorrect or invalid review comment.

README.md (1)

31-43: LGTM!

Local fallback sections are consistent with the package README and provide clear npm-free workflow options. The examples correctly demonstrate the same functionality via repository-path invocation.

Also applies to: 52-58

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

Comment on lines +3 to +6
## 0.1.1

- Publish 0.1.1 to npm.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Consider documenting the documentation updates.

The changelog entry "Publish 0.1.1 to npm." is accurate but doesn't mention the documentation changes (local fallback usage examples added to both READMEs). Consider adding a bullet point describing these updates for better release transparency.

📝 Suggested enhancement
 ## 0.1.1
 
 - Publish 0.1.1 to npm.
+- Add local fallback usage examples to documentation (npm-free workflow).
🤖 Prompt for AI Agents
In `@CHANGELOG.md` around lines 3 - 6, Update the "## 0.1.1" changelog section to
include a bullet noting the documentation updates: add a line such as "Add local
fallback usage examples to both READMEs" (or similar) alongside the existing
"Publish 0.1.1 to npm." so the release notes reflect the README changes.

@venikman
Copy link
Copy Markdown
Owner Author

@codex
@claude
@jules
review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@venikman venikman merged commit 3535c86 into main Jan 14, 2026
4 checks passed
@venikman venikman deleted the chore/npm-publish-docs branch January 14, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants