本文へ移動
cccskills
無料GitHub で公開日本語紹介

iterate-tech-design

既存の技術設計書をフィードバックに沿って見直し、構成やデータの流れ、コード構造の選択肢を図で示しながら、一つずつ判断を固めて文書へ反映するスキル。

原文原文の説明を見る

Only use when the user explicitly invokes this skill by name.

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 技術設計書に指摘を反映したいとき
  • 未決定の構成やコード構造の比較
  • データの流れや役割を図で整理したいとき
  • 技術的な決定を製品要件にも反映したいとき

日本語での紹介

できること

既存の技術設計書(TDD)を、利用者のフィードバックと関連資料に基づいて改善します。部品間の動作やデータの流れを扱う System Design と、ファイルや関数などコード内の構造を扱う Program Design を分けて整理します。選択肢は図やコード例で示し、判断が固まった内容を該当箇所へ織り込んで、設計書全体のつながりを保ちます。

こんなときに便利

設計レビューの指摘を反映したいときや、未決定の構成を一つずつ相談したいときに向いています。既存コードのパターンを調べて選択肢を比較し、必要に応じて Mermaid の図や構造のツリーを使って説明します。技術的な決定が製品の範囲や操作体験に影響する場合は、製品要件書(PRD)やモックアップも更新します。

使い方の例

「iterate-tech-design で、この指摘をTDDに反映して」 「iterate-tech-design で、未決定の設計を一問ずつ相談したい」

注意点

スキル名を明示して呼び出す前提です。.humanlayer/tasks/ 内のTDDと関連資料を読み、判断が確定してから元の文書を編集します。各変更の後は利用者の指示を待ち、複数の判断をまとめて進めません。追加調査では専用エージェントを利用する場合があります。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(3)

  • SKILL.md15.8 KB
  • references/artifact_template.html6.9 KB
  • references/tech_design_final_answer_resolved.md604 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Iterate TDD

You are refining an existing Technical Design Document (TDD) based on the user's feedback. The reflexes are the same as building one from scratch; the difference is that you work from feedback and resolve one thing at a time rather than running the full two-phase interview.

Guide the conversation, don't execute autonomously. After each change or answered question, stop and ask the user what's next. Never grind through multiple updates without user input between each one.

Re-paint, don't append. After every change, re-work the affected section so the System Design and Program Design always read as a design written on purpose - high-level, coherent, current - never a Q&A log or a changelog of decisions. Re-painting a whole section is expected; just edit the document in place rather than rewriting it wholesale in one pass.

Exactly one question per message. When you grill, end every message with a single question - never a second question, a stacked follow-up, or an "and also...". Offering 2-3 options to choose between is still one question; stacking multiple independent decisions into one message is not allowed. Walk down the design tree one decision at a time, then stop and wait. If several things feel open, ask only the one that unblocks the rest - the others come after the answer. Never ask for a vague "any feedback?".

Run each decision as an interview loop; patch the doc only once the decision is resolved. When you grill, ask your one question, then work back and forth until it's settled. The user won't always answer outright - they may push back, think out loud, or ask a clarifying question of their own. That's still part of the conversation, not a decision: answer it, keep the discussion going, and leave the document alone. A single user message is not by itself a cue to edit - patching mid-discussion churns the design and derails the back-and-forth. Only once the decision is actually resolved do you flush it to the doc and move on to the next question.

Show, don't tell. When discussing architecture, data flow, or code structure, reach for a diagram, type signature, or code-shape sketch and display it inline. A quick diagram communicates more than paragraphs of prose.

Make it read like a document a human designed for other humans. A reader should be able to skim the headers alone and come away with the shape of the design. Give every section and sub-point a header that states its takeaway - the way a good slide title asserts its message ("Sync runs as a background job after the write commits"), not a generic topic label ("Sync"). Keep paragraphs short, and place each diagram, signature, or snippet immediately beside the prose it illustrates - never let the text become a wall with all the visuals piled at the end. When you re-paint a section, fix these too: split walls of text, add takeaway headers, and pull diagrams up next to their prose.

System design vs program design: Keep these concerns distinct. System design explains behavior across components: sequence diagrams, flow charts, service/component boundaries, data flow, external interfaces, and high-level endpoint/schema/method contracts (in whatever transport the codebase uses). Program design explains the in-code shape: call-stack trees, frontend component trees, file-tree diffs, dependency-injection maps, and method signatures not captured in system design.

The goal is leverage: The TDD should help the user decide, align, and re-steer the implementation without loading the entire implementation into their head. Prefer the smallest set of diagrams, trees, signatures, and file-shape examples that reveal the important decisions and tradeoffs. Don't dump exhaustive implementation detail just because it's available.

Initial Check

If the user calls this with no instructions or feedback, ask them:

I'm ready to iterate on the TDD. Would you like to:
1. Provide specific feedback or changes to incorporate
2. Continue grilling the design - I'll walk the system and program design one decision at a time, presenting each with options and my recommendation
3. Have me surface additional technical design questions

Let me know which direction, or share your feedback directly.

Then wait for the user's response before proceeding.

Continue Grilling Mode

If the user asks to "continue working through questions" or "keep grilling" or similar:

  1. Read the TDD document and identify the unresolved or still-sparse parts of the System Design and Program Design (don't expect a pre-written question list in the doc - track what's unresolved yourself)
  2. Surface the next decision and present it ONE AT A TIME:
    • State the question clearly
    • Provide 2-3 options with tradeoffs
    • Give your recommendation based on codebase patterns
    • For system design questions, show the options as diagrams or high-level types or rpc method signatures
    • For program design questions, show concrete code-shape options such as call-stack trees, component trees, file-tree diffs, or dependency-injection maps
    • When you need more codebase context, spawn Agent() calls to research existing patterns before presenting options
    • Work back and forth until the decision is resolved - clarifying questions and pushback are part of the conversation, not a cue to patch the doc
  3. Once the decision is resolved:
    • Build out the Document based on the resolved decision - add/enhance System Design or Program Design (or both), don't just log the answer
    • Update diagrams, descriptions, or code blocks to reflect the chosen direction
    • Weave the decision into the doc - don't leave a question log behind
    • Present the next decision
  4. When the design is fully fleshed out, read the resolved template

Steps

  1. Find and read the task directory:

    • You should know the task directory, if not ask the user
    • ls -La .humanlayer/tasks/TASKNAME to find all related documents in the task directory. Do NOT use the Grep or Glob tools, or ls -l (lower case L) as the directory may be a symlink.
    • Read ALL files in the task directory, including the current TDD and prior artifacts (ticket.md or task.md, research, design discussion, PRD if present, etc.)
    • IMPORTANT: Use the Read tool WITHOUT limit/offset parameters to read entire files, never read files partially
    • IMPORTANT: DO NOT use Glob or Grep on .humanlayer/tasks — it may be a symlink
  2. If the user gives any input:

    • DO NOT just accept the correction blindly
    • Read the specific files/directories they mention
    • If you don't have enough info, spawn Agent() calls to verify the correct information
    • Only proceed once you've verified the facts yourself
  3. Optional - Spawn parallel Agent() calls for research:

    • If not clear from existing context, spawn Agent() calls to research different aspects concurrently
    • Use the right agent for each type of research:

    For deeper investigation:

    • codebase-locator - To find more specific files (e.g., "find all files that handle [specific component]")
    • codebase-analyzer - To understand implementation details (e.g., "analyze how [system] works")
    • codebase-pattern-finder - To find similar implementation patterns we can model after

    Each agent knows how to:

    • Find the right files and code patterns
    • Identify conventions and patterns to follow
    • Look for integration points and dependencies
    • Return specific file:line references
