Skip to content

docs(readme): split Use cases into its own section + fix Why-prose authorship#87

Merged
naorsabag merged 8 commits into
masterfrom
fix/readme-use-cases-and-prose
May 8, 2026
Merged

docs(readme): split Use cases into its own section + fix Why-prose authorship#87
naorsabag merged 8 commits into
masterfrom
fix/readme-use-cases-and-prose

Conversation

@naorsabag
Copy link
Copy Markdown
Owner

@naorsabag naorsabag commented May 8, 2026

Summary

Two README polish fixes following #86:

1. Fix Why-section prose

Previous text:

You describe the flow in YAML (your agent writes it for you)

That contradicts itself. Users don't write YAML — they describe the codebase area in plain English and the agent emits the YAML. Rewrote as:

You ask in plain English; your agent writes the flow as YAML and pushes it; OpenHop renders animated data pixels traveling between components on a pixel-art canvas.

2. Split prompts into a dedicated ## Use cases section

#86 added 8 example prompts but inlined them inside "Give your agent the skill," mixing two concerns (one-time install vs every-day usage). Split them:

  • The install section keeps the install steps + a one-line pointer to Use cases.
  • New ## Use cases section is the home of the prompt examples + a one-line trigger-shape note ("explain / walk through / trace / visualize / diagram _ flow").
  • Anchor #use-cases added to the top-of-README nav so it's discoverable from the page header.

Diff

File +/-
README.md +12 / -5

Testing

  • npx prettier --check README.md → clean
  • Anchor link #use-cases resolves to the new heading (GitHub auto-generates anchors from ## Heading titles)

Linked context

Direct follow-up to #86 (which created the prompt examples). No new audit items closed by this change — it's structural / prose polish.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Navigation updated to surface separate “Install” and “Use cases” anchors.
    • “Why” rewritten to highlight plain‑English prompts, YAML output, animated data‑flow diagrams, and clickable node drill‑down.
    • Installation guidance restructured: treating a single skill file as the primary manual step, CLI/server auto-start behavior, two install paths (init vs package install), optional serve/demo commands, and contributor run‑from‑source notes.
    • “Use cases” rewritten with example prompts and a clarified trigger‑phrase pattern enabling YAML+animation mode; prior scenario table and older workflow copy removed.

…Why-prose authorship

Two README polish changes:

1. **Why section authorship.** Previous prose said "You describe the
   flow in YAML (your agent writes it for you)" — contradictory. Users
   don't write YAML; they describe the codebase area in English and
   the agent writes the YAML. Rewrote as: "You ask in plain English;
   your agent writes the flow as YAML and pushes it; OpenHop renders…"

2. **Move prompts to a dedicated `## Use cases` section.** The 8
   example prompts added in #86 were inline inside "Give your agent
   the skill" alongside install instructions, which mixed two
   concerns: setup-once vs use-every-day. Split them: the install
   section keeps the install steps and a one-line pointer; the new
   Use cases section is a discoverable section users can deep-link to
   (anchor added to the top-of-README nav).

Also added a one-line trigger-shape note ("explain / walk through /
trace / visualize / diagram _ flow") at the bottom of Use cases —
it's the same activation phrase pattern documented in
17-install-and-activation-flow.md, surfaced for users who want to
know what the skill actually matches on.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

README.md updates: navigation adds "Install" and "Use cases"; "Why" clarifies YAML-authored animated data-flow rendering with node drill-down; "Install" rewrites setup into agent-skill + CLI/server paths; "Use cases" and activation text now show trigger-phrase patterns that produce YAML + animation.

Changes

Documentation Structure & Installation Guidance

Layer / File(s) Summary
Navigation Structure
README.md
Top navigation updated to include "Install" and "Use cases" anchors, replacing the "AI skill" anchor.
Core Value Proposition
README.md
"Why" section reworded to state flows are authored as YAML and rendered as animated data-flow diagrams with click-to-drill sub-flows.
Installation Model
README.md
"Install" section rewritten to present the agent skill (SKILL.md) as the primary install step, document two install paths (auto-detect via npx openhop init and universal npx openskills install ...), and add optional pre-start/demo/source instructions.
Skill Activation & Use Cases
README.md
"Use cases" replaced the scenario table with example prompt bullets; activation described as trigger-phrase patterns (e.g., "explain / walk through / trace / visualize / diagram flow") that switch the agent from prose into YAML + animation output.
CLI / API Context
README.md
CLI/API docs retained but rephrased to align with the updated flow: diagram validation → API post → animated web UI render.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • naorsabag/openhop#72: Overlapping README installation guidance and install command paths (npx openhop init vs npx openskills install …).
  • naorsabag/openhop#86: Overlapping README edits to user-facing examples and trigger-pattern wording for agent activation.
  • naorsabag/OpenHop#67: Related documentation changes around installation, activation phrasing, and SKILL/CLI workflow.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: splitting use cases into a separate section and fixing prose wording in the Why section.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/readme-use-cases-and-prose

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

naorsabag and others added 2 commits May 8, 2026 06:44
…s / agent-driven / contributor)

Previous Install table mixed two orthogonal axes — server-side commands
(demo, serve) and agent-side commands (init, openskills) — listed as
peers, which made it look like the user picks one. Reality: most users
need *both* a server (so flows render) and a skill (so the agent
knows how to call openhop).

Restructured into three labeled paths:

- Path A: just see what it does → `npx openhop demo`. One command.
- Path B: real agent-driven use → 3 explicit steps:
  1. install the skill (init or openskills)
  2. run the server long-lived (`npx openhop serve`)
  3. ask the agent for a flow
