Webページの移動やフォーム入力、クリックをエージェントに任せ、情報抽出や画面保存、操作前後の比較まで行います。ブラウザ作業の自動化やWebアプリの確認に使えるスキル。
- フォーム入力やクリックを自動化したいとき
- Webページのテキスト抽出
- ページのスクリーンショット・PDF保存
既存の要件や調査資料をもとに、対話で技術設計書を作成します。システム全体の構成からコード内部の形へと順に検討し、決まった内容を図や型定義とともに整理します。
Only use when the user explicitly invokes this skill by name.
実行スコア 未検証
インストール方法を見る要件や調査資料をもとに、実装方法を示す技術設計書「Technical Design Document(TDD)」を作成します。まずシステム間の連携やデータの流れを決め、承認後に関数、ファイル構成、依存関係などコード内部の設計へ進みます。選択肢と利点・欠点を一問ずつ検討し、決定内容を文書に反映します。
実装前に構成や処理の分担を合意したいチームに向いています。正式な要件定義書がなくても、チケットや調査文書など手元の情報から始められます。図、型定義、呼び出しの流れなどを用い、判断に必要な内容を読みやすい設計書にまとめます。
スキル名を明示して呼び出す必要があります。.humanlayer/tasks/内の資料と付属テンプレートを利用する手順です。システム設計とコード内部の設計には、それぞれ利用者のレビューと承認が必要です。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
You are creating a Technical Design Document (TDD): the artifact that turns whatever product context exists into a technical design the team can build from. It answers HOW we build something - not WHAT or WHY. Leave product requirements and UX to the upstream product context.
You run the design as a guided conversation in two ordered phases:
You fully settle and get the user's sign-off on the System Design before you open the Program Design. Within each phase you grill the user one question at a time and re-work the document after every answer so it always reads as a coherent design - never a transcript of Q&A.
Exactly one question per message. 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 decision tree one decision at a time: present the decision with its options, tradeoffs, and your recommendation, 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. 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.
When you flush a resolved decision, re-work the relevant section rather than appending to it. Fold the decision in: rewrite prose, redraw a diagram, reorder or remove earlier content as needed. A single decision often revises parts of the section that have already started to emerge - four questions into the program design, the right move may be to restructure two paragraphs you wrote earlier. Capture each decision in whatever form conveys it best - a diagram, signature, or sketch - reaching for one when the decision calls for it, regardless of whether the question itself used one.
The doc is always a cohesive description of what's known - never a log. At any point in the conversation, the System Design and Program Design sections should read like a design someone wrote on purpose: high-level, coherent, and current - not a list of answers, and not a changelog of decisions. Treat each answer as a reason to re-paint: restructure, reorder, rebuild, and reorient the section so it stays a clean, unified description of everything decided so far. Rewriting entire sections as you go is expected, not exceptional. Favor a smaller, sharper section over an accreting pile of bullet points.
Show, don't tell. Reach for a diagram, type signature, or code-shape sketch instead of paragraphs of prose. A quick diagram communicates more than a wall of text. Keep artifacts up to date as decisions evolve.
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. Lead with the point, then support it.
Leverage, not exhaustiveness. The TDD should let the user decide, align, and re-steer the implementation without loading every detail into their head. Prefer the smallest set of diagrams, signatures, and sketches that reveal the important decisions and tradeoffs.
Get more context when you need it. When a decision depends on how the codebase actually works, spawn Agent() calls (codebase-analyzer, codebase-pattern-finder, web-search-researcher, or the library researcher) before presenting options. Fold any new findings back into the research artifact.
There is no required upstream artifact. The product context might be a full PRD, or just a ticket plus a research doc, or only a couple of sentences describing what the user wants inside an existing research document. Work from whatever is present - a PRD is not required.
Keep the skeleton as minimal as possible. No preamble, no setup, no summaries. The faster you reach the first question, the more the user stays engaged in building the TDD. Write only:
type: design-tdd, plus the top-level titleToday's reality and the target both get expressed inside the System Design and Program Design during the interview (Steps 3 and 5), so the skeleton itself stays empty.
Then respond immediately by opening the System Design phase with the first system-design question - at most one short orienting line, then the question. For example:
<guidance> ## Markdown formattingI've started the TDD. First question: should the new sync run inline in the request, or as a background job after the write commits?
- Inline - simplest, but the client waits on the upload...
- Background job - returns fast, but needs a queue and a retry path...
I'd lean background job because the upload shouldn't block the response - which way do you want to go?
</instructions>
When you write markdown that itself contains a code block showing other markdown (for example a fenced block that contains its own fence), use 4 backticks for the outer fence so the inner 3-backtick block doesn't close it early:
# Example heading
```bash
npm install example
```
</guidance>
</step>
<step index="3" name="system-design">
<instructions>
Design the cross-component architecture. System Design is about behavior *between* components - how services, endpoints, schemas, queues, stores, and external systems interact - not the code inside any one of them.
Convey how the system changes: what exists today and what's new or different. Express the delta so the reader understands the change at a glance.
Ask exactly one question per message, walking down each branch of the design tree. Resolve one decision, let it inform the next, and only then ask the next. Presenting 2-3 options to choose between is still one question - don't stack multiple decisions into one message, and don't append a second question or an "any feedback?".
For each decision: present a single decision with options (as diagrams / signatures / endpoint shapes when that's the clearest form) and your recommendation -> work back and forth until the decision is resolved (clarifying questions and pushback are part of this, not a cue to patch) -> only then re-work the System Design section so it absorbs the decision, keeping it one coherent architecture. Reach for a diagram, signature, or sketch whenever it captures the decision best.
Use the representations in the guidance below; pick the form that makes each decision clearest. </instructions>
<guidance> ## System Design representationsMermaid diagrams for control flow, data flow, and component interactions:
sequenceDiagram
participant Client
participant Service
participant Store
Client->>Service: request
Service->>Store: read/write
Store-->>Service: result
Service-->>Client: response
High-level type signatures for the contracts that define the boundary (use the codebase's language):
createResource(input: CreateResourceInput) -> Resource
Endpoint / message shapes for the interfaces between components - routes, message definitions, or request/response schemas in whatever transport the codebase uses (REST, RPC such as gRPC, GraphQL, queue events, etc.):
PUT /api/resources/:slug
request: { destination: string }
response: { resource: Resource }
Data contracts when a schema is part of the cross-component agreement:
CREATE TABLE artifact_sync_status (
artifact_id UUID PRIMARY KEY REFERENCES artifacts(id),
content_hash TEXT NOT NULL,
cloud_permalink TEXT
);
If the codebase uses an ORM or a schema-definition library, the equivalent ORM-specific definition may be clearer than raw SQL - use whatever form matches the project.
When a concept is too complex for Mermaid or plain text - combining data flow, structure, annotations, or side-by-side comparisons - write a focused HTML artifact and display it inline:
.humanlayer/tasks/{task-slug}/diagram-{description}.html.humanlayer/tasks/{task-slug}/diagram-{description}.html
If you are writing an HTML artifact, read {SKILLBASE}/references/artifact_template.html and follow it. Copy its <style> block and build your content in the body using its prose elements and utility classes (.card, .badge*, .stat*, .ba). The artifact must follow the template so it matches this application, not the codebase the TDD is about.
</guidance>
I think the system design is complete. Since we've been building it up decision by decision, can you read the System Design section top to bottom and confirm it hangs together before we move on to program design?
Wait for the user's approval. Incorporate any fixes they raise. Do not open the Program Design phase until the user signs off on the System Design. </instructions>
</step> <step index="5" name="program-design"> <instructions> Now design the in-code shape under the **Program Design** header.Ask exactly one question per message, walking down each branch of the design tree. Same rhythm as system design: resolve one decision, let it inform the next, re-work the section after each answer. Presenting 2-3 options to choose between is still one question - don't stack multiple decisions into one message, and don't append a second question or an "any feedback?".
Almost every message should carry a code block. Program design is a discussion about the shape of code, so visualize it richly rather than describing it in prose: show each option as a concrete code-shape sketch - a diff, a call-stack tree, a file-tree diff, a component tree, a type signature, or pseudocode (use the views in the guidance below). When you present 2-3 options, render each one as its own code block so the user compares the actual shapes side by side, not your description of them. A message that asks a program-design question with no code block should be the rare exception - if you catch yourself explaining a code change in words alone, convert it into one of the views before sending.
For each decision: present a single decision with options as concrete code-shape sketches and your recommendation -> work back and forth until the decision is resolved (clarifying questions and pushback are part of this, not a cue to patch) -> only then re-work the Program Design section so it absorbs the decision, keeping it one coherent description of the code shape. A resolved decision often updates the call tree or file shape you already started, so restructure and redraw those in place.
Use the views in the guidance below that fit the change. </instructions>
<guidance> ## Program Design viewsBe concrete but selective - include the views that clarify the design.
Call-stack tree - for services, CLIs, workers, or any orchestration / control-flow change. Show the important calls, not every frame.
entrypoint
runCommand
handleCreateResource
ResourceClient.create(input)
POST /resources
renderResult
Use diff syntax only when it highlights changed/added/removed calls; if most of the snippet is net-new, plain text is clearer.
entrypoint
runCommand
+ handleCreateResource
- legacyCreateFlow
Frontend component tree - UI changes. Show production components, their state/local data, and module/package boundaries (the example below is React/TSX - adapt to whatever UI framework the codebase uses).
<ResourcePage> (apps/example/src/routes/resource.tsx)
useResourceActions()
<ResourceToolbar>
<CreateResourceDialog> (packages/ui)
useFormState()
Use diff syntax only when it highlights changed/added/removed components, props, or state.
<ResourcePage> (apps/example/src/routes/resource.tsx)
useResourceActions()
+ useOptimisticResourceState()
<ResourceToolbar>
+ <CreateResourceDialog> (packages/ui)
File-tree diff - broad refactors or when file responsibility is a design decision. Format like tree output so depth is easy to scan; keep it high-level.
src
└── resource
+ ├── resource-client.ext # NEW - wraps API contract calls
~ └── resource-route.ext # MODIFIED - wires create action into UI
Dependency-injection map - the seams and injected dependencies that matter, grouped by the object/workflow that receives them. Explain what each dependency lets the code do; avoid raw constructor dumps.
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
Internal method signatures for key new functions not captured in system design (use the codebase's language):
resolveTarget(items: Item[], cursor: Cursor) -> ItemId | null
Pseudocode for complex algorithms or logic - english-y, not a programming language:
on(artifactSave)
if artifact.unchanged(oldHash)
return cached permalink
else
objectStore.upload(artifact.content)
update local cache with new hash and permalink
return fresh permalink
The same HTML-artifact escape hatch from the System Design step applies here - use a focused inline HTML artifact when code shape, data flow, and annotations are clearer together than in plain text. Base any HTML artifact on {SKILLBASE}/references/artifact_template.html so it matches this application's visual language.
</guidance>
I think the program design is complete too. Can you review the Program Design section and confirm the code shape looks right?
Wait for the user's approval and incorporate any fixes. </instructions>
</step> <step index="7" name="wrap-up"> <instructions> When both phases are approved, read the final answer template and follow it exactly (it points to the next step - the structure outline): `Read({SKILLBASE}/references/tech_design_final_answer_resolved.md)`. Include cloud permalinks if available. </instructions> </step>まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
Webページの移動やフォーム入力、クリックをエージェントに任せ、情報抽出や画面保存、操作前後の比較まで行います。ブラウザ作業の自動化やWebアプリの確認に使えるスキル。
曖昧で読みにくい英文を、語の意味をそろえた短い能動態の文へ書き直すスキル。指示文やツール説明を見直し、修正理由と変更前後を表で確認できます。
GitHubのPRの状態、レビューの会話、CI失敗のログを専用スクリプトで収集し、変更の確認状況や未解決の指摘、失敗したジョブとステップを調べるスキル。
リリース時に対象パッケージの基準バージョンを更新し、関連ファイルの同期と生成結果を検証して、コミットからPRブランチへのプッシュまで進めるスキル。
Git のコミット間や作業中のコードで、関数の呼び出し構造の違いを確認します。呼び出しツリーの表示や、指定した関数へ至る経路の調査にも使えます。
ターミナルからブラウザのクリックや入力、ページ移動を自動化し、通信やエラー、表示速度も調べられる、Chrome DevToolsのCLI操作を支援するスキル。