Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

blueprint-generate-rules蓝图生成规则

Agent Skill

blueprint-generate-rules 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,296

周安装

54

GitHub Stars

28

下载量

432
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:blueprint-generate-rules(蓝图生成规则)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/blueprint-generate-rules
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill blueprint-generate-rules
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill blueprint-generate-rules

简介

blueprint-generate-rules 用于从产品需求文档(PRD)生成项目特定规则。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 自动提取 PRD 中的架构、测试和开发模式,生成标准化的规则文件。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Generate project-specific rules from Product Requirements Documents.

When to Use This Skill

Use this skill when...Use alternative when...
Need to generate rules from existing PRDsUse /blueprint:rules to manually create/edit rules
Want path-scoped rules for specific file typesUse /blueprint:claude-md for general project instructions
Automating rule creation from requirementsWriting custom rules without PRD reference
Extracting architecture/testing patterns from PRDsNeed to create one-off rules for specific contexts

Rules are generated to the directory configured in structure.generated_rules_path (defaults to .claude/rules/ when the field is absent). Rules with paths frontmatter are loaded conditionally when working on matching files.

Prerequisites:

  • docs/prds/ directory exists
  • At least one PRD file in docs/prds/

Steps:

  1. Resolve the output path: Read structure.generated_rules_path from docs/blueprint/manifest.json (default .claude/rules/): RULES_DIR=$(jq -r '.structure.generated_rules_path // ".claude/rules/"' docs/blueprint/manifest.json) mkdir -p "$RULES_DIR" Use $RULES_DIR for all subsequent reads/writes. This isolates blueprint-managed rules from any hand-written files in the parent .claude/rules/ directory (issue #1043).
  2. Find and read all PRDs:

- Use Glob to find all .md files in docs/prds/ - Read each PRD file - If no PRDs found, report error and suggest writing PRDs first

  1. Check for existing generated rules: ls "$RULES_DIR" 2>/dev/null

- Scope conflict checks to files under $RULES_DIR only — never to the parent .claude/rules/. Hand-written files outside $RULES_DIR are invisible to this check. - If rules exist, check manifest for content hashes - Compare current content hash vs stored hash - If modified, offer options: overwrite, skip, or backup

  1. Analyze PRDs and extract (aggregated from all PRDs): Architecture Patterns: Testing Strategies: Implementation Guides: Quality Standards:

- Project structure and organization - Architectural style (MVC, layered, hexagonal, etc.) - Design patterns - Dependency injection approach - Error handling strategy - Code organization conventions - Integration patterns - TDD workflow requirements - Test types (unit, integration, e2e) - Mocking patterns - Coverage requirements - Test structure and organization - Test commands - How to implement APIs/endpoints - How to implement UI components (if applicable) - Database operation patterns - External service integration patterns - Background job patterns (if applicable) - Code review checklist - Performance baselines - Security requirements (OWASP, validation, auth) - Code style and formatting - Documentation requirements - Dependency management

  1. Generate four aggregated domain rules: Create in $RULES_DIR (the configured structure.generated_rules_path): architecture-patterns.md: testing-strategies.md: implementation-guides.md: quality-standards.md: Path-scoping guidance: Add paths frontmatter when a rule only applies to specific file types or directories. This reduces context noise — Claude only loads the rule when working on matching files. Use brace expansion for concise patterns: *.{ts,tsx}, src/{api,routes}/**/*.

- Aggregated patterns from all PRDs - Fill in project-specific patterns extracted from PRDs - Include code examples where possible - Reference specific files/directories - Aggregated testing requirements from all PRDs - Fill in TDD requirements from PRDs - Include coverage requirements - Include test commands for the project - Add paths frontmatter if tests live in specific directories: --- paths: - "tests/**/*" - "**/*.{test,spec}.*" --- - Aggregated implementation patterns from all PRDs - Fill in step-by-step patterns for feature types - Include code examples - Scope to source paths if applicable: --- paths: - "src/**/*" - "lib/**/*" --- - Aggregated quality requirements from all PRDs - Fill in performance baselines from PRDs - Fill in security requirements from PRDs - Create project-specific checklist

  1. Update manifest with generation tracking: Store filenames relative to $RULES_DIR so the registry remains stable when generated_rules_path changes. The path itself lives in structure.generated_rules_path; the keys here are bare filenames (without directory). {"generated": {"rules": {"architecture-patterns.md": {"source": "docs/prds/*", "source_hash": "sha256:...", "generated_at": "[ISO timestamp]", "plugin_version": "3.0.0", "content_hash": "sha256:...", "status": "current"}, "testing-strategies.md": {...}, "implementation-guides.md": {...}, "quality-standards.md": {...}}}}
  2. Update task registry: Update the task registry entry in docs/blueprint/manifest.json: jq --arg now "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ --argjson processed "${PRDS_READ:-0}" \ --argjson created "${RULES_GENERATED:-0}" \ '.task_registry["generate-rules"].last_completed_at = $now |.task_registry["generate-rules"].last_result = "success" |.task_registry["generate-rules"].context.source_prd_hashes = ($source_prd_hashes // {}) |.task_registry["generate-rules"].stats.runs_total = ((.task_registry["generate-rules"].stats.runs_total // 0) + 1) |.task_registry["generate-rules"].stats.items_processed = $processed |.task_registry["generate-rules"].stats.items_created = $created' \ docs/blueprint/manifest.json > tmp.json && mv tmp.json docs/blueprint/manifest.json For source_prd_hashes, compute sha256sum of each PRD file and pass as a JSON object via --argjson.
  3. Report: Rules generated from PRDs! Created in $RULES_DIR (configured via structure.generated_rules_path): - architecture-patterns.md - testing-strategies.md - implementation-guides.md - quality-standards.md PRDs analyzed: - docs/prds/[List PRD files] Key patterns extracted: - Architecture: [Brief summary] - Testing: [Brief summary] - Implementation: [Brief summary] - Quality: [Brief summary] Rules are immediately available - Claude auto-discovers them based on context!
  4. Prompt for next action (use AskUserQuestion): question: "Rules generated. What would you like to do next?" options: - label: "Generate workflow commands (Recommended)" description: "Create /project:continue and /project:test-loop commands" - label: "Update CLAUDE.md" description: "Regenerate project overview document with new rules" - label: "Review generated rules" description: "I'll examine and refine the rules manually" - label: "I'm done for now" description: "Exit - rules are already available" Based on selection:

- "Generate workflow commands" -> Run /blueprint:generate-commands - "Update CLAUDE.md" -> Run /blueprint:claude-md - "Review generated rules" -> Show rule file locations and exit - "I'm done for now" -> Exit

Important:

  • Rules should be markdown files with clear headings
  • Keep rule content specific and focused
  • Include code examples to make patterns concrete
  • Reference PRD sections for traceability
  • Rules should be actionable, not just documentation

Error Handling:

  • If no PRDs found -> Guide user to derive PRDs first (/blueprint:derive-prd)
  • If PRDs incomplete -> Generate rules with TODO markers for missing sections
  • If rules already exist and modified -> Offer to backup before overwriting

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.97%
按下载量换算160

Claude

32.12%
按下载量换算139

Cursor

18.63%
按下载量换算80

Gemini CLI

8.51%
按下载量换算37

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills