Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

story-definition故事定义

Agent Skill

story-definition 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

903

周安装

38

GitHub Stars

3

下载量

316
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:story-definition(故事定义)
来源仓库:https://github.com/somnio-software/somnio-ai-tools
仓库路径:skills/story-definition
安装命令:
npx skills add https://github.com/somnio-software/somnio-ai-tools --skill story-definition
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/somnio-software/somnio-ai-tools --skill story-definition

简介

story-definition 用于处理 GitHub 仓库、Issue、Pull Request 等协作信息,适合整理代码变更与项目状态。

  • 适用于围绕仓库状态或协作事项进行信息梳理的场景。
  • 通过 npx skills add 命令安装,需参考原始 README 了解具体调用方式。
  • 安装前应确认权限范围、维护状态及是否会执行命令或读写文件。
  • 建议结合来源仓库验证其实际功能和集成限制。

SKILL.md

Story Definition

Help teams define clear, implementable user stories from features, epics, requirements, or ideas. Pull project context from connected tools, apply structured frameworks, and create stories directly in the project tracker.

Workflow

Step 1 — Gather context

Understand what needs to be broken down before writing anything.

If ~~project tracker is connected:

  • Ask the user which project or board to work with
  • Pull the current epics, labels, and team members to understand project structure
  • Check existing backlog for related or duplicate stories
  • Pull any linked requirements, specs, or parent epics for context
  • Identify the project's existing conventions (label taxonomy, story point scale, naming patterns)

If no project tracker is connected:

  • Ask the user to describe the feature, epic, or requirement
  • Ask about the team context: who will implement, what tech stack, any constraints
  • Ask about existing conventions they follow for story format

Always ask:

  • What is the goal or outcome this work should achieve?
  • Are there known constraints (timeline, dependencies, technical limitations)?
  • What level of granularity do they need? (epic-level, sprint-ready, task-level)

Step 2 — Analyze and decompose

Break down the input into logical, implementable units.

Decomposition principles:

  1. Vertical slicing — Each story delivers a thin slice of end-to-end value, not a horizontal layer. A story should touch all layers needed (UI, API, DB) for one specific behavior.
  2. INVEST criteria — Every story must be:

- Independent — Can be built and delivered without waiting for other stories (minimize dependencies) - Negotiable — Details can be discussed; it is not a rigid specification - Valuable — Delivers clear value to a user, stakeholder, or the system - Estimable — The team can reasonably estimate the effort - Small — Fits within a single sprint (if too big, split further) - Testable — Has clear conditions to verify it is done

  1. Dependency mapping — Identify which stories block others and flag circular dependencies
  2. Risk-first ordering — Surface high-risk or high-uncertainty stories early so they can be tackled first

Splitting strategies when a story is too large:

StrategyWhen to useExample
By workflow stepMulti-step process"User can add item to cart" vs "User can checkout"
By business ruleComplex validation"Basic validation" vs "Edge-case handling"
By data variationMultiple entity types"Import CSV contacts" vs "Import CSV companies"
By interfaceMultiple entry points"Create via form" vs "Create via API"
By operationFull CRUD"View list" vs "Edit item" vs "Delete item"
By personaDifferent user types"Admin can configure" vs "Member can view"
Happy path / edge casesComplex flows"Successful payment" vs "Payment retry on failure"

Step 3 — Write stories

Use this format for each story. Adapt field names to match the project's conventions if they differ.

Title: [Action-oriented, concise — starts with a verb or "As a..."]

User story:
As a [specific persona/role],
I want to [concrete action],
so that [measurable outcome or business value].

Acceptance criteria:
- [ ] Given [context], when [action], then [expected result]
- [ ] Given [context], when [action], then [expected result]
- [ ] [Additional criteria using Given/When/Then or plain checkboxes]

Definition of done:
- [ ] Code implemented and passing CI
- [ ] Unit/integration tests covering acceptance criteria
- [ ] Code reviewed and approved
- [ ] [Project-specific DoD items from team conventions]

Technical notes:
- Implementation hints, API contracts, data model changes
- Links to relevant specs, designs, or documentation
- Known risks or open questions to resolve during implementation

Size: [T-shirt (XS/S/M/L/XL) or story points — match project convention]
Priority: [P0-Critical / P1-High / P2-Medium / P3-Low]
Labels: [Use existing project labels when available]
Dependencies: [List story titles or IDs this story depends on]

Writing quality checklist — apply to every story:

  • Title is scannable in a board view (under 80 characters)
  • "So that" clause has a real outcome, not a restatement of the action
  • Acceptance criteria are testable — no ambiguous words like "should work well"
  • Each acceptance criterion covers one behavior (split compound criteria)
  • Technical notes exist for anything non-obvious to the implementer
  • Size reflects actual complexity, not just code volume
  • No hidden work — if the story requires migrations, config changes, or docs updates, they are explicit

Step 4 — Validate and organize

Before presenting or creating stories, run a quality pass.

Validation checks:

  1. Coverage — Does the full set of stories deliver the complete feature/epic? Identify gaps.
  2. Overlap — Are any two stories doing the same work? Merge or clarify boundaries.
  3. Dependency graph — Can the stories be ordered into a buildable sequence? Flag circular dependencies.
  4. Sprint fitness — Is each story small enough for one sprint? Flag any that need further splitting.
  5. Testability — Can QA verify every acceptance criterion without ambiguity?
  6. Backlog check — If ~~project tracker is connected, verify no existing stories already cover this work.

Organize the output:

  • Group stories by epic or functional area
  • Order by suggested implementation sequence (dependencies first, then priority)
  • Clearly mark which stories are sprint-ready vs need further refinement
  • Summarize the total scope: number of stories, estimated total effort, suggested sprint distribution

Step 5 — Create in project tracker

If ~~project tracker is connected:

  • Confirm with the user before creating any tickets
  • Show a summary table first:
#TitleSizePriorityDependencies
1...SP1
2...MP1#1
  • After user approval, create each story in the connected tool
  • Apply labels, assignees, sprint, and parent epic as discussed
  • Set up dependency links between stories where supported
  • Report back with links to created tickets

If no project tracker is connected:

  • Present the stories in the structured format above
  • Offer to export as markdown or a formatted list the user can paste into their tool

Step 6 — Notify team

If ~~chat is connected:

  • Ask if the user wants to notify the team about the new stories
  • Draft a concise message summarizing what was created, how many stories, total estimated effort, and a link to the board/project
  • Post only after user confirms

Story sizing guide

Use the project's existing scale. If none exists, suggest one of these:

T-shirt sizes (recommended for teams new to estimation):

SizeTypical scopeExamples
XSConfig change, copy update, one-line fixToggle a feature flag, fix a typo
SSingle component, clear pathAdd a form field, new API endpoint with known pattern
MMultiple components, some unknownsNew CRUD feature, integration with documented API
LCross-cutting, needs design decisionsNew auth flow, data migration with transformation
XLShould probably be split furtherFull feature redesign, new service

Fibonacci story points (for teams using velocity tracking):

PointsRelative effort
1Trivial — hours
2Small — a day or less
3Moderate — a couple of days
5Significant — most of a week
8Large — full week, consider splitting
13Very large — must split

Priority framework

LevelLabelCriteriaAction
P0CriticalBlocks release, security issue, data loss riskImmediate — current sprint
P1HighCore to the feature/epic goal, high user impactNext available sprint
P2MediumValuable improvement, not blockingBacklog — schedule when capacity allows
P3LowNice-to-have, polish, minor enhancementBacklog — revisit during planning

Anti-patterns to avoid

Anti-patternProblemFix
"Implement feature X"No user value stated, no acceptance criteriaAdd persona, outcome, and testable criteria
Horizontal slicing"Build the API" then "Build the UI" — no deliverable value until both doneSlice vertically — one behavior end-to-end
Giant stories"As a user I want the whole checkout flow" — unestimableSplit by workflow step, operation, or business rule
Vague acceptance criteria"It should work correctly" — untestableUse Given/When/Then with specific inputs and outputs
Missing dependenciesStory fails because a prerequisite was not identifiedMap dependencies explicitly during decomposition
Gold-platingStory includes "nice-to-have" details mixed with core requirementsSeparate must-have criteria from enhancements
Copy-paste personas"As a user" for everything — loses contextUse specific roles: admin, member, guest, API consumer

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.64%
按下载量换算106

Claude

29.67%
按下载量换算94

Cursor

19.51%
按下载量换算62

Gemini CLI

9.85%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills