用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill krammesiwissue-define命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | krammesiwissue-define |
| description | Define a new local issue with guided interview process Use when this capability is needed. |
| metadata | {"author":"abildtoft"} |
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. After this command completes, the user can invoke /kramme:siw:issue-implement if they want to start implementing.
CRITICAL: Do NOT proceed to code implementation after creating the issue. The workflow is complete once the issue file is created.
Workflow files should exist. If siw/OPEN_ISSUES_OVERVIEW.md doesn't exist, suggest running /kramme:siw:init first.
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 toolAuto-detect from context and suggest to the user (they can override):
Issue Types:
Detection Heuristics:
Present classification to user via AskUserQuestion:
issue_type for conditional behaviorFor Bug (Simple), store:
is_simple_bug = trueOnly for CREATE MODE. Skip for IMPROVE MODE.
Goal: recommend a phase prefix (P1-, P2-, etc.) when the issue clearly fits an active (not completed) phase. If the issue doesn't suit a phase well, or the relevant phase is completed, recommend G (General, i.e., IDs like G-001).
Inputs to check:
siw/ spec file created by /kramme:siw:init (phase breakdown and tasks).siw/LOG.md for phase completion notes (e.g., "Phase 1 complete", "Status: DONE").siw/OPEN_ISSUES_OVERVIEW.md for existing phase sections and active work.If multiple candidate spec files exist under siw/, ask the user which one is the main spec (exclude siw/LOG.md, siw/OPEN_ISSUES_OVERVIEW.md, and siw/DISCOVERY_BRIEF.md).
Heuristics:
siw/OPEN_ISSUES_OVERVIEW.md is marked with (DONE), treat the phase as completed.siw/OPEN_ISSUES_OVERVIEW.md has a Phase N section and all issues in that phase are DONE, treat the phase as completed.G.requested_prefix), treat it as preferred, but warn if the phase appears completed and offer alternatives.AskUserQuestion (recommendation + confirmation):
header: "Choose Issue Prefix"
question: "Which prefix should we use? Recommendation: {recommended_prefix}- ({reason})."
options:
- label: "Use {recommended_prefix}- (recommended)"
description: "Matches the spec/tasks and the phase isn't completed"
- label: "Use a different phase prefix"
description: "Pick P1-, P2-, P3-, etc."
- label: "Use G- (General)"
description: "Standalone or doesn't fit a phase well"
If {recommended_prefix} is G, omit the separate "Use G-" option to avoid duplicates.
Store issue_prefix based on the selection without the trailing dash (e.g., P1, P2, G).
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 groupissue_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.
The interview adapts based on issue type.
is_simple_bug = true)Streamlined 2-round interview:
Round 1: Problem & Reproduction
Round 2: Root Cause & Fix
If root cause unknown after Round 2:
Then proceed to Phase 5 with simple template.
Multi-round interview using AskUserQuestion.
IMPROVE MODE: Focus on selected improvement areas. Show current content first.
CREATE MODE: Follow standard flow below.
Questions:
Dig deep:
Questions:
Questions:
Leverage exploration findings:
Questions:
Guide toward testable criteria:
Questions:
File naming: siw/issues/ISSUE-{prefix}-{number}-{short-description}.md
# ISSUE-{prefix}-{number}: Fix {what's broken}
**Status:** Ready | **Priority:** {priority} | **Phase:** {N or General} | **Related:** {tasks if any}
## Problem
{1-2 sentence description of the bug}
**Steps to reproduce:**
1. {Step 1}
2. {Step 2}
3. **Bug:** {What happens}
## Root Cause
{1-2 sentences explaining what's causing the bug}
## Fix
{1-2 sentences describing what needs to change}
**File:** `{path/to/affected/file}`
File naming: siw/issues/ISSUE-{prefix}-{number}-{short-description}.md
# ISSUE-{prefix}-{number}: {Title}
**Status:** Ready | **Priority:** {priority} | **Phase:** {N or General} | **Related:** {tasks if any}
## Problem
{What pain point or issue exists}
{Who is affected and how}
## Context
{Current state and background}
{Why this matters now}
## Scope
### In Scope
- {Specific item 1}
- {Specific item 2}
### Out of Scope
- {Explicitly excluded item 1}
## Decision Boundaries
- **Captured in this issue:** {product, behavior, or scope decisions that need alignment}
- **Left to implementation:** {engineering choices that should not be over-specified here}
## Acceptance Criteria
- [ ] {Testable criterion 1}
- [ ] {Testable criterion 2}
## Edge Cases
- {Edge case 1}: {Expected behavior}
---
## Technical Notes
### Implementation Approach
{High-level approach - what components/areas need changes}
### Affected Areas
- {Component/module 1}
### Patterns to Follow
{Reference existing patterns in the codebase}
### References
- {Related files: `path/to/file`}
## Assumptions Used
- {Only include when the issue had to infer user, why-now, or non-goals from incomplete context}
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:
For new issues: Add row to the appropriate section (General, Phase 1, Phase 2, etc.). If the section doesn't exist yet, create the section header and table first.
| {prefix}-{number} | {Title} | Ready | {Priority} | {Related} |
For updated issues: Update existing row if title/priority/status changed.
Section organization: Issues are grouped by prefix (General, Phase 1, Phase 2, etc.).
If updating a phase issue to DONE:
(DONE) to the phase section header in siw/OPEN_ISSUES_OVERVIEW.md.If creating or updating a phase issue that is not DONE:
(DONE), ask the user whether to remove the marker because there is now open work in that phase.IMPROVE MODE:
CREATE MODE:
The define-issue workflow is now complete.
Next steps for the user:
/kramme:siw:issue-implement {prefix}-{number} (e.g., G-001, P1-001)/kramme:siw:issue-define {prefix}-{number} againSTOP HERE. Wait for the user's next instruction.
Use Simple Bug Template when:
Use Comprehensive Template when:
$ARGUMENTS and detect mode (issue ID → improve, otherwise → create)Converted and distributed by TomeVault — claim your Tome and manage your conversions.