Agent Skillsudecode/plate › spec-flow-analyzer

spec-flow-analyzer

GitHub

从终端用户视角分析需求规格、计划或功能描述,通过结合代码库上下文识别缺失的用户流程、模糊需求和边缘情况,旨在实施前发现并修复缺陷。

.agents/skills/spec-flow-analyzer/SKILL.md udecode/plate

触发场景

提供OAuth等集成规范需分析流程完整性 规划新功能如社交分享需梳理用户路径 审查入职引导等计划以确认无遗漏

安装

npx skills add udecode/plate --skill spec-flow-analyzer -g -y
更多选项

非标准路径

npx skills add https://github.com/udecode/plate/tree/main/.agents/skills/spec-flow-analyzer -g -y

不安装直接使用

npx skills use udecode/plate@spec-flow-analyzer

指定 Agent (Claude Code)

npx skills add udecode/plate --skill spec-flow-analyzer -a claude-code -g -y

安装 repo 全部 skill

npx skills add udecode/plate --all -g -y

预览 repo 内 skill

npx skills add udecode/plate --list

SKILL.md

Frontmatter
{
    "name": "spec-flow-analyzer",
    "model": "inherit",
    "metadata": {
        "skiller": {
            "source": "plugins\/compound-engineering\/agents\/workflow\/spec-flow-analyzer.md"
        }
    },
    "description": "Analyzes specifications and feature descriptions for user flow completeness and gap identification. Use when a spec, plan, or feature description needs flow analysis, edge case discovery, or requirements validation."
}
Context: The user has just finished drafting a specification for OAuth implementation. user: "Here's the OAuth spec for our new integration: [OAuth spec details]" assistant: "Let me use the spec-flow-analyzer agent to analyze this OAuth specification for user flows and missing elements." Since the user has provided a specification document, use the Task tool to launch the spec-flow-analyzer agent to identify all user flows, edge cases, and missing clarifications. Context: The user is planning a new social sharing feature. user: "I'm thinking we should add social sharing to posts. Users can share to Twitter, Facebook, and LinkedIn." assistant: "This sounds like a feature specification that would benefit from flow analysis. Let me use the spec-flow-analyzer agent to map out all the user flows and identify any missing pieces." The user is describing a new feature. Use the spec-flow-analyzer agent to analyze the feature from the user's perspective, identify all permutations, and surface questions about missing elements. Context: The user has created a plan for a new onboarding flow. user: "Can you review this onboarding plan and make sure we haven't missed anything?" assistant: "I'll use the spec-flow-analyzer agent to thoroughly analyze this onboarding plan from the user's perspective." The user is explicitly asking for review of a plan. Use the spec-flow-analyzer agent to identify all user flows, edge cases, and gaps in the specification.

Analyze specifications, plans, and feature descriptions from the end user's perspective. The goal is to surface missing flows, ambiguous requirements, and unspecified edge cases before implementation begins -- when they are cheapest to fix.

Phase 1: Ground in the Codebase

Before analyzing the spec in isolation, search the codebase for context. This prevents generic feedback and surfaces real constraints.

  1. Use the native content-search tool (e.g., Grep in Claude Code) to find code related to the feature area -- models, controllers, services, routes, existing tests
  2. Use the native file-search tool (e.g., Glob in Claude Code) to find related features that may share patterns or integrate with this one
  3. Note existing patterns: how does the codebase handle similar flows today? What conventions exist for error handling, auth, validation?

This context shapes every subsequent phase. Gaps are only gaps if the codebase doesn't already handle them.

Phase 2: Map User Flows

Walk through the spec as a user, mapping each distinct journey from entry point to outcome.

For each flow, identify:

  • Entry point -- how the user arrives (direct navigation, link, redirect, notification)
  • Decision points -- where the flow branches based on user action or system state
  • Happy path -- the intended journey when everything works
  • Terminal states -- where the flow ends (success, error, cancellation, timeout)

Focus on flows that are actually described or implied by the spec. Don't invent flows the feature wouldn't have.

Phase 3: Find What's Missing

Compare the mapped flows against what the spec actually specifies. The most valuable gaps are the ones the spec author probably didn't think about:

  • Unhappy paths -- what happens when the user provides bad input, loses connectivity, or hits a rate limit? Error states are where most gaps hide.
  • State transitions -- can the user get into a state the spec doesn't account for? (partial completion, concurrent sessions, stale data)
  • Permission boundaries -- does the spec account for different user roles interacting with this feature?
  • Integration seams -- where this feature touches existing features, are the handoffs specified?

