You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/prompts/audit-docs.prompt.md
+70-35Lines changed: 70 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,13 @@ labels:
12
12
13
13
## Role & Purpose
14
14
15
-
Act as a **Documentation Auditor**. Your goal is to ensure the `docs/` directory is a strict, verifiable reflection of the current implementation in the #codebase.
15
+
Act as a **Strictly Factual Technical Auditor**. Your goal is to ensure the `docs/` directory is an objective, verifiable reflection of the current implementation in the #codebase.
16
+
17
+
**Core Philosophy:**
18
+
19
+
-**Reporter, Not Editor:** You convert code facts into documentation. You do **not** decide what is "important," "critical," or "interesting" on your own.
20
+
-**Objective Reality:** If the code does X, document X. Do not add commentary on _how well_ it does X.
21
+
-**Link, Don't Duplicate:** Do not copy-paste large chunks of code into markdown. Point the reader to the source of truth.
16
22
17
23
**Audience Strategy (Dual Focus):**
18
24
Documentation must serve two audiences simultaneously:
@@ -22,8 +28,9 @@ Documentation must serve two audiences simultaneously:
22
28
23
29
**Tone:**
24
30
25
-
-**Approachable:** Clear enough for a new person to pick up the systems quickly.
26
-
-**Technical:** Deep enough for experts to understand nuances and edge cases.
31
+
-**Approachable (For Concepts):** Use clear, simple natural language when introducing _what_ a system does.
32
+
-**Technical (For Details):** Use precise terminology when explaining _how_ it works.
33
+
-**Objective (For Adjectives):** See Hard Rule #2 below.
27
34
28
35
---
29
36
@@ -39,12 +46,20 @@ Execute **Phase 1** and **Phase 2** in order.
39
46
2.**Phase 2: General Audit (Mandatory)**
40
47
-**Action:** Audit the entire `docs/` directory against the current #codebase.
41
48
-**Task:**
49
+
-**Mandatory Correction:** If existing text describes behavior that contradicts the code (e.g., outdated logic, wrong function names), you **MUST** correct it to match the current implementation.
42
50
- Update outdated info, fix inaccuracies, and improve overall quality/clarity.
43
51
- Consolidate fragmented files to reduce noise.
44
-
-**Create New Files & Directories (Strategic Expansion):** You are authorized and encouraged to create new artifacts, but only when strictly necessary.
45
-
-**New Components:** If a new system component or module exists and does not logically fit into any existing file, create a new one.
46
-
-**External APIs/Tools:** If a new feature is explicitly meant for external use, create a dedicated usage guide.
47
-
-**Missing Structures:** If a standard directory is missing but needed to properly organize the new documentation, create it.
52
+
-**Create New Files & Directories (Strategic Expansion):**
53
+
-**Step 1: Check Existing Structure.** Before creating anything, scan `docs/`. If a logical home exists, place the file there.
54
+
-**Step 2: Apply Diátaxis Framework.** If a **NEW** directory is required, or the content is a distinct new system, organize it using the **Diátaxis** structure:
55
+
-_Tutorials_ (Learning-oriented): step-by-step introductions that take a newcomer from zero to a working outcome. Use this when teaching someone how to use a part of the system for the first time.
56
+
-_How-To Guides_ (Problem-oriented): focused recipes that solve a specific, real-world task. Use this when the reader already knows the basics and wants to accomplish a particular goal.
57
+
-_Reference_ (Information-oriented): factual, exhaustive descriptions of APIs, components, configuration options, and behaviors. Use this when documenting “what exists” and its exact inputs/outputs.
58
+
-_Explanation_ (Understanding-oriented): background, rationale, and architectural overviews. Use this when clarifying “why it is this way” or exploring trade-offs and design decisions.
59
+
-**Scope:** Create new artifacts for:
60
+
-**New Components:** Systems, designs, modules or architecture that do not fit into existing files.
61
+
-**External APIs:** Dedicated usage guides for external consumers.
62
+
-**Missing Structures:** Standard directories needed for organization.
48
63
-**Next:** Proceed to Phase 3 **ONLY** if Phase 1 and Phase 2 resulted in **ZERO** updates.
49
64
50
65
3.**Phase 3: Fallback Cleanup (Conditional)**
@@ -60,16 +75,22 @@ Execute **Phase 1** and **Phase 2** in order.
60
75
- Every single statement must be grounded in a specific line of the #codebase.
61
76
- If you cannot point to the specific file and line number that proves a statement is true, do not write it.
62
77
- No speculation on planned features.
63
-
64
-
2.**No Placeholder Text or TODOs**
78
+
-**No "Name-Based" Assumptions:** Do not assume a function does X just because it is named `doX`. Read the implementation logic. If the implementation is empty or ambiguous, do not document it as working.
79
+
80
+
2.**Strict Objectivity (The Fact vs. Opinion Protocol)**
81
+
-**The Truth Override (CRITICAL):** If existing human-written documentation is factually incorrect (e.g., claims the system uses TCP when code shows UDP), you **MUST** correct it. Do not preserve technical falsehoods under the guise of "preserving style."
82
+
-**Generation (New Content):** When _you_ write new documentation, do not use subjective adjectives like: _important, critical, robust, seamless, best-in-class._ Stick to verifiable facts.
83
+
-**Preservation (Style Only):** If _existing_ human-written documentation uses subjective terms (like "critical" or "important"), **preserve them**—UNLESS they are factually wrong.
84
+
-**The Line:**
85
+
-_Bad (AI Generated):_ "The `auth.ts` middleware is a critical component." (Opinion).
86
+
-_Good (AI Generated):_ "The `auth.ts` middleware blocks unauthorized requests." (Fact).
@@ -124,7 +151,10 @@ Execute **Phase 1** and **Phase 2** in order.
124
151
## 5. Formatting Standards
125
152
126
153
1.**Relative Links:** Always use relative paths so they work in GitHub text views.
127
-
2.**Code Snippets:** Use sparingly. Only for non-obvious configurations or critical edge cases.
154
+
2.**Code Snippets (Strict Limits):**
155
+
-**Do NOT dump code:** Do not inline full struct definitions, class bodies, or entire functions. This is documentation, not a copy of the codebase.
156
+
-**Link Instead:** If you want to show the shape of a struct/class, provide a link to the file definition.
157
+
-**Exceptions:** You may use small snippets (3-10 lines) ONLY IF illustrating a specific usage example, a critical configuration line, or a complex logic block that is impossible to explain with text alone.
128
158
3.**Directory Structure:** If creating a new folder, it **must** have an `index.md` describing the directory's purpose.
129
159
4.**Related Documentation:**
130
160
-**Scope:** Apply to standard `.md` files (Exclude `index.md` and `README.md`).
@@ -139,12 +169,14 @@ Execute **Phase 1** and **Phase 2** in order.
139
169
140
170
1.**Audit Your Changes:** Look at the text and diagrams you are about to generate.
141
171
2.**Verify Against #codebase:** Cross-reference every new statement you wrote against the actual code one last time.
142
-
3.**Check for Accuracy:**
143
-
-_Did I hallucinate a function name or function logic?_
144
-
-_Is this path correct?_
145
-
-_Does this diagram match the actual logic flow?_
172
+
3.**Check for Accuracy, Hallucinations & Bloat:**
173
+
-_Did I assume what a function does based on its name, or did I read the logic? (If assumed -> Verify it)._
146
174
-_Are my statements 100% verifiable and grounded in existing #codebase implementation?_
147
-
4.**Action:** If you find any discrepancy, correct it immediately before outputting.
175
+
-_**Did I verify if existing text matches the code? If it is outdated/wrong, did I correct it?**_
176
+
-_Did I inline a full struct or class definition? (If yes -> Delete it and replace with a link)._
177
+
-_Did I insert NEW subjective words? (If yes, remove them. If preserving existing ones, keep them)._
178
+
-_Did I cite the file for the logic I just explained? If not, find the file or delete the text._
179
+
4.**Action:** If you find any discrepancy, missing citation/diagram, subjectivity, code dumping, or bloat, correct it immediately before outputting.
148
180
149
181
---
150
182
@@ -155,6 +187,9 @@ Before concluding this task, verify:
155
187
1._Does this content serve both internal and external devs?_
156
188
2._Did I remove all placeholders?_
157
189
3._Did I properly define all acronyms on first use?_
158
-
4._Are my diagrams strictly based on current #codebase (no styling)?_
159
-
5._Did I place implementation citations at the end of sections?_
160
-
6._Did I run Phase 2 (General Audit) even if I made changes in Phase 1?_
190
+
4._Did I include meaningful Mermaid diagrams for complex systems?_
191
+
5._Did I replace massive code dumps with links?_
192
+
6._Did I place implementation citations at the end of sections?_
193
+
7._Did I correct factual errors in existing documentation?_
194
+
8._Did I run Phase 2 (General Audit) even if I made changes in Phase 1?_
195
+
9._Did I follow the Diátaxis Framework for any NEW directory structures?_
Copy file name to clipboardExpand all lines: docs/architecture/configs.md
+8-23Lines changed: 8 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
3
3
This document describes configuration files and environment setup in AlexJSully's Portfolio project, their roles, technical details, and how to update or extend them.
Configs manage environment variables, service integrations, and global settings for the app. They enable features like Firebase, Sentry error tracking, and custom runtime options.
8
10
9
-
## 🏗️ Structure
11
+
## Structure
10
12
11
13
-**Location:**`src/configs/`
12
14
-**Example files:**
@@ -17,7 +19,7 @@ Configs manage environment variables, service integrations, and global settings
Copy file name to clipboardExpand all lines: docs/architecture/images.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# Images & Icons Documentation
2
2
3
-
This document explains how images and icons are used, organized, and named in AlexJSully's Portfolio project, and how contributors can add their own.
3
+
This document explains how images and icons are used, organized, and named in Alexander Sullivan's Portfolio project, and how contributors can add their own.
Images and icons provide visual context, branding, and UI elements throughout the portfolio. They are used for project thumbnails, profile pictures, social media links, and custom graphics.
8
10
9
-
## 🏗️ Structure
11
+
## Structure
10
12
11
13
### Images
12
14
@@ -25,7 +27,7 @@ Images and icons provide visual context, branding, and UI elements throughout th
25
27
-**Usage:**
26
28
- Social media links, UI buttons, branding, and navigation
27
29
28
-
## 📝 Naming Conventions
30
+
## Naming Conventions
29
31
30
32
### Image Naming
31
33
@@ -38,7 +40,7 @@ Images and icons provide visual context, branding, and UI elements throughout th
38
40
- Social: `github.svg`, `linkedin.svg`, `twitter.svg`, etc.
39
41
- UI: Use clear, lowercase names (e.g., `bar.svg`, `publish.svg`)
40
42
41
-
## 🔍 Usage Examples
43
+
## Usage Examples
42
44
43
45
### Using Images in Components
44
46
@@ -83,17 +85,13 @@ import GitHubIcon from '@images/icons/github.svg';
83
85
3. Import it in your component as shown above.
84
86
4. Use with MUI `IconButton` or directly in JSX.
85
87
86
-
## 🧩 Relationships
88
+
## Relationships
87
89
88
90
- Images are referenced in data files (e.g., `projects.ts`) and components.
89
91
- Icons are imported as React components or used in MUI IconButton.
90
92
- Both are essential for UI consistency and branding.
91
93
92
-
## 🔗 Related Docs
94
+
## Related Documentation
93
95
94
96
-[Component Documentation](./components/index.md)
95
97
-[Projects Guide](./components/projects.md)
96
-
97
-
---
98
-
99
-
💡 **Tip:** Use `.webp` for images when possible for better performance. Keep icon names lowercase and descriptive. Always optimize images for web.
Layouts define the structure and composition of pages and sections, ensuring consistent UI, navigation, and shared component behavior across the entire site.
0 commit comments