Skip to content

feat: add before-you-build plugin - #578

Merged
wshobson merged 1 commit into
wshobson:mainfrom
bin1874:add-before-you-build-plugin
Jun 25, 2026
Merged

wshobson merged 1 commit into
wshobson:mainfrom
bin1874:add-before-you-build-plugin

Conversation

@bin1874

@bin1874 bin1874 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a focused before-you-build single-skill plugin under plugins/
  • Register it in the Claude, Codex, and Cursor marketplace metadata
  • Update public catalog counts and Business / Agent Skills docs

Validation

  • make generate-all
  • make validate STRICT=1
  • git diff --check
  • uv run --project plugins/plugin-eval plugin-eval score plugins/before-you-build/skills/before-you-build --depth quick (no anti-patterns detected)

Closes #565

@coderabbitai

coderabbitai Bot commented Jun 12, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Added "Before You Build" plugin for pre-build product risk assessment workflows, featuring a pre-mortem skill with risk checklists across demand, positioning, monetization, retention, trust, distribution, and feature adoption.
  • Documentation

    • Updated marketplace counts: 85 plugins and 158 skills (previously 84 and 156).

Walkthrough

This PR adds a new "before-you-build" pre-mortem skill plugin to the agents marketplace. It registers the plugin across multiple IDE platforms, implements the skill with risk assessment guidance, and updates all marketplace metadata and documentation to reflect the expanded catalog.

Changes

Before You Build Plugin

Layer / File(s) Summary
Plugin marketplace registration
.agents/plugins/marketplace.json, .claude-plugin/marketplace.json, .cursor-plugin/marketplace.json, .cursor-plugin/plugin.json, .cursor-plugin/plugins/before-you-build.json
Plugin is registered across all IDE-specific marketplaces with metadata (version 0.1.1, author bin1874, MIT license, Coding category) and policy settings (installation=AVAILABLE, authentication=ON_USE).
Plugin implementation with skill definition
plugins/before-you-build/.claude-plugin/plugin.json, plugins/before-you-build/.codex-plugin/plugin.json, plugins/before-you-build/README.md, plugins/before-you-build/skills/before-you-build/SKILL.md, plugins/before-you-build/skills/before-you-build/references/risk-checklist.md
Plugin manifests define the skill interface and metadata. README documents the plugin purpose and usage. SKILL.md defines the before-you-build workflow with usage conditions, risk checklist (demand, positioning, monetization, retention, trust, distribution, feature adoption), output format requirements, and guidance for evidence-based responses. Risk-checklist reference provides detailed assessment questions for each risk dimension.
Documentation and catalog metadata updates
README.md, docs/agent-skills.md, docs/architecture.md, docs/plugins.md, docs/usage.md
Marketplace counts are incremented from 84 to 85 plugins and 156 to 158 skills across all documentation. Before-you-build is added to the agent skills catalog. Plugin reference counts and "Browse all" sections are synchronized to reflect the expanded marketplace.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • wshobson/agents#522: Updates marketplace/documentation count metadata in files like .claude-plugin/marketplace.json but does not add the new plugin entry.
  • wshobson/agents#552: Also adds a new plugin entry to the marketplace registry by inserting into the plugins array and adjusting metadata counts.

Suggested reviewers

  • wshobson
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add before-you-build plugin' clearly and specifically describes the main change—adding a new plugin.
Description check ✅ Passed The description is directly related to the changeset, outlining the plugin addition, registration, documentation updates, and validation steps performed.
Linked Issues check ✅ Passed The PR fully implements the linked issue #565 objectives: the Before You Build skill assesses the seven required risk categories, is implementation-agnostic, produces the required risk verdict and validation step output, and targets the specified user personas.
Out of Scope Changes check ✅ Passed All changes are in-scope: the plugin implementation, marketplace registrations, documentation updates, and supporting reference materials directly align with issue #565 requirements.
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.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/architecture.md (1)

72-72: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Update skill count on line 72 to match line 197 (same file).

Line 72 states "156 Local Agent Skills" but line 197 in the same file states "158 skills," and all other documentation (README, agent-skills, plugins, usage) confirms 158 skills. Line 72 is a missed update during the count increment.

