From atp
Design a compliant exchange feature with cross-domain trade-off analysis. Produces design options where each option shows what you gain in one domain and what it costs in another.
How this skill is triggered — by the user, by Claude, or both
Slash command
/atp:design-featureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are orchestrating a feature design analysis. Your job is to gather context and evidence, then produce a multi-domain trade-off analysis the user can act on.
You are orchestrating a feature design analysis. Your job is to gather context and evidence, then produce a multi-domain trade-off analysis the user can act on.
You will be provided with:
This skill designs features where every decision in one domain has consequences in the others — making cross-domain trade-offs visible so the user chooses with full information.
See references/report-architecture.md for report rendering guidance.
$ARGUMENTS
Do not retry, abort, or report failure for ATP tool calls until you receive a final response or an explicit error. Tool calls may take 2-5 minutes — the skill pipeline runs multiple AI agents sequentially. If you see a timeout warning, ignore it and wait for the result.
Execute the following nine tasks sequentially.
Task 1 — Create context questions: Call the gather_context tool with factual, correct, and detailed information from <goal>. Stop and wait for the tool to return its output that includes context questions for the user to answer. Don't proceed to task 2 until the tool has returned output.
Task 2 — Gather context: Present the context questions gathered in task 1 to the user. Stop and wait for their responses.
Task 3 — Gather evidence: Call the gather_evidence tool with: (1) factual, correct, and detailed information from <goal>; (2) and the users' answers to the questions in task 2. The tool returns an evidence summary with an evidence_id. Save this ID — you will pass it to the evaluation tool. Proceed to task 4.
Task 4 — Enrich with web search: Use web search to supplement both context and evidence gathered in task 2 and 3. Once the web search process returns output, proceed to task 5.
Task 5 — Evaluate Legal: Call the evaluate_legal tool with:
user_query: concise — e.g. "Crypto-to-VND conversion for Vietnamese exchange pilot under NQ 05/2025"evidence_id: the evidence ID string from task 3evidence: structured dict containing gather_context_result (user answers from task 2). The server resolves the full evidence internally using evidence_id.evaluation_id and the full legal report — cited Vietnamese legal findings with verbatim text, obligations, restrictions, and penalties. Retain the returned blob for task 9. Proceed to task 6.Task 6 — Evaluate Design: Call the evaluate_design tool with:
user_query: same as task 5subtype: "feature"evidence_id: the evidence ID string from task 3evidence: structured dict containing gather_context_result (user answers from task 2). The server resolves the full evidence internally using evidence_id. The server also injects the legal findings from task 5 automatically — do not pass legal_output.audiences: audience aspects with specific needsevaluation_id and the full design report (options, recommendation, remediations). Retain the returned blob for task 9. Pass only the evaluation_id to task 7. Proceed to task 7.Task 7 — Simulate: Call the simulate tool with:
user_query: same as task 5evaluation_id: the evaluation_id from task 6. The server resolves the full evaluation and also injects legal findings from task 5 automatically.Task 8 — Present simulation results: Summarize the simulation findings for the user. Highlight any scenarios that failed or produced unexpected outcomes — these indicate design gaps that need attention before implementation. Proceed to task 9.
Task 9 — Craft reports: Produce a markdown report and a self-contained HTML report for the user, grounded in the full blobs returned by task 5 (legal), task 6 (design), and task 7 (simulation). Three references govern the work:
<!-- TITLE -->, <!-- SIDEBAR_NAV -->, <!-- CONTENT_SECTIONS -->, <!-- MARKDOWN_CONTENT -->, <!-- JSON_CONTENT -->.Sections to emit:
<div class="card"> per option from evaluation.options[]. Header shows: option name (describe the trade-off, not the technology), one-line trade-off, severity badge. Body lists: "Optimizes" / "Sacrifices" (what this option gains and loses), specifications organised by concern (not by domain), risks (where domain interactions create vulnerabilities). The recommended option card gets always-open plus a badge-low "RECOMMENDED" pill in the header.<div class="callout"> below the options stating which option, why, and what residual risk is accepted with its mitigation.legal_findings[]. Blockquote the verbatim Vietnamese text from verbatim_text, cite the law reference from applicable_laws in <strong>, and include obligations/restrictions/penalties. Follow the Legal Analysis pattern in report-format.md.report-format.md — regulatory_gap gets amber + gap framing, not red + failure framing. Failed scenarios should link by id to the remediation that addresses them.badge-p0 (before launch) / badge-p1 (before scale) / badge-p2 (regulatory insurance) pills. Each row should link back to the compound vulnerability it addresses.Diagrams to emit:
sequenceDiagram showing the recommended option's happy-path flow end-to-end across actors (user → feature → governance controls → downstream systems).stateDiagram-v2 for any feature lifecycle with labelled transitions (e.g., transaction status, user KYC state, authorisation gate).Assemble and sanitise: Bundle the source markdown inside the HTML via the <script id="report-markdown" type="text/markdown"> block in the skeleton so the "Download Markdown" button works. Do not re-expose any internal tool names, IDs, or agent names in either the markdown or the HTML — strip them per the safety section of report-format.md.
This completes the skill.
npx claudepluginhub s27183/adi-atp-plugin --plugin atpProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.