本文へ移動
cccskills
無料GitHub で公開

fortify

Use when the workflow lacks error handling, has been failing in production, or needs retry logic, fallback strategies, and circuit breakers.

日本語の概要は準備中です。原文の説明を表示しています。

sharpdeveye/maestroスター 591(GitHub 591 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.7 KB

SKILL.md(原文)

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

MANDATORY PREPARATION

Invoke /agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run /teach-maestro first. Consult the guardrails-safety reference in the agent-workflow skill for defense-in-depth patterns and error boundary design.


Make the workflow resilient. Every external call will fail eventually — model APIs, tools, databases, third-party services. Fortify ensures the workflow handles failure gracefully.

Fortification Layers

Layer 1: Input Validation

  • Validate all inputs before processing
  • Return clear error messages for invalid input
  • Set size limits on all input fields

Layer 2: Retry with Backoff For transient failures (network errors, rate limits, timeouts):

Retry strategy:
  max_retries: 3
  initial_delay: 1s
  backoff_multiplier: 2
  max_delay: 30s
  retryable_errors: [429, 500, 502, 503, 504, TIMEOUT, CONNECTION_ERROR]
  non_retryable_errors: [400, 401, 403, 404]

Layer 3: Fallback Responses When retries are exhausted:

  • Use a cached previous response (if applicable)
  • Use a simpler/cheaper model as fallback
  • Return a graceful degradation response
  • Escalate to human review

Layer 4: Circuit Breakers When a service is consistently failing:

Circuit breaker:
  failure_threshold: 5 consecutive failures
  state: CLOSED → OPEN (after threshold) → HALF_OPEN (after cooldown)
  cooldown: 60 seconds
  half_open_max_requests: 1

Layer 5: Timeout Controls Every external call needs a timeout:

  • Model API calls: 30-120s depending on task
  • Tool executions: 10-60s depending on tool
  • Database queries: 5-15s
  • Third-party APIs: 10-30s

Fortification Audit

For each component, verify:

  • Input validation present
  • Retry logic for transient failures
  • Fallback for when retries fail
  • Timeout set
  • Error logged with context
  • User gets a meaningful error (not a stack trace)

Recommended Next Step

After fortification, run /evaluate to verify error handling works under realistic failure scenarios.

NEVER:

  • Retry non-retryable errors (authentication failures, validation errors)
  • Retry without backoff (you'll make the problem worse)
  • Swallow errors silently (log and handle, don't ignore)
  • Set infinite timeouts (they'll hang forever)
  • Skip the fallback (retries exhausted with no fallback = user sees an error)

レビュー

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

コメント

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

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

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

0 / 1000 文字

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

同じリポジトリのスキル

Use when the workflow is too slow, too expensive, or both and needs latency, cost, or token usage optimization.

日本語の概要は準備中です。原文の説明を表示しています。

sharpdeveye/maestro5912026年4月29日 更新

Use when porting a workflow to a different AI provider, deployment environment, model tier, or organizational context.

日本語の概要は準備中です。原文の説明を表示しています。

sharpdeveye/maestro5912026年4月29日 更新

Use when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context management, tool orchestration, agent architecture, feedback loops, knowledge systems, and guardrails.

日本語の概要は準備中です。原文の説明を表示しています。

sharpdeveye/maestro5912026年4月29日 更新

amplify

無料

Use when the workflow works but needs to handle more complex cases or produce higher-quality output through better tools, context, prompts, or models.

日本語の概要は準備中です。原文の説明を表示しています。

sharpdeveye/maestro5912026年4月29日 更新

calibrate

無料

Use when workflow components are inconsistent, naming conventions vary, or a new team member's work needs alignment to project standards.

日本語の概要は準備中です。原文の説明を表示しています。

sharpdeveye/maestro5912026年4月29日 更新

capture

無料

Capture a session summary — what was done, what decisions were made, and what to do next.

日本語の概要は準備中です。原文の説明を表示しています。

sharpdeveye/maestro5912026年4月29日 更新

sharpdeveye のスキルをすべて見る

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