<important if="the user asks you to find how things work or add detail about existing functionality"> prefer to use an initial pass with one or more Agent() calls before reading files yourself <else if="the user gives straightforward feedback that doesn't require loading more codebase context"> skip Agent() calls if you already have the context </else> </important>
  1. Update document (if changes needed):

    • Update the TDD document at its original path using the Edit tool, editing in place rather than rewriting it wholesale
    • Re-work the System Design or Program Design as needed, preserving the distinction between cross-component behavior and in-code structure
    • Express how the system changes (what exists today vs. what's new) inside the System Design itself - there is no separate current-state / desired-end-state section
    • Update mermaid diagrams to reflect architectural changes
    • Update patterns with new code examples if discovered
  2. Update PRD/mockups (if technical decisions affect product):

    • If a technical decision affects product scope or UX, update the PRD and/or mockups
    • Technical discoveries often reveal product implications
  3. Stop and ask what's next:

    • After incorporating the user's feedback, STOP
    • Present the change you made and ask: "What would you like to work on next?"
    • If parts of the design are still unresolved, offer to work through them one at a time
    • Never proceed to the next change without user direction

<content_guidance> Outline system design - cross-component architecture, data flow, control flow, public contracts, and diagrams; express how the system changes (what exists today vs. what's new) inside this section rather than in a separate current/desired-state section

Outline program design - How we're building this in code, what components are involved, call stacks, component trees, file-tree diffs, dependency injection hierarchies, and what patterns we'll follow

Discuss technical decisions

  • For each major technical choice, present options with pros/cons
  • Make recommendations based on codebase conventions
  • Record final decisions with rationale
  • Update architecture diagrams to reflect decisions

Present patterns to follow

  • Identify existing patterns in the codebase that should be followed
  • Include file locations and multiline code snippets showing the pattern

</content_guidance>

  1. When the user says they're done or the design is fully fleshed out, read the final output template: Read({SKILLBASE}/references/tech_design_final_answer_resolved.md)
    • Respond following the selected template exactly. Do not include a summary or other information. Include cloud permalinks if available.

Document Precedence

When documents conflict, the most recent document wins: TDD > PRD > design discussion > research > ticket

The TDD captures technical decisions made AFTER reading the PRD, design discussion, ticket, and research. If an earlier document says one thing but the TDD resolved it differently, follow the TDD.

<guidance> ## Mermaid Diagrams

Diagrams are how you communicate architecture visually. Use them liberally when discussing technical design.

Creating diagrams:

  • Use mermaid syntax directly in markdown
  • Keep diagrams focused on the decision at hand
  • For diagrams or concepts too complex for Mermaid or plain text, get creative with a one-off HTML artifact displayed inline with ```task-artifact syntax
  • Common diagram types:
    • flowchart for control flow and data flow
    • sequenceDiagram for component interactions
    • erDiagram for data models
    • classDiagram for type hierarchies

Example:

sequenceDiagram
    participant Client
    participant API
    participant DB
    Client->>API: POST /resource
    API->>DB: INSERT
    DB-->>API: OK
    API-->>Client: 201 Created
</guidance> <guidance> ## HTML Diagrams

Use HTML artifacts when a concept is too complex for Mermaid or plain text, especially when you need to combine code shape, data flow, UI structure, colors, annotations, or side-by-side comparisons.

Creating HTML artifacts:

  • Write HTML files to .humanlayer/tasks/{task-slug}/diagram-{description}.html
  • Read {SKILLBASE}/references/artifact_template.html and follow it - copy its <style> block and build your content with its prose elements and utility classes so the artifact matches this application's visual language, not the codebase the TDD is about
  • Keep each artifact focused on the decision at hand
  • Use realistic labels, not lorem ipsum

Displaying HTML artifacts inline:

.humanlayer/tasks/{task-slug}/diagram-{description}.html
</guidance> <guidance> ## Program Design Views

Program design views should be concrete but selective. Include the views that clarify this TDD; do not add every view just to satisfy a checklist.

Call-stack tree: use for backend, CLI, daemon, worker, or orchestration changes.

entrypoint.ts
  handleUserIntent
    orchestrateChange
      validateInput
      persistChange

Use diff syntax for call-stack trees only when it helps highlight changed, added, or removed calls. If most of the snippet is net-new, plain text is usually clearer.

 entrypoint.ts
   handleUserIntent
+    orchestrateChange
-    legacyChangeFlow

Frontend component tree: use for UI changes. Show production components, hooks, state/action changes, and package boundaries.

<ResourcePage> (apps/example/src/routes/resource.tsx)
  useResourceActions()
  <ResourceToolbar>
    <CreateResourceDialog> (packages/ui)

Use diff syntax for frontend component trees only when it helps highlight changed, added, or removed components, hooks, props, or state. If most of the snippet is net-new, plain tsx or text is usually clearer.

 <ResourcePage> (apps/example/src/routes/resource.tsx)
   useResourceActions()
+  useOptimisticResourceState()
   <ResourceToolbar>
+    <CreateResourceDialog> (packages/ui)

File-tree diff: use for broad refactors or when file responsibility is a design decision. Format this like tree output so directory depth is easy to scan. Use diff syntax when it helps distinguish changed, added, or removed files; if most of the tree is net-new, plain text is usually clearer. Keep it high-level; exhaustive file changes belong in the structure outline and plan.

 src
 └── resource
+    ├── resource-client.ts      # NEW - wraps API contract calls
~    └── resource-route.tsx      # MODIFIED - wires create action into UI

Dependency-injection map: use when reviewers need to understand seams and injected dependencies. Group dependencies by the object or workflow that receives them, and explain what each dependency lets the code do.

createResourceWorkflow
  receives resourceStore    -> persists resources
  receives eventPublisher   -> emits resource-created events after commit
  receives clock            -> makes timestamps deterministic

ResourcePage
  receives createResource   -> UI does not know transport details
  receives queryClient      -> updates cached resource list after success
</guidance> <guidance> ## Referencing the PRD

If a PRD exists:

  • Reference it for product requirements, user flows, and mockups
  • Don't duplicate PRD content into the TDD
  • Use phrases like "Per the PRD mockup..." or "As specified in the PRD..."
  • The TDD answers HOW we build what the PRD describes
  • If a technical decision affects product scope or UX, update the PRD and/or mockups to reflect it

If no PRD exists:

  • Fall back to ticket and research for requirements
  • Be more explicit about functional requirements since there's no PRD to reference </guidance>
<guidance> ## Cloud Permalinks

When you write or edit documents in .humanlayer/tasks/, a cloud permalink is automatically provided in the hook response.

  • The permalink appears as additionalContext after Write/Edit/MultiEdit/Read operations
  • Use this permalink in your final output for easy navigation
  • Example format: http(s)://{DOMAIN}/artifacts/{artifactId}

Markdown Formatting

When writing markdown files that contain code blocks showing other markdown (like README examples or SKILL.md templates), use 4 backticks (````) for the outer fence so inner 3-backtick code blocks don't prematurely close it:

# Example README
## Installation
```bash
npm install example
```
</guidance>

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

agent-browser

無料概要あり

Webページの移動やフォーム入力、クリックをエージェントに任せ、情報抽出や画面保存、操作前後の比較まで行います。ブラウザ作業の自動化やWebアプリの確認に使えるスキル。

  • フォーム入力やクリックを自動化したいとき
  • Webページのテキスト抽出
  • ページのスクリーンショット・PDF保存
humanlayer/humanlayer1.2万2026年10月23日 更新

asd-ste100

無料概要あり

曖昧で読みにくい英文を、語の意味をそろえた短い能動態の文へ書き直すスキル。指示文やツール説明を見直し、修正理由と変更前後を表で確認できます。

  • 別のエージェントへの英文指示の明確化
  • 英語のツール説明やエラー文の簡素化
  • 英語を母語としない読者向けの文章整理
humanlayer/humanlayer1.2万2026年10月23日 更新

better-github-skill

無料概要あり

GitHubのPRの状態、レビューの会話、CI失敗のログを専用スクリプトで収集し、変更の確認状況や未解決の指摘、失敗したジョブとステップを調べるスキル。

  • PRの状態をまとめて確認したいとき
  • 未解決のレビューの会話の確認
  • CIの失敗ジョブとステップの調査
humanlayer/humanlayer1.2万2026年10月23日 更新

bump-version

無料概要あり

リリース時に対象パッケージの基準バージョンを更新し、関連ファイルの同期と生成結果を検証して、コミットからPRブランチへのプッシュまで進めるスキル。

  • リリース用のバージョンを更新したいとき
  • 関連ファイルのバージョン表記の同期
  • プッシュ前の生成バージョン検証
humanlayer/humanlayer1.2万2026年10月23日 更新

calldiff

無料概要あり

Git のコミット間や作業中のコードで、関数の呼び出し構造の違いを確認します。呼び出しツリーの表示や、指定した関数へ至る経路の調査にも使えます。

  • 変更前後の関数呼び出しを比較したいとき
  • ブランチ間の呼び出し構造レビュー
  • 起点から目的の関数への経路調査
humanlayer/humanlayer1.2万2026年10月23日 更新

chrome-devtools-cli

無料概要あり

ターミナルからブラウザのクリックや入力、ページ移動を自動化し、通信やエラー、表示速度も調べられる、Chrome DevToolsのCLI操作を支援するスキル。

  • フォーム入力やページ移動の自動化
  • ページや要素の画面撮影
  • 通信内容やコンソールエラーの調査
humanlayer/humanlayer1.2万2026年10月23日 更新

humanlayer のスキルをすべて見る

このスキルの問題を報告する