/sdlc-documentation:02-coding-guidelinesfrom sdlc-documentation
Produces or updates project coding guidelines covering language/framework conventions, enforceable checks, examples, and exceptions. Owns the named document contract and its acceptance evidence.
Ships in sdlc-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Artefact | Source/provider | Required? | Behaviour when absent |
|---|---|---|---|
| Project _context/, approved requirements, and relevant architecture | Project owner and upstream phase skills | Required | Stop at a gap register; do not invent scope, thresholds, integrations, or owners. |
| Existing artefact, implementation, configuration, and evidence named below | Repository, delivery team, or service owner | Required when updating or assessing | Mark inaccessible items not assessed; do not treat them as passed. |
| Target audience, environment, risk tolerance, and authority | Requester and accountable owner | Required | Produce a read-only outline with explicit assumptions; do not mutate project or production state. |
| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| Project Coding Guidelines | Developers and reviewers | Every mandatory rule maps to a configured check or an explicit review step, with project-language examples. |
| Decision and gap register | Reviewer and downstream phase owner | Every assumption, rejected option, unresolved dependency, waiver, and owner is explicit. |
| Validation evidence | Release or governance reviewer | Checks identify command or method, date, result, evidence location, and all unassessed items. |
| Evidence | Minimum content | Acceptance |
|---|---|---|
| Traceability record | Source artefact, decision, output section, owner | No mandatory decision is source-free. |
| Quality-gate result | Check, expected result, observed result, evidence path | Failures and unavailable checks cannot appear as passes. |
| Review record | Reviewer, date, disposition, open actions | The consumer can reproduce the acceptance decision. |
If files, execution, network, rendering, environment access, fonts, or current evidence are unavailable, return the narrowest useful draft plus a gap register. Label affected checks not assessed, retain the intended acceptance oracle, and state who must supply or verify the missing evidence. Never convert an unavailable check into a pass.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Evidence is complete and authority is explicit | Choose rules supported by the declared stack and architecture and produce the full artefact. | Generic rules that cannot be enforced. |
| A required source or approval is missing | Stop the affected branch; record the gap, owner, and unblock condition. | Fabricated requirements or unauthorised action. |
| Evidence conflicts across sources | Preserve both claims, identify the controlling owner, and request a recorded decision. | Silent selection of a convenient but wrong source. |
| A check cannot run in the available environment | Keep its oracle and mark it not assessed; require later execution evidence. | False assurance from capability limits. |
not assessed, preserve the oracle, and name the verifier.Given an approved project source and a conflicting implementation detail, record both with provenance, stop the affected branch, and obtain the accountable owner's decision. Then update the relevant contract, define a reproducible acceptance check, and retain its observed result. The artefact is accepted only when every mandatory rule maps to a configured check or an explicit review step, with project-language examples.
SaaS mode: if the project is a multi-tenant SaaS, apply
references/saas-multi-tenant-coding-guidelines-addendum.mdin addition to the generic steps below.
This is the second skill in Phase 04 (Development Artifacts). It generates language-specific coding standards that establish naming conventions, code structure patterns, anti-patterns to avoid, error handling conventions, and code quality metrics. The output ensures consistent, maintainable code across the development team and conforms to IEEE 730 (Software Quality Assurance Plans).
tech_stack.md exists in projects/<ProjectName>/_context/ with language and framework details.HLD.md exists in projects/<ProjectName>/<phase>/<document>/ to align coding patterns with architectural decisions.03-dev-environment-setup since they address independent concerns.| Attribute | Value |
|---|---|
| Inputs | projects/<ProjectName>/_context/tech_stack.md; optionally projects/<ProjectName>/<phase>/<document>/HLD.md |
| Output | projects/<ProjectName>/<phase>/<document>/Coding_Guidelines.md |
| Tone | Prescriptive, example-driven, enforceable |
| Standard | IEEE 730 |
| File | Location | Required | Purpose |
|---|---|---|---|
| tech_stack.md | projects/<ProjectName>/_context/tech_stack.md | Yes | Languages, frameworks, and tooling to derive conventions from |
| HLD.md | projects/<ProjectName>/<phase>/<document>/HLD.md | No | Architectural patterns to align coding conventions with |
| File | Location | Description |
|---|---|---|
| Coding_Guidelines.md | projects/<ProjectName>/<phase>/<document>/Coding_Guidelines.md | Complete coding standards document with conventions, patterns, and quality metrics |
Follow these seven steps in order. Halt and notify the user if a required input file is missing.
Read tech_stack.md from projects/<ProjectName>/_context/. Optionally read HLD.md from projects/<ProjectName>/<phase>/<document>/. Log the absolute path of each file read. If tech_stack.md is missing, halt execution and report the gap.
For each language and framework detected in tech_stack.md, define naming conventions:
Service, Controller, Repository)getUser, calculateTotal)Define the project directory layout and module organization:
Document specific anti-patterns with explanations:
Establish error handling standards:
Establish logging conventions:
If the requester or tech_stack.md states that the team uses AI coding assistants, apply references/ai-assistant-use-section.md: write section 9 with elements AU-1 to AU-8 and apply its checklist by hand. If it is unknown whether the team uses an assistant, record [CONTEXT-GAP: assistant use] and omit section 9. For the coding guidelines of an AI-agent product, route to 05-ai-agent-coding-guidelines-addendum instead; section 9 governs the team's own use of assistants, not the product.
Write the completed document to projects/<ProjectName>/<phase>/<document>/Coding_Guidelines.md. The document shall include a Code Review Checklist section that summarizes all conventions as a reviewable checklist. Log the total count of conventions defined.
The generated Coding_Guidelines.md shall contain these sections in order: Document Header (project name, date, version, standard), 1. Naming Conventions, 2. Code Structure, 3. Design Patterns to Use, 4. Anti-Patterns to Avoid, 5. Error Handling, 6. Logging, 7. Security Practices, 8. Code Review Checklist. When Step 6a applies, the document also contains 9. AI Assistant Use, after the Code Review Checklist.
| Pitfall | Remedy |
|---|---|
| Generic conventions not tied to tech stack | Every convention shall reference the specific language or framework it applies to |
| No concrete examples | Every naming convention shall include a compliant and non-compliant example |
| Anti-patterns without alternatives | Every anti-pattern shall include the recommended alternative approach |
| Missing security practices | Security conventions shall address injection prevention, authentication handling, and data sanitization |
| Section 9 added to the guidelines of an AI-agent product, or omitted for a team that uses assistants | Route an AI-agent product to 05-ai-agent-coding-guidelines-addendum; add section 9 only for the team's own use of assistants (references/ai-assistant-use-section.md, section 1) |
Coding_Guidelines.md exists in projects/<ProjectName>/<phase>/<document>/ with all eight sections populated.tech_stack.md.references/ai-assistant-use-section.md, and the reviewer and date are recorded.| Direction | Skill | Relationship |
|---|---|---|
| Upstream | projects/<ProjectName>/_context/tech_stack.md | Reads language and framework details |
| Parallel | 03-dev-environment-setup | Independent concern; can run simultaneously |
| Downstream | 04-contribution-guide | Informs code review checklist and PR standards |
| Downstream | Phase 05 (Testing) | Informs test naming and test structure conventions |
logic.prompt -- Executable prompt containing the step-by-step coding guidelines generation logic.README.md -- Quick-start guide for this skill.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors./01-prd-generationUse when converting approved discovery evidence into a traceable PRD with objectives, prioritised features, success measures, constraints, and release scope; use vision-statement for the strategic north star and lean-canvas while assumptions still need testing./01-sprint-planningUse when preparing a sprint goal, evidence-based team capacity, selected backlog, task breakdown, and delivery risks. Use definition-of-ready to admit individual items and definition-of-done to judge completed increments./01-stakeholder-analysisUse when identifying and classifying stakeholders, influence, interests, decision rights, and communication needs before elicitation; use elicitation-toolkit to gather requirements from them.Other plugins' skills for the same job