|
| 1 | +# Doc Writer Knowledgebase for Coder.com |
| 2 | + |
| 3 | +## Suggested Prompt for Claude Code and ChatGPT |
| 4 | + |
| 5 | +To ensure consistent and context-aware assistance from ChatGPT or Claude Code, use the following prompt when starting a session: |
| 6 | + |
| 7 | +```md |
| 8 | +You are assisting with technical documentation for the open source Coder project (https://github.com/coder/coder). You should follow the rules and preferences outlined in these files: |
| 9 | + |
| 10 | +- style-guide.md (formatting and tone rules) |
| 11 | +- architecture-notes.md (high-level architecture of the product) |
| 12 | +- doc-template.md (content structure scaffolds) |
| 13 | +- snippet-library.md (reusable CLI/YAML/config blocks) |
| 14 | +- ai-project-notes.md (recent work log and in-progress ideas) |
| 15 | +- claude-code-config.md (rules for Claude's behavior) |
| 16 | + |
| 17 | +You are not responsible for copyediting or tone unless asked; focus on: |
| 18 | +- technical accuracy (based on the codebase and documented architecture) |
| 19 | +- adherence to file placement and structure |
| 20 | +- verifying commands, parameters, and file references |
| 21 | +- following our markdown and terminology conventions |
| 22 | + |
| 23 | +Do not use emojis in headings or list items. Use relative paths in links. If you're unsure, ask before making assumptions. |
| 24 | +``` |
| 25 | + |
| 26 | +You can paste this prompt directly into Claude Code or ChatGPT (Pro) and then upload or paste relevant files as needed. |
| 27 | + |
| 28 | +--- |
| 29 | + |
| 30 | +Welcome to your personal and collaborative documentation-sidecar knowledgebase. This repo is intended to assist and streamline your work on [Coder documentation](https://github.com/coder/coder), especially in collaboration with AI tools like ChatGPT and Claude Code. |
| 31 | + |
| 32 | +This directory β `coder-docs-writing/` β is meant to live alongside the `coder/` and `coder.com/` repositories within your local workspace. |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## Purpose |
| 37 | +This repo acts as a **persistent memory store** for markdown/style preferences, architectural understanding, and AI-generated notes. It is designed to: |
| 38 | + |
| 39 | +- Serve as a **sidecar knowledgebase** for the primary maintainer (Edward Angert) |
| 40 | +- Act as an **AI Subject Matter Expert (AI-SME)** for use in LLM workflows |
| 41 | +- Be a **shared workspace** for coworkers to contribute insights, style clarifications, architecture notes, and documentation patterns |
| 42 | + |
| 43 | +The goal is to reduce context-switching, enforce style and consistency, and enable teammates or AI to step in seamlessly. |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## Structure |
| 48 | + |
| 49 | +``` |
| 50 | +coder-docs-writing/ |
| 51 | +βββ README.md # This file |
| 52 | +βββ style-guide.md # Markdown and tone/style preferences |
| 53 | +βββ architecture-notes.md # Evolving notes about the Coder architecture |
| 54 | +βββ templates/ |
| 55 | +β βββ doc-template.md # Skeletons or starter templates |
| 56 | +β βββ snippet-library.md # Reusable markdown/YAML/code blocks |
| 57 | +βββ ai-project-notes.md # AI-writable log for evolving notes |
| 58 | +βββ integration/ |
| 59 | +β βββ chatgpt-config.md # Guidance for using ChatGPT effectively |
| 60 | +β βββ claude-code-config.md # SME config for Claude (merged from CLAUDE.md + CLAUDE_DOCS_GUIDELINES.md) |
| 61 | +``` |
| 62 | + |
| 63 | +Documentation paths should refer to content under `../coder/docs/`. Image assets are under `../coder/docs/images/`. Website rendering code is in `../coder.com/`. |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +## Getting Started |
| 68 | + |
| 69 | +1. **Clone the repo locally** (or fork it for sandboxed edits): |
| 70 | + ```bash |
| 71 | + git clone git@github.com:yourusername/coder-docs-writing.git ~/.coder-docs-writing |
| 72 | + ``` |
| 73 | + |
| 74 | +2. **(Optional) Create a symlink for convenience**: |
| 75 | + ```bash |
| 76 | + ln -s ~/.coder-docs-writing ~/Documents/coder-docs-writing |
| 77 | + ``` |
| 78 | + |
| 79 | +3. **(Optional) Create a shell alias for quick access**: |
| 80 | + ```bash |
| 81 | + alias dockb='cd ~/.coder-docs-writing && nvim' |
| 82 | + ``` |
| 83 | + |
| 84 | +4. **Review or contribute to the shared files**: |
| 85 | + - Use `style-guide.md` to guide any edits or submissions. |
| 86 | + - Use `architecture-notes.md` to share system behavior or insights. |
| 87 | + - Use `ai-project-notes.md` for project context and session memory. |
| 88 | + - Use `claude-code-config.md` to align Claudeβs output with established documentation expectations and Git/image handling workflows. |
| 89 | + |
| 90 | +5. **For AI usage**, upload or reference the relevant files during prompts to ChatGPT or Claude. |
| 91 | + |
| 92 | +--- |
| 93 | + |
| 94 | +## Example Use Case |
| 95 | + |
| 96 | +Say you're documenting a new Coder feature and want to ensure style consistency: |
| 97 | + |
| 98 | +1. Upload `style-guide.md` and `architecture-notes.md` to your LLM session. |
| 99 | +2. Paste in raw markdown from a WIP doc. |
| 100 | +3. Prompt: _"Review this content using my style guide and Coder architecture notes."_ |
| 101 | + |
| 102 | +Or: |
| 103 | + |
| 104 | +4. After wrapping a long LLM session: |
| 105 | + Prompt: _"Summarize what we just discussed and add it to `ai-project-notes.md` in today's date section."_ |
| 106 | + |
| 107 | +Coworkers can also use the same context files when jumping in to help maintain consistency. |
| 108 | + |
| 109 | +--- |
| 110 | + |
| 111 | +## Next Steps |
| 112 | + |
| 113 | +- β
Populate `style-guide.md` and `doc-template.md` based on current habits |
| 114 | +- β
Start using `ai-project-notes.md` as a running journal with daily notes |
| 115 | +- π Invite team members to contribute and update key files collaboratively |
| 116 | +- β³ Optionally script or automate note updates from PRs, commits, or AI output |
| 117 | +- π Claude config now reflects all previous Claude-specific guidance (including Git/image behavior and prompt strategy) |
| 118 | + |
| 119 | +--- |
| 120 | + |
| 121 | +## Contributing to This Knowledgebase |
| 122 | + |
| 123 | +This repo is meant to be shared across documentation contributors and AI assistants. Please follow these guidelines when editing or proposing changes: |
| 124 | + |
| 125 | +### General Rules |
| 126 | +- **Do not use emojis** in headings or list items |
| 127 | +- **Use relative paths** for internal links and image references |
| 128 | +- All code blocks should have a language identifier (e.g., `bash`, `json`, `md`) |
| 129 | +- Refer to `style-guide.md` before formatting or revising content |
| 130 | + |
| 131 | +### File Guidelines |
| 132 | +- `style-guide.md`: Contribute formatting rules, tone notes, or markdown patterns |
| 133 | +- `architecture-notes.md`: Document internal behavior of the Coder system |
| 134 | +- `ai-project-notes.md`: Add time-stamped entries summarizing decisions, quirks, or updates |
| 135 | +- `templates/`: Extend with new skeletons or reusable snippets |
| 136 | +- `integration/`: Do not remove AI configuration files β update with care |
| 137 | + |
| 138 | +### Git Practices |
| 139 | +- Always branch from `main` |
| 140 | +- Use descriptive branch names (e.g., `fix/agent-notes`, `feat/add-provisioning-snippets`) |
| 141 | +- Keep PRs focused and small when possible |
| 142 | + |
| 143 | +This keeps the repo clean, traceable, and AI-friendly. |
| 144 | + |
| 145 | +--- |
| 146 | + |
| 147 | +Happy documenting β and collaborating! |
| 148 | + |
| 149 | +--- |
| 150 | + |
| 151 | +**Maintainer:** Edward Angert |
| 152 | +**Context:** Coder.com Documentation |
| 153 | +**Last updated:** 2025-05-06 |
0 commit comments