Agent skill · Code Review & Quality

command-sub-agent

專責處理 CBF (Commanded Behavior Frame) 類型的需求。讀取規格目錄結構,生成/審查 Command Side 設計與實作。支援 Java、TypeScript、Go 多語言。

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill command-sub-agent-knowlet-skills-3131ea80 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/agent/command-sub-agent-knowlet-skills-3131ea80/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Command Sub-agent Skill ## 觸發時機 - analyze-frame 判定 frame_type=CommandedBehaviorFrame 時 - 需要建立/修改 Command Side (寫模型) 的用例、聚合、事件時 - saga-orchestrator 分派 Command 類型任務時 ## 核心任務 1. 讀取規格目錄結構(frame.yaml, machine/, controlled-domain/) 2. 設計/驗證 CQRS Command Side 的用例、聚合與事件流 3. 產出程式碼骨架或審查既有實作 4. 確保 Frame Concerns 都有對應的實作 --- ## 規格目錄讀取 本 Skill 讀取以下規格檔案: ``` docs/specs/{feature-name}/ ├── frame.yaml # 讀取 frame_concerns, cross_context_dependencies ├── requirements/ # 讀取業務規則 │ └── req-{n}-{feature}.yaml ├── machine/ # 讀取 Application 層規格 │ ├── controller.yaml │ └── use-case.yaml ├── controlled-domain/ # 讀取 Domain 層規格 │ └── aggregate.yaml └── cross-context/ # 讀取跨 BC 依賴 └── {context}.yaml ``` --- ## Claude Code Sub-agent 整合 本 Skill 可作為 `runSubagent` 的任務目標: ``` saga-orchestrator → runSubagent → command-sub-agent ├── 讀取規格目錄 ├── 套用 coding-standards ├── 套用 enforce-contract └── 輸出 Command Side 代碼 ``` ### 被分派時的輸入格式 ```yaml task: type: "command" spec_dir: "docs/specs/create-workflow/" language: "typescript" # | java | go output_paths: application: "src/application/use-cases/" domain: "src/domain/" ``` --- ## 工作流程 ### 1. 解析規格 ```yaml # 從 frame.yaml 讀取 problem_frame: "CreateWorkflow" frame_type: CommandedBe

What's inside
Steps it walks through
  1. 觸發時機
  2. 核心任務
  3. 規格目錄讀取
  4. Claude Code Sub-agent 整合
  5. 被分派時的輸入格式
  6. 工作流程
  7. 1. 解析規格
  8. 2. 生成 Use Case
  9. 3. 生成 Aggregate
  10. 4. 整合 Cross-Context
  11. TypeScript 生成範例
  12. Use Case (從 machine/use-case.yaml 生成)
  13. Aggregate (從 controlled-domain/aggregate.yaml 生成)
  14. Go 生成範例
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the command-sub-agent skill do?

專責處理 CBF (Commanded Behavior Frame) 類型的需求。讀取規格目錄結構,生成/審查 Command Side 設計與實作。支援 Java、TypeScript、Go 多語言。

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill command-sub-agent-knowlet-skills-3131ea80 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going