🔧 Proposed fix
-**156 Local Agent Skills**
+**158 Local Agent Skills**
🤖 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 `@docs/architecture.md` at line 72, The header text "**156 Local Agent
Skills**" is out of date; update that exact header string to "**158 Local Agent
Skills**" so it matches the later count ("158 skills") and other documentation,
ensuring consistency across the document (look for the header string "**156
Local Agent Skills**" and replace the count).
🤖 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 @.claude-plugin/marketplace.json:
- Line 9: The PR illegally modifies registry/generated artifacts
(.claude-plugin/marketplace.json and files under .cursor-plugin/**); revert
direct edits to .claude-plugin/marketplace.json and any hand-changed files under
.cursor-plugin, then regenerate/update them via the approved flows (use the
registry flow for .claude-plugin/marketplace.json and run make generate
HARNESS=<x> to regenerate .cursor-plugin artifacts); ensure only source files
are changed in this PR and include the regenerated artifacts produced by the
official commands rather than manual edits.

In `@README.md`:
- Line 3: Docs claim an inconsistent skill total (mentions 158 and 156) while
the repo contains 157 SKILL.md files; update documentation to consistently state
157 or add the missing skill. Search for occurrences of the skill total in
README.md and other docs and replace the incorrect totals (e.g., change "158"
and "156" to "157"), and if you intend to keep 158 instead, locate the missing
skill by comparing plugins/*/skills/*/SKILL.md and plugins/before-you-build/ and
either add the missing SKILL.md or document why one is excluded; ensure all
references (README and any docs badges or summaries) match the final canonical
count.

---

Outside diff comments:
In `@docs/architecture.md`:
- Line 72: The header text "**156 Local Agent Skills**" is out of date; update
that exact header string to "**158 Local Agent Skills**" so it matches the later
count ("158 skills") and other documentation, ensuring consistency across the
document (look for the header string "**156 Local Agent Skills**" and replace
the count).
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0a653bb9-a3f0-48fc-b3ca-a939cf56ac0b

📥 Commits

Reviewing files that changed from the base of the PR and between cc37bfd and f661b95.

📒 Files selected for processing (15)
  • .agents/plugins/marketplace.json
  • .claude-plugin/marketplace.json
  • .cursor-plugin/marketplace.json
  • .cursor-plugin/plugin.json
  • .cursor-plugin/plugins/before-you-build.json
  • README.md
  • docs/agent-skills.md
  • docs/architecture.md
  • docs/plugins.md
  • docs/usage.md
  • plugins/before-you-build/.claude-plugin/plugin.json
  • plugins/before-you-build/.codex-plugin/plugin.json
  • plugins/before-you-build/README.md
  • plugins/before-you-build/skills/before-you-build/SKILL.md
  • plugins/before-you-build/skills/before-you-build/references/risk-checklist.md
📜 Review details
🧰 Additional context used
📓 Path-based instructions (6)
**/.cursor-plugin/**

📄 CodeRabbit inference engine (.cursor/rules/000-project-conventions.mdc)

Do not hand-edit anything under .cursor-plugin/ — regenerate via make generate HARNESS=<x>

Files:

  • .cursor-plugin/plugin.json
  • .cursor-plugin/plugins/before-you-build.json
  • .cursor-plugin/marketplace.json
plugins/**/{.claude-plugin/plugin.json,agents/*.md,skills/*/SKILL.md,commands/*.md}

📄 CodeRabbit inference engine (.cursor/rules/000-project-conventions.mdc)

Plugin files follow the structure: plugins/<name>/{.claude-plugin/plugin.json, agents/*.md, skills/<name>/SKILL.md, commands/*.md} and are auto-discovered

Files:

  • plugins/before-you-build/skills/before-you-build/SKILL.md
  • plugins/before-you-build/.claude-plugin/plugin.json
plugins/*/skills/*/SKILL.md

📄 CodeRabbit inference engine (.cursor/rules/020-agent-skill-authoring.mdc)

plugins/*/skills/*/SKILL.md: Skills frontmatter must include: name, description. Other Anthropic SKILL.md fields are optional and respected only on Claude Code
Cap skill body at approximately 8 KB. Push longer reference material into skills/<name>/references/ files, as Codex will hard-truncate at 8 KB

Plugin frontmatter shapes must follow authoring standards defined in 'docs/authoring.md'

Files:

  • plugins/before-you-build/skills/before-you-build/SKILL.md
{plugins/*/agents/*.md,plugins/*/skills/*/SKILL.md,plugins/*/commands/*.md}

📄 CodeRabbit inference engine (.cursor/rules/020-agent-skill-authoring.mdc)

{plugins/*/agents/*.md,plugins/*/skills/*/SKILL.md,plugins/*/commands/*.md}: Use action verbs in markdown body, not tool-name vocabulary: prefer "open the file" over "use the Read tool". The adapter rewrites a conservative set, but unrewritten cases may bleed through
Do not reference TodoWrite, the Task spawn tool, or hooks as load-bearing — they don't exist in Codex or Cursor

Files:

  • plugins/before-you-build/skills/before-you-build/SKILL.md
.claude-plugin/marketplace.json

📄 CodeRabbit inference engine (.cursor/rules/000-project-conventions.mdc)

Never modify .claude-plugin/marketplace.json from inside a plugin PR — it's the registry

Files:

  • .claude-plugin/marketplace.json
{README.md,ARCHITECTURE.md}

📄 CodeRabbit inference engine (AGENTS.md)

Keep README/overview files short (~150 lines max) per OpenAI's harness-engineering practice; push procedural detail to docs/ and skill files

Files:

  • README.md
🪛 LanguageTool
plugins/before-you-build/skills/before-you-build/references/risk-checklist.md

[style] ~33-~33: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... cautious user comfortable trying it? - What failure would make the product feel uns...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

plugins/before-you-build/skills/before-you-build/SKILL.md

[style] ~32-~32: Consider a different adjective to strengthen your wording.
Context: ... use references/risk-checklist.md for deeper questions. ## Output Format Keep the ...

(DEEP_PROFOUND)

🔇 Additional comments (9)
.agents/plugins/marketplace.json (1)

112-123: LGTM!

plugins/before-you-build/.claude-plugin/plugin.json (1)

1-10: LGTM!

plugins/before-you-build/.codex-plugin/plugin.json (1)

1-16: LGTM!

plugins/before-you-build/README.md (1)

1-7: LGTM!

plugins/before-you-build/skills/before-you-build/SKILL.md (2)

1-4: LGTM!


6-50: Skill structure and guidance align with PR objectives.

The skill follows Anthropic Agent Skills Specification: frontmatter includes required name and description with activation trigger; content uses progressive disclosure (main guidance → risk checklist reference → output format); uses action verbs ("Run," "Review," "Keep," "Be direct," "Prefer," "Separate," "Name") throughout. Risk dimensions (demand, positioning, monetization, retention, trust, distribution, feature adoption) match issue #565 scope. Output format (verdict, assumption, evidence, next step, delay) is implementation-agnostic and focused on "smallest validation step" per objective.

plugins/before-you-build/skills/before-you-build/references/risk-checklist.md (1)

1-46: LGTM!

docs/agent-skills.md (1)

180-184: LGTM!

docs/plugins.md (1)

264-272: LGTM!

},
"metadata": {
"description": "Production-ready workflow orchestration with 84 marketplace plugins, 192 local specialized agents, and 156 local skills - optimized for granular installation and minimal token usage",
"description": "Production-ready workflow orchestration with 85 marketplace plugins, 192 local specialized agents, and 158 local skills - optimized for granular installation and minimal token usage",

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 | 🟠 Major | ⚡ Quick win

Registry/generated manifest policy is violated across .claude-plugin/marketplace.json, .cursor-plugin/marketplace.json, .cursor-plugin/plugin.json, and .cursor-plugin/plugins/before-you-build.json.

Root cause: this plugin PR directly edits files that are designated as registry-owned or generated artifacts. Remove these direct edits and regenerate/update through the approved flows (make generate HARNESS=<x> for .cursor-plugin/**, and separate registry flow for .claude-plugin/marketplace.json).

As per coding guidelines, .claude-plugin/marketplace.json must not be modified in plugin PRs, and anything under .cursor-plugin/** must be regenerated rather than hand-edited.

🤖 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 @.claude-plugin/marketplace.json at line 9, The PR illegally modifies
registry/generated artifacts (.claude-plugin/marketplace.json and files under
.cursor-plugin/**); revert direct edits to .claude-plugin/marketplace.json and
any hand-changed files under .cursor-plugin, then regenerate/update them via the
approved flows (use the registry flow for .claude-plugin/marketplace.json and
run make generate HARNESS=<x> to regenerate .cursor-plugin artifacts); ensure
only source files are changed in this PR and include the regenerated artifacts
produced by the official commands rather than manual edits.

Source: Coding guidelines

Comment thread README.md

> Production-ready agentic workflow building blocks: **84 plugins**, **192 agents**,
> **156 skills**, **102 commands** — built for Claude Code and consumed natively by
> Production-ready agentic workflow building blocks: **85 plugins**, **192 agents**,

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 | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Enumerate all skills and count by plugin to verify 158 total

echo "=== Skill Count by Plugin ===" && \
find plugins -path "*/skills/*/SKILL.md" -type f | \
  xargs -I {} dirname {} | \
  xargs -I {} basename {} | \
  sort | uniq -c | \
  awk '{total += $1} END {print "Total skills:", total}' && \
echo "" && \
echo "=== Before-You-Build Plugin Skills ===" && \
find plugins/before-you-build -path "*/skills/*/SKILL.md" -type f | wc -l

Repository: wshobson/agents

Length of output: 149


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Matches for '158' in docs ==="
rg -n --hidden --no-ignore-vcs "158" README.md **/*.md || true

echo ""
echo "=== Matches for '156' in docs ==="
rg -n --hidden --no-ignore-vcs "156" README.md **/*.md || true

echo ""
echo "=== Matches for 'skills' counts in README.md ==="
rg -n "skills|Skill|plugins|plugin" README.md || true

Repository: wshobson/agents

Length of output: 4424


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Total SKILL.md across entire repo ==="
find . -type f -name "SKILL.md" | wc -l

echo ""
echo "=== Total SKILL.md under plugins/** ==="
find plugins -type f -name "SKILL.md" | wc -l

echo ""
echo "=== Total SKILL.md not under plugins/** ==="
find . -type f -name "SKILL.md" -not -path "./plugins/*" | head -n 50

echo ""
echo "=== Where '158 skills' is sourced (agent-skills.md / scripts) ==="
rg -n "158 skills|156 Local Agent Skills|158 specialized skills" docs README.md .github . || true

Repository: wshobson/agents

Length of output: 1616


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Skill-like markdown files under plugins (case-insensitive) ==="
find plugins -type f \( -iname '*skill*.md' \) | sed 's|^./||' | wc -l

echo ""
echo "=== Top-level filenames matching skill pattern (first 200) ==="
find plugins -type f \( -iname '*skill*.md' \) -printf '%f\n' | sort | uniq | head -n 200

echo ""
echo "=== Count of files named exactly SKILL.md vs case variants ==="
echo "SKILL.md (exact):"
find plugins -type f -name "SKILL.md" | wc -l
echo "skill.md (exact):"
find plugins -type f -iname "skill.md" | wc -l
echo "Skill.md (exact):"
find plugins -type f -iname "Skill.md" | wc -l

echo ""
echo "=== Any non-SKILL.md skill docs that could be included in totals ==="
find plugins -type f \( -iname '*skill*.md' \) ! -name "SKILL.md" | sed 's|^./||' | head -n 200

Repository: wshobson/agents

Length of output: 403


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Search for hardcoded 158 in repo (excluding node_modules/dist if any) ==="
rg -n --hidden --no-ignore-vcs "158 specialized skills|158 skills|Local Agent Skills" . || true

echo ""
echo "=== Search for where skill totals are computed (SKILL.md parsing) ==="
rg -n --hidden --no-ignore-vcs "SKILL\.md|skill(s)?\.md|agent-skills|count.*skill" scripts .github . || true

echo ""
echo "=== Files that mention 156 Local Agent Skills ==="
rg -n --hidden --no-ignore-vcs "156 Local Agent Skills" . || true

Repository: wshobson/agents

Length of output: 28234


Skill total mismatch: repository has 157 SKILL.md skills, but docs state 158.

Counting plugins/*/skills/*/SKILL.md yields 157 skills total (and plugins/before-you-build/ contains 1 skill). Yet README/docs repeatedly claim 158 skills, while other docs still mention 156, so the documentation totals are inconsistent. Update the docs to 157 (or document the missing “extra” skill that’s not represented by the 157 SKILL.md files).

🤖 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 3, Docs claim an inconsistent skill total (mentions 158
and 156) while the repo contains 157 SKILL.md files; update documentation to
consistently state 157 or add the missing skill. Search for occurrences of the
skill total in README.md and other docs and replace the incorrect totals (e.g.,
change "158" and "156" to "157"), and if you intend to keep 158 instead, locate
the missing skill by comparing plugins/*/skills/*/SKILL.md and
plugins/before-you-build/ and either add the missing SKILL.md or document why
one is excluded; ensure all references (README and any docs badges or summaries)
match the final canonical count.

@wshobson

Copy link
Copy Markdown
Owner

Thanks — this is in great shape: the registries are complete, the skill is well-structured, and there's no overlap with existing skills. One tiny fix before merge:

  • The skill count should be 157, not 158 (main has 156 + your 1).

Fix that and it's good to go. 👍

@wshobson
wshobson merged commit 184e119 into wshobson:main Jun 25, 2026
wshobson added a commit that referenced this pull request Jun 25, 2026
After merging #575 (storymap-skill), #568 (runapi-mcp), #578
(before-you-build), #576 (file-conversion), #594 and #597, reconcile the
marketplace/doc counts to the true totals: 88 plugins (85 local + 3
external), 194 agents, 158 skills, 106 commands. Add catalog rows for
runapi-mcp (AI & ML) and storymap-skill (Workflows, external); fix the
defi-protocol-templates skills-table line (lending -> flash loans).
@coderabbitai coderabbitai Bot mentioned this pull request Jul 14, 2026
5 tasks done
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.

Skill proposal: Before You Build Skill

2 participants