Community寫作與編輯github.com

chonamdoo/程式碼生成準則

用於 agent-flow 的通用程式碼生成與修改準則。在實作前、實作中及 TDD 紅/綠/重構、除錯循環、錯誤修復、功能開發,以及任何 Codex、Claude、OMP 或其他代理程式撰寫或修改程式碼的任務中使用。強制執行開始前、實作中與實作後的檢查,但無評分標準。

程式碼生成準則 是什麼?

這項技能提供了一個結構化的程式碼生成與修改準則,專門設計用於 agent-flow 等協作代理環境。它適用於各種開發情境,包括測試驅動開發(TDD)的紅/綠/重構循環、除錯循環(fix-loop)、錯誤修復以及一般功能開發。此準則特別適合 Codex、Claude、OMP 或任何其他 AI 代理程式在需要編寫或修改程式碼時使用。其主要優勢在於強制執行一系列預先定義的檢查點:在任務開始前、實作過程中以及實作完成後。透過這些檢查,能夠顯著提升程式碼品質,減少錯誤導入的風險,並確保開發流程的一致性和可重複性。此準則並未搭配評分標準(scoring rubric),而是專注於流程規範,讓開發團隊能彈性調整。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/chonamdoo/agent-flow/tree/main/skills/code-generation-discipline

Installed? Explore more 寫作與編輯 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

程式碼生成準則 是做什麼的?

通用程式碼生成與修改準則,適用於 agent-flow。請在實作前、實作中,以及任何 Codex、Claude、OMP 或其他代理程式需要撰寫或修改程式碼的任務中使用,包含 TDD 紅/綠/重構、除錯循環、錯誤修復、功能開發等。此準則強制執行開始前、實作中與實作後的檢查,但無評分標準。

Individual skills in this repo

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

chonamdoo/comment-authoring-discipline

Apply comment-quality criteria during implementation and the final comment-quality pass before final-review, multi-review, or architecture-review after code changes. Applies equally in Codex, Claude, and OMP for Python, Kotlin, React Web, React Native, iOS, Swift, and SwiftUI.

chonamdoo/flutter-development-guide

Flutter implementation and review checklist. Use only when writing, modifying, or reviewing Flutter widget code, layout constraints, adaptive sizing, navigation and routing, platform channels, platform views, background entry points, list and image performance, async gaps across `BuildContext`, disposal, theme and design tokens, accessibility, localization, offline and error states, or Flutter test and golden coverage. Do not use for Dart language generalities, native Android or iOS internals beyond the engine and channel-registration seam a Dart entry point depends on, or broad rewrites.

chonamdoo/ios-app-shell-error-handling

Use when implementing or reviewing iOS app-wide error handling where SwiftUI views/ViewModels notify common errors and an @main App, WindowGroup AppShell, NavigationStack coordinator, or UIKit AppCoordinator owns root navigation, tab/session flow switching, alerts, sheets, toast hosts, SessionExpired handling, Maintenance handling, and root reset behavior.

chonamdoo/ios-clean-presentation-architecture

Use when creating, modifying, or reviewing an iOS Clean Architecture presentation layer with SwiftUI/UIKit state holders, explicit UiState, UiModel mapping, dependency injection, and state-based presentation code review.

chonamdoo/to-prd

Synthesizes the current conversation and codebase context into a PRD, then writes or publishes it according to the caller's requested output target. Use when the user asks to turn an already-discussed idea, plan, or conversation into a PRD; use `grilling` first if key decisions are still unresolved.

相關技能