/sdlc-documentation:04-contribution-guidefrom sdlc-documentation
Produces or updates a repository contribution guide covering branching, commits, pull requests, review gates, CI expectations, and exception handling. Requires approved project evidence and decision authority.
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 |
|---|---|---|
| Repository Contribution Guide | Contributors and maintainers | A contributor can open a conforming change and reviewers can determine acceptance from the documented gates. |
| 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 contribution controls that match repository protection and CI and produce the full artefact. | A process guide that contradicts actual controls. |
| 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 a contributor can open a conforming change and reviewers can determine acceptance from the documented gates.
This is the fourth skill in Phase 04 (Development Artifacts). It generates a contribution guide that establishes the team's branching strategy, commit message conventions, pull request process, code review checklist, and CI/CD expectations. The output standardizes the development workflow so that every contribution follows a predictable, auditable process conforming to IEEE 1074 (Software Life Cycle Processes).
tech_stack.md exists in projects/<ProjectName>/_context/ with VCS and CI/CD tooling details.02-coding-guidelines and 03-dev-environment-setup have completed, since the contribution guide references coding standards and environment setup.| Attribute | Value |
|---|---|
| Inputs | projects/<ProjectName>/_context/tech_stack.md |
| Output | projects/<ProjectName>/<phase>/<document>/Contribution_Guide.md |
| Tone | Prescriptive, process-oriented, team-facing |
| Standard | IEEE 1074 |
| File | Location | Required | Purpose |
|---|---|---|---|
| tech_stack.md | projects/<ProjectName>/_context/tech_stack.md | Yes | VCS platform, CI/CD tooling, deployment targets |
| File | Location | Description |
|---|---|---|
| Contribution_Guide.md | projects/<ProjectName>/<phase>/<document>/Contribution_Guide.md | Complete contribution workflow guide with branching, commits, PRs, and review standards |
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/. Log the absolute path of each file read. If tech_stack.md is missing, halt execution and report the gap. Identify the VCS platform (GitHub, GitLab, Bitbucket), CI/CD tooling, and deployment targets.
Define the branching model based on the project's scale and deployment strategy:
Establish commit message standards using Conventional Commits format:
type(scope): description (e.g., feat(auth): add JWT token refresh)Document the complete PR lifecycle:
Produce a structured checklist for code reviewers:
Document what the CI/CD pipeline shall enforce:
Write the completed document to projects/<ProjectName>/<phase>/<document>/Contribution_Guide.md. Include a Getting Started section that references Dev_Environment_Setup.md for initial setup and Coding_Guidelines.md for code standards. Include an Issue Reporting section with templates for bug reports and feature requests. Log the total count of process rules defined.
The generated Contribution_Guide.md shall contain these sections in order: Document Header (project name, date, version, standard), 1. Getting Started, 2. Branching Strategy, 3. Commit Conventions, 4. Pull Request Process, 5. Code Review Checklist, 6. CI/CD Pipeline, 7. Issue Reporting.
| Pitfall | Remedy |
|---|---|
| Branching strategy without naming conventions | Every branch type shall have a naming pattern with examples |
| Commit conventions without concrete examples | Every commit type shall include a real-world example message |
| PR process without size guidelines | Define maximum PR size to prevent unreviewable changes |
| CI/CD expectations without specific thresholds | Coverage and quality thresholds shall use specific percentages |
Contribution_Guide.md exists in projects/<ProjectName>/<phase>/<document>/ with all seven sections populated.| Direction | Skill | Relationship |
|---|---|---|
| Upstream | 02-coding-guidelines | References coding standards for review checklist items |
| Upstream | 03-dev-environment-setup | References environment setup in Getting Started section |
| Upstream | projects/<ProjectName>/_context/tech_stack.md | Reads VCS and CI/CD tooling details |
| Downstream | Development teams | Primary workflow reference for all contributors |
logic.prompt -- Executable prompt containing the step-by-step contribution guide 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