Community编程与开发github.com

规格初始化

从项目描述中生成唯一的功能名称并初始化规范结构。

规格初始化 是什么?

该技能(规范初始化)旨在根据用户提供的项目描述或通过 `/kiro-discovery` 创建的简报,自动生成一个独特的功能名称并搭建对应的规范目录结构。它明确区分了不同来源的输入:优先使用简报中的信息来预填项目描述,从而跳过不必要的澄清问题。如果缺少简报,该技能会主动向用户提问,确保问题描述包含“谁有问题”、“现状”和“期望改变”三个核心要素。它还会检查目录冲突以避免重复,并根据模板文件(`init.json` 和 `requirements-init.md`)填充占位符(如功能名称、时间戳和项目描述),最终生成 `spec.json` 和 `requirements.md`。该技能适用于 Claude Code、Cursor 等遵循 Kiro 开发工作流的 AI 代理,其设计严格遵守“仅初始化”的原则,不会生成需求、设计或任务,从而保持工作流程的清晰和专注。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/viictiiyo-dev/tiktok-bridge/tree/HEAD/.opencode/skills/kiro-spec-init

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

规格初始化 是做什么的?

执行步骤

  1. 检查简报:如果 .kiro/specs/{feature-name}/brief.md 存在(由 /kiro-discovery 创建),则读取它。简报包含发现会话中的问题、方法、范围和约束。使用它来预填项目描述,并跳过简报已回答的澄清问题。
  2. 澄清意图:requirements.md 中的项目描述必须包含三个要素:(a) 谁有问题,(b) 现状,(c) 应该改变什么。如果 brief.md 存在且涵盖了这些内容,则跳到步骤 3。否则,在继续之前要求用户澄清。根据需要提出尽可能多的问题;不要用自己的假设来填补空白。
  3. 检查唯一性:检查 .kiro/specs/ 是否存在命名冲突。如果该目录已存在但仅包含 brief.md(没有 spec.json),则使用该目录(发现会话已创建)。
  4. 创建目录:.kiro/specs/[feature-name]/(如果发现会话已创建则跳过)
  5. 使用模板初始化文件:
    • 读取 .kiro/settings/templates/specs/init.json
    • 读取 .kiro/settings/templates/specs/requirements-init.md
    • 替换占位符:
      • {{FEATURE_NAME}} → 生成的功能名称
      • {{TIMESTAMP}} → 当前 ISO 8601 时间戳
      • {{PROJECT_DESCRIPTION}} → 来自 brief.md(如果有),否则为 $ARGUMENTS
      • es → 语言代码(从用户的输入语言检测,默认为 en)
    • 将 spec.json 和 requirements.md 写入规范目录

重要约束

  • 不要生成需求、设计或任务。此技能仅创建 spec.json 和 requirements.md。

输出描述

使用 spec.json 中指定的语言提供输出,结构如下:

  1. 生成的功能名称:feature-name 格式,附带 1-2 句理由
  2. 项目摘要:简短摘要(1 句)
  3. 已创建的文件:带完整路径的列表
  4. 下一步:命令块显示 /kiro-spec-requirements <feature-name>

格式要求:

  • 使用 Markdown 标题(##, ###)
  • 将命令包裹在代码块中
  • 保持总输出简洁(不超过 250 字)
  • 根据 spec.json.language 使用清晰、专业的语言

安全与回退

  • 功能名称不明确:如果功能名称生成不明确,则提供 2-3 个选项供用户选择
  • 模板缺失:如果 .kiro/settings/templates/specs/ 中的模板文件不存在,报告错误,指定缺失的文件路径,并建议检查仓库设置
  • 目录冲突:如果功能名称已存在,则追加数字后缀(例如 feature-name-2),并通知用户自动冲突解决
  • 写入失败:报告错误,指定具体路径,并建议检查权限或磁盘空间

Individual skills in this repo

This repo contains 16 individual skills — each has its own dedicated page.

viictiiyo-dev/tiktok-bridge

Investigate implementation failures using root-cause-first debugging. Use when an implementer is blocked, verification fails, or repeated remediation does not converge.

viictiiyo-dev/tiktok-bridge

Entry point for new work. Determines the best action path or work decomposition (update existing spec, create new spec, mixed decomposition, or no spec needed) and refines ideas through structured dialogue.

viictiiyo-dev/tiktok-bridge

Implement approved tasks using TDD with subagent dispatch. Runs all pending tasks autonomously or selected tasks manually.

viictiiyo-dev/tiktok-bridge

Review a task implementation against approved specs, task boundaries, and verification evidence. Use after an implementer finishes a task, after remediation, or before accepting a task as complete.

viictiiyo-dev/tiktok-bridge

Create complete specs (requirements, design, tasks) for all features in roadmap.md using parallel sub-agent dispatch by dependency wave.

viictiiyo-dev/tiktok-bridge

Create comprehensive technical design for a specification

viictiiyo-dev/tiktok-bridge

Quick spec generation with interactive or automatic mode

viictiiyo-dev/tiktok-bridge

Generate comprehensive requirements for a specification

viictiiyo-dev/tiktok-bridge

Show specification status and progress

viictiiyo-dev/tiktok-bridge

Generate implementation tasks for a specification

viictiiyo-dev/tiktok-bridge

Create custom steering documents for specialized project contexts

viictiiyo-dev/tiktok-bridge

Manage .kiro/steering/ as persistent project knowledge

viictiiyo-dev/tiktok-bridge

Interactive technical design quality review and validation

viictiiyo-dev/tiktok-bridge

Analyze implementation gap between requirements and existing codebase

viictiiyo-dev/tiktok-bridge

Validate feature-level integration after all tasks are implemented. Checks cross-task consistency, full test suite, and overall spec coverage.

viictiiyo-dev/tiktok-bridge

Verify completion and success claims with fresh evidence. Use before claiming a task is complete, a fix works, tests pass, or a feature is ready for GO.

相关技能