- Path C: contributor → clone, npm install, npm run dev.

Also dropped the now-redundant "## Give your agent the skill" section
(its content is folded into Path B). Updated nav anchor from
"AI skill" → "Install" since the install section now covers skill
setup explicitly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…o a preview.

Previous Install section listed Path A (kicking the tires via demo)
and Path B (agent-driven, multi-step) as peers. That framing was
wrong: OpenHop has no use without an AI agent. The product is the
skill; the CLI just paints the pixels.

Restructured to put the skill install front-and-center:

- Path A (Tier-1, auto-detect): `npx openhop init`
- Path B (Tier-2, via OpenSkills): `npx openskills install …`

Both paths are about HOW to install the skill (the only required step).
After install, the agent boots `openhop serve` automatically when it
needs to render — the user doesn't run a server unless they want to.

`openhop serve` and `openhop demo` are now positioned as optional /
preview commands beneath the skill install paths, with explicit
framing: serve = "if you'd rather pre-start it yourself", demo = "just
looking, no agent involved." That matches how a first-time user
actually consumes the README.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Line 128: Update the activation pattern line that currently reads "explain /
walk through / trace / visualize / diagram _ flow" to accurately reflect the
examples or make the examples match the pattern; either change the pattern
string to a broader description such as "Ask the agent to explain, walk through,
trace, visualize, or diagram any system behavior or data flow" (update the
quoted pattern text in README.md) or revise examples 3–8 so they include one of
the listed verbs and the word "flow" (or otherwise match the new pattern)
ensuring consistency between the pattern text and the example prompts.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 12ccfe7c-0770-4f32-a0b7-e34663bf0790

📥 Commits

Reviewing files that changed from the base of the PR and between 63c0877 and d16a639.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md Outdated
naorsabag and others added 2 commits May 8, 2026 07:36
Each prompt was wrapped in _underscores_ for italics, which renders
visibly slanted on GitHub and reads as noisy formatting on a
straightforward bulleted list. Plain-quoted strings carry the
"agent prompt" signal on their own.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Each path now shows just the command. Section headers carry the
context (which clients each path is for) and the commands speak for
themselves. Removes ~5 paragraphs of "what this does" prose that was
restating what the section header already said.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

♻️ Duplicate comments (1)
README.md (1)

128-128: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Pattern text is still stricter than the examples.

Line 128 says prompts must match "explain / walk through / trace / visualize / diagram _ flow", but several examples on Line 119-Line 127 use other verbs or omit “flow”. Please either broaden the pattern sentence or normalize the examples so users can predict activation reliably.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 128, The README's activation pattern "explain / walk
through / trace / visualize / diagram _ flow" is too strict relative to
examples; update the sentence to accept those verbs with optional suffixes
(e.g., allow "explain|walk through|trace|visualize|diagram|illustrate|describe"
and make "flow" optional or allow "the flow"/"flow of" variants) or
alternatively normalize the examples on lines 119–127 to all include the exact
phrase; modify the pattern sentence so it clearly states the verbs list and that
"flow" is optional (or update example prompts to match the quoted pattern) to
ensure consistent, predictable activation.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@README.md`:
- Line 128: The README's activation pattern "explain / walk through / trace /
visualize / diagram _ flow" is too strict relative to examples; update the
sentence to accept those verbs with optional suffixes (e.g., allow "explain|walk
through|trace|visualize|diagram|illustrate|describe" and make "flow" optional or
allow "the flow"/"flow of" variants) or alternatively normalize the examples on
lines 119–127 to all include the exact phrase; modify the pattern sentence so it
clearly states the verbs list and that "flow" is optional (or update example
prompts to match the quoted pattern) to ensure consistent, predictable
activation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 9c06a4cd-cfcc-4be9-bda3-981d3c06113a

📥 Commits

Reviewing files that changed from the base of the PR and between d16a639 and 85df350.

📒 Files selected for processing (1)
  • README.md

naorsabag and others added 3 commits May 8, 2026 07:48
CodeRabbit (PR #87 review) caught a mismatch between the pattern
description and the example prompts above it. The previous text
suggested every prompt must use one of five verbs *and* include the
word "flow" — but several listed examples (state machines, "Show me
how the checkout pipeline processes…", "How does cache invalidation
work?", etc.) don't fit that strict shape.

Rewrote the pattern line to describe the broader activation surface
the examples actually demonstrate: prompts asking the agent to
explain / walk through / trace / visualize / diagram how something
works in code — flows, request paths, lifecycles, state machines,
processing pipelines, click-to-action traces.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… trigger list

Per review: the README's activation pattern should match the skill's
own declared triggers. Updated to mirror SKILL.md:3 frontmatter
verbatim:

  Verbs (6): understand, explain, walk through, trace, visualize, diagram
  Subjects: data, requests, control, auth, or state flows through code

Previous README had only 5 verbs (missing "understand") and described
the subjects as a vaguer list ("flows, paths, lifecycles, state
machines, ..."). The skill router phrase-matches on the SKILL.md
frontmatter, so the README description should be identical to maximise
the chance that what users see in the README is what actually
activates the skill.

Also added a pointer to the full per-phrase trigger list in
skills/openhop/SKILL.md (lines 19-30) for users who want to dig in.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Per request. The README now lists 5 verbs (explain, walk through,
trace, visualize, diagram) where the skill's frontmatter has 6
(includes "understand"). The skill router still phrase-matches
"understand" — so user prompts using that verb still activate the
skill — the README just describes the more concrete subset.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant