xiaohongshu
xiaohongshu
clean-architecture-guardian
Clean Architecture準拠性を自動チェック(循環依存・namespace階層・レイヤー間参照制約)。新規実装時・リファクタリング時・Step完了時に使用。Phase B1で97点品質を達成した知見を適用。
Full skill instructions
このSkillは、F# + C# Clean Architecture実装の準拠性を自動的にチェックします。Phase B1で確立した97点品質基準を自動維持します。
Claudeは以下の状況でこのSkillを自律的に使用すべきです:
新規実装時
リファクタリング時
Step/Phase完了時
問題発生時
詳細: rules/layer-separation.md
チェックポイント:
典型的な問題: Error: Circular dependency detected between projects
詳細: rules/namespace-design.md
チェックポイント:
<ProjectName>.<Layer>.<BoundedContext>[.<Feature>]典型的な問題: Error: The type or namespace name 'ProjectManagement' does not exist
チェックポイント:
典型的な問題: 境界を越えた不適切な依存関係
チェックポイント:
典型的な問題: Error: The type 'ProjectId' is used before it is defined
| 観点 | 目標 | Phase B1達成 |
|---|---|---|
| 依存関係の正しさ | 100% | ✅ 100% |
| 循環依存 | 0件 | ✅ 0件 |
| レイヤー責務分離 | 100% | ✅ 100% |
| namespace階層化 | 100% | ✅ 100% |
| Bounded Context分離 | 95%+ | ✅ 97% |
# プロジェクト参照を確認
Grep "ProjectReference" *.csproj *.fsproj
# 不正な依存(Domain → Infrastructure等)を検出
# namespace宣言を確認
Grep "namespace UbiquitousLanguageManager" *.cs *.fs
# 基本テンプレート準拠を検証
# 期待: <ProjectName>.<Layer>.<BoundedContext>[.<Feature>]
# using/open文を確認
Grep "using UbiquitousLanguageManager" *.cs
Grep "open UbiquitousLanguageManager" *.fs
# 境界を越える不適切な参照を検出
# .fsprojファイルのCompile順序を確認
Read src/UbiquitousLanguageManager.Domain/UbiquitousLanguageManager.Domain.fsproj
# Common → Authentication → ProjectManagement順序を検証
❌ 誤り: Domain層からInfrastructure層への参照
<ProjectReference Include="..\UbiquitousLanguageManager.Infrastructure\..." />
修正: 依存関係逆転の原則(DIP)適用
✅ 正しい: Domain層でInterface定義、Infrastructure層で実装
// Domain層
type IProjectRepository = ...
// Infrastructure層(C#)
public class ProjectRepository : IProjectRepository { ... }
❌ 誤り: Bounded Contextなしのフラットnamespace
namespace UbiquitousLanguageManager.Domain
type Project = ...
type User = ... // 異なる境界文脈が混在
修正: Bounded Context別サブnamespace
✅ 正しい: 境界文脈別に分離
namespace UbiquitousLanguageManager.Domain.ProjectManagement
type Project = ...
namespace UbiquitousLanguageManager.Domain.Authentication
type User = ...
❌ 誤り: Application ⇄ Infrastructure 循環参照
修正: Clean Architecture依存方向遵守
✅ 正しい: Infrastructure → Application → Domain(一方向のみ)
❌ 誤り: ProjectManagementがCommonより前
<Compile Include="ProjectManagement\ProjectEntities.fs" />
<Compile Include="Common\CommonTypes.fs" />
修正: 依存順序に並べ替え
✅ 正しい: Commonを最初に配置
<Compile Include="Common\CommonTypes.fs" />
<Compile Include="ProjectManagement\ProjectEntities.fs" />
Doc/08_Organization/Completed/Phase_B1/Step05_namespace階層化.mdDoc/08_Organization/Completed/Phase_B1/Phase_Summary.mdxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience