From 54d0bf68aab7a9e4fed5cf649bb6ef06896318bb Mon Sep 17 00:00:00 2001 From: Okiki Ojo Date: Sun, 22 Feb 2026 15:31:57 -0500 Subject: [PATCH] docs(copilot): enhance instructions for targeted rules and guides Clarify where to find specific instructions and guides for working on the project. Add detailed tables for both always-on rules and situational references, improving accessibility to essential documentation. This helps developers quickly locate relevant guidelines, reducing confusion and streamlining the development process. Should verify by checking the updated sections for clarity and completeness. Signed-off-by: Okiki Ojo --- .github/copilot-instructions.md | 36 +++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index e211f17..1938fbb 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -76,9 +76,33 @@ When acting as an agent on multi-step work: - Do not store secrets, tokens, or private URLs in `.agents/memory/` - Keep scratch notes in `.agents/memory/SESSIONS/` (gitignored) -## Where to look for more targeted rules -This repo uses path-specific instructions under `.github/instructions/`. -Follow the applicable file-based rules when working in: -- TypeScript -- `edge/` and `endpoints/` -- `core/` +## Where to look + +### Instructions (always-on rules, auto-loaded by `applyTo`) + +Targeted rules live under `.github/instructions/`. These are prescriptive — +follow them whenever you work on a matching file. + +| File | Applies to | +| --------------------------------- | -------------------------------- | +| `typescript.instructions.md` | `**/*.ts`, `**/*.tsx` | +| `markdown-writing.instructions.md`| `**/*.md`, `**/*.ts` | +| `ascii-diagrams.instructions.md` | `**/*.ts`, `**/*.md` | +| `core.instructions.md` | `core/**` | +| `edge-shared.instructions.md` | `edge/_shared/**` | +| `endpoints.instructions.md` | `edge/endpoints/**` | + +### Guides (situational reference, read on demand) + +Reference material lives under `.agents/guides/`. These are descriptive — +read them when the task calls for it, not necessarily on every edit. + +| File | When to read | +| --------------------------- | --------------------------------------------------------- | +| `endpoint-architecture.md` | Before adding or changing an endpoint | +| `stack-and-conventions.md` | Quick runtime/formatting reference | +| `code-review.md` | When reviewing a PR or diff | +| `pull-requests.md` | When writing a PR title or description | +| `commit-messages.md` | When crafting a commit message | +| `ascii-diagrams.md` | When adding diagrams to docs or comments | +| `rfc-style-writing.md` | When writing a design doc or spec for a non-trivial change| -- knotmirror 0.0.1