Community写作与编辑github.com

chonamdoo/code-generation-discipline

适用于 agent-flow 的通用代码生成和修改规范,在实现前后、TDD 红/绿/重构、修复循环、错误修复、功能开发等任何代码编写或修改任务中使用。支持 Codex、Claude、OMP 等代理,强制执行实现前、实现中和实现后的检查,无需评分标准。

code-generation-discipline 是什么?

该技能为 AI 代理(如 Codex、Claude、OMP 等)提供一套通用的代码生成与修改规范,适用于 TDD 红/绿/重构、修复循环、错误修复及功能开发等任何需要编写或修改代码的场景。它引入了一种结构化的流程,在实现前、实现中和实现后三个阶段强制执行自动检查,确保代码质量和一致性,而无需依赖评分标准。该技能基于 agent-flow 框架,旨在减少代理在代码生成过程中的随意性,提升输出的可预测性和可靠性。通过预先定义的检查点和约束,它帮助代理在修改代码时保持纪律性,避免常见错误,并提高团队协作时的代码一致性。

兼容平台✓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 的新对话。

文档

code-generation-discipline 是做什么的?

适用于 agent-flow 的通用代码生成和修改规范。在实现前后、TDD 红/绿/重构、修复循环、错误修复、功能开发以及任何 Codex、Claude、OMP 或其他代理编写或修改代码的任务中使用。强制执行实现前、实现中、实现后的检查,无需评分标准。

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.

相关技能