Skip to content

Commit 5002214

Browse files
docs: Restructure documentation
Squash-merge via GitHub CLI per repo guidelines (trunk-based, squash & delete feature branch).
1 parent 656ac4c commit 5002214

File tree

6 files changed

+464
-10
lines changed

6 files changed

+464
-10
lines changed

.github/chatmodes/CodeReview.chatmode.md renamed to .github/chatmodes/CodeReviewer.chatmode.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
description: 'Code Review Mode'
2+
description: 'Code Reviewer Mode'
33
tools: ['codebase', 'search', 'usages', 'problems', 'changes']
44
---
55

6-
# Code Review Mode Instructions
6+
# Code Reviewer Mode Instructions
77

8-
You are in Code Review Mode. Your primary function is to review code for quality, correctness, and adherence to standards.
8+
You are in Code Reviewer Mode. Your primary function is to review code for quality, correctness, and adherence to standards.
99

1010
<!--
11-
Purpose: Define Code Review Mode behavior and constraints. Treat sections below as rules for conducting effective reviews.
11+
Purpose: Define Code Reviewer Mode behavior and constraints. Treat sections below as rules for conducting effective reviews.
1212
How to interpret: Focus on reviewing changes; do not implement code. Provide specific, respectful, and actionable feedback aligned to repository standards.
1313
-->
1414

.github/chatmodes/Developer.chatmode.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
description: 'Code Review Mode'
2+
description: 'Developer Mode'
3+
34
tools: ['codebase', 'usages', 'problems', 'changes', 'testFailure', 'terminalSelection', 'terminalLastCommand', 'openSimpleBrowser', 'fetch', 'findTestFiles', 'searchResults', 'githubRepo', 'todos', 'editFiles', 'runNotebooks', 'search', 'new', 'runCommands', 'runTasks']
45
---
56

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
description: 'Testing Mode'
2+
description: 'Tester Mode'
33
tools: ['codebase', 'search', 'editFiles', 'usages', 'problems', 'changes', 'terminalSelection', 'terminalLastCommand', 'runCommands']
44
---
55

6-
# Testing Mode Instructions
6+
# Tester Mode Instructions
77

88
<!--
99
Purpose: Define the Testing Mode behavior and constraints. Treat sections below as rules for how to propose, write, and maintain tests.

.github/instructions/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,5 @@ Bad: # Architecture
9393

9494
---
9595

96-
If you want, I can add a small JSON Schema and a CI workflow that validates instruction frontmatter on PRs.
9796

9897

README.md

Lines changed: 217 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Welcome! This repository is a GitHub Template created by Capgemini. It provides practical, portable, and useful examples of GitHub Copilot configuration for real-world projects.
44

5-
65
## Who this is for
76
- Developers and teams adopting AI-assisted development
87
- Project and technical leads seeking practical best practices
@@ -22,7 +21,86 @@ Welcome! This repository is a GitHub Template created by Capgemini. It provides
2221
2. Review and adapt the example [chat modes](.github/chatmodes/README.md), [instructions](.github/instructions/README.md), and [prompts](.github/prompts/README.md).
2322
3. Read the project docs in [docs/README.md](docs/README.md).
2423

