scenario-architect

scenario-architect is a skill for Claude Code, Codex from miniidealab/openlogos. It costs 0 tokens per session (3,346 once invoked), scanned A, original, Apache-2.0.

A technical scenario-modeling assistant that turns previously defined product scenarios into Mermaid sequence diagrams. A sequence diagram shows how people and software components interact over time.

In plain words
What is it for?
Use it to load requirements, product designs, and architecture; document technical steps; draw numbered interaction diagrams; identify participants; and define structured exception cases.
Why use it?
It connects business requirements and product flows to a technical design without inventing new scenarios. It also exposes abnormal cases that a normal user journey may miss.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/miniidealab/openlogos/scenario-architect
Any agent
npx skills add miniidealab/openlogos --skill scenario-architect
Clone the repo
git clone --depth 1 https://github.com/miniidealab/openlogos

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scenario-architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/miniidealab/openlogos/scenario-architect.svg)](https://agentmods.dev/skills/miniidealab/openlogos/scenario-architect)
Your own site
<a href="https://agentmods.dev/skills/miniidealab/openlogos/scenario-architect"><img src="https://agentmods.dev/badge/skills/miniidealab/openlogos/scenario-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03346
Opus 5 $0.00000 $0.01673
Sonnet 5 $0.00000 $0.00669
Haiku 4.5 $0.00000 $0.00335

Measured 6d ago against content hash 59d116f21712, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

scenario-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/flowtask/logos/skills/scenario-architect/SKILL.md · 225 lines

How it starts

The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Scenario Architect

将 Phase 1/2 已定义的业务场景展开为技术时序图,让 API 设计自然浮现,并设计完整的异常用例。场景编号沿用 Phase 1 定义。

触发条件

  • 用户要求画时序图、设计业务场景或进行场景建模
  • 用户提到 "Phase 3 Step 1"、"场景驱动"、"技术方案设计"
  • 已有需求文档和产品设计文档(含场景定义),需要开始技术实现
  • 用户指定某个场景编号(如 S01)需要展开为时序图

核心能力

  1. 读取 Phase 1/2 的场景定义和验收条件,作为时序图的输入
  2. 为每个场景绘制 Mermaid 时序图(严格遵循编号规范)
  3. 为关键步骤撰写说明文字(解释"为什么"而非"做什么")
  4. 识别每个步骤的异常情况,设计结构化的异常用例
  5. 生成场景概览文档(场景地图 + 场景索引)

与 Phase 1/2 的衔接

Phase 3 不再从零识别场景。 场景在 Phase 1 已定义(S01, S02...),Phase 2 已细化交互流程,Step 0 已确定技术架构和选型。Phase 3 Step 1 的工作是将同一个场景从"交互视角"展开为"技术视角",时序图的参与方应与架构图中的系统组件一致:

输入(来自 Phase 1/2) 输出(Phase 3)
场景编号和名称 时序图标题保留编号
触发条件 时序图的起始箭头
主路径描述 时序图的 Step 序列
GIVEN/WHEN/THEN(业务级) 时序图步骤的行为描述
异常验收条件 EX 异常用例(技术级)
涉及的页面和交互(Phase 2) 参与方识别

执行步骤

Step 1: 加载场景上下文

读取 Phase 1 需求文档、Phase 2 产品设计文档和 Phase 3 Step 0 技术架构概要中的场景定义。不要重新发明场景——直接沿用已有编号和描述。参与方命名应与架构图中的系统组件保持一致。

场景粒度前置检查(绘制时序图之前必须执行):

在继续之前,先验证 Phase 1 中的场景定义是否粒度合理。检查以下反模式:

  • 单 API 场景:如果一个场景的主路径只有 1-2 个步骤(如"创建任务"= 仅 POST /api/tasks),粒度过细
  • CRUD 碎片化:如果场景列表中对同一实体出现了独立的"创建X"、"查询X"、"更新X"、"删除X"场景,应合并为目标导向的场景
  • 缺少业务目标:如果场景的结果只是"数据被写入/读取了",说明缺少真正的用户目标

如果检测到以上任何反模式:停止绘制时序图,建议回到 Phase 1 按业务目标重新组织场景。为粒度过细的场景绘制时序图会将问题传导到 API 设计、测试用例和代码实现。

确认每个场景的:

  • 场景编号:沿用 Phase 1 的 S01, S02...(或 Phase 2 的子场景 S01.1
  • 参与方:从 Phase 2 的交互流程中识别涉及哪些系统组件
  • 主路径:从 Phase 1/2 的验收条件中提取正常流程
  • 已知异常:从 Phase 1/2 的异常验收条件中提取

Step 2: 绘制时序图

为每个场景绘制 Mermaid 时序图,严格遵循以下规范

编号规范

  • 每个箭头必须带 Step N: 编号前缀
  • 编号从 1 开始连续递增
  • 每个箭头附一行行为描述:HTTP方法 /api/路径 — 一句话说明

参与方规范

  • 使用短别名:U(User/Browser)、W(Web/Frontend)、SB(Supabase)、DB(Database)
  • 每个参与方的全名在 participant 声明中注明

场景编号规范

  • 文档标题格式:S01: 邮箱注册 — 时序图
  • 一个场景一个文件,编号对应 Phase 1

格式示例

sequenceDiagram
    participant U as User/Browser
    participant W as Web (Astro)
    participant SB as Supabase Auth
    participant DB as Supabase DB

    U->>W: Step 1: POST /api/auth/register — 提交 {email, password, referral_code?}
    W->>SB: Step 2: supabase.auth.signUp(email, password, metadata) — 发起用户创建
    SB-->>W: Step 3: 返回 {user, session} 或 error
    W->>DB: Step 4: INSERT INTO profiles — 写入用户扩展信息
    DB-->>W: Step 5: 返回写入结果
    W-->>U: Step 6: 返回注册结果 + 提示验证邮件

Read the full file on GitHub · 225 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 225 lines · 0 tokens per session scan A 59d116f21712

Subscribe to this mod's changes

scenario-architect is a skill published in the GitHub repository miniidealab/openlogos (71 stars, last pushed 9d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,346 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens