mk-story-sizer
Pre-ticket Fibonacci sizing for pasted stories; advisory by default, writes a Sizing Report. Opt-in auto-create adds a confirm gate. NOT for single-ticket sizing (mk:jira-estimator).
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 16
- Forks
- 3
01 前言 Front Matter
- name
- mk-story-sizer
- description
- Pre-ticket Fibonacci sizing for pasted stories; advisory by default, writes a Sizing Report. Opt-in auto-create adds a confirm gate. NOT for single-ticket sizing (mk:jira-estimator).
- requires_runtime
- [ "python>=3.9" ]
02 资源文件 13
- 资产文件assets/sizing-report-template.md2.3 KB
- 参考文档references/auto-create-execution.md5.1 KB
- 参考文档references/auto-create-gating.md5.1 KB
- 参考文档references/injection-patterns.md2.1 KB
- 参考文档references/input-adapter.md3.9 KB
- 参考文档references/orchestration.md3.3 KB
- 参考文档references/report-writer.md3.0 KB
- 参考文档references/sizing-heuristics.md6.4 KB
- 脚本scripts/check-auto-create-gating.py9.3 KB
- 脚本scripts/execute-auto-create.py10.6 KB
- 脚本scripts/parse-paste-stories.py6.3 KB
- 脚本scripts/score-story.py10.7 KB
- 脚本scripts/write-sizing-report.py9.3 KB
03 SKILL.md 正文
mk:story-sizer
Forks to the story-sizer custom agent. v1 ships paste-mode only: the user provides a markdown block of stories, the agent applies heuristics, and a Story Sizing Report is written to tasks/reports/story-sizing-{YYMMDD}-{slug}.md. No Jira side effects in default mode.
Triggers
- "size these stories"
- "rough-size from spec"
- "pre-ticket sizing for these user stories"
- "Fibonacci size this story list"
- "story points for these candidates before we create tickets"
Commands
| Mode | Invocation | Side effects |
|---|---|---|
| Default | the story-sizer skill --paste [--scout] [--story <id>] |
Writes Story Sizing Report only. No Jira calls. |
| Auto-create | the story-sizer skill --paste --auto-create --project <KEY> [--epic <KEY>] |
After dry-run + single confirmation, delegates ticket creation per story. |
Input
Paste-mode contract: see references/input-adapter.md for the strict markdown template, StoryRecord schema, validation rules, and failure modes. The parser is scripts/parse-paste-stories.py (deterministic; SHA-256 source-hash recorded for the auto-create source-consistency check).
Heuristics
Fibonacci sizing rules: see references/sizing-heuristics.md for complexity dimensions, scoring tables, inconsistency detection, split-proposal triggers, and DoR advisory. Scorer is scripts/score-story.py (integer-arithmetic over text-derived counts; same input → same numeric output).
Output
Report template + slot semantics: references/report-writer.md. Renderer is scripts/write-sizing-report.py. Default path: tasks/reports/story-sizing-{YYMMDD}-{slug}.md. Idempotency by source_hash — repeated runs on the identical paste body re-prompt before overwriting.
Per-story suggested create commands obey the v1 field whitelist: --project, --type, --summary, --story-points, --description, optional --epic, --components, --labels. No --assignee, --priority, --sprint, --blocks, or --custom-fields in v1.
Orchestration
End-to-end default flow + --scout extract-or-prompt pattern + filtering rules: references/orchestration.md. Story-sizer NEVER auto-invokes the scout skill — it extracts existing session output or prompts the user to run scout first.
Auto-create (opt-in)
--auto-create --project <KEY> [--epic <KEY>] runs 5 pre-flight checks (NO_ACS, Rule-1 injection, length cap, duplicate suspect via mk:jira-search, source-hash mismatch). If all pass, a markdown dry-run table renders + a single stop and ask the user in chat gate decides ship-or-abort. Gating rules: references/auto-create-gating.md. Rule-1 inventory copy: references/injection-patterns.md. Gating check: scripts/check-auto-create-gating.py.
See also
- Agent:
../../agents/story-sizer.md - Peer intelligence:
mk:jira-evaluator(post-ticket complexity),mk:jira-estimator(post-ticket estimation),mk:planning-engine(sprint capacity) - Peer execution (delegated):
mk:jira-issue(create),mk:jira-collaborate(audit comment via--internal) - Shared:
../jira/references/estimation-guide.md(Fibonacci heuristic conventions)
Gotchas
- The
source_hashrecorded in the report header is the SHA-256 of the exact paste body. If you edit the paste locally between sizing and--auto-create, the source-consistency check will ABORT — re-paste the modified body and re-run--pasteto regenerate the report. --scoutdoes not auto-invokethe scout skill. Runthe scout skillfirst when you want codebase signals; otherwise the report carries[NO_CODEBASE_CONTEXT].- DoR advisory only appears when
mk:agent-detectorloaded the agile story gates rule for the current session.
04 同仓库更多 Skills
mk-sequential-thinking
Structured step-by-step reasoning before acting, to avoid guessing. For complex debugging, multi-step analysis, hypothesis checks. NOT for being stuck on approach (mk:problem-solving).
mk:fixture-valid
A valid fixture used to verify the skill structure validator.
invalid
暂无简介
mk:sample-skill
Sample skill for fixture purposes — small enough to land below noise floor.
mk-worktree
Manages git worktrees for parallel agent isolation: creates parallel/{name}-{timestamp} branches, merges with conflict detection. NOT for user feature branches (use git worktree directly).
mk-workflow-orchestrator
Auto-invoked 7-phase workflow for complex-feature intent; fasttrack mode for pre-approved specs. NOT for explicit single tasks (mk:cook), green-field builds (mk:autobuild), or simple fixes (mk:fix).