بنقرة واحدة
godark-define-conventions
Define or update coding conventions for the project
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Define or update coding conventions for the project
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Analyze an existing project and populate godark.yaml with modules, codegen, CI, and env configuration
Generate scenario spec files for a phase or individual issue
Create GitHub issues from a phase planning doc
Create a project roadmap and GitHub milestones through conversation
Generate a practical overview with real-world examples for a completed roadmap phase
Create a detailed planning doc for a roadmap phase
| name | godark-define-conventions |
| description | Define or update coding conventions for the project |
| argument-hint | [project-path] |
| disable-model-invocation | true |
Help the user define or update coding conventions for their project. For
existing projects, read source files to identify patterns in use and propose
conventions to standardize on. For new projects, recommend idiomatic conventions
filtered for agent-friendliness. Writes docs/conventions.md.
Read project configuration — Read godark.yaml to find the repo,
runtime info (language, framework), and any configured paths.
Read existing conventions — Check whether docs/conventions.md already
exists. If it does, read it so you can propose updates rather than starting
from scratch.
Read CLAUDE.md — Read CLAUDE.md (if it exists) for any existing
convention references, coding standards, or constraints already documented
for agents.
Assess the project state — Determine whether this is an existing project with code or a new/empty project:
internal/, src/, lib/,
pkg/, app/) and source files are present.For existing projects — analyse source files:
slog, zap, logrus, fmt.Println)For new/empty projects — gather requirements:
Apply the agent-friendliness filter — For each proposed or observed convention, assess how well it works with agentic development. Recommend patterns that agents can apply reliably:
Flag conventions that impede agentic development — Identify any patterns in use (or being considered) that are likely to cause problems for agents:
context.Value, thread-local storage, dynamic dispatch by
string name).Discuss with the user — Present the identified patterns, proposed conventions, agent-friendliness assessments, and any flagged anti-patterns. Ask the user:
Iterate until the user is satisfied with the agreed conventions.
Write docs/conventions.md — Write the agreed conventions to
docs/conventions.md. Create the docs/ directory if needed. If the file
already exists, update it with the agreed changes. Use the format below.
Suggest next steps for inconsistencies — If the existing codebase uses
inconsistent conventions (e.g. two different logging libraries, mixed error
handling styles), suggest running /godark-create-milestone to plan a
standardization phase that migrates the codebase to the agreed conventions.
# <Project Name> — Coding Conventions
> One-line description of the project and its language/framework.
---
## Error Handling
<Description of the agreed error handling convention.>
**Pattern**: `<example snippet or rule>`
---
## Logging
<Description of the agreed logging convention.>
**Pattern**: `<example snippet or rule>`
---
## Test Style
<Description of the agreed test style.>
**Pattern**: `<example snippet or rule>`
---
## Naming
<Description of the agreed naming conventions.>
---
## Dependency Injection
<Description of the agreed dependency injection approach.>
---
## Agent-Friendliness Notes
<Summary of recommendations applied and any flagged patterns to avoid.>
docs/conventions.md must include at least a description and
a concrete example or rule.CLAUDE.md — that file is managed by humans. If the user wants
to add conventions there, note what to add and ask them to do it manually.