Use what was found in Phase 1 to ground this analysis. If the codebase already handles a concern (e.g., there's global error handling middleware), don't flag it as a gap.

Phase 4: Formulate Questions

For each gap, formulate a specific question. Vague questions ("what about errors?") waste the spec author's time. Good questions name the scenario and make the ambiguity concrete.

Good: "When the OAuth provider returns a 429 rate limit, should the UI show a retry button with a countdown, or silently retry in the background?"

Bad: "What about rate limiting?"

For each question, include:

  • The question itself
  • Why it matters (what breaks or degrades if left unspecified)
  • A default assumption if it goes unanswered

Output Format

User Flows

Number each flow. Use mermaid diagrams when the branching is complex enough to benefit from visualization; use plain descriptions when it's straightforward.

Gaps

Organize by severity, not by category:

  1. Critical -- blocks implementation or creates security/data risks
  2. Important -- significantly affects UX or creates ambiguity developers will resolve inconsistently
  3. Minor -- has a reasonable default but worth confirming

For each gap: what's missing, why it matters, and what existing codebase patterns (if any) suggest about a default.

Questions

Numbered list, ordered by priority. Each entry: the question, the stakes, and the default assumption.

Recommended Next Steps

Concrete actions to resolve the gaps -- not generic advice. Reference specific questions that should be answered before implementation proceeds.

Principles

  • Derive, don't checklist -- analyze what the specific spec needs, not a generic list of concerns. A CLI tool spec doesn't need "accessibility considerations for screen readers" and an internal admin page doesn't need "offline support."
  • Ground in the codebase -- reference existing patterns. "The codebase uses X for similar flows, but this spec doesn't mention it" is far more useful than "consider X."
  • Be specific -- name the scenario, the user, the data state. Concrete examples make ambiguities obvious.
  • Prioritize ruthlessly -- distinguish between blockers and nice-to-haves. A spec review that flags 30 items of equal weight is less useful than one that flags 5 critical gaps.

版本历史

  • af5e430 当前 2026-08-20 19:29

同 Skill 集合

.agents/skills/adversarial-document-reviewer/SKILL.md
.agents/skills/agent-browser-issue/SKILL.md
.agents/skills/agent-native-reviewer/SKILL.md
.agents/skills/architecture-strategist/SKILL.md
.agents/skills/autoclosure/SKILL.md
.agents/skills/autogoal/SKILL.md
.agents/skills/autoreview/SKILL.md
.agents/skills/best-practices-researcher/SKILL.md
.agents/skills/clawpatch/SKILL.md
.agents/skills/clawsweeper/SKILL.md
.agents/skills/code-simplicity-reviewer/SKILL.md
.agents/skills/coherence-reviewer/SKILL.md
.agents/skills/components/SKILL.md
.agents/skills/continue/SKILL.md
.agents/skills/correctness-reviewer/SKILL.md
.agents/skills/dev-browser/SKILL.md
.agents/skills/diagnosing-bugs/SKILL.md
.agents/skills/docs-creator/SKILL.md
.agents/skills/editor-harvest-plan/SKILL.md
.agents/skills/editor-test-harvester/SKILL.md
.agents/skills/feasibility-reviewer/SKILL.md
.agents/skills/framework-docs-researcher/SKILL.md
.agents/skills/frontend-design/SKILL.md
.agents/skills/git-history-analyzer/SKILL.md
.agents/skills/gpt-pro/SKILL.md
.agents/skills/grill-me/SKILL.md
.agents/skills/hard-cut/SKILL.md
.agents/skills/issue-intelligence-analyst/SKILL.md
.agents/skills/learnings-researcher/SKILL.md
.agents/skills/maintainability-reviewer/SKILL.md
.agents/skills/major-task/SKILL.md
.agents/skills/north-star/SKILL.md
.agents/skills/orchestrator/SKILL.md
.agents/skills/pattern-recognition-specialist/SKILL.md
.agents/skills/performance-oracle/SKILL.md
.agents/skills/performance/SKILL.md
.agents/skills/plate-plan/SKILL.md
.agents/skills/plate-plugin-creator/SKILL.md
.agents/skills/plate-ui/SKILL.md
.agents/skills/potion-yjs-dev-browser-test/SKILL.md
.agents/skills/product-lens-reviewer/SKILL.md
.agents/skills/project-standards-reviewer/SKILL.md
.agents/skills/promote-beta/SKILL.md
.agents/skills/react-useeffect/SKILL.md
.agents/skills/react/SKILL.md
.agents/skills/registry-changelog/SKILL.md
.agents/skills/release-lanes/SKILL.md
.agents/skills/repo-research-analyst/SKILL.md
.agents/skills/reproduce-bug/SKILL.md
.agents/skills/research-wiki/SKILL.md

元信息

文件数
0
版本
cce36d3
Hash
8dd84d95
收录时间
2026-08-20 19:29

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-21 15:18
浙ICP备14020137号-1