↑ ↓ 移动 · Enter 打开 · Esc 关闭点按一个结果

架构
skill · design 类 · opus

search-architect

把搜索索引设计为可重建的投影:mapping、查询、写入、重建和延迟。

skill · designopus写入 23-busca.md仅限 docs/use-cases/UC-*/**
§ 它写出的文件

23-busca.md,逐块说明

bank-app 还没有 23-busca.md。以下是 SKILL.md 所述该分文件包含的块。

## 1 · Projection

One row per field — step 4

## 2 · Index

Alias, version, the mapping file block, shards, replicas per environment, refresh interval

## 3 · Queries

Per port method — step 6

## 4 · Writes

The indexer's rules — step 7. none outside an indexer case

## 5 · Rebuild

The sequence and the source port — step 8. none when no rebuild is designed in this case

## 6 · Lag

The duration consumed, next to Freshness, and the remainder

## 7 · Failure

Per port method: the family and what the read does

## 8 · Requirements to other partials

One row per requirement, target partial named

## 9 · Declared dependencies

Coordinates; version empty when Spring Boot manages it, otherwise the resolved version and its source

## 10 · Configuration

Every property, its value, the reason

## 11 · Deferred

Same shape as every partial

## Compose services

The engine's row

## Design patterns

Step 12b

§ 行为

它读什么、写什么、拒绝什么

skill 自己的契约,取自 SKILL.md,保留原文。

Class

design — the territory is skill_classes.design in @.claude/schemas/extensions.json, and ArchHook.java guard enforces it. Writes inside the use case folder and nothing else.

Reads

docs/use-cases/UC-NNN-<slug>/00-use-case.md (mandatory), 10-domain.md (mandatory), 20-persistence.md of the source's cases, earlier 23-search.md, src/main/resources/search/, pom.xml, docker-compose.yml, the active blueprint's packages.map, @.claude/rules/search.md, @.claude/rules/architecture-ddd.md, @.claude/rules/error-handling.md, @.claude/rules/secrets.md, @.claude/skills/docker-architect/references/compose-service-decision.md, and this skill's references/.

Writes

docs/use-cases/UC-NNN-<slug>/23-search.md. Nothing else — the mapping file lives inside it.

Owns

the search document and its mapping, the index versions and the alias, the query shape and its cursor, the indexer's write rules, the rebuild's adapter and alias swap, the lag the projection consumes, the search dependency and its version, and the search compose row.

Does not decide

whether the case has a search index or which engine (00-use-case.md), the port or the event (10-domain.md), the consumer (25-messaging.md), when the rebuild runs (35-jobs.md), the source's schema (20-persistence.md), or the tests (40-tests.md). Does not write Java, pom.xml, application.yml or docker-compose.yml. Doesn't touch .claude/rules/**.

来源:SKILL.md § Contract(nerviz e4cae27)。

§ guard 与 hook

guard 如何处理它

design 是这个 skill 的类。ArchHook 在 skill 被调用时开启一个阶段,并按该类的领地检查每次写入。右侧文字是 hook 自己的输出。

design 类的 write_allow

  • ✓docs/use-cases/UC-*/**
  • ✓docs/use-cases/BACKLOG.md
  • src/**:迁移和类归执行器
  • docker-compose.yml:另一个类的文件
  • 已批准的用例:其 spec 已冻结

拒绝以退出码 2 结束,消息回到模型。

PreToolUse  Skill(search-architect)
  audit call                       exit 0
  guard call                       exit 0
# a skill of another class replaces the phase
# write_allow: docs/use-cases/UC-*/**, docs/use-cases/BACKLOG.md
§ 编排

它在轨道上的位置

每张卡片是 /new-feature 的一步;箭头带着一步交给下一步的分文件。虚线的步骤仅在用例需要时运行。

/new-feature-implement 之后谁读这份分文件

批准之后,/new-feature-implement 让执行器构建代码。spec 按引用整合,与分文件不一致时以 spec 为准;分文件按章节读取,用于细节。

23-busca.mddocs/use-cases/UC-NNN-…/
按章节读取,用于细节
java-spring-boot-developeragent · executor
写出代码
src/**把一个用例设计成规格,不写代码
← 返回链路