一键导入
kramme-siw-issue-define
Define or improve a local SIW issue file through a guided interview. For Linear or other external trackers use kramme:linear:issue-define.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Define or improve a local SIW issue file through a guided interview. For Linear or other external trackers use kramme:linear:issue-define.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze code quality of branch changes using specialized review agents (tests, errors, types, security, performance, slop, lean deletion, refactor fit, simplification). Outputs REVIEW_OVERVIEW.md with actionable findings, or replies inline with --inline. Use --team for multi-agent cross-validation. Not for UX, visual, or accessibility review -- use kramme:pr:ux-review for those.
Resolve findings from code reviews by implementing fixes and documenting changes. Implements fixes as commits on the current branch. Use --team to resolve independent findings in parallel by file area.
Charts huge or foggy initiatives into a local `.context` decision map and resolves one typed frontier ticket per session until the work is ready for SIW or another execution workflow. Use when the route to a destination cannot fit in one agent session or parallel workspaces need coordinated planning state. Not for clear specs, ordinary issue decomposition, implementation, or Linear-native tracking.
Builds a clearly throwaway logic/state or UI prototype to answer one design question before implementation hardens. Use when the user wants to sanity-check a state model, data shape, API surface, page layout, component direction, or interaction idea with disposable code. Not for production implementation, polished demos, visual diff reports, permanent routes, or broad design-system work.
Investigates a question against primary sources and saves one cited Markdown artifact. Use for reading legwork: official docs/API facts, source-code or spec checks, standards, and first-party service behavior before planning or implementation. Not for making product or architecture decisions, implementing code, broad web search, secondary blog summaries, or uncited answers.
Break spec into atomic, phase-based issues with tests and validation
| name | kramme:siw:issue-define |
| description | Define or improve a local SIW issue file through a guided interview. For Linear or other external trackers use kramme:linear:issue-define. |
| argument-hint | [ISSUE-G-XXX or ISSUE-P1-XXX] or [description and/or file paths for context] |
| disable-model-invocation | true |
| user-invocable | true |
Create or improve a local issue through guided interactive refinement. Can start from scratch with a description, or improve an existing issue by providing its identifier. Supports file references for technical context and proactively explores the codebase to inform issue definition.
Issue Naming: New issues default to G-XXX (General). Use P1-, P2-, etc. for phase-specific issues. When creating a new issue, recommend a phase prefix if the issue fits an active (not completed) phase.
This command ONLY creates or updates local issue files.
Implementation is a separate workflow. This skill ends when the issue file is written and the tracker/log are updated. After it completes, the user can invoke /kramme:siw:issue-implement if they want to start implementing.
Workflow files should exist. If siw/OPEN_ISSUES_OVERVIEW.md doesn't exist, suggest running /kramme:siw:init first. If the file is still missing after that suggestion, stop without creating an issue.
Use this shared vocabulary while deciding whether an issue can be written:
product-only: only the problem, user, or desired outcome is known.requirements-only: scope and success criteria exist, but issue-level dependencies, affected areas, or verification are not clear.planning-ready: enough context exists to define one or more SIW issues, but the current artifact is not yet executable.implementation-ready: the issue has bounded scope, dependencies/blockers, acceptance criteria, Mode, and verification.This skill turns planning-ready input into an implementation-ready local issue. If the interview cannot harden a product-only or requirements-only request into a single executable issue, stop and route to /kramme:siw:discovery or spec hardening instead of writing a vague issue. Route to /kramme:siw:generate-phases only when the artifact is planning-ready but too broad for one issue.
This skill owns the manual SIW issue creation/update protocol. Synced SIW issue-state contract (keep aligned across SIW issue creators): every SIW issue creation or tracker-visible issue update keeps the issue file, siw/OPEN_ISSUES_OVERVIEW.md, and siw/LOG.md synchronized as one issue-state change; partial write failures must be surfaced instead of accepted silently.
Primary: Future You — The issue must be clear enough to understand days or weeks later.
Secondary: Other Developers — Technical context helps others understand the work.
Handling $ARGUMENTS:
Check if input matches an existing issue:
ISSUE-G-001, ISSUE-P1-001, ISSUE-P2-001, etc.G-001, P1-001, P2-001, etc.ISSUE-001 or 001 (treated as G-001)Detection rule: Only treat it as an existing issue if a matching file exists in siw/issues/ISSUE-{prefix}-{number}-*.md.
If existing issue detected → IMPROVE MODE:
G and 001 from ISSUE-G-001, or P1 and 002 from P1-002)siw/issues/ISSUE-{prefix}-{number}-*.mdIf an identifier-like argument was provided but no file exists:
AskUserQuestion to confirm whether they want to create a new issue insteadrequested_prefix and ignore the provided numberIf no issue detected → CREATE MODE:
$ARGUMENTS:
G, G-, P1, P1-, P2, P2-, etc.requested_prefix (without trailing -) and strip it from the description/ or ending in common extensions) and store for Step 2AskUserQuestion to gather the initial conceptIf file paths provided:
Read toolRead references/classification-and-prefix.md, then auto-detect issue type from context, present the detected type with reasoning, allow user override, and store issue_type. For Bug (Simple), store is_simple_bug = true so Phase 4 and Phase 5 use the streamlined path.
Only for CREATE MODE. Skip for IMPROVE MODE.
Synced SIW spec-exclusion contract (keep aligned across SIW spec detectors): LOG.md, OPEN_ISSUES_OVERVIEW.md, DISCOVERY_BRIEF.md, SPEC_STRENGTHENING_PLAN.md, AUDIT_*.md, PRODUCT_AUDIT.md, SIW_*.md.
Use the phase-prefix recommendation flow in references/classification-and-prefix.md. It defines the spec/log/overview inputs to check, completed-phase heuristics, the prefix confirmation prompt, and how to store issue_prefix.
Present the existing issue to the user:
Present Current Issue
Identify Improvement Areas
AskUserQuestion:
Before creating a new issue, check for existing similar issues:
Scan Existing Issues
siw/issues/ directorysiw/OPEN_ISSUES_OVERVIEW.md for existing issue titlesCheck for Similar Issues
AskUserQuestion:
Generate Next Issue Number
issue_prefix (from Step 4; fallback to requested_prefix if present; otherwise default G)siw/OPEN_ISSUES_OVERVIEW.md table to find highest issue number within that prefix groupsiw/issues/ISSUE-{issue_prefix}-{candidate}-*.md. If any file matches, the tracker is out of sync with siw/issues/. Increment the candidate and re-check until no file matches, then warn the user that the tracker may need a reindex via /kramme:siw:issue-reindex.issue_number{issue_prefix}-{issue_number} (e.g., G-001, P1-002)For Simple Bugs (is_simple_bug = true): Skip if user provided root cause and affected file(s).
For all other issue types: Proactively search the repository:
Find Related Implementations
Grep to search for keywords from the descriptionGlob to find files in related areasIdentify Patterns & Conventions
Discover Related Components
Find Existing Tests
Output: Summarize findings to share with user and inform interview.
Before the interview, synthesize a working hypothesis for:
Use these as assumptions to validate instead of asking the user to restate obvious context.
Read references/interview-guide.md and follow the simple-bug or standard interview path based on issue_type and is_simple_bug. Store priority, size, related work, blockers, parallelization category, prefactoring need, and Mode for Phase 5. Confirm inferred metadata before composing.
Read references/issue-templates.md and select the appropriate template:
is_simple_bug = true.Both templates include the Mode: field. When emitting the issue, fill Mode: AUTO or Mode: HITL — <one-line reason> from Round 5.
Apply the prefactoring-first rule before finalizing the draft:
The references file also defines the Durability rule: issue bodies must describe modules, behaviors, and contracts — not file paths, line numbers, or internal helper/class names. Apply it to every section of the composed issue (Problem, Context, Technical Notes, References).
IMPROVE MODE: Show updated issue with change indicators.
CREATE MODE: Show complete issue.
Create/Update issue file:
siw/issues/ISSUE-{prefix}-{number}-{sanitized-title}.md
Sanitize title:
Issues are grouped by prefix (General, Phase 1, Phase 2, etc.).
For new issues: Add a row to the appropriate section. If the section doesn't exist yet, create the section header and table first.
For updated issues: Update the existing row if any tracker-visible metadata changed, including title, status, size, priority, mode, related/dependency metadata, or any other field shown in the current table layout.
Read references/tracker-schema.md for the column-layout rules (three coexisting layouts, when to use each, when to migrate), the parallelization-summary recomputation rules, and the (DONE) phase-marker rules.
For new issues, add an entry under ## Current Progress noting the created issue ID, title, and date. For updated issues, add an entry only when tracker-visible metadata changed, naming the issue and changed fields.
If any issue file, overview, or log write fails, stop, surface which file failed, and offer to roll back the partial issue-state update before continuing.
IMPROVE MODE:
CREATE MODE:
The skill ends here. Surface the file path and tell the user that if they want to implement next, they can run /kramme:siw:issue-implement {prefix}-{number}, or re-run /kramme:siw:issue-define {prefix}-{number} to refine. Do not start implementation.
Read references/definition-guidelines.md and apply it throughout the workflow.