SaaS Agent Toolkit
Overview
Use this skill when a user asks how to make a SaaS product "agent-usable" rather than only human-usable.
This skill reframes product capabilities into a stable execution model:
- Connectors layer: auth and event plumbing
- Tools layer: six reusable tool shapes
- Policy layer: permissions, approvals, and reliability guardrails
Workflow
- Scope target SaaS domain and entities.
- Define the 3-layer architecture.
- Map capabilities into the six tool shapes.
- Add guardrails (auth, allowlists, idempotency, audit).
- Produce a concrete rollout plan and KPI set.
Step 1: Scope Domain
Capture:
- Product/system (for example Zendesk, Salesforce, Jira, Notion)
- Core entities (ticket, contact, issue, page, deal, order)
- High-risk actions (payment, delete, external publish, permission change)
- Success outcome (speed, quality, cost, reliability)
Step 2: Build 3-Layer Architecture
Design these layers explicitly:
Connectors: OAuth/API key, webhook ingestion, identity mapping, optional SCIM.
Tools: Search, Summarize, Draft, Update, Notify, Approve.
Policy & Guardrails: RBAC, budgets, rate limits, PII controls, logging, retries.
Design principle:
Prefer predictable, auditable, rollback-safe operations over "smart but opaque" behavior.
Step 3: Define Tool Contracts
Use six stable tool contracts:
Search: locate entities and relationships.
Summarize: produce structured, citation-backed takeaways.
Draft: generate submit-ready drafts without auto-sending.
Update: write bounded, idempotent changes back to systems.
Notify: close loops with owners/watchers/approvers.
Approve: enforce human gating for high-risk operations.
Read references/tool-contracts.md for function templates and I/O expectations.
Step 4: Add Mandatory Guardrails
Apply all of the following:
- Explicit error taxonomy (
401, 403, 404, empty, conflict, timeout)
- Idempotency key for mutating actions
- Field allowlist for
Update (no unrestricted patch)
- Citation requirement for
Summarize
- Dry-run and draft-only defaults for user-facing output
- Approval gates for high-risk categories
- Full audit trail: who requested, who approved, what changed, when, result
Read references/approval-and-audit.md for standard approval and audit schema.
Step 5: Produce Deliverables
Return output in this structure:
- Domain scope and entities
- 3-layer architecture
- Tool contract table (six tools)
- Guardrail design
- Example end-to-end workflow
- Rollout plan (
0-30, 31-90, 90+ days)
- KPI table
- Top unresolved risk
KPI minimums:
- task completion rate
- first-call success
- API success rate
- p95 latency
- integration lead time
- unit outcome cost
Example Workflow Patterns
Use references/workflow-patterns.md for ready-to-adapt flows:
- customer support triage and response
- sales follow-up automation
- incident assistant with approval-gated external updates
1---2name: saas-agent-toolkit3description: Design agent-usable SaaS tool systems using six reusable tool shapes (Search, Summarize, Draft, Update, Notify, Approve) plus connectors and policy guardrails. Use when turning SaaS features into reliable agent actions with clear contracts, permissions, audit trails, and approval gates.4---5
6# SaaS Agent Toolkit
7
8## Overview
9
10Use this skill when a user asks how to make a SaaS product "agent-usable" rather than only human-usable.
11
12This skill reframes product capabilities into a stable execution model:
13
141. Connectors layer: auth and event plumbing
152. Tools layer: six reusable tool shapes
163. Policy layer: permissions, approvals, and reliability guardrails
17
18## Workflow
19
201. Scope target SaaS domain and entities.
212. Define the 3-layer architecture.
223. Map capabilities into the six tool shapes.
234. Add guardrails (auth, allowlists, idempotency, audit).
245. Produce a concrete rollout plan and KPI set.
25
26## Step 1: Scope Domain
27
28Capture:
29
30- Product/system (for example Zendesk, Salesforce, Jira, Notion)
31- Core entities (ticket, contact, issue, page, deal, order)
32- High-risk actions (payment, delete, external publish, permission change)
33- Success outcome (speed, quality, cost, reliability)
34
35## Step 2: Build 3-Layer Architecture
36
37Design these layers explicitly:
38
391. `Connectors`: OAuth/API key, webhook ingestion, identity mapping, optional SCIM.
402. `Tools`: Search, Summarize, Draft, Update, Notify, Approve.
413. `Policy & Guardrails`: RBAC, budgets, rate limits, PII controls, logging, retries.
42
43Design principle:
44Prefer predictable, auditable, rollback-safe operations over "smart but opaque" behavior.
45
46## Step 3: Define Tool Contracts
47
48Use six stable tool contracts:
49
501. `Search`: locate entities and relationships.
512. `Summarize`: produce structured, citation-backed takeaways.
523. `Draft`: generate submit-ready drafts without auto-sending.
534. `Update`: write bounded, idempotent changes back to systems.
545. `Notify`: close loops with owners/watchers/approvers.
556. `Approve`: enforce human gating for high-risk operations.
56
57Read `references/tool-contracts.md` for function templates and I/O expectations.
58
59## Step 4: Add Mandatory Guardrails
60
61Apply all of the following:
62
63- Explicit error taxonomy (`401`, `403`, `404`, `empty`, `conflict`, `timeout`)
64- Idempotency key for mutating actions
65- Field allowlist for `Update` (no unrestricted patch)
66- Citation requirement for `Summarize`
67- Dry-run and draft-only defaults for user-facing output
68- Approval gates for high-risk categories
69- Full audit trail: who requested, who approved, what changed, when, result
70
71Read `references/approval-and-audit.md` for standard approval and audit schema.
72
73## Step 5: Produce Deliverables
74
75Return output in this structure:
76
771. Domain scope and entities
782. 3-layer architecture
793. Tool contract table (six tools)
804. Guardrail design
815. Example end-to-end workflow
826. Rollout plan (`0-30`, `31-90`, `90+` days)
837. KPI table
848. Top unresolved risk
85
86KPI minimums:
87
88- task completion rate
89- first-call success
90- API success rate
91- p95 latency
92- integration lead time
93- unit outcome cost
94
95## Example Workflow Patterns
96
97Use `references/workflow-patterns.md` for ready-to-adapt flows:
98
99- customer support triage and response
100- sales follow-up automation
101- incident assistant with approval-gated external updates