classify-size
Use to classify a feature into XS/S/M/L/XL and write docs/features/{slug}/.size so later skills know how much of each artifact to produce. Triggers on "classify size", "feature size", "is this XS or M for {slug}", "size {slug}", "/sdlc:classify-size {slug}", "класифікуй розмір {slug}", "який розмір фічі", "XS чи M". Asks four AskUserQuestion (PR count / time / new module-API-migration / breaking changes), maps to a size class via the shared size matrix, confirms with the user, and writes the one-line .size file. Syncs with PRD.md frontmatter feature_size: if present (warns on conflict). Output: docs/features/{slug}/.size + (opt.) PRD frontmatter update.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 15
- Forks
- 13
01 前言 Front Matter
- name
- classify-size
- model
- haiku
- agents
- []
- effort
- low
- triggers
- [ "/sdlc:classify-size", "classify size", "feature size", "is this XS or M", "size {slug}", "класифікуй розмір", "який розмір фічі", "XS чи M" ]
- description
- Use to classify a feature into XS/S/M/L/XL and write docs/features/{slug}/.size so later skills know how much of each artifact to produce. Triggers on "classify size", "feature size", "is this XS or M for {slug}", "size {slug}", "/sdlc:classify-size {slug}", "класифікуй розмір {slug}", "який розмір фічі", "XS чи M". Asks four AskUserQuestion (PR count / time / new module-API-migration / breaking changes), maps to a size class via the shared size matrix, confirms with the user, and writes the one-line .size file. Syncs with PRD.md frontmatter feature_size: if present (warns on conflict). Output: docs/features/{slug}/.size + (opt.) PRD frontmatter update.
03 SKILL.md 正文
Skill: classify-size
Atomic skill — classifies a feature into XS/S/M/L/XL and fixes the result in
docs/features/<slug>/.size. This is the single source of size-aware behaviour for the rest
of the pipeline: later skills read .size to decide MVP vs Full output depth.
This skill is the canonical owner of the size matrix → ../_shared/size-matrix.md. The classification rules, the MVP-vs-Full table, and the one-sentence rule all live there; this skill only runs the dialogue and writes the file.
Owner
PM or Tech Lead (driver of the intake phase). An architect may escalate S → M on spotting a new subsystem.
Inputs
<slug>— feature slug.- (Optional) the idea / intake note — for a rough starting hint. The skill works without it.
Protocol
- Check existing.
test -f docs/features/<slug>/.size. If it exists, read the value and ask «.sizeis currently<X>. Reclassify?». On «no» — STOP (suggest editing, don't overwrite silently). - Ask the four signals — one
AskUserQuestioneach:- PR count —
1/2–5/5–15/15+. - Time to merge the main part —
≤1 day/~1 week/1–2 sprints/>1 month. - New module / new API / DB migration —
none/one of three/two of three/all three. - Breaking changes for consumers —
no/internal only/public clients.
- PR count —
- Map to a class using the table in
../_shared/size-matrix.md. On an edge case, name the dominant signal aloud («M because it adds a new API + 1–2 sprints, even though PR count is on the S/M border»). For an all-maximums answer, ask explicitly «needs a separate roadmap?» → yes = XL. - Confirm with the user.
AskUserQuestion: «Classifying as<size>(<one-line rationale>). Lock it in?» —Yes/No, I want <X>/Reclassify. - Write
.size. One line, plain text, onlyXS/S/M/L/XL— no comments, no frontmatter.docs/features/<slug>/.size. - Sync with PRD frontmatter (if present). If
docs/features/<slug>/PRD.mdexists, check itsfeature_size:field. Same value → OK. Conflict → WARN and resolve with the user (update one side). Missing → suggest addingfeature_size: <size>. - Propose commit + handoff.
size: <slug> classified as <size>(or fold into the intake commit if a wrapper called this). Then emit the stage-handoff block per../_shared/handoff.md(utility variant) — What I did + Review (.size) + Run next: resume your backbone stage (e.g./sdlc:write-prd <slug>);/clearoptional.
Definition of Done
docs/features/<slug>/.sizeholds exactly one of XS/S/M/L/XL.- The user confirmed the classification (never silent).
- If
PRD.mdexists, itsfeature_size:is in sync (no drift).
Anti-patterns
- Self-classify without confirmation. The skill proposes; the user locks it.
- Optimistic «it's probably S». Run the four questions — a week later the skipped design hurts.
- Skipping the module/API/migration and breaking-change questions. They are what separates S from M.
- Overwriting an existing
.sizewithout asking. - A multi-line
.sizewith comments. Wrappers grep it cheaply — keep it one bare word.
Example invocation
User: «classify size rate-limiting-per-user» Skill:
.sizeabsent → asks the four questions (2–5 PR,~1 week,one of three — new API,internal only) → maps to S (rationale: one API endpoint + ~1 week + internal breaking) → confirms → writesdocs/features/rate-limiting-per-user/.size=S→PRD.mdnot yet written, skip sync → commitsize: rate-limiting-per-user classified as S.
04 同仓库更多 Skills
release
Run the whole local release pipeline in order, stopping at each human gate. Triggers on "run the release", "prepare a release", "/release", "зроби реліз", "підготуй реліз". Drives the four stages back to back — bump-version → curate-changelog → release-notes → check-docs-drift — pausing after each so the human reviews the diff before the next stage. Prepares everything in the working tree; never tags, commits, or pushes. The tag push (which fires CI) stays the human's action.
release-notes
Draft partner-facing release notes from the same commits as the changelog. Triggers on "draft release notes", "release notes for the next version", "/release-notes", "нотатки релізу", "release notes партнеру". Same input as curate-changelog, different audience and tone: a short, benefit-first narrative for a user or partner — "what's new for you" — not a categorized engineer's list. Keeps only changes a user actually notices; drops internal refactors and tooling. Prints the notes to the chat to seed a GitHub Release description or a partner announcement. Writes no file.
curate-changelog
Curate the [Unreleased] section of docs/CHANGELOG.md from git history. Triggers on "curate the changelog", "update the changelog", "/curate-changelog", "онови changelog", "курування журналу". Reads git log since the last tag, FILTERS out what a reader never feels (test/ci/chore/merge), GROUPS commits about one feature into one bullet, and REWRITES technical subjects into plain language under the six Keep a Changelog categories (Added/Changed/Deprecated/ Removed/Fixed/Security). The result must have FEWER lines than the raw log — that is the proof of curation, not a dump. Leaves the edit in the working tree; never commits or pushes.
codify-rule
Turn a repeated mistake into a durable, path-scoped rule in .claude/rules/. Triggers on "codify this rule", "make a rule so this doesn't happen again", "/codify-rule", "закодифікуй правило", "петля помилка-правило". Use only when the same mistake showed up TWICE (twice = a pattern, once = noise). Names the wrong shape and the right shape with one short example of each, scopes the rule to the paths that matter, and leaves the edit in the working tree so the next agent on this repo inherits the fix. Edits only .claude/rules/; never commits or pushes.
check-docs-drift
Find and fix where docs/api.md fell behind the code. Triggers on "check for doc drift", "is the API doc up to date", "/check-docs-drift", "перевір дрейф документації", "docs drift". Runs the deterministic scripts/check-docs-drift.py (parses the public NoteBook methods with ast, compares to what docs/api.md documents — NO LLM finds the gap), reports the drift, and PROPOSES the doc edit that closes it. The gap is found by parsing; the agent writes the missing documentation in the doc's existing style. Edits only docs/; never commits or pushes.
bump-version
Decide and apply the next semver for a release. Triggers on "bump the version", "what version is next", "/bump-version", "простав версію", "яка наступна версія". Reads the next number from the deterministic scripts/next-version.sh (NEVER guesses it), explains in plain language WHICH part moved and why (e.g. "MINOR, because a feat landed: filter notes by tag"), edits the version line in pyproject.toml, and proposes the matching `git tag vX.Y.Z`. The number is decided by a rule; the agent explains and applies — the human confirms the tag. Never pushes a tag itself.