Community程式設計與開發github.com

Kiro 自訂引導文件建立

為專業專案領域建立自訂引導文件,協助專案記憶管理。

Kiro 自訂引導文件建立 是什麼?

Kiro Custom Steering Creation 是一個幫助開發者與 AI 代理建立專業領域專案記憶的技能。其核心功能是為特定主題(例如 API 標準、測試策略、資料庫設計等)建立自訂引導文件,這些文件遵循與核心引導文件相同的原則,但專注於單一領域的系統性模式整理。該技能支援 Kiro 平台,並透過模板驅動的方式加速建立流程:使用者可以從預先定義的模板清單中選擇對應的領域,技能會自動載入並根據專案程式碼進行即時分析,提取相關模式後產生 100-200 行的自訂引導文件。如果啟用了多代理功能,技能還能平行執行模板載入、原則分析與程式碼掃描等任務,最後再綜合結果輸出到 `.kiro/steering/` 目錄下。這項技能特別適合需要長期維護的專案,幫助開發者與 AI 代理在特定領域保持一致的開發慣例。

相容平台✓Claude Code~Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/viictiiyo-dev/tiktok-bridge/tree/HEAD/.opencode/skills/kiro-steering-custom

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Kiro 自訂引導建立

<background_information> 角色:建立超越核心檔案(產品、技術、結構)的專業引導文件。

任務:幫助使用者為專業領域建立領域特定的專案記憶。

成功標準:

  • 自訂引導能捕捉專業模式
  • 遵循與核心引導相同的粒度原則
  • 為特定領域提供明確價值 </background_information>

如果引導脈絡已經從對話中可用,則跳過冗餘的檔案讀取。 否則:

  • 檢查 .kiro/settings/templates/steering-custom/ 中的可用模板
  • 從此技能的目錄中讀取 rules/steering-principles.md 以了解引導原則

工作流程

  1. 詢問使用者自訂引導需求:

    • 領域/主題(例如「API 標準」、「測試方法」)
    • 要記錄的特定需求或模式
  2. 檢查模板是否存在:

    • 如果可用則從 .kiro/settings/templates/steering-custom/{name}.md 載入
    • 將其作為起點,根據專案進行自訂
  3. 分析程式碼庫(JIT)以尋找相關模式:

平行研究

以下研究領域是獨立的,可以平行執行:

  1. 模板與原則:載入匹配的模板和 steering-principles.md
  2. 領域模式:使用 Glob/Grep/Read 分析程式碼庫中的領域特定模式

如果啟用了多代理,則為上述每個領域派生子代理。否則依序執行。

所有平行研究完成後,綜合發現結果以產生引導文件。

  1. 產生自訂引導:

    • 如果可用則遵循模板結構
    • 應用此技能目錄中的 rules/steering-principles.md 原則
    • 專注於模式,而非詳盡清單
    • 保持在 100-200 行(2-3 分鐘閱讀時間)
  2. 建立檔案至 .kiro/steering/{name}.md

可用模板

.kiro/settings/templates/steering-custom/ 中的可用模板:

  1. api-standards.md - REST/GraphQL 慣例、錯誤處理
  2. testing.md - 測試組織、模擬、涵蓋率
  3. security.md - 驗證模式、輸入驗證、機密資料
  4. database.md - 結構設計、遷移、查詢模式
  5. error-handling.md - 錯誤類型、記錄、重試策略
  6. authentication.md - 驗證流程、權限、工作階段管理
  7. deployment.md - CI/CD、環境、回滾程序

在需要時載入模板,並為專案進行自訂。

引導原則

來自 rules/steering-principles.md(此技能目錄中):

  • 模式優先於清單:記錄模式,而非每個檔案/元件
  • 單一領域:每個檔案一個主題
  • 具體範例:使用程式碼展示模式
  • 可維護的大小:典型 100-200 行
  • 安全第一:絕不包含機密或敏感資料

工具指引

  • Read:載入模板,分析現有程式碼
  • Glob:尋找相關檔案以進行模式分析
  • Grep:搜尋特定模式
  • Bash 搭配 ls:了解相關結構

JIT 策略:僅在建立該類引導時載入模板。

輸出描述

包含檔案位置的聊天摘要(檔案已直接建立)。

✅ 自訂引導已建立

## 已建立:
- .kiro/steering/api-standards.md

## 基於:
- 模板:api-standards.md
- 分析:src/api/ 目錄模式
- 提取:REST 慣例、錯誤格式

## 內容:
- 端點命名模式
- 要求/回應格式
- 錯誤處理慣例
- 驗證方法

根據需要檢閱並自訂。

範例

成功:API 標準

輸入:「建立 API 標準引導」 動作:載入模板,分析 src/api/,提取模式 輸出:包含專案特定 REST 慣例的 api-standards.md

成功:測試策略

輸入:「記錄我們的測試方法」 動作:載入模板,分析測試檔案,提取模式 輸出:包含測試組織和模擬策略的 testing.md

安全性與備援

  • 無模板:根據領域知識從頭產生
  • 安全性:絕不包含機密資料(載入原則)
  • 驗證:確保不與核心引導內容重複

注意事項

  • 模板是起點,請為專案進行自訂
  • 遵循與核心引導相同的粒度原則
  • 所有引導檔案作為專案記憶載入
  • 自訂檔案與核心檔案同等重要
  • 避免記錄代理特定的工具目錄(例如 .cursor/、.gemini/、.claude/)
  • 對 .kiro/specs/ 和 .kiro/steering/ 的簡短參考是可接受的;避免參照其他 .kiro/ 目錄

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

Initialize a new specification with detailed project description

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

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.

相關技能