跳到正文
cccskills
免费在 GitHub 公开

type-breakdown

Maps a code path's types, abstractions, data flow, side effects, and errors. Use only when the user explicitly asks for a type breakdown of a feature, flow, or code path.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra星标 5(GitHub 5 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Type Breakdown

Walk the user through the requested code paths, types, abstractions, and data flow.

Turn a broad plan into a concrete, type-driven implementation outline. Prefer pseudocode, type signatures, and execution structure over PRD-style prose.

Inspect the existing code before proposing new abstractions.

If the subject is simple, keep the walkthrough concise. Otherwise, use the structure below as a reference. Do not follow it rigidly when a section does not apply.

Use these markers:

[existing]  Confirmed in the codebase
[inferred]  Implied by the current implementation
[proposed]  Introduced by this plan
[?]         Unresolved

Execution Tree

Start from the entry point and expand the call path recursively in execution order.

For every relevant call, show:

  • Fully qualified function, method, class, or module name
  • File where it is defined
  • Parent file and call site
  • Responsibility
  • Input and output types
  • Data transformations
  • Side effects
  • Possible errors
  • Child calls

Use this format:

▼ [existing] CheckoutController.create
  defined: src/checkout/api/CheckoutController.ts:24
  input:   CreateCheckoutRequest
  output:  Promise<HttpResponse<CreateCheckoutResponse>>

  └─▶ [existing] CreateCheckout.execute
      defined: src/checkout/application/CreateCheckout.ts:18
      called:  CheckoutController.ts:42
      input:   CreateCheckoutCommand
      output:  Result<Checkout, CreateCheckoutError>
      effects: reads customer, writes checkout

      ├─▶ CustomerRepository.find
      ├─▶ Checkout.create
      └─▶ CheckoutRepository.save

Use × N for repeated calls over collections. Do not invent line numbers when they are unavailable.

Type Flow

Show how data becomes progressively more constrained:

unknown
  → CreateCheckoutRequest
  → CreateCheckoutCommand
  → ResolvedCheckoutInput
  → Checkout
  → CheckoutRow
  → CreateCheckoutResponse

Identify the validation or transformation responsible for each transition.

Type Definitions

Provide pseudocode definitions for the important boundary, application, domain, persistence, state, and error types.

type CreateCheckoutCommand = {
  customerId: CustomerId;
  items: NonEmptyArray<CheckoutItemInput>;
};

type CreateCheckoutError =
  | { type: "CustomerNotFound"; customerId: CustomerId }
  | { type: "InvalidCheckout"; cause: CheckoutValidationError }
  | { type: "PersistenceFailure"; cause: PersistenceError };

Prefer domain-specific types over primitive strings and numbers when they encode identity, validation, units, or invariants.

Error Flow

Show where each error originates and how it is mapped and propagated:

UniqueConstraintViolation
  → PersistenceError.Conflict
  → CreateCheckoutError.PersistenceFailure
  → HTTP 409

Implementation Outline

Finish with:

  1. Proposed functions and type signatures
  2. Type ownership by file or module
  3. Existing code that must change
  4. New files or abstractions required
  5. Unresolved design questions

Keep the output concrete, source-aware, and directly reviewable as an implementation plan.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Transcribes local audio into Markdown with Gemini 3.5 Transcribe, including speaker labels and provider timestamps. Use for interviews, meetings, lectures, podcasts, voice notes, and similar recordings.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

better-ui

免费

Design engineering principles for making interfaces feel polished. Use when building UI components, reviewing frontend code, implementing animations, hover states, shadows, borders, micro-interactions, enter/exit animations, choosing or reviewing icons, or any visual detail work. Triggers on UI polish, design details, "make it feel better", "feels off", stagger animations, theme switch transitions, border radius, optical alignment, image outlines, box shadows, icons, icon stroke weight, icon states, motion restraint.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

Explores and validates a feature, component, workflow, or behavior change before implementation. Use when work needs clarified intent, compared approaches, and an approved direction.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

bro

免费

Restates the previous response in plain, concise language. Use only when the user invokes bro or explicitly asks for a simpler explanation.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

Generates or edits raster images through OpenAI's Image API. Use for text-to-image work, reference-based edits, masks, transparent assets, and product or editorial visuals.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

Applies language-neutral engineering standards when writing or reviewing code, especially around boundaries, failures, domain models, dependencies, tests, and type safety.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

查看 iurysza 的全部技能

报告此技能的问题