brownfield-drift

用于强制执行 PLAN.md 中定义的架构边界的技能。适用于当 PR 跨越模块或服务边界、开发者询问是否遵循架构,或作为定期架构健康检查时使用。不用于查询模块功能;此类查询应使用 brownfield-chat。

仓库最近推送
GitHub Stars
187
Forks
23
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "brownfield-drift":https://skillpi.com/zh/skills/deepskill-6560f0ad3c8ae7202041900777c3b7ca92afc024c2ec1274ef603a063b0e89ff。安装前核对上游来源和版本:https://github.com/wednesday-solutions/ai-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于强制执行 PLAN.md 中定义的架构边界的技能。适用于当 PR 跨越模块或服务边界、开发者询问是否遵循架构,或作为定期架构健康检查时使用。不用于查询模块功能;此类查询应使用 brownfield-chat。

0 下载

介绍来源: third_party · wednesday-solutions · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
限制与区别
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: brownfield-drift
description: Enforces architecture boundaries defined in PLAN.md. Use when a PR crosses module/service boundaries, when the dev asks "are we following the architecture?", or as a scheduled architecture health check. Not for querying what a module does — use brownfield-chat for that.
permissions:
  allow:
    - Bash(wednesday-skills drift *)
    - Bash(git log *)

When to use

  • Dev asks "are we following the architecture?" or "is this a valid change?"
  • PR touches files near module boundaries or service interfaces
  • Weekly architecture health check
  • Any cross-service import was just added

When NOT to use

  • "What does module X do?" → use brownfield-chat
  • "What breaks if I change X?" → use brownfield-chat
  • Graph coverage is low on a file → use brownfield-fix (it fills gaps before editing)
  • No PLAN.md exists — drift requires machine-readable boundaries in PLAN.md

What to do

  1. Run wednesday-skills drift via Bash tool
  2. Report violations with:
    • The specific edge that violates the rule
    • The commit that introduced it (when available)
    • The suggested fix per PLAN.md intent
  3. For PR reviews: run wednesday-skills drift --since <base-commit> to only report new violations
  4. For a single rule: wednesday-skills drift --rule <rule-name>

Adding constraints to PLAN.md

If the project has no constraints block, add one to PLAN.md:

{
  "boundaries": [
    {
      "rule": "frontend-never-imports-db",
      "description": "Frontend components must never import DB layer directly",
      "from": "src/app/**",
      "to": "src/lib/db/**",
      "type": "forbidden"
    },
    {
      "rule": "no-circular-deps",
      "description": "No circular dependencies anywhere",
      "scope": "**",
      "type": "no-cycle"
    }
  ]
}

Violation types

Type What it catches
forbidden Import from A → B that should never exist
ownership Logic pattern appearing outside its designated owner
no-direct-import Direct import between services that should use API
no-cycle Circular dependency between modules

Never

  • Auto-fix boundary violations — always ask the dev first
  • Flag existing violations on a PR that did not introduce them (use --since)
  • Run on projects without machine-readable PLAN.md constraints
  • Report the same violation twice in one review session

CLI reference

wednesday-skills drift                              # full check
wednesday-skills drift --rule frontend-never-imports-db  # single rule
wednesday-skills drift --since abc1234              # new drift only (for PR review)

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 解决工程实践中架构腐化的核心痛点
  • 适用于 PR 审查、健康检查等多种高频场景
  • 具备完整检测-报告-修复建议闭环
触发精准90/100

亮点

  • 触发场景描述完整且边界清晰
  • 明确排除误用场景并引导至正确 Skill
  • 覆盖多种变体使用方式
结构规范85/100

待提升项

  • 缺少显式 Example Usage 章节 原报告严重程度:轻微

    文档结构完整但缺少独立的示例章节

    改进建议:建议增加 Example Usage 章节展示完整使用流程

亮点

  • 执行步骤清晰分阶段说明
  • CLI 参考完整覆盖主要参数
  • Never 章节明确禁止行为提升可靠性
执行可靠90/100

待提升项

  • description 写错位置 原报告严重程度:轻微

    顶层 description 字段为空,实际描述内容在 skill_body 内部

    改进建议:建议将 description 内容移至顶层 frontmatter

亮点

  • 工具来源和参数使用正确
  • 覆盖无 PLAN.md、重复违规等主要异常场景
  • 明确禁止自动修复并要求人工确认
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。