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

domain-first-architecture-delphi领域优先架构 Delphi

Agent Skill

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

总安装

372

周安装

16

GitHub Stars

公开资料未说明

下载量

131
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:domain-first-architecture-delphi(领域优先架构 Delphi)
来源仓库:https://github.com/cygnusfear/agent-skills
仓库路径:skills/domain-first-architecture-delphi
安装命令:
npx skills add https://github.com/cygnusfear/agent-skills --skill domain-first-architecture-delphi
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/cygnusfear/agent-skills --skill domain-first-architecture-delphi

简介

domain-first-architecture-delphi 暴露代码中隐藏的架构失败:按技术而非领域组织所有权。

  • 适用于单文件包含多领域或千行级混乱代码的重构引导。
  • 通过 Delphi 子技能追问规范路径、别名与最小替换删除序列。
  • 目标是建立每个概念的规范路径与备选路径管理机制。
  • 建议先运行 delphi 子技能获取具体改进建议再实施重构。

SKILL.md

Domain-First Architecture Delphi

Overview

Use Delphi to expose one specific structural failure: the code claims domain modeling, but ownership is organized by technical buckets (all tables together, all init together, all debug together).

This skill does not ask “what files are big?” It asks:

  1. What is the canonical path per concept?
  2. Where are alternate paths?
  3. Which alternates are duplicates vs diverged behavior?
  4. What is the minimum replace→wire→delete sequence?

REQUIRED SUB-SKILL: delphi


Use This Skill When

Use when 2+ are true:

  • A single file defines many domains (or 1000+ lines with unrelated ownership).
  • Init logic for multiple domains is fused into one orchestration block.
  • Adding one domain feature touches 4+ files across 3+ directories.
  • You see repeated “must match X in Y” comments.
  • You suspect multiple sources of truth for one concept.
  • You need ticketable seams, not generic “refactor” advice.

Do not use for style cleanup, naming cleanup, or lint-only reviews.


Required Artifacts (Non-Negotiable)

Every run must produce these artifacts.

1) Concept Inventory

ConceptCanonical PathAlternate Paths FoundDivergence TypeEvidence

Divergence types:

  • DUP_PATH — copy of same logic
  • DIVERGENT_PATH — same concept with behavior drift
  • MULTI_SOURCE — multiple sources of truth
  • LAYER_MISMATCH — ownership split by layer bucket
  • HIDDEN_DAG — init dependency exists but not explicit

2) Architectural Mismatch Matrix

DomainSchema OwnerInit OwnerRuntime OwnerDebug OwnerFiles Touched for One ChangeMismatchSeverity

3) Init Dependency DAG (with payloads)

Must include data carried by each edge, not just control flow.

Example:

spawn_planets -> planet_entity_ids
planet_entity_ids -> seed_markets
planet_entity_ids -> spawn_npcs

4) Replace→Wire→Delete Map (per finding)

Replace: old_fn_a, old_fn_b
Wire: callers X/Y/Z -> canonical_fn
Delete: old_fn_a, old_fn_b after verification

No map = no actionable finding.


Process

Phase 0 — RED Baseline (Before Guidance)

Run 3 workers without this skill prompt. Force scenario tasks:

  1. Planet feature change crossing map+zone+market
  2. Ship/module change crossing spawn+tactics+loot
  3. NPC debug command + trace change

Record:

  • Files touched
  • Dirs touched
  • Cross-layer hops
  • Worker rationalizations (verbatim)

Phase 1 — Parallel Delphi Lenses

Run 5 workers in parallel using worker-prompts.md:

  • Domain ownership mismatch
  • Change-coupling / friction
  • Init DAG extraction
  • False-constraint audit (framework myths vs real constraints)
  • Safe seam extraction

Phase 2 — Synthesis

Merge findings into the 4 required artifacts. Reject any finding lacking file/symbol evidence.

Phase 3 — Ticketization

Create:

  1. One synthesis ticket
  2. One ticket per P0/P1 finding

Each ticket must contain:

  • Goal
  • Exact seam boundary
  • First move-only step
  • Acceptance criteria
  • Verification commands
  • Dependencies

Scoring Rules

Per finding:

  • Severity: P0 | P1 | P2
  • Friction score: files_touched + (dirs_touched * 2) + (cross_layer_hops * 3)
  • Blast radius: low | medium | high
  • Confidence: high | medium | low
  • Evidence: file + symbol + line range

If score or evidence is missing, drop the finding.


Guardrails

  • Do not propose “lint rules” as primary solution for semantic duplication.
  • Do not substitute PR process templates for architectural detection.
  • Do not open with monolithic rewrites.
  • Start with move-only splits + re-exports, then extraction, then behavior changes.
  • Re-run concept inventory after each stage and compare deltas.

Success means alternate paths shrink and divergence labels resolve.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.22%
按下载量换算47

Claude

29.94%
按下载量换算39

Cursor

19.98%
按下载量换算26

Gemini CLI

10.06%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/cygnusfear/agent-skills --skill domain-first-architecture-delphi 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills