brownfield-drift
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "brownfield-drift" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6560f0ad3c8ae7202041900777c3b7ca92afc024c2ec1274ef603a063b0e89ff. Verify the upstream source and version against https://github.com/wednesday-solutions/ai-agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Skill to enforce architecture boundaries defined in PLAN.md. Used when a PR crosses module/service boundaries, when developers ask whether architecture is being followed, or for periodic architecture health checks. Not for querying a module's functionality—use brownfield-chat for that.
Introduction source: third_party · wednesday-solutions · 0.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Audience
- 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
- Limits and differences
- If the project has no constraints block, add one to PLAN.md:
- Testing
- Not tested
Browse files
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
- Run
wednesday-skills driftvia Bash tool - Report violations with:
- The specific edge that violates the rule
- The commit that introduced it (when available)
- The suggested fix per PLAN.md intent
- For PR reviews: run
wednesday-skills drift --since <base-commit>to only report new violations - 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)Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决工程实践中架构腐化的核心痛点
- 适用于 PR 审查、健康检查等多种高频场景
- 具备完整检测-报告-修复建议闭环
Highlights
- 触发场景描述完整且边界清晰
- 明确排除误用场景并引导至正确 Skill
- 覆盖多种变体使用方式
Areas to improve
-
缺少显式 Example Usage 章节 Reported severity: Minor
文档结构完整但缺少独立的示例章节
Recommendation: 建议增加 Example Usage 章节展示完整使用流程
Highlights
- 执行步骤清晰分阶段说明
- CLI 参考完整覆盖主要参数
- Never 章节明确禁止行为提升可靠性
Areas to improve
-
description 写错位置 Reported severity: Minor
顶层 description 字段为空,实际描述内容在 skill_body 内部
Recommendation: 建议将 description 内容移至顶层 frontmatter
Highlights
- 工具来源和参数使用正确
- 覆盖无 PLAN.md、重复违规等主要异常场景
- 明确禁止自动修复并要求人工确认
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.