guide-integrator by camoa/claude-skills
npx skills add https://github.com/camoa/claude-skills --skill guide-integrator加载开发参考资料并集成到架构文档中。三种来源:插件方法论参考、在线开发指南和用户自定义指南。
| 主题 | 参考文件 |
|---|---|
| 测试驱动开发 | references/tdd-workflow.md |
| SOLID 原则 | references/solid-drupal.md |
| DRY 模式 | references/dry-patterns.md |
| 库优先/CLI优先 | references/library-first.md |
| 质量门禁 | references/quality-gates.md |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 有目的的代码 | references/purposeful-code.md |
对于超出捆绑参考资料范围的 Drupal 领域知识,获取指南索引:
索引: https://camoa.github.io/dev-guides/llms.txt
可能相关的主题:表单、配置表单、实体、插件、路由、服务、缓存、配置管理、渲染 API、安全、SDC、JS 开发、视图、区块、布局构建器、媒体、迁移、配方、分类、JSON:API、图片样式、图标 API、ECA、GitHub Actions、AI 内容、自定义字段、Klaro、测试、TDD、SOLID 原则、DRY 原则
用法:通过 WebFetch 获取索引以发现可用主题,然后获取特定主题页面以获取决策指南、模式和最佳实践。
在以下情况下激活:
architecture-drafter 代理自动触发时从插件的 references/ 文件夹加载:
| 检测到的关键词 | 要加载的参考 |
|---|---|
| "test"、"TDD"、"unit test"、"kernel test" | references/tdd-workflow.md |
| "service"、"dependency"、"inject"、"SOLID" | references/solid-drupal.md |
| "duplicate"、"reuse"、"DRY"、"extract" | references/dry-patterns.md |
| "form"、"drush"、"command"、"service first" | references/library-first.md |
| "complete"、"done"、"quality"、"gate" | references/quality-gates.md |
如果用户在 project_state.md 中配置了 guides_path,则根据文件名中的关键词在配置的路径中搜索相关文件。
基于任务中检测到的关键词:
对于 Drupal 特定的架构决策:
https://camoa.github.io/dev-guides/llms.txt 以发现可用主题仅获取与当前任务相关的主题——而非所有主题。
读取 {project_path}/project_state.md 并查找 **Guides Path:** {path}。
如果已配置:使用 Glob 匹配 {guides_path}/*.md,将文件名与任务关键词匹配,加载匹配项。如果未配置:仅继续使用插件参考资料和开发指南。
从所有加载的来源中,识别:
使用 Edit 将参考资料部分添加到架构文件:
## 开发参考资料
### 插件参考资料(方法论)
| 参考 | 关键模式 |
|-----------|--------------|
| solid-drupal.md | 单一职责、依赖注入 |
| library-first.md | 服务 → 表单 → 路由 |
| tdd-workflow.md | 红-绿-重构 |
### 应用的开发指南(Drupal 领域)
| 主题 | 关键决策 |
|-------|--------------|
| drupal/forms/ | ConfigFormBase 与 FormBase |
| drupal/entities/ | 内容实体与配置实体 |
### 应用的自定义指南(如有)
| 指南 | 相关章节 |
|-------|-------------------|
| {user_guide}.md | {sections} |
### 执行点
| 阶段 | 原则 | 来源 |
|-------|-----------|--------|
| 设计 | 库优先 | references/library-first.md |
| 设计 | SOLID | references/solid-drupal.md |
| 设计 | Drupal 模式 | dev-guides (在线) |
| 实现 | TDD | references/tdd-workflow.md |
| 实现 | DRY | references/dry-patterns.md |
| 完成 | 质量门禁 | references/quality-gates.md |
| 完成 | 安全 | dev-guides drupal/security/ |
告知用户从每个来源集成了什么:插件方法论、开发指南主题和自定义指南。
| 类型 | 位置 |
|---|---|
| 插件参考资料(方法论) | {plugin_path}/references/*.md |
| 开发指南(Drupal 领域) | https://camoa.github.io/dev-guides/ |
| 自定义指南 | 用户配置的 guides_path |
停止并询问用户:
每周安装数
1
仓库
GitHub 星标数
17
首次出现
今天
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Load development references and integrate into architecture documents. Three sources: plugin methodology refs, online dev-guides, and user's custom guides.
| Topic | Reference File |
|---|---|
| Test-Driven Development | references/tdd-workflow.md |
| SOLID Principles | references/solid-drupal.md |
| DRY Patterns | references/dry-patterns.md |
| Library-First/CLI-First | references/library-first.md |
| Quality Gates | references/quality-gates.md |
| Purposeful Code | references/purposeful-code.md |
For Drupal domain knowledge beyond bundled references, fetch the guide index:
Index: https://camoa.github.io/dev-guides/llms.txt
Likely relevant topics: forms, config-forms, entities, plugins, routing, services, caching, config-management, render-api, security, sdc, js-development, views, blocks, layout-builder, media, migration, recipes, taxonomy, jsonapi, image-styles, icon-api, eca, github-actions, ai-content, custom-field, klaro, testing, tdd, solid-principles, dry-principles
Usage: WebFetch the index to discover available topics, then fetch specific topic pages for decision guides, patterns, and best practices.
Activate when:
architecture-drafter agentLoaded from plugin's references/ folder:
| Keywords Detected | Reference to Load |
|---|---|
| "test", "TDD", "unit test", "kernel test" | references/tdd-workflow.md |
| "service", "dependency", "inject", "SOLID" | references/solid-drupal.md |
| "duplicate", "reuse", "DRY", "extract" | references/dry-patterns.md |
| "form", "drush", "command", "service first" | references/library-first.md |
| "complete", "done", "quality", "gate" | references/quality-gates.md |
If user has configured a guides_path in project_state.md, search the configured path for relevant files based on keywords in filenames.
Based on detected keywords in the task:
For Drupal-specific architecture decisions:
https://camoa.github.io/dev-guides/llms.txt to discover available topicsOnly fetch topics relevant to the current task — not all topics.
Read {project_path}/project_state.md and look for **Guides Path:** {path}.
If configured: Glob {guides_path}/*.md, match filenames to task keywords, load matches. If not configured: continue with plugin refs and dev-guides only.
From all loaded sources, identify:
Use Edit to add references section to architecture file:
## Development References
### Plugin References (Methodology)
| Reference | Key Patterns |
|-----------|--------------|
| solid-drupal.md | Single responsibility, DI |
| library-first.md | Service → Form → Route |
| tdd-workflow.md | Red-Green-Refactor |
### Dev-Guides Applied (Drupal Domain)
| Topic | Key Decisions |
|-------|--------------|
| drupal/forms/ | ConfigFormBase vs FormBase |
| drupal/entities/ | Content entity vs config entity |
### Custom Guides Applied (if any)
| Guide | Relevant Sections |
|-------|-------------------|
| {user_guide}.md | {sections} |
### Enforcement Points
| Phase | Principle | Source |
|-------|-----------|--------|
| Design | Library-First | references/library-first.md |
| Design | SOLID | references/solid-drupal.md |
| Design | Drupal patterns | dev-guides (online) |
| Implement | TDD | references/tdd-workflow.md |
| Implement | DRY | references/dry-patterns.md |
| Complete | Quality Gates | references/quality-gates.md |
| Complete | Security | dev-guides drupal/security/ |
Tell user what was integrated from each source: plugin methodology, dev-guides topics, and custom guides.
| Type | Location |
|---|---|
| Plugin references (methodology) | {plugin_path}/references/*.md |
| Dev-guides (Drupal domain) | https://camoa.github.io/dev-guides/ |
| Custom guides | User-configured guides_path |
STOP and ask user:
Weekly Installs
1
Repository
GitHub Stars
17
First Seen
Today
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
109,600 周安装