Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计通过

edge-cases边缘情况

Agent Skill

edge-cases 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

989

周安装

40

GitHub Stars

228

下载量

310
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:edge-cases(边缘情况)
来源仓库:https://github.com/rohunj/claude-build-workflow
仓库路径:skills/edge-cases
安装命令:
npx skills add https://github.com/rohunj/claude-build-workflow --skill edge-cases
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rohunj/claude-build-workflow --skill edge-cases

简介

edge-cases 系统分析 PRD 以识别遗漏的边缘情况、失败模式、竞态条件与潜在风险点。

  • 覆盖输入边界、网络中断、并发冲突、资源耗尽等多维度场景,提出 PRD 更新建议。
  • 输出结构化列表,便于团队补充验收标准或新增用户故事,降低上线后事故概率。
  • 安装命令:npx skills add https://github.com/rohunj/claude-build-workflow --skill edge-cases
  • edge-cases 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Edge Case Analysis

Systematically analyze a PRD to identify edge cases, failure modes, race conditions, and scenarios that might be overlooked during implementation.


The Job

  1. Read the provided PRD thoroughly
  2. Analyze each user story and functional requirement
  3. Identify potential edge cases across multiple categories
  4. Propose updates to the PRD (new acceptance criteria, new stories, or updates to existing stories)

Output: A list of edge cases with recommended PRD updates.


Edge Case Categories

1. Input Edge Cases

  • Empty/null values: What if required fields are empty?
  • Boundary values: Max lengths, min/max numbers, date ranges
  • Invalid formats: Wrong data types, malformed input
  • Unicode/special characters: Emojis, RTL text, HTML injection attempts
  • Large data: What if there are 10,000 items instead of 10?

2. State Edge Cases

  • Race conditions: Two users editing the same thing simultaneously
  • Stale data: Data changed by another process between read and write
  • Partial completion: What if the operation fails halfway?
  • Concurrent operations: Multiple tabs, multiple sessions
  • Offline/reconnection: What happens when connection drops?

3. User Behavior Edge Cases

  • Rapid clicks: User clicks submit multiple times quickly
  • Back button: User navigates back during an operation
  • Browser refresh: User refreshes during a multi-step flow
  • Abandoned flows: User leaves in the middle of a process
  • Unexpected navigation: User directly accesses URLs they shouldn't

4. Error Handling Edge Cases

  • Network failures: API timeouts, server errors
  • Validation errors: How are errors displayed and recovered from?
  • Permission errors: User loses access mid-operation
  • Resource exhaustion: Rate limits, storage limits

5. Data Edge Cases

  • First-time use: No data exists yet (empty states)
  • Legacy data: Old data that doesn't match new schema
  • Data migration: What happens to existing data when schema changes?
  • Cascade effects: Deleting something that other things depend on

6. Security Edge Cases

  • Authentication expiry: Session times out during operation
  • Authorization changes: Permissions change while user is active
  • Input sanitization: XSS, SQL injection, command injection
  • Data leakage: Error messages exposing sensitive info

7. Performance Edge Cases

  • Cold start: First load performance
  • Large payloads: Response times with lots of data
  • Memory leaks: Long-running sessions
  • N+1 queries: Database performance at scale

Analysis Process

For each user story in the PRD:

Step 1: Read the Story

Understand what the story is trying to accomplish.

Step 2: Apply Category Checklist

Go through each edge case category above and ask:

  • Does this category apply to this story?
  • What specific edge cases might occur?

Step 3: Rate Severity

For each identified edge case:

  • Critical: Could cause data loss, security breach, or system crash
  • High: User-facing error or broken functionality
  • Medium: Poor UX or minor functionality issue
  • Low: Minor annoyance or cosmetic issue

Step 4: Propose PRD Update

For each edge case, propose one of:

  • New acceptance criteria for existing story
  • New user story if scope is significant
  • Update to functional requirements
  • Note in Technical Considerations

Output Format

# Edge Case Analysis for [PRD Name]

## Summary
- Total edge cases identified: X
- Critical: X | High: X | Medium: X | Low: X

## Edge Cases by Story

### US-001: [Story Title]

| Edge Case | Category | Severity | Recommended Action |
|-----------|----------|----------|-------------------|
| User submits empty form | Input | High | Add acceptance criteria: "Empty form shows validation errors" |
| User double-clicks submit | User Behavior | Medium | Add acceptance criteria: "Submit button disabled after first click" |

### US-002: [Story Title]
...

## New Stories Recommended

### US-NEW-001: Handle concurrent edits
**Description:** As a user, I want to see a warning if someone else has edited the item since I started editing.

**Acceptance Criteria:**
- [ ] System checks for updates before saving
- [ ] Warning shown if data has changed
- [ ] User can choose to overwrite or refresh

**Rationale:** Addresses race condition edge case in US-003 and US-004.

## Updated Functional Requirements

- FR-NEW-1: The system must validate all user input on both client and server side
- FR-NEW-2: All destructive operations must be idempotent

## Technical Considerations to Add

- Implement optimistic locking for concurrent edit detection
- Add retry logic with exponential backoff for network failures
- Use database transactions for multi-step operations

Checklist Before Completing

  • Analyzed each user story against all edge case categories
  • Rated severity for each edge case
  • Provided concrete, actionable recommendations
  • Grouped related edge cases to avoid duplicate stories
  • Kept recommendations focused (don't over-engineer)
  • Prioritized critical and high severity items

Tips

  • Don't go overboard: Focus on likely scenarios, not every theoretically possible edge case
  • Be specific: "User enters > 255 characters in name field" is better than "Input validation"
  • Consider the context: A personal project needs less edge case handling than a banking app
  • Look for patterns: If you find one race condition, there are probably more
  • Think like an attacker: What would someone try to break the system?

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.78%
按下载量换算89

OpenCode

22.51%
按下载量换算70

Codex

14.98%
按下载量换算46

Gemini CLI

11.84%
按下载量换算37

Antigravity

8.07%
按下载量换算25

Cursor

3.59%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills