品質不良・過去トラブル分析
今すぐ試せる台本どおりのモデルで検証済み不良報告から似た過去のトラブルと対策を探し、原因の候補を挙げる。
誰向けか
製造・品質の担当者
処理の流れ
- 受け取る:依頼を受ける
- 調べる:図面・仕様書、不良・保全の記録、設備マニュアル
- 判断する:根拠を添えて案を作る
- 人が確認する:書き込みは承認を待てる
- 書き込む:確認された内容だけ
つなぐシステム
- Files
- Excel
- MES
安全のために
- 頼んだ人の権限の範囲でだけ動く
サインイン状態を確認しています…
プレビュー
サンプル株式会社のエージェントです。内容を確認しました。承認が必要な操作は、確認をお待ちしてから進めます。
- 会社名
- サンプル株式会社
- 承認ルール
- すべての書き込みで承認を待つ
- 口調
- 丁寧
- 返信の言語
- 日本語
- つなぐシステム
- Files
使っている機能
- 本人の権限で実行
- 構造化された出力
実際のソース
tests/gallery/quality-defect/agents/quality-defect.ts
import { builtinSkill, defineAgent, files, skill } from '@indx-workspace/sdk/define';
import { qms } from '../tools/qms.ts';
export default defineAgent({
name: 'quality-defect',
instructions: { file: './quality-defect.md' },
model: 'default',
// A run is unattended: the agent runs office-reader on the FMEA workbook without a prompt. It
// does not run the eight-d check script itself; that is the backend's, and a manual check only.
// The 8D ends (D8) by registering the case as a 過去トラ, and the DR decides that: `createCase` is
// the QMS tool's one write, so it is implicitly gated (ADR-0145) and the run waits there for an
// approval; nothing is registered before. Every other tool is a read.
engine: {
id: 'claude-agent-sdk',
autoApprove: ['mcp__agent-workspace__run_skill_script'],
},
// Reads the FMEA workbook (.xlsx) with office-reader; runCommands offers run_skill_script for
// that. No file writes, no network (the project ceiling forbids both whatever this file says);
// `createCase` is a QMS write, not a file write.
permissions: { readFiles: true, runCommands: true, unrestrictedNetwork: false },
tools: [qms],
skills: [builtinSkill('office-reader'), skill('eight-d')],
files: [files('fmea', 'read')],
limits: { maxTurns: 16, maxBudgetUsd: 1 },
});ファイル構成
agent-workspace.yaml
agents/
quality-defect.md
quality-defect.ts
apis/
qms.openapi.json
backend/
analyse.ts
benchmark.ts
data/
access.json
defects/
fmea/
fmea-workbook.ts
evals/
quality-defect.yaml
qms/
fake-qms.d.mts
fake-qms.mjs
quality-defect.approval.test-support.ts
quality-defect.backend.test-support.ts
quality-defect.definition.test-support.ts
quality-defect.eight-d.test-support.ts
quality-defect.fixture.test-support.ts
quality-defect.qms.test-support.ts
quality-defect.test.ts
skills/
eight-d/
surfaces/
qa.ts
tools/
qms.ts