25-
### Copying Copilot Customisations
24+
## Key Features and Functionalities
25+
26+
### 1. Custom Chat Modes
27+
28+
The repository includes specialized chat modes located in `.github/chatmodes/`:
29+
30+
- **Developer Mode**: Focuses on test-driven development with quality gates and design-first methodology
31+
- **Planner Mode**: Provides structured planning with task breakdown and dependency management
32+
- **Documentation Mode**: Standardizes documentation creation following repository templates
33+
- **Code Reviewer Mode**: Implements systematic code review with best practices enforcement
34+
- **Tester Mode**: Emphasizes BDD-focused testing approach with comprehensive test coverage
35+
36+
### 2. Reusable Prompt Templates
37+
38+
Located in `.github/prompts/`, these templates provide standardized approaches for:
39+
40+
- **`write-adr.prompt.md`**: Creates Architectural Decision Records with structured templates
41+
- **`write-prd.prompt.md`**: Generates Product Requirements Documents with measurable objectives
42+
- **`write-docs.prompt.md`**: Produces consistent documentation following repository standards
43+
- **`write-ears-spec.prompt.md`**: Creates requirements using Easy Approach to Requirements Syntax
44+
- **`copilot-setup-check.prompt.md`**: Evaluates and optimizes Copilot configuration
45+
46+
### 3. Comprehensive Instruction System
47+
48+
The `.github/instructions/` directory contains detailed guidelines for:
49+
50+
- **`backend.instructions.md`**: Server-side development best practices
51+
- **`frontend.instructions.md`**: Client-side development guidelines
52+
- **`docs.instructions.md`**: Documentation creation and maintenance standards
53+
- **`bdd-tests.instructions.md`**: Behavior-driven development testing methodology
54+
55+
### 4. Repository Structure & Templates
56+
57+
The `docs/` directory provides organized templates for:
58+
59+
- **ADRs** (`docs/ADRs/`): Architecture decision documentation with context and consequences
60+
- **PRDs** (`docs/PRDs/`): Product requirements with priorities and acceptance criteria
61+
- **Design Documents** (`docs/design/`): Technical design specifications
62+
- **Engineering Guidelines** (`docs/engineering/`): Development process documentation
63+
64+
### 5. Project Planning Framework
65+
66+
The `plans/` directory includes:
67+
68+
- **Plan Templates**: Structured project planning with stakeholders and timelines
69+
- **Roadmap Management**: Strategic planning and milestone tracking
70+
- **TODO Management**: Task tracking and completion monitoring
71+
72+
### 6. Workflow Integration
73+
74+
#### Branching Strategy
75+
76+
The repository enforces trunk-based development with:
77+
78+
- Short-lived feature branches (maximum 3 days)
79+
- Mandatory pull request reviews
80+
- Squash and merge for clean history
81+
- Automatic branch cleanup
82+
83+
#### Commit Conventions
84+
85+
All commits must follow conventional commit format:
86+
87+
```
88+
<type>: <subject>
89+
90+
[optional body]
91+
92+
[optional footer]
93+
```
94+
95+
Types include: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`
96+
97+
#### Version Control
98+
99+
- Tag major releases with semantic versioning
100+
- Maintain changelog for significant updates
101+
- Archive deprecated features in `plans/archive/`
102+
103+
### 7. Copying Copilot Customisations
26104

27105
The custom chatmodes, instructions and prompts can be copied into the same directory structure of another repository. Each file has comments that explain the approach, structure and content of each file.
28106

@@ -44,6 +122,17 @@ Reuse and reference instructions files in your prompt files and chat modes to ke
44122
- Avoid embedding secrets or environment-specific data; reference where secure configs live (e.g., repo secrets, vault).
45123
- When in doubt, be explicit: busy users prefer exact commands/phrases to adapt rather than broad theory.
46124

125+
### Adding New Features
126+
127+
When adding new chat modes, prompts, or instructions:
128+
129+
1. Follow existing naming conventions
130+
2. Include comprehensive documentation
131+
3. Add examples and usage guidelines
132+
4. Update this master documentation
133+
5. Test with multiple scenarios before finalizing
134+
135+
47136
## Where to find more information
48137

49138
- See `AGENTS.md` for general AI agent instructions and project context
@@ -56,3 +145,129 @@ You can find more about how to [customise and extend Github Copilot](https://doc
56145

57146
You can find more examples of Copilot configuration in the [Awesome Copilot repository on Github.com](https://github.com/github/awesome-copilot/tree/main).
58147

148+
# Document Reference Hierarchy
149+
150+
This diagram shows how documents reference each other across the repository, mapping the interconnections between configuration files, instructions, prompts, documentation, and plans.
151+
152+
```mermaid
153+
flowchart LR
154+
%% Core Configuration Hub (Left)
155+
subgraph CONFIG ["🏠 Core Configuration"]
156+
CI["copilot-instructions.md"]
157+
AGENTS["AGENTS.md"]
158+
README["README.md"]
159+
end
160+
161+
%% GitHub Configuration (Top Center)
162+
subgraph GITHUB [".github/ Configuration"]
163+
direction TB
164+
165+
subgraph CHATMODES ["💬 Chat Modes"]
166+
DOC["Documentation"]
167+
PLAN["Planner"]
168+
DEV["Developer"]
169+
CR["CodeReview"]
170+
TEST["Testing"]
171+
end
172+
173+
subgraph INSTRUCTIONS ["📋 Instructions"]
174+
DOCINST["docs.instructions"]
175+
BACKEND["backend.instructions"]
176+
FRONTEND["frontend.instructions"]
177+
BDD["bdd-tests.instructions"]
178+
end
179+
180+
subgraph PROMPTS ["🎯 Prompts"]
181+
DOC_PROMPT["write-docs"]
182+
ADR_PROMPT["write-adr"]
183+
PRD_PROMPT["write-prd"]
184+
EAR_PROMPT["write-ears"]
185+
SETUP_PROMPT["setup-check"]
186+
end
187+
end
188+
189+
%% Content Directories (Right)
190+
subgraph CONTENT ["📁 Content & Output"]
191+
direction TB
192+
193+
subgraph DOCS ["📖 Documentation"]
194+
ADR_TEMPLATE["adr-template.md"]
195+
PRD_TEMPLATE["prd-template.md"]
196+
CODE_REVIEW["code-review-guidelines.md"]
197+
end
198+
199+
subgraph PLANS ["📅 Plans"]
200+
PLAN_TEMPLATE["plan-template.md"]
201+
TODO["TODO.md"]
202+
ARCHIVE_PLAN["archived-plans"]
203+
end
204+
end
205+
206+
%% Primary Configuration Flow (Core → GitHub Config)
207+
CI -.->|"references"| INSTRUCTIONS
208+
CI -.->|"references"| DOCS
209+
AGENTS -.->|"references"| PLANS
210+
211+
%% Chat Mode Integration (GitHub Config → Content)
212+
DOC ==>|"uses templates"| ADR_TEMPLATE
213+
DOC ==>|"uses templates"| PRD_TEMPLATE
214+
DOC ==>|"follows rules"| DOCINST
215+
216+
PLAN ==>|"uses template"| PLAN_TEMPLATE
217+
PLAN ==>|"manages"| TODO
218+
219+
DEV -.->|"references"| DOCS
220+
DEV -.->|"references"| PLANS
221+
222+
%% Prompt → Template Relationships
223+
DOC_PROMPT ==>|"generates"| DOCS
224+
ADR_PROMPT ==>|"generates"| ADR_TEMPLATE
225+
PRD_PROMPT ==>|"generates"| PRD_TEMPLATE
226+
SETUP_PROMPT -.->|"validates"| CONFIG
227+
228+
%% Instruction → Content Rules
229+
DOCINST ==>|"governs"| DOCS
230+
BACKEND -.->|"applies to"| DOCS
231+
FRONTEND -.->|"applies to"| DOCS
232+
233+
%% Archive References
234+
ARCHIVE_PLAN -.->|"references"| CONFIG
235+
ARCHIVE_PLAN -.->|"uses"| PLAN_TEMPLATE
236+
237+
%% Styling
238+
classDef config fill:#e3f2fd,stroke:#1976d2,stroke-width:3px,color:#000
239+
classDef chatmode fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#000
240+
classDef instruction fill:#e8f5e8,stroke:#388e3c,stroke-width:2px,color:#000
241+
classDef prompt fill:#fff3e0,stroke:#f57c00,stroke-width:2px,color:#000
242+
classDef content fill:#fce4ec,stroke:#c2185b,stroke-width:2px,color:#000
243+
classDef plan fill:#f1f8e9,stroke:#689f38,stroke-width:2px,color:#000
244+
245+
class CI,AGENTS,README config
246+
class DOC,PLAN,DEV,CR,TEST chatmode
247+
class DOCINST,BACKEND,FRONTEND,BDD instruction
248+
class DOC_PROMPT,ADR_PROMPT,PRD_PROMPT,SETUP_PROMPT prompt
249+
class ADR_TEMPLATE,PRD_TEMPLATE,CODE_REVIEW content
250+
class PLAN_TEMPLATE,TODO,ARCHIVE_PLAN plan
251+
```
252+
253+
## Key Reference Patterns
254+
255+
### Central Configuration Hub
256+
- `.github/copilot-instructions.md` serves as the primary configuration document, referencing most instruction files and core documentation
257+
- `AGENTS.md` provides repository-wide context and references key directories and processes
258+
259+
### Documentation Workflow
260+
- `Documentation.chatmode.md` heavily references documentation instructions and templates
261+
- `docs.instructions.md` defines standards for all documentation types and their storage locations
262+
- Prompt files like `write-adr.prompt.md` and `write-prd.prompt.md` reference their respective templates and directories
263+
264+
### Planning Integration
265+
- `Planner.chatmode.md` integrates with the plans structure and references the plan template
266+
- Plans reference core configuration files and maintain the TODO workflow
267+
268+
### Cross-Cutting Concerns
269+
- Engineering guidelines (`code-review-guidelines.md`, `pull-request-guidelines.md`) are referenced by the main configuration
270+
- Templates (`adr-template.md`, `prd-template.md`) are referenced by both instructions and prompts
271+
- Directory structures are consistently referenced across multiple configuration files
272+
273+
This hierarchy shows how the repository maintains consistency through strategic cross-referencing, with clear patterns for documentation workflows, planning processes, and configuration management.

0 commit comments

Comments
 (0)