Repository navigation
docs: improve docs/ folder navigation (#1803) - #1807
Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves navigation and agent guidance for the docs/ tree by expanding the documentation index, adding a directory-scoped docs/AGENTS.md, and updating the write-markdown-docs skill to document frontmatter and GitHub-vs-repo Markdown rules.
Changes:
- Replaces
docs/index.mdwith a structured, described index covering all majordocs/areas. - Adds
docs/AGENTS.mdwith a directory map, placement guidance, frontmatter guidance, and linting context. - Updates the
write-markdown-docsskill and addsflamegraphsto the cspell word list.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| project-words.txt | Adds flamegraphs to the repository word list. |
| docs/issues/open/1803-improve-docs-folder-navigation.md | Adds an issue spec for #1803 documenting goals, plan, and verification. |
| docs/index.md | Expands the docs index into categorized sections with descriptions. |
| docs/AGENTS.md | Introduces agent-facing guidance for the docs/ directory (map, placement, conventions). |
| .github/skills/dev/planning/write-markdown-docs/SKILL.md | Adds frontmatter and repo-vs-GitHub Markdown guidance plus a checklist item. |
Comments suppressed due to low confidence (5)
docs/issues/open/1803-improve-docs-folder-navigation.md:197
- These reference links appear to use incorrect relative paths from
docs/issues/open/...:../index.mdpoints todocs/issues/index.md(doesn't exist) and../skills/...points underdocs/issues/skills. They should resolve todocs/index.mdanddocs/skills/...respectively (likely../../index.mdand../../skills/...).
- Current index: [`docs/index.md`](../index.md)
- Frontmatter convention: [`docs/skills/semantic-skill-link-convention.md`](../skills/semantic-skill-link-convention.md)
docs/issues/open/1803-improve-docs-folder-navigation.md:201
- More broken relative links in References:
../../.markdownlint.json,../../.github/...,../../packages/..., and../../src/...resolve underdocs/ordocs/issues/instead of repo root. Fromdocs/issues/open/...these likely need one extra../(e.g.../../../.markdownlint.json,../../../.github/..., etc.).
- Markdown linting configuration: [`.markdownlint.json`](../../.markdownlint.json)
- Write markdown docs skill: [`.github/skills/dev/planning/write-markdown-docs/SKILL.md`](../../.github/skills/dev/planning/write-markdown-docs/SKILL.md)
- Existing `packages/AGENTS.md` (pattern reference): [`packages/AGENTS.md`](../../packages/AGENTS.md)
- Existing `src/AGENTS.md` (pattern reference): [`src/AGENTS.md`](../../src/AGENTS.md)
docs/issues/open/1803-improve-docs-folder-navigation.md:95
- In the quoted snippet for
write-markdown-docsthe link todocs/skills/semantic-skill-link-convention.mduses../../../../docs/..., but from.github/skills/dev/planning/write-markdown-docs/SKILL.mdit should go up to repo root first (likely../../../../../docs/...). If this block is meant to be copy/pasted, it should match the correct relative path.
Follow the frontmatter convention defined in
[`docs/skills/semantic-skill-link-convention.md`](../../../../docs/skills/semantic-skill-link-convention.md),
which specifies the required fields for each document type and the shape of
`semantic-links` entries.
docs/AGENTS.md:81
- These relative links go up two directories (
../../.github/...) fromdocs/AGENTS.md, which resolves outside the repo. Sincedocs/AGENTS.mdis one level below repo root, the correct relative path to.github/...should only go up one level (../.github/...).
| Skill | When to use |
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [`write-markdown-docs`](../../.github/skills/dev/planning/write-markdown-docs/SKILL.md) | Writing or editing any `.md` file — covers GFM pitfalls, frontmatter, and linting scope |
| [`create-issue`](../../.github/skills/dev/planning/create-issue/SKILL.md) | Drafting and creating issue specifications |
.github/skills/dev/planning/write-markdown-docs/SKILL.md:74
- The relative link to
docs/skills/semantic-skill-link-convention.mdappears incorrect from this file's location (.github/skills/dev/planning/write-markdown-docs/SKILL.md).../../../../docs/...resolves under.github/skills/docs/.... It should go up to repo root first (likely../../../../../docs/skills/semantic-skill-link-convention.md).
Follow the frontmatter convention defined in
[`docs/skills/semantic-skill-link-convention.md`](../../../../docs/skills/semantic-skill-link-convention.md),
which specifies the required fields for each document type and the shape of
`semantic-links` entries.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6bc4a91 to
a7865f5
Compare
|
ACK a7865f5 |
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: This pull request changed only documentation, improving the index and navigation of the docs folder, with no executable effect. |
Closes #1803
Summary
This PR improves navigation inside the
docs/folder for both human readers and AI agents.Changes
T1 — Expand
docs/index.mdThe existing minimal flat list is replaced with an organized index that covers every top-level file and subdirectory (
adrs/,issues/,refactor-plans/,pr-reviews/,skills/,templates/,media/,licenses/), each with a short description of its purpose. Also addsflamegraphstoproject-words.txt.T2 — Add
docs/AGENTS.mdNew directory-scoped AGENTS.md file, following the pattern of
packages/AGENTS.mdandsrc/AGENTS.md. Covers: directory map, a placement guide (which subdirectory to use for each artifact type), frontmatter convention (required for issue/EPIC specs, recommended for others), Markdown linting scope (repo files vs. GitHub surfaces — no line wrapping in issue/PR body text), and key skill references.T3 — Update
write-markdown-docsskillAdds two new sections to
.github/skills/dev/planning/write-markdown-docs/SKILL.md:docs/skills/semantic-skill-link-convention.md..markdownlint.jsondoes not apply to GitHub issue/PR bodies and that line wrapping must not be used there.Also adds a frontmatter checklist item to the existing commit checklist.
Verification
linter allpasses