Repository navigation
feat: add before-you-build plugin - #578
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis 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. ChangesBefore You Build Plugin
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify 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. Comment |
There was a problem hiding this comment.
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 winUpdate 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
📒 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.jsonREADME.mddocs/agent-skills.mddocs/architecture.mddocs/plugins.mddocs/usage.mdplugins/before-you-build/.claude-plugin/plugin.jsonplugins/before-you-build/.codex-plugin/plugin.jsonplugins/before-you-build/README.mdplugins/before-you-build/skills/before-you-build/SKILL.mdplugins/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 viamake 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.mdplugins/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 intoskills/<name>/references/files, as Codex will hard-truncate at 8 KBPlugin 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 referenceTodoWrite, theTaskspawn 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.jsonfrom 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
nameanddescriptionwith 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#565scope. 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", |
There was a problem hiding this comment.
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
|
|
||
| > 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**, |
There was a problem hiding this comment.
🧩 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 -lRepository: 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 || trueRepository: 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 . || trueRepository: 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 200Repository: 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" . || trueRepository: 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.
|
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:
Fix that and it's good to go. 👍 |
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).
Summary
before-you-buildsingle-skill plugin underplugins/Validation
make generate-allmake validate STRICT=1git diff --checkuv run --project plugins/plugin-eval plugin-eval score plugins/before-you-build/skills/before-you-build --depth quick(no anti-patterns detected)Closes #565